Pages: [1]   Go Down
Author Topic: Bizarre Reading from DS18B20's after adding 5th Sensor  (Read 1291 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

Apologies if this is something simple, but I cant seem to get my head around it!

Had a control / temp monitor system reading 4 sensors which worked perfectly (readings of 16.87, 15.3,12.8 and 1.2) all normal.

I add in the 5th Sensor, and here's what seems to happen...

Readings;

0.0, -187.25, 12.8, 15.68(new sensor), 0.0

I've changed the value of the pullup resistor in the past due to the bus length and loading (is currently at 1K6) and running in powered mode.
Pin voltages are normal, (vcc/gnd 4.98V, dq/gnd 2.58V)

Any ideas, I'm thinking some sort of fault in the wiring somewhere, but I cant seem to track it down.
The oddity is that the new sensor reads fine, but stops the others from working so eliminates a wiring fault from the new cable - and moves it to previously working cables!

Thanks in advance!
Logged

Atlanta, GA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


try looking at these:
http://arduino.cc/forum/index.php/topic,21762.msg162089.html
http://arduino.cc/forum/index.php/topic,21392.msg158967.html
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I had similar problems recently, I overcame it by adding another pullup resistor (10k) near the 1820 at the end of the 'string'.  If your pullup is next to the arduino you could try moving it to the 'far end' . 
Logged


Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Note also that 1-Wire chips in general do not like to be connected via "star topology"...

So running a bunch of pairs of wires out to separate 1-Wire chips, and connecting the near ends up is a Bad Idea.

The Right Way is to have a single two wire cable going from sensor A to sensor B to sensor C... etc.... making something analogous to a ladder.... the wires are the two "sides" of the ladder, and the 1-Wire chips are the "rungs".
Logged

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

The library I have (DallasTemperature.cpp) reads the scratchpad from the sensor without checking the CRC. Thus it could be complete rubbish, and I have found myself with a number of sensors that sometimes they return a bad result. You should check the CRC after a read, otherwise you have no way of knowing that the read completed OK.
Logged

Pages: [1]   Go Up
Jump to: