Are you forgot to water your plants? It is a big problem in those days. We all are busy in our daily life. So most of us forgot to maintain home plants like indoor and outdoor. By adding an Automatic Plant Watering System in the garden or agricultural field, we can help all plants reach their fullest potential as well as reduce water wastage.
With the help of Arduino and soil moisture sensors, we have designed a system that is ideal for every plant in the yard. With this system, we can able to water our plants automatically when the soil is dry. This system consists of a soil moisture sensor, a mini DC water pump, a water flow controller and an automation system.
Must Read Automatic Plant Irrigation System Using 555 Timer IC
Principle Behind Automatic Plant Watering System
We all know when the soil gets dry, the plants need water for living. So we set a threshold value of the moisture level of the soil. When the moisture level goes the below threshold value, the pump spread water on the soil. The moisture is sensed by the moisture sensor.
After spreading water the moisture level goes up, and the sensor sends a signal to the pump to stop the water flow. By using this method, the plants get automatically watered.
- Soil Moisture Sensor
- BC547 NPN Transistor
- 5V Relay
- LED (Red, Green)
- 3-6V Mini DC Water Pump
- 1KΩ Resistor (1KΩ, 100Ω-x2)
- IN4007 PN Diode
- 9V Battery
- 5V Battery
Now we are going to connect all the components shown in the above circuit diagram. This is so simple circuit to construct.
First, connect the VCC of the relay to the 5V pin of the Arduino (Or external 5V power source). Connect Input of the relay module to pin 3 of the Arduino. Connect the moisture sensor to the comparison module.
Then connect Ao on the comparison module to the Arduino Ao pin. The VCC of the comparison module to 3.3V on the Arduino. Now connect the NC (Normally Closed) of the relay to the DC pump’s one terminal. After that positive terminal of the battery should be connected to the COM on the relay. At last, connect all the ground lines to the GND of the Arduino.
Now we just need to program the Arduino.
For removing messy wiring and give a clean look, I designed a PCB prototype for this project. It is also helpful for troubleshooting that runs great without any errors. To design this PCB board, I used EasyEDA as it is too easy to use. For ordering PCB for this, I prefer PCBWay.
Gerber file for Automatic Plant Watering System Gerber.
Order PCB From PCBWay
PCBs are the neatest and professional-looking among the assembled circuit types. Any electronics circuit that needs to be professional looking uses PCB boards. But soldering is still required on the copper area on the PCB. In the early 1900s, the only way to make circuits for electrical or electronic components was by wiring them point to point on a chassis. These chassis were either pan or a sheet. These methods made circuits very fragile and large or bulky, and expensive.
There are so many forums or communities for electronics online in today’s technical world, and one of the famous ones for PCB manufacturing is the PCBWay. PCBWay is a place that brings manufacturers and customers together. They have more than a decade of experience in this field of fabrication and prototyping and assembling of PCBs. PCBWay have proved their focus to their customers’ needs in terms of cost-effectiveness, delivery, and quality. And this can be proved by their outstanding customer reviews. This PCBWay provided a platform for students and electronic hobbyists to display their projects to the community and give sponsorships if their work is attractive. Check out the large pool of sponsored projects here.
How PCB Manufacturing Process Done in PCBWay
Standard quality for any product needs to be maintained using some parameters. PCBWay gives that opportunity by quality control in designing and manufacturing. At first, they ensure accuracy, clarity, validity of the PCB files that we sent to them.
Then all the boards will go through the most stringent tests other than the basic visual check. They adopt most of the testing and inspecting equipment used in the industry, such as Flying Probe Tester, X-Ray Inspection Machine, Automated Optical Inspection (AOI) Machine. PCBWay are having 50+ new engineers on the daily basis around the world using PCBs for their work, who trust for their reliable quality. They produce high-quality pink, orange, grey, even transparent solder mask. Moreover, according to people needs, they can also provide Black core PCB. Check it out for a High-Quality PCB solder mask. There are some pictures below of the new colours of solder musks.
Working Principle of Automatic Plant Watering System
The working principle of this project is very simple. The moisture sensor senses the moisture level of the soil and when the sensor senses a low moisture level it automatically switches on the pump. The Arduino helps this system in this process. The pump supplies water until the microcontroller sends another signal to switch off the pump. After increasing the moisture level of the soil, the sensor switch off the pump. This whole process continues while power is on in the circuit.
Advantages of Automatic Plant Watering System
- The main advantage is that it not requires any human to operate.
- It can reduce the wastage of water.
- It protects plants from runoff of water and nutrients.
Disadvantages of Automatic Plant Watering System
- Naturally, it helps plants to water regularly. But while talking about succulent plants, it needs not be watered regularly. But according to the watering system, it waters frequently which can damage the roots of the succulent plants.
int motorPin = 3;
int blinkPin = 13;
int watertime = 5;
int waittime = 1;
int moisturePin = analogRead(A0); //read analog value of the moisture sensor
int moisture = ( 100 - ( (moisturePin / 1023.00) * 100 ) ); //convert the analog value to percentage
if (moisture < 40)
delay(watertime * 1000); // convert seconds to milliseconds
digitalWrite(motorPin, LOW); // turn off the motor
digitalWrite(blinkPin, LOW); // turn off the LED
delay(waittime * 60000); // multiply by 60000 to translate minutes to milliseconds
4 thoughts on “Automatic Plant Watering System With Arduino”
Hi what is the component between the soil sensor and the aurduino board. it is not shown in the circuit diagram.
Correct me if i am wrong
There are two components in the thumbnail. One is main soil sensor which two ports will come to its main analog digital converter port sens1 and sens2 that is drawn in diagram. And from there the 4 pins which is Vcc, gnd, analog and digital pin which is connected to the Arduino board. These are also drawn.
I plan to do it too