Pages: 1 [2]   Go Down
Author Topic: Multiple DS18B20, read problems  (Read 3782 times)
0 Members and 1 Guest are viewing this topic.
Dee Why NSW
Offline Offline
Edison Member
*
Karma: 47
Posts: 2265
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I've wired my sensors exactly like this:

And now you are talking about cabling, which is just as well, as that could be the problem - bad cables and bad connections. The 127 suggests sensor not connected but I guess it could also mean  "connected but unreadable".

You might be better off proving the point with the breadboard setup you alluded to.

Having said that, I got caught short with my local installation and chanced using 1.2m of cheapo four-conductor I had to hand. I think it worked, but luck, the short length, and an electrically-quiet suburban environment probably had lot to do with it.
Logged

Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wiring/cabling:
I've connected it all on a breadboard, but the sensors have 1.8m cables that they where delivered with.

So I solved the problem with faulty readings when touching the cables, it seems to have been bad grounding that was the problem. I found them to be very stable if my computer (laptop) was not plugged into an external power source and i used a 9V battery to power the arduino.

Still I have the problem where if both sensors are connected I cannot get a reading above ~84C. If I disconnect one sensor when that happens I get the values just fine.
Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 47
Posts: 2265
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could be inadequate power.

The power-on reset value of the temperature register is +85°C and I think I saw it when I was starving it with supply via USB.
Logged

Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That might be it. I gotta admit I'm new to the electronics-part of this. I do have a separate power supply that can give me 5 or 9V and 1.5A. Got any wiring suggestions, or should i just plug it to the external 9V power-connector on the arduino?
« Last Edit: April 30, 2013, 01:24:48 pm by Pinky » Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 47
Posts: 2265
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No wiring, just check the polarity and use 9v. The 1.5A is plenty. Don't be tempted to use the 5v. It sounds kosher but it isn't enough for the on board regulators to do their job, and there is no need to tempt fate by applying it directly to the Vin pin.

Logged

Pages: 1 [2]   Go Up
Jump to: