Building Your Own DIY Greenhouse: A Guide to Automation
You just finished building your own DIY greenhouse, and you're eager to share it with others. In this article, we'll take a closer look at how you can automate your watering system using a simple yet effective method.
Creating an Automated Watering System
------------------------------------
After completing the main structure of your greenhouse, you realized that manual watering might not be the most efficient solution. That's when you decided to create an automated watering system that would water your plants with minimal effort. To achieve this, you needed a few key components: a large rainwater barrel, a water level sensor, and a solenoid valve.
The first component required was a big rainwater barrel, which would collect water from the roof or other sources. You placed it right next to the greenhouse, allowing gravity to do most of the work in filling the barrel. With that being said, what about the electronic side of things?
Connecting the Water Level Sensor
--------------------------------
Connecting the water level sensor was pretty straightforward. You connected one side to GND and the other side to pin A0 of the LoRa board, which used its internal pull-up resistor to pull the input up to 3.3V. As soon as there was enough water in the barrel, the sensor's buoy would rise up, close its internal reed switch, and let the LoRa board know that it could activate the solenoid valve.
The Solenoid Valve
-----------------
Directly connecting the solenoid valve to the LoRa board, however, was not possible. The solenoid required 12V at 1.6A to activate, which the LoRa board both couldn't offer. That's when you had to use a simple relay board, which you connected to pin D4 and the solenoid valve.
Adding a Push Button for Manual Activation
-----------------------------------------
To provide manual activation, you added a push button from pin A1 and built up the electronics system according to your finalized schematic. The code was pretty much recycled from part 2 of this video series, with only new inputs and outputs added to activate the solenoid valve if the water level sensor said it's fine.
Testing the System
-------------------
After uploading the code to the system, you tested it on your workbench according to the finalized schematic. The system behaved just like expected, perfect. And of course, the push button execution did also work just fine.
Drilling a Big Hole in Your Water Barrel
-----------------------------------------
It was time to break up your test setup and start drilling a big hole into your water barrel. You secured a metal feed-through into which you then screwed your tap. Don't forget to add two more adapters to the tap, making it compatible with a standard garden hose.
Extending the Solenoid Wires
-----------------------------
Almost the last preparations were left to do in your apartment: adding a ton of adapter to your solenoid valve to make it also garden hose compatible. You know that the amount of adapters can be confusing, but you can find more information about them and this project in the video description.
Finishing Up the Electronics
-----------------------------
It was time to place the setup next to your greenhouse, guide all the wires into the chest enclosure, add the push button, and wire it all up according to the schematic. You created a small piece of garden hose and used that to connect the tap with the valve. After laying out the rest of the hose in the greenhouse in the shape of an ellipse, connected that to the other side of the valve, and finally drilled the small holes into the hose.
The Final Test
----------------
After filling the barrel up with water, it was time for a small test. And as you can see, it works pretty well! Of course, you will have to fine-adjust the amount of holes and distances to one another but I would say that this system is more than sufficient for watering my plants when I am on vacation or something similar.
Conclusion
----------
And that ends my greenhouse automation series for me. I hope that I inspired you to try out something similar in the future. As always, thanks for watching! Don't forget to like, share, subscribe and hit the notification bell. Stay creative and I will see you next time!