Hi friends welcome to meworkstelugu in now we are to talking about how to make automatic plant watering system using Arduino. This is a tiny project and easy to make at home. Why I am making this project the only reason is that in future I am making Iot based framing system, so you need to understand about this base project. This is the reason to make this. Project now lets talk about this project..
Components require :
- Arduino uno BuyNow
- soil moisture sensor BuyNow
- Relay module BuyNow
- Bread board BuyNow
- connecting wires BuyNow
Now let’s talk about the soil moisture sensor. Watch the below video to batter understand about the sensor.
how I am make this project :
Watch video below carefully. You will understand how i am make this project
Arduino- Controlled Watering System circuit :
Arduino- Controlled Watering System code :
int relay=7;
int m= A0;
void setup() {
// put your setup code here, to run once:
pinMode(relay,OUTPUT);
pinMode(13,OUTPUT);
pinMode(m,INPUT);
digitalWrite(relay,HIGH);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int mvalue = analogRead(m);
Serial.print("moisture sensor value=");
Serial.println(mvalue);
delay(1000);
if(850<mvalue){
digitalWrite(relay,LOW); //relay off
digitalWrite(13,HIGH);
Serial.println("PUMP ON ");
}
else
{
digitalWrite(relay, HIGH);
digitalWrite(13,LOW);
Serial.println("PUMP OFF ");
}
}
if you have any doubts about this project comment on my youtube channel i will respond as well as possible
0 Comments