May 27, 2018
This first installment on Indoor Agriculture focuses on building a Grow Light system which runs on a schedule. We will use an Arduino Uno to run a relay connected to an LED array, and use a Raspberry Pi Zero W to manage the day/night cycles via serial connection. The day/night schedule should be adjustable. In the past, I’ve used an outlet timer to do this. While this is fine, our Indoor Agriculture will eventually be fully automated. With this in mind, we will pursue a digital solution.
|5V 2-Channel Relay Module||$ 9.99|
|LED Grow Light||$ 29.91|
|Arduino Uno||$ 11.98|
|Raspberry Pi Zero W||$ 15.95|
|Micro SD Card||$ 14.73|
Build the circuit as illustrated by the following diagram. Make sure your circuit makes sense for the components you’ve choosen.
grow_light.inoprogram onto the Arduino Uno.
README.mdinstructions to setup the python software on the Raspberry Pi Zero W.
1to turn the grow lights on
0to turn the grow lights off
NIGHT_HOURSvariables in the
That’s it! Simple. But we’re not done yet. We still need to:
Stay tuned for part 2.
Written by Peter Chau, a Canadian Software Engineer building AIs, APIs, UIs, and robots.