Want to light up your FarmBot at night so you can more easily harvest dinner-time veggies? Or maybe you want to experiment with growth rates by using specialized grow lights? Whatever the reason you want to have lights on your FarmBot, we’ll show you how to do it in this easy tutorial.
Lights are included with v1.3 kits
We have included a 1.5m long strip of white LED lights with all v1.3 FarmBot Genesis kits. (Connection instructions) You might want to use these instructions for adding more lights on your own, if you’re building a FarmBot on your own, or you have an older kit.
Please use the following information for inspiration only. The instructions are not necessarily complete or guaranteed to work, and may not satisfy your needs. If you would like help in modifying/adding-on to your FarmBot, consider posting in the community forum.
|Waterproof 12V Flexible LED Strip Lights||Amazon||$10.15|
Farmduino provides multiple 12V outputs which can be used to power the LED lights.
Attach the wires to one of the 12V outputs, making sure the red wire is hooked up to the positive output, while the black wire is hooked up to the negative output. These connectors can be used to attach peripherals to the Farmduino.
Take note of the pin number you are connecting to as it will be used to control the lights from the web app later. Peripheral 4 can be controlled with pin 10, and peripheral 5 can be controlled with pin 12 via the web app.
The LED strip we recommend purchasing is easily routed through the horizontal cable carrier supports as shown. This configuration will cast light down from the gantry onto your plants. If you would like to mount your lights elsewhere, you can use the included adhesive backing, zipties, double sided foam tape, or other means to secure the lights as desired.
In general there are two ways to use your newly installed LED lights:
From the FarmBot Web App, navigate to the Controls page. Click the Edit button in the header of the Peripherals widget. Create a new peripheral named “Lights” and assign it the pin number that you hooked the LED wires to on the Farmduino. Then click the Save button in the widget header and you will now have a shiny new toggle switch to operate your lights!
Because your lights are hooked up to a peripheral on the Farmduino, you can easily create sequences that utilized the lights. Simply add a Write Pin step into your sequence to turn the lights on with a pin value of “ON” and off with a pin value of “OFF”. Make sure you set the pin mode to “DIGITAL” and the pin number to whichever peripheral pin number you hooked up the wires to on the Farmduino.