smart watering Plant using Arduino and Servo Motor

Welcome to the Techatronic guys. in this blog post, we are going to teach how to make automatic watering plant system using Arduino and Servo motor. but first, let me know what is actually it. this projects could be a very good project for agriculture. because you need every time you plants need water or not. but after installing this system you don’t worry about the plant they can water by itself. when they need water. the system start and watering all the plants who required water. this is a very great project on the SMART watering plant using arduino . we can say it is the smart watering plant.

there is no water in the pot. you have to check all the plants in your garden. to avoid these things install a smart watering system. and let them do their work. you do not need to check the plants on a daily basis. even they can take care of itself now. coz water is the most important factor in plants to grow. if they are not getting a sufficient amount of water they can not grow more. you have to install the system with some water in a vessel and put the pump inside into the vessel to suck the water out and give to the plants. If you are looking for more Arduino Projects you at the right site.

Working of the Smart watering system

Working of the smart watering system is simple. let us suppose there is some pot of plants. all have some moisture level in the pot. so our system works onto the level of moisture. if there is the moisture of a certain level then we say it does not require water and if there are no moisture contents in the soil then it means there is a need for water to the plants.

 

we have some sensors and module for detecting the moisture content in the soil. we will use a soil moisture sensor and module to recognize the moisture into the soil. which will be connected to the Arduino and we notice the value from the moisture sensor according to the soil and. notice a critical value. now we take some if conditions with the critical values. so when the value is more than or less than with the critical value then the Arduino sends a command to the water pump. so now the water pump starts to flow the water to the land till the soil content full moisture.

 

Circuit Diagram for smart watering Plant using Arduino

circuit diagram

Connect your components according to the circuit diagram

Code for smart watering Plant using Arduino

#include <Servo.h>

Servo myservo;
int m=0;
int n=0;
int pos = 0;
void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT_PULLUP);
pinMode(A1, INPUT_PULLUP);
pinMode(8,OUTPUT);
Serial.begin(9600);
myservo.attach(9);
}

void loop() {
// put your main code here, to run repeatedly:

int m= analogRead(A0);
int n= analogRead(A1);
Serial.println(m);
delay(10);
Serial.println(n);
delay(200);
if (m>=980)
{

myservo.write(90); // tell servo to go to position in variable ‘pos’

digitalWrite(8, HIGH);
delay(1000);
}

else if(m<=970)
{

digitalWrite(8, LOW);
}
if (n>=980)
{

myservo.write(0); // tell servo to go to position in variable ‘pos’

digitalWrite(8, HIGH);
delay(1000);

}

else if(n<=970)
{

digitalWrite(8, LOW);
}

else
{
digitalWrite(8, LOW);
}
}

Upload the given code into your Arduino and make all the connections according to the circuit diagram. all the best

Leave a Reply

Your email address will not be published. Required fields are marked *