Smart irrigation system for my garden

I built a custom irrigation controller that integrates with Home Assistant.
Mar 31, 2023 — 3 mins read — Home Assistant

Smart irrigation system for my garden

I enjoy spending time in my garden, and regular watering is one of the chores that I must do so I can keep my plants healthy and thriving. Last year, I installed a drip irrigation system, but it was manually controlled so I now decided to upgrade it with an automated watering system that will be controlled through Home Assistant. This system is perfect for those who want a smarter, more automated solution than commercially available.

The first step in building your DIY drip irrigation system is to choose the right valve. One of the cheapest options is to use a valve designed for washing machines. This solenoid valve is operated from 220 volts, and we will use a relay to control it. You can also opt-in for a 12V operated valve if that is more suitable.

Next, you'll need a NodeMCU, which is a Wi-Fi enabled microcontroller board that is perfect for home automation projects. You'll also need an NTC thermistor to monitor the outside temperature and make better decisions about when to turn on the irrigation system. Additionally, you can connect a moisture sensor to test the moisture content of the soil being irrigated.

To control the valve, you'll need a 5-volt relay that is controlled by the NodeMCU. The relay will be powered by a power brick that connects to the NodeMCU. You'll also need an NPN transistor with two resistors to control the relay.

To enclose the entire system, I'm using an electrical box for which I designed a custom PCB to serve as a prototyping board. PCBWay is an excellent choice for manufacturing custom PCBs and I ordered mine through them. You can get $5 off your first order by following this link. With that welcome bonus, you can get 10 of these custom PCBs manufactured for your projects.

You can see the full process of the making of the irrigation controller in the video below.

Written instructions can be found on the project Instructable.

In conclusion, building a DIY drip irrigation system that can be controlled by Home Assistant is an excellent way to keep your garden healthy and thriving. By using custom components and integrating with Home Assistant, you can create a smarter, more automated solution than what's commercially available. With a little bit of time and effort, you can have a reliable and efficient irrigation system that will make gardening even more enjoyable.

Below is a list of everything that you'll need for the project:

esphome esp8266 home assistant valve automation smart home
Read next

Failed repair attempt on LED light bulbs

Repairing LED bulbs is not really worth my time but I'm always intrigued by the bulb construction and the failure that happened so when I ha...

You might also enojy this

Soil Moisture Sensor on batteries with ESP-07 running ESPHome - Start to Finish

Last year I made and installed a DIY garden irrigation controller for my drip irrigation system and it worked wonders during the last growin...