1

Recently, I bought a DS18B20 temp sensor to monitor my fermentation temp of my beer and assumed I could just hook up the power, ground and data to their respective pins on the Pi but I could never get it to work. I looked online and there were a lot of tutorials that suggest the modprobe terminal approach but very few (if any) that gave a straightforward GPIO.setup, GPIO.input approach. Is there a reason for this? Is the Dallas 1-wire protocol more complex than I’m assuming? Thanks!

| improve this question | | | | |
1

To enable 1-wire (with or without parasitic power) you need

dtoverlay=w1-gpio

dtoverlay=w1-gpio-pullup

in /boot/config.txt

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.