Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.01 KB

README.md

File metadata and controls

22 lines (14 loc) · 1.01 KB

Temperature

This container adds an additional DS18B20 1-wire temperature sensor to the weather station. This way you can for example have one temperature sensor in the sun and the other in the shade.

This container is using Ruby and uses the ds18b20 gem. Thanks to the popularity of the DS18B20 sensor, it is one of the few sensors for which one can find libraries in pretty much any language. Otherwise, it is Python which is dominating this space.

Wiring

Ground and power of the DS18B20 are connected to ground and 3V on the Pi respectively. The output lead of the DS18B20 is connected to GPIO 4. Place a 4.7k resistor between the positive lead and the output lead of the sensor.

Balena

To use the 1-wire protocol the w1-gpio DT overlay must be enabled.

Misc