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 hours881
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 • 40 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 • 95 followers
TI helps students discover what's possible to engineer their future. Learn about TI tech for the classroom: www.university.ti.com
Energia

Energia

34 projects • 23 followers
Founder of @energiaproject
Shourya Singh

Shourya Singh

1 project • 0 followers
Swati Goyal

Swati Goyal

1 project • 1 follower
Jahnavi

Jahnavi

1 project • 0 followers
Subham Choudhary

Subham Choudhary

0 projects • 0 followers

Comments