How to make smart irrigation project

How to make smart irrigation project

How to make smart irrigation project

 

INTRODUCTION: –

Today we are making something is not only interesting but also very useful in day-to-day busy schedule of us. So today we are going to describe How to make smart irrigation project out of Arduino and few other small sensors and other stuff and have a look at how it works. It is very useful in Northern areas because due to less sunlight and high humidity it is very hard to grow plants.

Plants need special care and time to time water and nutrition for better and healthy growth but in this busy world, we find it hard to do it so here we will try to make it easy to observe and operate. It can be used anywhere on-farm or on a small piece of land to monitor the correct water requirement for plants.

DESCRIPTION: –

As the name of projects How to make smart irrigation project using Arduino suggests we are going to use Soil and Moisture sensor along with Arduino Uno and a small pump to demonstrate the working of this project and to show its applications in real life. We’ll also use a small dc pump, I2C 16×2 LCD and an RGB led to display the status of every task.

The sensor also has an onboard power led and also an onboard Status led which will turn on if any moisture is detected.

The sensor gives an analog output which varies according to the moisture in the soil, it can also be adjusted by the provided potentiometer on board. there is another Smart irrigation project for major project

*NOTE: – THIS SENSOR IS VULNERABLE RUSTING IN THE SOIL SO FOR PERMANENT OR LONG TIME USE BETTER QUALITY SENSOR AVAILABLE IN THE MARKET.

SCHEMATIC DIAGRAM: –

FEATURES AND APPLICATIONS: –

  • The sensitivity of moisture in soil is good
  • Easy to use
  • Adjustable value by pot
  • Low price
  • Can be used in small projects and irrigation demonstration.

SENSOR SPECIFICATIONS: –

COMPONENTS NEEDED: –

  • Any microcontroller preferably Arduino Uno for beginners.
  • An RGB led
  • A moisture sensor
  • A breadboard
  • Jumper wires
  • 100ohm resistor
  • Relay module
  • DC pump
  • I2C LCD

SMART IRRIGATION CIRCUIT DIAGRAM:

 

arduino smart irrigation system circuit diagram

First, take the power lines onto the breadboard from microcontroller

VCC/5v–>+ line and GND–> – line.

Then connect the sensor to the breadboard and connect power to the sensor from powerlines using jumper wires.

Now connect OUT PIN OF SENSOR TO MICROCONTROLLER DIGITAL PIN 3.

Now connect led to the breadboard – to gnd in series with resistor and + wire of different color to Arduino pins as shown in the figure.

Also connect I2C LCD, Relay, and Pump according to the diagram above.

CODE: –

//put this code in the ide of arduino from this line

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);

int val = 0 ;

void setup()

{

Serial.begin(9600);

lcd.init();

lcd.backlight();

pinMode(3,INPUT); // pir sensor output pin connected

pinMode(4,OUTPUT);

pinMode(5,OUTPUT);

pinMode(6,OUTPUT);

digitalWrite(4,HIGH);

lcd.setCursor(0,0);

lcd.print(“Irrigation System “);

}

void loop()

{

val = digitalRead(3); // soil moisture sensor output pin connected

Serial.println(val); // see the value in serial mpnitor in Arduino IDE

delay(1000);

if(val == 1 )

{

digitalWrite(4,LOW);

digitalWrite(5,LOW);

digitalWrite(6,HIGH);

lcd.setCursor(0,1);

lcd.print(” PUMP ON “);

}

else

{

digitalWrite(4,HIGH);

digitalWrite(5,HIGH);

digitalWrite(6,LOW);

lcd.setCursor(0,1);

lcd.print(” PUMP OFF “);

}

}

 

If you are new to the Arduino and don’t have any idea about u[load the code into the Arduino you can see here how to upload code in Arduino 

WORKING: –

Code starts with initializing the library used in the project and then sets the I2C LCD address and starts it. In void setup, it set the pin modes as INPUT or OUTPUT. And start displaying on LCD.

In a loop, it then reads the value from soil moisture sensor and according to the condition changes the color of led and also tuns on or off the pump along with displaying on LCD.