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,687
  • 17
  • 103
  • 109
Frans
  • 306
  • 3
  • 3
  • Welcome to Raspberry Pi! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Steve Robillard Feb 11 '15 at 21:35
  • Hell yeah! I was really struggling with this! I had a working Pi2 with a 10-probe 1-wire network. I made a new network with a Pi3 and couldn't get it to work even with the sensor cluster from the old Pi2. If I could give you more than +1 I would. Thanks, this worked a charm! – Jim Aug 28 '17 at 06:45