„README.md“ ändern
parent
892aaf3f0d
commit
83c8f13c74
12
README.md
12
README.md
|
@ -1,10 +1,18 @@
|
|||
# strawberry-pi-greenhouse
|
||||
Strawberry Pi Greenhouse is a little project that i made in my holidays. It's a software that sends sensor data (temperature, water level) to a Homeassistants instance and can receive commands from this HA instace to control a relay.
|
||||
#Installation
|
||||
|
||||
To activate the sensors you have to add these lines to you /boot/config.txt file on your raspberry pi micro sd card. You can change the pin numbers if you want.
|
||||
|
||||
```
|
||||
dtparam=i2c1=on
|
||||
dtparam=i2c_arm=on
|
||||
enable_uart=0
|
||||
|
||||
#i2c Temperaturesensor
|
||||
#dtoverlay=i2c-gpio,bus=2,i2c_gpio_delay_us=1,i2c_gpio_sda=2,i2c_gpio_scl=3
|
||||
dtoverlay=i2c-gpio,bus=2,i2c_gpio_delay_us=1,i2c_gpio_sda=2,i2c_gpio_scl=3
|
||||
#i2c Moisturesensor
|
||||
#dtoverlay=i2c-gpio,bus=3,i2c_gpio_delay_us=1,i2c_gpio_auot=4
|
||||
dtoverlay=i2c-gpio,bus=3,i2c_gpio_delay_us=1,i2c_gpio_auot=4
|
||||
```
|
||||
|
||||
Also you have to enable the i2c devices in the raspi-config menu. If you dont know how to do it you can just google it.
|
Loading…
Reference in New Issue