From 2d7840224bb491002578692eb095ac50201ba87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rasmussen?= Date: Sun, 13 Mar 2022 18:30:35 +0100 Subject: [PATCH] Add wiring.md --- wiring.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 wiring.md diff --git a/wiring.md b/wiring.md new file mode 100644 index 0000000..945b76b --- /dev/null +++ b/wiring.md @@ -0,0 +1,41 @@ +# Wiring + +## Sensors + +DS18B20 pinout: + +| PIN | Use | +|-----|------| +| 1 | VDD | +| 2 | GND | +| 3 | DQ | + +# Notes + +## Solid state relays + +The SSRs draw 5-7 mA when supplied with 3.3 V. + +## RPi + +A maximum of **16 mA per pin** with the total current from all pins not exceeding 51 mA. + +## DS18B20 + +A DS18B20 temperature sensor draws up to 1.5 mA. It requires approx. 750 ms to convert at 12-bit resolution. + +The DQ line must be pulled up by a 4.7 kohm resistor and connected to GPIO4. + +The kernel needs to be configured via `/boot/config.txt`: + +``` +dtoverlay=w1-gpio-pullup,gpiopin=4 +``` + +1-Wire drivers need to be loaded in order to create the connection between the physical sensor and the rPI. + +```bash +modprobe wire +modprobe w1-gpio +modprobe w1-therm +```