Automated Water Sprinkler System

Leave your worries and let our innovative solution water your field automatically whenever the soil moisture content is low.

BeginnerFull instructions provided24 hours1,595
Automated Water Sprinkler System

Things used in this project

Story

Read more

Code

soil moisture based pump control

Arduino
Control pump for watering the fields on the basis of moisture level of the soil
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10,9);

void setup() 
{
  Serial.begin(9600);
  pinMode(P1_3,INPUT);
  pinMode(P2_0,OUTPUT);
  BTSerial.begin(9600);

}

void loop() 
{  
 int m=analogRead(P1_3);
 BTSerial.print(" ");
 BTSerial.print(m);
 delay(500);
 if(m>=600)
 {
   digitalWrite(P2_0,HIGH);
 }
 else
 {
   digitalWrite(P2_0,LOW);
 }
  Serial.println(m);
  delay(1000);
}

Credits

Dr. Umesh Dutta

Dr. Umesh Dutta

38 projects • 53 followers
Working as Director of Innovation Centre at Manav Rachna, India. I am into development for the last 12 years.
Texas Instruments University Program

Texas Instruments University Program

91 projects • 119 followers
TI helps students discover what's possible to engineer their future.
Energia

Energia

34 projects • 26 followers
Founder of @energiaproject
Shourya Singh

Shourya Singh

1 project • 1 follower
Swati Goyal

Swati Goyal

1 project • 1 follower
Jahnavi

Jahnavi

1 project • 0 followers
Subham Choudhary

Subham Choudhary

0 projects • 0 followers

Comments