- open terminal and navigate to /home/pi/
- sudo apt-get update && sudo apt-get -y upgrade
- git clone https://github.com/0rion5/PiPonics.git
- sudo nano /etc/rc.local
- add this line above exit 0 "python3 /home/pi/PiPonics/piponics.py"
- sudo reboot
- Your Done!!
For this project I used a raspberry pi 3b. However, any pi should work the same. I used a Sainsmart 8 channel relay, with the intention that at some point i could easily expand the number of valves simply by creating another instance of the PiPonics object inside of piponics.py.Connect the relay to the gpio headers using physical pin numbering as follows;
Growbed | Power | Valve One | Valve Two | Pump | Ground |
---|---|---|---|---|---|
Relay | VCC | in1 | in2 | in3 | GND |
GPIO | 5v | 36 | 38 | 40 | GND |