Go Down

Topic: Problem with DS18B20 sensors (Read 1 time) previous topic - next topic



I have 3 pcs of DS18B20 sensors connected to Arduino with about 20 meter 3-wire cable to my DIY solar collector.

When all sensors were located onto the protoboard they worked fine and correct, but when connected with 20+ m
cable all temperature readings are all the time 0 degrees celsius?  Must be because of the distance, but how can i help it  ?
My software has no bugs, only random features.


No more problems!

Did some searching about old messages and find one advice, so i did replac the 4k7
resistor with 2k2 and now it works fine ! No more 0-values, only correct ones  8)

My software has no bugs, only random features.


Kariky, Are the DS18B20's wired with the 3 wires as Voltage-Ground-Signal? Or are they in "Parasitic" mode?

I'd just like to know so I can help other people with this in future.   I have quite a bit of DS18B20 How-To online here:

What cable are you using?? I would suggest using CAT5 network cable, which has 4 twisted pairs. I would use one pair for +5V and Ground, and the other 3 pairs for DS18B20 Signal and Ground.  That would be for the long run to your solar collector, and then break out to the individual sensors with 3-wire cable, or 2 twisted pairs. Keeping the Signal and Ground in twisted pair as far as possible would be good.

These protected DS18B20's for $5 might be good in your environment: http://arduino-info.wikispaces.com/Brick-Temperature-DS18B20#TS

Let us know how it's working...

Regards, Terry King
...In The Woods In Vermont

DISCLAIMER: Mentioned stuff from my own shop...
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info


Aug 20, 2011, 10:53 pm Last Edit: Aug 20, 2011, 11:20 pm by Testato Reason: 1
hi terry, your online shop is very interesting, but why there is no atmega328 on site ?

plus, i do not found a page with shipping Cost, there is a page whit shipping info but no cost.
- [Guida] IDE - http://goo.gl/ln6glr
- [Lib] ST7032i LCD I2C - http://goo.gl/GNojT6
- [Lib] PCF8574+HD44780 LCD I2C - http://goo.gl/r7CstH


why there is no atmega328 on site ?

Look at the page http://arduino-direct.com/sunshop/index.php?l=product_list&c=1 which has nice Arduinos using Atmel's 328 microcontroller.

And regarding shipping, for specific enquiries take note of:
"Please contact us with any questions about shipping: Shipping@YourDuino.com"


Aug 21, 2011, 10:13 am Last Edit: Aug 21, 2011, 10:15 am by Testato Reason: 1
i ask for the uP Atmel, not the entire arduino.

in the website is there a component section, with resistor, led, but not uP.
It is useful for standlone project

for the shipping question i think that it is important for a site, if it write that do not make money with shipping, create a page with shipping cost.

thanks for the answer
- [Guida] IDE - http://goo.gl/ln6glr
- [Lib] ST7032i LCD I2C - http://goo.gl/GNojT6
- [Lib] PCF8574+HD44780 LCD I2C - http://goo.gl/r7CstH

Go Up