Page 1 of 1

problem accessing a DS18B30

Posted: Sun Jun 08, 2014 4:55 pm
by lancastrian
I have been trying to use a DS18B30 sensor connected to an RPi to measure temperature.
I have connected the sensor in the way suggested in numerous posts and copied a typical python program for doing the measuring.

All the information I have read suggests getting data from the sensor by opening a file (using Python) e.g. something like:

tfile =open("/sys/bus/w1/devices/28-000003341162/w1_slave")

When I do this I get an error saying that the file does not exist. I can get to the directory 28-0003341162 but there is no file in it called w1_slave.


What am I missing?

Re: problem accessing a DS18B30

Posted: Sun Jun 15, 2014 8:42 pm
by Raspberry Paul
Double check your wiring. I've had similar issues and it's normally been down to a lose connection.

Check out Adafruits excellent guide to the sensors
https://learn.adafruit.com/adafruits-ra ... ng/ds18b20