TFro3
Gardening Enthusiast
Staff member
DIY Aeroponic Tower Supporter
Aeroponic Assembly Guide Supporter
Super Duper Neighbor
- Growing Zone
- 7a (US)
Hey everyone!
Winter is now here and I've been putting together a 5x2' grow tent (shown below) for my aeroponic towers. With tents being so cheap on Amazon I figured this would be a quick easy thing to setup with ease. I've been piecing it together and after buying the tent, exhaust fan, and lights I had put as much into that I really wanted to. And then I remembered a controller is needed. Well.... I guess it really isn't NEEDED but it would be way better having one rather than just having fans and lights on timers because it would be hard to get the plants environment as favorable as possible.
If you don't know, grow tent controllers aren't super cheap. They aren't terribly priced but MOST of them out there require you to purchase their branded fans, lights, humidifiers, dehumidifiers, etc for everything to work right out of the box, which makes things more expensive than it needs to be, in my opinion. And if you want to plug your own stuff into the controller, guess what? If you guessed you needed to buy an adapter for a standard AC outlet you'd be correct. Which is simply wild to me.
So I started thinking about this issue and realized that I could use a single board computer such as a Raspberry Pi to create my own grow tent controller. If you don't know what a Raspberry Pi is, you can take a look here.
It only took me a day or over the weekend to come up the code for the controller and I'm currently testing it. This setup utilizes 3 main components, the Raspberry Pi computer/board, a combined temperature/humidity sensor, and a bank of relays that will act as switches to toggle on and off power to a set of outlets connected to this setup.
From there the program reads the temperature and humidity every minute and then will toggle on and off the relays based on the logic I setup. This logic is easily configurable to quickly modify the settings based on the needs of your indoor garden in the grow tent/room.
The logic is setup for the following devices:
To give you an idea how this can be configured, I'll paste the area of code that any user can update with ease once the program is downloaded to your Raspberry Pi:
If that block of code is complete gibberish to you I'll break it down.
Once the program is running, the terminal that you start the controller on will print you out current stats on the relays every minute as it refreshes the sensor and evaluate for relay changes! See below for that example from a live test!
If you're interested in building this or wanted to look at the rest of the code doing the magic you can review that and more documentation on my Raspberry Pi Grow Tent Controller GitHub Repo
More updates to come as the build comes out of testing and put into an enclosure all wired up!
Stay tuned!
Winter is now here and I've been putting together a 5x2' grow tent (shown below) for my aeroponic towers. With tents being so cheap on Amazon I figured this would be a quick easy thing to setup with ease. I've been piecing it together and after buying the tent, exhaust fan, and lights I had put as much into that I really wanted to. And then I remembered a controller is needed. Well.... I guess it really isn't NEEDED but it would be way better having one rather than just having fans and lights on timers because it would be hard to get the plants environment as favorable as possible.
So I started thinking about this issue and realized that I could use a single board computer such as a Raspberry Pi to create my own grow tent controller. If you don't know what a Raspberry Pi is, you can take a look here.
It only took me a day or over the weekend to come up the code for the controller and I'm currently testing it. This setup utilizes 3 main components, the Raspberry Pi computer/board, a combined temperature/humidity sensor, and a bank of relays that will act as switches to toggle on and off power to a set of outlets connected to this setup.
From there the program reads the temperature and humidity every minute and then will toggle on and off the relays based on the logic I setup. This logic is easily configurable to quickly modify the settings based on the needs of your indoor garden in the grow tent/room.
The logic is setup for the following devices:
- Lights
- Exhaust Fan
- Heater
- Humidifier
- Dehumidifier
- Hydroponic/Aeroponic water pump
To give you an idea how this can be configured, I'll paste the area of code that any user can update with ease once the program is downloaded to your Raspberry Pi:
Python:
# ------------ You CAN edit values starting here ------------ #
# Define lights on and off times (in 12-hour format with AM/PM)
lights_on_time = datetime.datetime.strptime('6:00 AM', '%I:%M %p').time() # Change to your desired on time
lights_off_time = datetime.datetime.strptime('10:00 PM', '%I:%M %p').time() # Change to your desired off time
# Define pump runtime and interval (in seconds)
pump_runtime = 90 # Change to your desired pump runtime in seconds
pump_interval = 600 # Change to your desired pump interval in seconds
# Define temperature and humidity thresholds
Temperature_Threshold_Fan = 75 # Will turn on Fan if temperature in Fahrenheit (F) is above this value.
Temperature_Threshold_Heat = 63 # Will turn on Heat if temperature in Fahrenheit (F) is below this value.
Humidity_Threshold_Fan = 85 # Will turn on Fan once humidity is above this percentage (%) to try and move lower humidity air in. Disable this if humidity outside the tent/room is higher.
Humidity_Threshold_Humidifier = 70 # Will turn on Humidifier once humidity is below this percentage (%).
Humidity_Threshold_Dehumidifier = 80 # Will turn on Dehumidifier once humidity is above this percentage (%).
# Define appliance control flags (True: Enabled, False: Disabled)
lights_enabled = True # Change to True or False
fan_enabled = True # Change to True or False
humidifier_enabled = True # Change to True or False
heater_enabled = True # Change to True or False
dehumidifier_enabled = True # Change to True or False
pump_enabled = True # Change to True or False
# ------------ Do NOT edit values past here ------------ #
If that block of code is complete gibberish to you I'll break it down.
- The 'lights_on_time' and 'lights_off_time' lines can be set by changing the time to the desired times you want your grow lights to turn on and off at.
- The 'pump_runtime' and 'pump_interval' lines are to set how often you want your water pump(s) to run and for how long. You can easily set the seconds for each based on your needs.
- Temperature_Threshold_Fan, Temperature_Threshold_Heat, Humidity_Threshold_Fan, Humidity_Threshold_Humidifier, and Humidity_Threshold_Dehumidifier are all values that can be changed to keep your grow tent/room in the right conditions for your plants. This section really is the brains behind the entire controller.
- These temperature and humidity thresholds are what will trigger the devices responsible for keeping your plants nice and cozy.
- It's also important to note that you're just putting in a number, and not a percentage or unit for the temperature. It's already worked into the code that the values are percentages and degrees in Fahrenheit (F). Simply plug in the value and be on your way.
- And the last section contains all the 'True' and 'False' values that allow you to disabled unwanted devices so it's not triggering any unwanted relays.
- So if you dont have pumps, you can simply change the 'pump_enabled = True' to 'pump_enabled = False'
- Example:
Python:
pump_enabled = True # Change to True or False
Python:pump_enabled = False # Change to True or False
Once the program is running, the terminal that you start the controller on will print you out current stats on the relays every minute as it refreshes the sensor and evaluate for relay changes! See below for that example from a live test!
If you're interested in building this or wanted to look at the rest of the code doing the magic you can review that and more documentation on my Raspberry Pi Grow Tent Controller GitHub Repo
More updates to come as the build comes out of testing and put into an enclosure all wired up!
Stay tuned!