85 is the default power-up temperature value.
A conversion takes 750ms but you are only waiting 500, so each time you read it, it's getting the result from the previous conversion, not the current one.
85 is the default power-up temperature value.
A conversion takes 750ms but you are only waiting 500, so each time you read it, it's getting the result from the previous conversion, not the current one.
DT
Thanks
thats what I thought at first, i had a Pause 300, I guess I will put a longer on.
oufff, I was hoping it would something easy. thanks again
K
There is also a known bug in the DS1820, in that the power up reset does not work properly and it will report 85C on the first reading after power up. To work around the issue, reset the device by software command before taking the first reading.
Hi,
a bigger bug of the DS1820 ( not 18 B or S 20 ) is the error on temp that can reach +/- 3° C ...
the sample I run on my EasyPic 5 shows a ... + 2.50 °C error ...
But never observed any initialization real error ... measurements always start @ the good value ... if program respects the conversion delay, of course.
Alain
Last edited by Acetronics2; - 26th February 2011 at 17:15.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
I’ve had good results with the DS1820 using a lookup table for C to F conversion. Checking results with a Thermo King dry well calibrator the DS1820 was on the on the money to the nearest full deg fahrenhite from 7*F to about 60*F, it was 1 deg high from about 60*F to about 80*F and on the money from about 80*F to 127*F. I checked two DS1820’s and both fail to function properly below 6*F. The lookup table was from 0*F to 127*F. If bit7 (.5C) is a one it forces a roundup to your higher Fahrenheit temp in your table read if you have two Fahrenheit degrees represented by the same Centigrade temperature. Both DS1820’s gave almost identical performance.
Bookmarks