Go Down

Topic: DS18b20 and onewire - output problems (Read 1 time) previous topic - next topic

mrpid

Im using Duemlanove with Drobot 1820b sensors with 4k7 resistor and Miles Dallas temperature library. Using his 'simple' sketch the response is -72C which ouputs constantly. using 'single' sketch output is 0C 32F. these outputs are constant regardless of heat applied to the DS18b20, this suggested prob could be sensor, but ive tried 3 now to no avail !!  Ive also tried parasitic & powered modes which give same results. Using sheepdog software (no onewire lib) I again got constants which didnt change. any guidance gratefully received

robtillaart

Seems to me a hardware problem.

How do you connect the sensor to the Arduino? which pins etc.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Nick Gammon

I was playing with those sensors and found that the library could at times set the resolution but not check it was set. Then it would read back rubbish. Depending on the exact code you are using, I would make sure that:


  • After reading from the sensor the CRC is checked

  • After changing resolution read back to make sure it actually changed (including checking the CRC)



Go Up