Introduction: How to Build a DIY Automatic Plant Watering System With WiFi Alerts

About: We build IoT hardware and software for easy and fun automation projects.

This is the finished project, a DIY automatic plant watering system controlled via #WiFi. For this project we used the Self Watering Automatic Garden System Subassembly Kit from Adosia. This setup uses solenoid water valves and an analog soil moisture sensor to water the #garden when needed, and prevents overwatering. Through Adosia's platform, you can now login to the internet to check the status of your garden from anywhere in the world.

Supplies

Adosia's Automatic Garden Subassembly Kit:

  • 1× Adosia IoT device with screw terminal connectors
  • 2× 12V normally closed (NC) solenoid water valves w/ connector wires
  • 1× analog soil moisture sensor with connector wire
  • 4× 1/2″ female PVC coupler
  • 1× roll 1/2″ x 520″ white PVTE thread seal tape
  • 1× ambient digital temperature sensor with board mount
  • 1× DC power supply (12V/1A)

Step 1: Assembling the Solenoid Water Valves

First we begin by assembling together a pair of 1/2" diameter solenoid water valves. The solenoid valves are joined to poly-to-pvc connectors on both ends by 1/2" PVC couplers, with a PVTE thread seal tape in the middle of each coupler between the two newly adjoining component. To tighten you can take a wrench on each end and tighten securely.

Step 2: Insert the Solenoid Water Valves in a Weather Proof Enclosure

Once we've assembled our water valves, we put them in this weather proof enclosure. One valve will water the garden and one will refill the dog's water bowl. Both valves are connected by a T-connector and poly tubing. We also regulated pressure coming from the hose and added back flow prevention.

Step 3: The WiFi Base Board

This is the electronic WiFi controller board we will use to control the system via WiFi. You can find it here.

Step 4: Mounting the Water Valve and Base Board

Here's a simple wood truss we made for the garden to mount the two enclosures we need for our system. The one on the left is for the water valves, and the one on the right is for the WiFi controller base board.

Step 5: Prepping Base Board Enclosure

We drilled two wholes in this enclosure for the wirings to fit through and a slit for the power cord. The black box in the enclosure will house the WiFi controller board.

Step 6: Connecting Poly Tubing to the Valve

Now we connect more poly tubing to the valve. This tubing will be connected to landscaping tubes which will run throughout the garden.

Step 7: Connecting the Main Hose to the Poly Tubing

We connect the pressure-regulated water supply hose to our poly tubing. This hose will be the main water source.

Step 8: Connecting the Landscaping Tubes to a Stopper

Now we are connecting our 1/4" outer diameter landscaping tubes to a final stopper to stop the water flow. This will force all the water pressure into the four line landscaping tubing which will water the garden.

Step 9: Connecting the Watering Rings and Spray Nozzles

For our watering system, we mostly used a combination of spray nozzles extended from t-connectors and watering rings. We had a few #plants on one line that had watering rings with holes drilled around the bottom side of them and some with spray nozzles.

Step 10: Closing Up the Valve Enclosure

We are done with the valve enclosure, so we are ready to close it up.

Step 11: Connecting the Board and Wires

It's time to connect the two valves and water level sensor switch to the WiFi controller board. The water level sensor switch will be used to trigger the second valve to water our dogs. Here's the tutorial for that project. Polarity doesn't matter for either the valves or the water level sensor switch, so it's hard to mess up the wiring. For this project we plugged both water valves in the center terminals and the water level switch in the far top left terminal.

Step 12: Connecting the Soil Moisture Sensor

Next we attach the soil moisture sensor to the board. This sensor will let the system know when to water the garden, and will report moisture levels via WiFi.

Step 13: Where to Place the Soil Moisture Sensor

We've placed the soil moisture sensor to the closest planter next to the wooden truss and hardware.

Step 14: Calliberating the Soil Moisture Sensor

Now we need to calibrate the sensor to get an accurate moisture reading. Here's a step by step video on how to do this. We've also closed off the hardware enclosure as well since we are done with it.

Step 15: Setting Up the Garden's Profile

Now we need to create our garden profile using the Adosia platform. This is where we can configure our watering system based on moisture level.

For products we used go to adosia.io and for the video tutorial go to the Adosia Official Channel on YouTube.

Backyard Contest

Participated in the
Backyard Contest