Wednesday, September 23, 2020

Resurrecting 1-wire on Raspberry Pi

These instructions worked, except I'm using parasitic power (pins 1 and 3 to ground, pin 2 to signal with 4.7k resistor to 3.3v):

https://thepihut.com/blogs/raspberry-pi-tutorials/18095732-sensors-temperature-with-the-1-wire-interface-and-the-ds18b20

Good blog here too:

https://www.raspberrypi-spy.co.uk/2013/03/raspberry-pi-1-wire-digital-thermometer-sensor/

Final result:

raspberrypi:/sys/bus/w1/devices $ ls

10-00080194a30d  w1_bus_master1

raspberrypi:/sys/bus/w1/devices $ cd 10*

raspberrypi:/sys/bus/w1/devices/10-00080194a30d $ cat w1_slave

32 00 4b 46 ff ff 09 10 94 : crc=94 YES

32 00 4b 46 ff ff 09 10 94 t=25187

raspberrypi:/sys/bus/w1/devices/10-00080194a30d $