Smart Irrigation System Using Arduino UNO/ Smart plant watering system

About this project

In this tutorial, you will learn, how to make a smart plant watering system of smart irrigation system. This type of system can be used in pots, agricultural fields, gardens, etc. By using this system you need not worry about watering the plant on daily basis. You just have to connect a water tank to this system and the rest of all the work will be done by this system.

smart irrigation system using arduino

Block diagram of this project

Block diagram of plant watering ystem

Working of this project

The project consists of one Arduino UNO board, one water pump, one soil moisture sensor, and one relay module. We have to insert the soil moisture sensor deep inside the soil and the water pump must be connected to some water tank or water supply. The water pump is connected to the Arduino board with the help of a relay module.
First, the Arduino will measure the moisture of the soil using the soil moisture sensor to find out whether the soil is dry or not. If the soil is dry then the Arduino will turn ON the relay module that will turn ON the water pump. The water pump will remain turn ON till the moisture level of the soil reaches a certain level. After that, the pump will be turned OFF. 

Components needed for this project

S. No.

Component Name

Quantity

1.

Arduino UNO

1

2.

Soil Moisture sensor

1

3.

Breadboard

1

4.

Jumper wires

30

5.

5V DC water pump

1

6.

9V Battery

1

7.

5V relay module

1

Circuit diagram of smart plant watering system/ smart irrigation system

Circuit diagram of smart plant watering system

This is the circuit diagram that we have to use for this project.

  • Take a soil moisture sensor and connect its VCC pin to the 5V pin of the Arduino UNO board.
  • Connect the GND pin of the sensor to the GND pin of the Arduino UNO board.
  • Connect the analog data pin of the sensor to the A0 pin of the Arduino UNO board.
  • Now, take a 5V relay module and take a 9V battery.
  • Connect the positive wire of the battery to the COM terminal of the relay module.
  • Take a water pump and connect the positive wire of the water pump to the NO pin of the relay module.
  • Connect the negative wire of the battery to the negative wire of the motor.
  • Connect the VCC pin of the relay module to the 5V pin of the Arduino UNO board.
  • Connect the GND pin of the relay module to the GND pin of the Arduino UNO board.
  • In the last connect the signal pin of the relay module to the D3 pin of the Arduino UNO board.

Arduino code for Smart plant watering system/ smart irrigation system

int soil=A0;
int relay=3;

void setup() {

pinMode(soil,INPUT);
pinMode(relay,OUTPUT);
digitalWrite(relay,HIGH);
Serial.begin(9600);
}

void loop() {

int soilData=analogRead(soil);
Serial.print("Soil DATA:");
Serial.println(soilData);

if(soilData>900)
{
  digitalWrite(relay,LOW);
}
else
{
  digitalWrite(relay,HIGH);
}
}

Leave a Reply