problem accessing a DS18B30
Posted: Sun Jun 08, 2014 4:55 pm
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?
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?