Author Topic: Temperature probe with a DS18B20  (Read 1265 times)

0 Members and 1 Guest are viewing this topic.

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Temperature probe with a DS18B20
« on: July 02, 2022, 11:47:59 pm »
I got promising results from using my infrared thermometer to locate a current pig on a circuit board.  I want to confirm the results with a temperature probe touching the suspected faulty IC, since the IR thermometer is big and bulky.  I have a DS18B20 temp sensor that I can use.  I figure I'll sand the top of the sensor smooth (get rid of the seam) to get more and better contact with the overheating part?  I have no heatsink compound that I could find.  Any way I can improve my temperature measuring?  I have a small lathe...I could make an aluminum contact pad that I hot glue to the sensor top?
« Last Edit: July 02, 2022, 11:51:27 pm by MikeK »
 

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: Temperature probe with a DS18B20
« Reply #1 on: July 03, 2022, 01:09:43 am »
Nevermind; I think I was overly concerned.  Any temp sensor up close to a part will be good enough.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12975
Re: Temperature probe with a DS18B20
« Reply #2 on: July 03, 2022, 01:13:16 am »
Why not put the DS18B20's flat face with the part no. against the surface you want to measure for minimum thickness of case plastic between the surface and the die?  Also beware of heat loss via the DS18B20 leads.  You can minimize that by using very thin tracks near the DS18B20, or for a scratch-built probe, a couple of cm of hair thin magnet wire inside the rigid part of your probe, between the (shortened) leads and the cable back to your MCU.
A closed cell foam sleeve (or block) for thermal insulation over the body of the probe, ending flush with the sensor face would also be beneficial.
 
The following users thanked this post: MikeK

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: Temperature probe with a DS18B20
« Reply #3 on: July 03, 2022, 01:42:29 am »
Good tips, thanks Ian.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12975
Re: Temperature probe with a DS18B20
« Reply #4 on: July 03, 2022, 02:00:22 am »
Note that *ANY* filler, applied in a thin enough layer between two approximately flat surfaces in contact is better than nothing as very thin air gaps are notoriously poor thermal conductors.  If you don't have heatsink compound, a small dab of any high temperature grease, or even toothpaste will do, but in your application its probably a good idea to avoid ones containing electrically conductive particles due to the future trouble stray traces are likely to cause. e.g. avoid graphite grease, copper and aluminum antiseize, and Noalox and similar zinc loaded electrical jointing compounds.
 
The following users thanked this post: MikeK

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3552
  • Country: nl
Re: Temperature probe with a DS18B20
« Reply #5 on: July 04, 2022, 09:40:00 am »
The plastic of the DS18B20 does not conduct heat very well (In the TO-92 package). At least a lot less then the metal leads going into it and the leads act both as a thermal mass and a heatsink.

Any PN junction (from a diode or BE- transistor junction) can be used as a temperature sensor (with a temperature coefficient of approximately -2mV per degree centigrade. Transistors in a TO-218 package or the old metal can packages such as TO-18 seem particularly suited to be used as temperature sensors.
 
The following users thanked this post: Ian.M, tooki

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12975
Re: Temperature probe with a DS18B20
« Reply #6 on: July 04, 2022, 10:31:32 am »
True, which is why I emphasized using very very thin connections to the sensor for the last few cm.  It may even be worth using fine enameled resistance wire rather than magnet wire, as e.g. Constantan alloy has a thermal conductivity of approx. 5% of that of Copper, but with care + good flux is still solderable.

One doesn't choose a DS18B20 over other sensors for its package's thermal performance, one chooses it for its factory +/-0.5°C calibration and  minimal interface circuit. 

BEWARE: There are a lot of counterfeit DS18B20 sensors out there, of dubious accuracy - if you didn't buy direct from Maxim or an authorized distributor, odds are you've got a fake.  See https://github.com/cpetrich/counterfeit_DS18B20 for details.
« Last Edit: July 04, 2022, 10:47:07 am by Ian.M »
 
The following users thanked this post: MarkL, serg-el, pcprogrammer

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: Temperature probe with a DS18B20
« Reply #7 on: July 04, 2022, 12:04:24 pm »
BEWARE: There are a lot of counterfeit DS18B20 sensors out there, of dubious accuracy - if you didn't buy direct from Maxim or an authorized distributor, odds are you've got a fake.  See https://github.com/cpetrich/counterfeit_DS18B20 for details.

Indeed!  I've already be fooled by this.  That Arduino sketch had helped me ID the fakes.
 

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: Temperature probe with a DS18B20
« Reply #8 on: July 10, 2022, 01:03:21 am »
Interesting link below on shaving down the case.  Apparently there's a copper slab inside, for conducting heat.  Fake sensors probably use cheaper metal or do without.

https://hackaday.io/project/158004-trimming-down-dallas-ds18b20s
 
The following users thanked this post: MarkL

Offline magic

  • Super Contributor
  • ***
  • Posts: 6916
  • Country: pl
Re: Temperature probe with a DS18B20
« Reply #9 on: July 10, 2022, 05:49:04 am »
In TO92, TO220 and similar packages the die is placed on a copper plate which is an extension of one of the leads, usually the central one but it can also be one of the side leads in TO92. Hence it is electrically and thermally connected with the lead, which is usually collector/drain or ground/VCC in case of ICs.

You could remove almost all the plastic material from the front side of TO92 to gain access to this copper - there is nothing in there. Just keep enough plastic that the package doesn't fall apart. The copper plate will still be one part with one of the leads and conduct heat away.

The rear side contains the die, as that guy found out, and also bond wires which connect it with the other two pins. You will damage the wires if you file too much of the rear, a millimeter or two before reaching the die itself.
 
The following users thanked this post: MikeK


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf