24

I'm starting work on a fermentation monitor using the Adafruit temperature sensing tutorial, a RPi B+ running Raspbian, a 4.7 kOhm resistor and a DS18B20 to which I've soldered male breadboard pins. After wiring exactly as the tutorial states (on multiple breadboards), I do:

sudo modprobe w1-gpio
sudo modprobe w1-therm
ls /sys/bus/w1/devices

But I only get a folder named "w1_bus_master1"; no 28-xxx folders. I understand this is a common question, so here is what I have done so far:

  • This DS18B20 has worked (and still works) when connected to my Arduino, so the sensor is not faulty.

  • Tried connecting the sensor to the 5V GPIO with no success.

  • Tried wiring the resistor as it is on my Arduino's breadboard, with the power/data/ground on one column, the power/data resistor on the next column, and the sensor pins on the column after that; no luck.

  • Tried using the same wiring on multiple breadboards.

Any ideas where I'm going wrong?

A picture of the connections.

Grafton C.
  • 343
  • 1
  • 2
  • 6

1 Answers1

29

Found it!

sudo nano /boot/config.txt

add :

dtoverlay=w1-gpio

this has to do with kernel update, find more info in this link

Steve Robillard
  • 34,988
  • 18
  • 106
  • 110
Frans
  • 306
  • 3
  • 3