Diode/ transistor temp sensor?
RinksCustoms
Posts: 531
Hello all, its been a while (and a crazy few years) since I've been in here. Glad to keep tabs on the prop II, good to see the progress with the current chip ie., getting the prop to use bluetooth dongles to provide a bidirectional com link into a droid phone, awesome!
I've been looking for a cheap and somewhat accurate temp sensor. After some unsuccessful attempts with sot23 size digital sensors I searched the internet and came across a few pages that basically said that diodes and transistors can be used as temperature sensors. My question is; has anyone here done that with the prop? Certainly a 1n914a is cheaper than an lm34. Even a diode and am op-amp to amplify the millivolt changes in the diode that are proportional to the temperature change..
Posted from my DROID X2
I've been looking for a cheap and somewhat accurate temp sensor. After some unsuccessful attempts with sot23 size digital sensors I searched the internet and came across a few pages that basically said that diodes and transistors can be used as temperature sensors. My question is; has anyone here done that with the prop? Certainly a 1n914a is cheaper than an lm34. Even a diode and am op-amp to amplify the millivolt changes in the diode that are proportional to the temperature change..
Posted from my DROID X2
Comments
An LM34 will be more stable and reliable across a temperature range.
You can save some coin using the AN008 sigma-delta ADC.
[It'd be nice if people could talk up the product.]
The industry standard 'diode' seems to be a 2N3904 (diode connected).
Diodes are usually (appx) -2.2mV/°C
http://www.nxp.com/documents/application_note/AN10349.pdf
http://www.maxim-ic.com/datasheet/index.mvp/id/3000
Now getting back to the original post, RinksCustoms said:
I'm not sure what you mean by unsuccessful, could you elaborate?
Anyway, I find all these kinds of chips are individually way more expensive than a micro with all of them packed in. The only disadvantage to using a micro is that you have to not only write some software but also have ICP connections. But the Silabs parts I use allow me to ICP from the Prop easily as they only need two lines, one of which I run from the I2C lines.
http://www.mouser.com/ProductDetail/NXP-Semiconductors/SA56004ED118/?qs=sGAEpiMZZMucenltShoSngZctQqH05qEuzON%2fHckGD0%3d
And it can monitor local and remotly(at a diode junction) at the same time too.
(I haven't remembered that in a while.)
And it's only as good as your current source and your calibration (ice bath, boiling water, repeat as nec.)
What is it that you're wanting to take the temperature of?
Originally, I wanted to use the TMP75 (Texas Instruments) to mount in a drilled out 3/8" or 1/4" bolt to measure temps on an engine block (or even mounted in a screw head for things like smaller bearings and heat sinks). but since i cant get it to work even at different I2C speeds i'm giving up and going a different route. I searched the internet some and found out that you can use the Vf of a diode instead for roughly 2C accuracy... good enough for my projects. So sticking with the (diode--op amp--ADC/Delta ADC) idea, i've come across some source code, but its written in C, and it looks like gibberish to me..
I'm not looking to use something as big as a soic8, or lm34.. but maybe the propeller comunity could be of some benifet of having a simple object to use a humble diode (which we all have probably a few hundred laying around) and at least Sigma Detla on a few extra pins to monitor temps with some degree of accuracy (~2C). Now even a surface mount diode like a 1206 could be mounted in a head of a #12 screw..
Diode SMD ~1206 = $0.15
Op-amp DIP = $1.45
misc comp = ~$0.50
functional sens = ~$2.05 using Sigma/Delta? OR for Free if you have all this stuff lying around..
http://www.sparkfun.com/products/494
http://www.schmartboard.com/index.asp?page=products_smttodip&id=448
And you could solder the smt/regular resistors/caps between the dip pins to complete the circuit design
but you could buy it already made.
http://www.sparkfun.com/products/9418
I can't even imagine why you would say that about I2C??? There are two wires which generally are just the same lines as the EEPROM and you have an I2C object that you use so it becomes very very simple to issue a read command. I am also using a similar chip to the NXP sensor that tony mentioned and there are a lot of other registers in there that you don't even need to worry about as they are mainly for programmable overtemp alarms.
As for the "microscopic leads" I think you are exaggerating a bit much. Components don't plug into octal sockets either anymore and I know that would make it "easy" to work with but imagine the huge pcbs we'd have if everything was through-hole! Okay for prototyping and breadboarding.
Like getting used to anything new, once you do it's easy. So too with SMD.
Here's a Prop pcb I did recently that uses one of the I2C sensors located right between two dual mosfets in the center-left foreground. If it wasn't for all those SMD packages there would be no way I could get this stuff into a small housing like this.
Well the basic diode or transistor is actually a pretty good temperature sensor in the short term ( - long term drift may be an issue and per-device callibration is a pain - you need a good constant-current source and amplification of the forward voltage - dual op-amp will provide this. However once you have a transistor and a dual op-amp you might as well reduce the part count and go for a purpose-designed temperature sensor. One-wire sensors are pretty nifty IMO like the well-known DS18B20 since they can be bussed easily and being digital aren't too sensitive to noise.
Just figured that for the price of one I2C sensor, i could have multiple remote "diode" temp sensors, albeit with some reduced acuracy..
I'd be reluctant to blame the sensors. After all, TI could not survive by selling Smile. Why not post your code so we can have a look at it?
-Phil
And yes, it's likely something i did in handling the chips or durring soldering. But i was trained in school about ESD handling and soldering techniques (EE course in VoTech school), and I do implement ESD handling/soldering practices when working with IC's..
http://www.sensorsmag.com/sensors/temperature/temperature-sensor-tips-and-tricks-1439
Ideally you would have two diode junctions with similar geometries to reduce any common mode interference, but the article explains how it can be done in 'near real time' with just one diode junction.
The trick is to take voltage readings from two different but known precision current sources. Apply a 'relatively simple' formula based on a few known constants about the diode junction and you can determine the temperature.