-
Notifications
You must be signed in to change notification settings - Fork 0
Hardware
We'll describe how to set up a Raspberry Pi to use piTemp. Using other hardware is possible. If you do so, additions in this wiki are very welcome.
You can use DS18B20 or DS18S20. They especially vary in accuracy. The pin configurations of the sensors could be found in the data sheet.
sensor (pin) | Raspi (pin) |
---|---|
GND (1) | GND (6) |
DQ (2) | GPIO4 (7) |
VDD (3) | GND (6) |
You'll also have to connect GPIO4 (pin 7) and 3V3 (pin 1) of your raspi with a 4.7k resistor.
If you want to connect various sensors, just connect them in parallel.
We have to say the system how we've connected our sensors. We also have to load some kernel-modules. To do so, edit the following files:
/boot/config.txt
Add this line: dtoverlay=w1-gpio,gpiopin=4,pullup=on
/etc/modules
Add this two lines to load the needed modules on boot up:
w1-gpio pullup=1
w1-therm
After rebooting your Raspi we should now see our sensors in /sys/bus/w1/devices
. They'll appear as directories named like 28-0116180071ef
or 10-000802e3ea6a
.