Automatic Irrigation System

ABSTRACT

In the field of agriculture, proper irrigation facilities are always important. This project develops an automatic irrigation system which senses the moisture content of the soil and turns the water pump on and off accordingly. The system consists of a micro-controller, moisture sensor, water pump and an LCD display. The moisture content of the soil is detected by the moisture sensor and the same is displayed on the LCD display. If the soil moisture content is low, then the system automatically triggers the water pump ON. The system checks the moisture content repeatedly and turns the water pump OFF when the moisture content is proper. In this way, the system reduces human intervention and still ensures proper irrigation.

BLOCK DIAGRAM

 

PROGRAM

#include <LiquidCrystal.h>
LiquidCrystal lcd(A0,A1,A2,A3,A4,A5);

int sensor_pin =8;
int motp_pin =6;
int motn_pin =7;

void setup() 
{
  pinMode(sensor_pin, INPUT);
  pinMode(motp_pin, OUTPUT);
  pinMode(motn_pin, OUTPUT);
  Serial.begin(9600);
  lcd.begin(16,2);
}


void loop() 
{
  
  if(digitalRead(sensor_pin) == HIGH)
    { 
  Serial.print("dry");
  lcd.print("SOIL IS DRY");
  digitalWrite(motp_pin,HIGH);
  digitalWrite(motn_pin,LOW);
    }
  
  else 
    {
   Serial.print("WET");
   lcd.print("SOIL IS WET   ");
   digitalWrite(motp_pin,LOW);
   digitalWrite(motn_pin,LOW);
    }
}

 

CIRCUIT DIAGRAM

Click here to watch demonstration : 

https://www.youtube.com/watch?v=k532GgigNA0

 

Related Items