Tutorial: Adding LED Grow Lights to SmartGarden3 Using the Wiring Hub

Tutorial: Adding LED Grow Lights to SmartGarden3 Using the Wiring Hub

This is a tutorial showing how to add a controlled LED Grow Lights to SmartGarden3 using the SmartGarden3 Wiring Hub.

What is  SmartGarden3?

The SmartGarden3  system (available here) allows you to build your own remote monitoring and management system for your indoor or outdoor garden.   Do you want to share your garden and the weather world wide?  You can learn the Raspberry Pi and how to connect to the real world through this easy to build no-soldering kit.   You can measure soil moisture and then use that as feedback to provide your plant or garden just the right about of water.

What is the SmartGarden3 Wiring Hub?

The SmartGarden3 Hydroponics unit comes with a wiring hub to connect up the power, pump and light.  It turns out that this board is really handy for adding additional devices to relays on the SmartGarden3 or for other projects and your relays.

See the SmartGarden Hydroponics Kit Here.

If you are adding additional 5 – 24 VDC devices, you may want to use additional SmartGarden3 Wiring Hub Boards.  This is the same board that is included in the SmartGarden3 Hydroponics Kits.

You can buy the wiring hub here for $10.

SmartGarden3 Wiring Hub

Here is another post that gives more details on the Wiring Hub.

LED Grow Lights

There are hundreds of different brands and types of LED Grow Lights available.   We have chosen one brand of LED Grow lights for an example.   We chose the Litever 45W 4 strip grow light because it was inexpensive, had all the mounting hardware and was easy to modify.

First we will show how to modify the the Litever Grow Light for use with the SmartGarden3.   We will be using one of the relays on SmartGarden3 to control this light.   Specifically, Relay Number 8 (Valve 8 in the software).

Cautions

  • Turn all power off and unplug the SmartGarden3 Extender and the Grow Lights (or any other device you are using) before starting this project
  • Keep water away for uncovered electrical contacts at all times
  • Cover all soldered or exposed wires with heat shrink tubing or electrical tape
  • Be careful.   Electricity is dangerous!

What is a Relay?

relay is an electrically operated switch. It consists of a set of input terminals for a single or multiple control signals, and a set of operating contact terminals. The switch may have any number of contacts in multiple contact formats, such as make contacts, break contacts, or combinations thereof.

You use a relay to switch higher voltages and currents than can be handled by normal Raspberry Pi type of electronics.

The relays used in SmartGarden3 have three inputs per relay.   These are:

  • NO – Normally OPEN – Device OFF
  • COM – Common
  • NC – Normally CLOSED – Device ON

If you want the device to normally off (off on startup and when it isn’t being powered), then you would connect one end of your wire into NO (Normally Open) and then other end into the COM (Common).   If you want your device normally on, you would connection NC (Normally Closed) with the other end of the wire in COM (Common).

The relays on SmartGarden3 can switch either 120/240VAC or up to 30VDC at up to 10A which gives you a HUGE amount of flexibility.

The Relays on the SmartGarden3

Note:    In this and other SmartGarden3 manuals, for convenience we call the switched USB ports and Relay outputs “Valves”.   “Valves” refer to any switched device such as valves, pumps, lights, fans, windows, motors etc.   They can all be controlled by SmartGarden3.

Below are annotated pictures showing the valve number of each of the relays and usb ports on the back of the SmartGarden3 in the 3D Printed enclosure

 

Smart Garden System

Smart Garden System

Installing and Connecting your LED Grow Lights

The way relays work is that they act like an on/off switch.   You cut the wire you want to connect or disconnect and run it through the relay (either through NO and COMMON – Normally Off or NC and COMMON – Normally Closed – On – and COMMON).

 

Step 1) Collect your Materials

Step 2) Make a 2 foot long twisted cable of red and black solid core hook up wire (https://amzn.to/34E32p4 ).  How to twist it?   Check out this handy method.  Strip the wire ends of insulation for about 1/4 inch.

Step 3) Insert the red and black twisted wire into the screw down terminal marked “SG3-1 Pump (Channel 1)”.  Note you can use SG3-2 (Channel 2) also, but then change the port in Step 4 to “Light (Channel 2)” also.   Pay attention to the red wire going into the screw marked “R” and the black wire going into the screw marked “B”.

Step 4) Unplug any power to the SmartGarden3 extender unit.  MAKE SURE YOU DO THIS!   Screw down the other end of the red/black twisted wires from Step 3 into the Relay 6 slot on the SmartGarden3 Extender as shown.   Note the position of Red and Black wires.

 

Step 5) Locate the Power Supply from the 45W Everlite

 

Step 6) Cut the wire about 1 foot (300mm) from the end of the circular plug

Step 7) Strip off the outer insulation and leave about 1.5 inches of wire showing.   Strip the ends of the wires about 1/4 inch.

Step 8) You can either tin the wires using a soldering gun or use Ferrel Terminals (preferred as in Step9.  Jump to Step 9 to use Ferrel Terminals.

Step 9) Crip a small Ferrule crimp  on each of the four wires.  You can buy a Ferrrule tool and the connectors here: https://amzn.to/3LwoH2V

We really recommend getting one of these tools.  You will find it useful in many projects.

Step 7) Take the wire from the power supply and connect it into Power connector on the SG3 Wiring hub as shown below.  Note black wire to “B” and red wire to “R”.   GET THIS RIGHT!   Check it again.  You can blow the fuse on the SG3 wiring hub and or in your power supply if you reverse this!  Note:   We used the tinning method on these wires in the picture below, but we prefer the Ferrule connectors.

 

Step 8) Take the end of the of the black cable going to the lights and put the red and black wires into the Wiring Hub screws marked “Pump Power” also known as Channel 1.  Make sure this is correct or your light will not work and will blow the fuse.

SmartGarden3 Wiring Hub

Now your are done with wiring!

Plug in the SmartGarden3 Extender unit and connect the power supply to the light using the cables.  Then plug in your light into the power strip.   You will see the red power LED on the wiring hub turn on if you have done everything correctly.  If not, unplug your power to everything and check your wiring.

SmartGarden3 Wiring Hub

Now to test the Grow Light with the SmartGarden3.

Test Your Unit with Manual Control

Open up your dash_app on a browser (after starting the server on the Raspberry Pi as shown in the manual) and then click “Valve 6” on your Extender (Extender Test2 in this case).  It will turn the lights on for 10 seconds and then they will go off again.   Success!

 

Programming  SmartGarden3 for 12 hour on Grow Lights

It is most likely that you will want your grow lights on for 12 or so hours a day, but we will just run a test that will turn on the lights for 600 seconds every 15 minutes for the test.

Start up your SG3Configure program and go to the browser window as shown in the “SmartGarden3 Assembly and Test Manual”, go to the SG3 Configure Tab, select your Wireless Extender that you have wired the lights into and then select Valve 6 from the dropdown Valve Select Menu (Valve 8 is shown below as an example).   Fill out the rest of the fields as shown and then click “Save Valve”.     Finally, click “Save and Exit” and start your SmartGarden3 as shown in the “SmartGarden3 Assembly and Test Manual”.    After you have started the SmartGarden3 software, you will see the lights turn on the quarter hour.

smartgarden3

 

Here is a picture of the Wiring Hub when the light has been turned on by the SmartGarden3 Extender.

SmartGarden3 Wiring Hub