The only line you should need to put into config.txt in your case isjbranko wrote:I have the same problem. I added a few lines into config.txt, but without success. I have connected ds18b20 to GPIO4. Can someone tell me, what exactly should I do? Othervise I will do downgrade to previous version. Most likely there is only few lines to resolve the issue. Unfortunately I don't know which one. Thanks for all help.
Code: Select all
dtoverlay=w1-gpio
Hi I was just about to post a longish explanation that I've read everything here and I am still unable to get my ds18b20 to work.rpdom wrote:The only line you should need to put into config.txt in your case isjbranko wrote:I have the same problem. I added a few lines into config.txt, but without success. I have connected ds18b20 to GPIO4. Can someone tell me, what exactly should I do? Othervise I will do downgrade to previous version. Most likely there is only few lines to resolve the issue. Unfortunately I don't know which one. Thanks for all help.which should work with the default of gpio 4.Code: Select all
dtoverlay=w1-gpio
Hello again.cacb wrote: Hi I was just about to post a longish explanation that I've read everything here and I am still unable to get my ds18b20 to work.
Update: Please ignore, it does indeed work now. I am not sure what I changed, but suddenly it is normal. I did add dtoverlay=w1-gpio to /boot/config.txt
Possibly I plugged the pin header wrong. Sorry for wasting your time.
hello,same problem to me.Do you have fixed?cacb wrote:Hello again.cacb wrote: Hi I was just about to post a longish explanation that I've read everything here and I am still unable to get my ds18b20 to work.
Update: Please ignore, it does indeed work now. I am not sure what I changed, but suddenly it is normal. I did add dtoverlay=w1-gpio to /boot/config.txt
Possibly I plugged the pin header wrong. Sorry for wasting your time.
As seen above, I had the problem with ds18b20 and apparently fixed it by updating /boot/config.txt
Today, I did another
sudo apt-get update
sudo apt-get upgrade
and now my ds18b20 sensors are gone *again* - sigh. Please, what is going on? This is a machine I am setting up for a friend.
I have tried adding/removing dtoverlay=w1-gpio to boot/config.txt, but now this does not help either. When I list the contents of /sys/bus/w1/devices (dtoverlay=w1-gpio is activated in boot/config.txt) i get a varying number of subfolders, but they do not have the proper names (serial numbers)
Right now I have 2 sensors attached, I know the serial numbers, they are
28-00005a013a4
28-00005a01d5f
but when I list /sys/bus/w1/devices , I get
00-300000000000
00-b00000000000
00-d00000000000
w1-bus-master1
The characters 3, b, d keep changing in the names above, and sometimes there are only 2 folders.
Please, this used to be dead simple, now it is broken. I would really appreciate some help.
Hi, I had this problem a couple of times, and I had difficulties finding the causes. Now it seems there were a couple of things at the same time. Initially, a system upgrade broke it. That was fixed by adding "dtoverlay=w1-gpio" to /boot/config.txtforzalaquila wrote: hello,same problem to me.Do you have fixed?
bye
cesare
This simple suggestion worked for me. Thanks a lot! I was having the same issue, instead of seeing 28-* in /sys/bus/w1/devices/ I was seeing some weird names like:cacb wrote:After disconnection everything and re-connecting, I found that it "suddenly" worked again.
Code: Select all
[email protected] /sys/bus/w1/devices $ ls
00-300000000000 00-b00000000000 00-d00000000000 w1_bus_master1
I've ensured I'm apt-get up-to-date and have tried different hardware configurations and various boot options with no success.[email protected] /sys/bus/w1/devices $ ls -l
total 0
lrwxrwxrwx 1 root root 0 Mar 29 09:49 00-774000000000 -> ../../../devices/w1_bus_master1/00-774000000000
lrwxrwxrwx 1 root root 0 Mar 29 09:49 00-b74000000000 -> ../../../devices/w1_bus_master1/00-b74000000000
lrwxrwxrwx 1 root root 0 Mar 29 09:50 00-f74000000000 -> ../../../devices/w1_bus_master1/00-f74000000000
lrwxrwxrwx 1 root root 0 Mar 29 09:49 w1_bus_master1 -> ../../../devices/w1_bus_master1
It is a weird problem. The numbers you list are the exact same I saw (on a PI1 Model B) when the sensors stopped working. A few days ago, my SD card got corrupted, I had to erase it and reinstall latest version of Raspbian (NOOBS). I added dtoverlay=w1gpio to /boot/config.txt and it worked fine with the same sensors as before.Agsom wrote:This simple suggestion worked for me. Thanks a lot! I was having the same issue, instead of seeing 28-* in /sys/bus/w1/devices/ I was seeing some weird names like:cacb wrote:After disconnection everything and re-connecting, I found that it "suddenly" worked again.
Unplugging and rewiring solved it.Code: Select all
[email protected] /sys/bus/w1/devices $ ls 00-300000000000 00-b00000000000 00-d00000000000 w1_bus_master1
Don't know if it is of any help, but this is what my PI1 Model B looked like when it had suddenly crashed (after 88+ days with no reboot) and refused to bootNikThePlumber wrote:hmm, the reason that I swapped to my A+ was that the B suddenly stopped working one day following a reboot, so because I'm logging data I just grabbed the spare A+ to try and minimise the data gap. I haven't revisited the B until today but when I investigated the B, I've found it's completely dead - won't even wake the screen up so I can't even tell if it's doing BIOS things. I put the SD card in my laptop and found my user data was OK, although I've not checked out the OS folders. I've no idea if this is related - perhaps I've fried the B and the probes, although I had a 2x16 LCD display plugged in which is still working with the A+
Weird...
Code: Select all
sudo modprobe w1-gpio && sudo modprobe w1_therm
Code: Select all
dtoverlay=w1-gpio,gpiopin=4