raphex
Posts: 13
Joined: Fri Aug 30, 2013 7:27 pm

sensor ds18b20 stop working

Fri Oct 17, 2014 3:48 pm

I have many issue in having my central heating working with my PI
i have fixed a lot by changing the SD card and the usb power

One problem still remains with ds18b20 ... (3 connected)
after 1-3 days they stop answering .. the folders containing data are not there anymore and even if I do a sudo reboot .. they don't work !

the only way to make them xork again is to remove the power cord then reconnect the power !

have you a way to fix that ?

raphex
Posts: 13
Joined: Fri Aug 30, 2013 7:27 pm

Re: sensor ds18b20 stop working

Sat Oct 18, 2014 10:43 pm

someone got an idea???????

ImBassDoor
Posts: 5
Joined: Mon Nov 03, 2014 1:51 pm

Re: sensor ds18b20 stop working

Mon Nov 10, 2014 2:18 pm

I have found a solution!

Code: Select all

sudo nano /etc/rc.local
add
sudo modprobe w1-gpio
sudo modprobe w1-therm

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: sensor ds18b20 stop working

Mon Nov 10, 2014 10:09 pm

You don't need sudo in rc.local it's run as root.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
SteveDee
Posts: 343
Joined: Thu Dec 29, 2011 2:18 pm
Location: Sunny Southern England
Contact: Website

Re: sensor ds18b20 stop working

Wed Nov 12, 2014 10:34 pm

raphex wrote:...i have fixed a lot by changing the SD card and the usb power...
I wonder if you still have a power or other electrical problem.

Have you measured the 5Volt supply on the pcb?

How long are the wires connecting sensors to the RaspberryPi?

I have a system with 3 sensors. It hasn't missed a beat in over 2 months of operation (http://captainbodgit.blogspot.co.uk/201 ... ensor.html)

Liyo
Posts: 4
Joined: Sun Mar 06, 2016 9:16 pm

Re: sensor ds18b20 stop working

Mon Feb 18, 2019 9:17 am

Hi everyone!

Sorry for updating this post but I'm facing the exact same problem.

3 sensors connected for my heating controller and each every 2 weeks, they disconnect. The way I solve it, I have to turn off the rasp, I disconnect one random wire which joins the sensors with the rasp and I recover the 3 folders from each sensor when turning back on.

It's not a big big problem but it's a bit annoying :(

User avatar
rpdom
Posts: 17170
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: sensor ds18b20 stop working

Mon Feb 18, 2019 4:15 pm

Reopening a post that is over four years old is not a good idea.

The answers given above are probably true in your case too, though. Either a wiring fault or power issues. I have had some of those sensors running without problems for years now.
Unreadable squiggle

Liyo
Posts: 4
Joined: Sun Mar 06, 2016 9:16 pm

Re: sensor ds18b20 stop working

Wed Feb 20, 2019 8:12 am

rpdom wrote:
Mon Feb 18, 2019 4:15 pm
Reopening a post that is over four years old is not a good idea.

The answers given above are probably true in your case too, though. Either a wiring fault or power issues. I have had some of those sensors running without problems for years now.
Ok, sorry for that.

I take the ideas and I will try it.

Return to “Automation, sensing and robotics”