You can use a relay in combination with your FarmBot’s Arduino or Farmduino electronics board to turn on or off high-powered peripherals or devices that plug into a standard wall outlet. Example devices you could control with a relay include fans, window opening mechanisms, grow lights, heating elements, even makers!
We recommend purchasing a 110V relay such as the Tails PowerSwitch 2 (pictured below) and then:
- Plugging the relay into a power source such as an extension cord,
- Connecting the peripheral to the relay’s output, and
- Wiring the relay up to spare digital I/O pins on your electronics board.
You can then control the peripheral from sequences with the write pin command or by adding it to the peripherals widget.
Consider the rain
Please note that while FarmBot is designed to withstand the elements, the relay and peripheral you choose may not be. Because of this, you might consider only using relays and additional peripherals in an indoor environment.