Pages: [1]   Go Down
Author Topic: DS18b20 and onewire - output problems  (Read 911 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Seems to me a hardware problem.

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

Rob Tillaart

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

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Logged

Pages: [1]   Go Up
Jump to: