How to make smart irrigation project
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.
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:
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.
//put this code in the ide of arduino from this line
int val = 0 ;
pinMode(3,INPUT); // pir sensor output pin connected
lcd.print(“Irrigation System “);
val = digitalRead(3); // soil moisture sensor output pin connected
Serial.println(val); // see the value in serial mpnitor in Arduino IDE
if(val == 1 )
lcd.print(” PUMP ON “);
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
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.