lancastrian
Posts: 1
Joined: Sun Jun 08, 2014 4:35 pm

problem accessing a DS18B30

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?

Raspberry Paul
Posts: 86
Joined: Mon Jun 10, 2013 3:40 pm
Contact: Website

Re: problem accessing a DS18B30

Sun Jun 15, 2014 8:42 pm

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
http://www.raspberrypaul.co.uk

Return to “Interfacing (DSI, CSI, I2C, etc.)”