Pages: [1]   Go Down
Author Topic: Bizarre reading from a single DS18B20  (Read 805 times)
0 Members and 1 Guest are viewing this topic.
SW Colorado
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm new to the Arduino and 1-wire sensors, but I had the sensor working perfectly with my Uno.  I then built a dedicated shield with connectors and resistor for the 1-wire and now can't get it to work.  When the shield is not connected, ie no resistor or 5V connection, I get a reading of 32 Fahrenheit (or 0 centigrade when I change the code to display centigrade).  When the shield is installed but no sensor is connected, I get -196.60 (or -127 centigrade).  When I connect the sensor, I get the same readings.  How do I know if the sensor is damaged and not working??  As I said, it was working and was intermittently not working - now not at all.  I'm using it in parasitic mode.

Thanks for your help!!
Logged

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


You could first try it in normal mode; -127 means the sensor is not found. The cause can be in the sensor itself, the wiring (connection , capacity, pull up resistor etc) or in your sketch. Did you modify it recently? Post your code if you want us have a look.

This  http://milesburton.com/index.php/Dallas_Temperature_Control_Library contains a device count function. might be helpful

Logged

Rob Tillaart

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

SW Colorado
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The sensor was - it thanks!  Although each wire checked out, when I desoldered and then resoldered the sensor, it worked.

Thanks for your help!

Doug
Logged

Pages: [1]   Go Up
Jump to: