AD592 Temp reading
smkbayn
Posts: 25
Hello,
Can anybody help me, I am trying to get a reading with the AD592 temp probe but I am having problems, it is jumping around by about 4 degrees f.· I was able to calibrate it but can not keep it stable in·a running program.· Please help.
Can anybody help me, I am trying to get a reading with the AD592 temp probe but I am having problems, it is jumping around by about 4 degrees f.· I was able to calibrate it but can not keep it stable in·a running program.· Please help.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There's nothing like a new idea and a warm soldering iron.
It is a current source device, so the cable length does not matter at DC, but if there is RF or even strong low frequency disturbance, it can pick up noise. In those cases, a twisted and shielded cable is recommended even for the AD592. There are some good application notes on this from Analog Devices.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
One thing that sometimes works is this. Suppose your AD595 is connected to pin p5. If pin p6 is not being used, move the ground side of the RCTIME capacitor to p6, and in the program, make P6 a LOW 6 output. That effectively grounds that side of the capacitor through a path that does not carry any of the power supply currents of the Stamp and reduces the fluctuations.
One big problem with the AD592 in the RCTIME circuit is that it puts out only one microamp per degree Kelvin and its current at room temperature is already 300 microamps. The 4 degree fluctuation you are seeing is only 1% of that. Measurements with RCTIME cannot be expected at much better than 1/4% (9 bit resolution) over time, one or two degrees at best. The temperatures below 273 amount to wasted range. You can get more stability by using an ADC, in particular one that has an offset to subtract out 273 Kelvin. There are circuits that can subtract out an offset current of 273 microamps, but those are more trouble than an ADC.
Another option with your existing circuit is to use an LM35 as the sensor instead of the AD592. The output of the LM35 is normally a voltage of 10mV per degC, but by connecting a 1 kohm resistor from Vout to V-, you can turn it current output probe like the AD592, but with an output of 10 microamps per degC:
So the output at 25 degC is about 320 microamps, but each degC change is 10 microamps instead of 1 microamp. The result would be much more stable than the AD592 because it is referenced to zero Celsius instead of absolute zero. You can make it into a two-wire probe like the AD592, by including the resistor in the wrap. See the LM35 or LM34 data sheets for details.
The DS1620 is so stable because it is direct to digital, and its reference points are all contained inside the DS1620 chip.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
steve
village idiot
·
With the LM35 or LM34 you would be operating over a much larger proportion of the range, say 36 to 40 degC, 10% of full scale, much easier for RCTIME to resolve.
Here is a design diagram for using the LM35 or LM34 in two wire current mode. The quiescent current has to be factored in, because it contributes to the current. But it too is linear and well controlled in the manufacture of those chips. A calibration at a couple of temperatures can give you great accuracy.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Thanks!
I hesitate to assure with !!!!!! level of confidence that the LM35 would be more stable, because there might be some other issue with the power supply or another noise source or wiring issue that is causing the instability. But all things being equal, the LM35 puts out a larger signal (per degree) and is therefore less affected by noise. The LM35 and its Fahrenheit cousin are available from many sources. Send me a PM and I might have one I could mail to you.
PADT, as to ADCs, the LT1298 is a 12 bit converter that is available from Parllax. The V+ side of the AD592 connects to +9 volts, the V- side to an ADC input pin and to the top of a 10kohm resistor, and the bottom of the resistor to ground. The ADC measures the voltage across the resistor, which will vary at 10 millivolts per degC. 2.73 volts at 0 degC (273 Kelvin). The resolution is around 0.1 degC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
PM is private message, an option at the top of the forum screen.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Thanks in advance,
PADT
Remember that a most integrated sensors are fastest in responding to heat conducted along the metal leads. That is, if you are fastening an AD592 to a surface, you should also bring the package leads in thermal contact with the surface. That would give much faster response and would come closer to the correct reading than just relying on the packaging.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
The thermocouple kit sold on Parallax seems to require a BS2p instead/.
I hadn't revisited the RCTIME method for a while, so I set up a BOE with an AD592 from the applied sensors kit and the 0.22uF capacitor. The readings I got were quite stable on the level of +/- 1 degree Celsius and and even +/-1 degree Fahrenheit. However, when the initial reading is taken in Celsius and then converted to Fahrenheit, a one degree bobble turns into a two degree bobble. If you are going to use Fahrenheit, it is best to make the conversion directly from the raw RCTIME count. Could that be part of the problem?
I took no particular care with the layout, and tried both 5 volts or 9 volts for power, and even wrapped the AD592 wire around the power cord for a lamp to increase 60 hz pickup. Still pretty steady with only one degree bobble.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
If you have a multimeter, connect its common lead to the Stamp Vss line as close to the Stamp chip as possible. Then touch the positive multimeter lead to the Vss connection of the capacitor. It should be no more than a couple of millivolts different from the Stamp Vss. Every 5 millivolts of difference is about 2 degrees Fahrenheit error in the temperature signal. Also turn the multimeter to AC. Same thing. Should not be any AC voltage there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Post Edited (smkbayn) : 10/24/2007 11:42:39 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Post Edited (smkbayn) : 10/24/2007 11:41:52 AM GMT
You had also asked about the LM34 circuit. The little assembly I mailed to you will be used in exactly the same circuit as the AD592, but it will have a larger output per degree. Connect the (+) side to +9 volts Vin, and connect the (-) side to your input pin and the top of the 0.22 uF capacitor. The other side of the capacitor goes to ground (Vss). The calculations will be similar to what you have used for the AD592, but you will probably have to do a two point calibration in order to get the best accuracy. Nonetheless, the first thing to do is to put it into circuit in place of the AD592, and see that the count value returned by RCTIME decreases as the temperature increases. At some point you will want to encapsulate the circuit in a thermowell to make it waterproof.
The assembly consists of an LM34 and a 2kohm resistor, which is connected between the output and Vss. That turns the LM34 into a current source. Normally one would use the LM34 in its voltage output mode, but you can also read about the current output mode in the LM34 data sheet or application notes. The output current is,
About 450 microamps at room temperature. I think the one I sent you had a lower quiescent current, around 60 microamps. If you have a multimeter handy that can measure microamps, you can put the sensor in series with the meter and a 9 volt battery and measure that DC current and test it against temperature. The factor 5.3 and 52 will need to be adjusted because of component tolerances. In the BS2 RCTIME circuit, that same current will charge the capacitor.
You are getting closer with the AD592. I wonder where the noise is coming from.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Post Edited (smkbayn) : 10/25/2007 1:16:44 PM GMT
You will find that this new result2 value increases as temperature increases. In fact it will be linear, {temperature = A * result2 + B}. Please, if you will, find the result2 at two different temperatures, wide apart if possible. Then I can help you find the parameters A and B and work them into Stamp code that will calculate the temperature over the whole range.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
at·32 degrees f i read 97
this is according to the ir heat sensor gun i have.
Post Edited (smkbayn) : 10/27/2007 7:33:20 PM GMT
A * 376 + B = 145
A * 97 + B = 32
Subtract the second equation from the first and rearrange to get,
A = (145-32)/(376-97) = 0.405
Then plug that value for A into the first equation and solve for B:
B = 145 - (0.405 * 376) = -7.25
So the algebraic equation is,
degreesF = 0.405 * result2 - 7.25
In the Stampese, 0.405 * result2 is done using 26542 ** result2. That number comes from 0.405 * 65536 = 26542.
RCTIME 4,0,result
result = 65535 / result ' inverse
degF = 26542 ** result - 7
When you get your hot tub going, you will want to repeat the calculation using a good thermometer in the hot tub. That will probably be more accurate than the heat gun.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com