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,625
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
42 projects • 61 followers
Working as Director of Innovation Centre at Manav Rachna, India. I am into development for the last 12 years.
Contact
Texas Instruments University Program
91 projects • 120 followers
TI helps students discover what's possible to engineer their future.
Contact
Energia
34 projects • 26 followers
Founder of @energiaproject
Contact
Shourya Singh
1 project • 1 follower
Contact
Swati Goyal
1 project • 1 follower
Contact
Jahnavi
1 project • 0 followers
Contact
Subham Choudhary
0 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.