Automatic Irrigation System Using Arduino UNO
1️⃣ Introduction
The Automatic Irrigation System is a smart farming solution that waters plants automatically based on soil moisture levels. It uses the Arduino Uno to monitor soil conditions and control a water pump.
This system helps conserve water, reduce manual effort, and promote healthy plant growth.
2️⃣ Components Required
-
1 × Arduino Uno
-
1 × Soil Moisture Sensor
-
1 × DC Motor / Water Pump
-
1 × Relay Module
-
Jumper Wires
-
Pipe / Water Source
-
External Power Supply (for pump)
3️⃣ Working Principle
🔹 Step 1: Soil Monitoring
The soil moisture sensor continuously measures moisture content in the soil.
🔹 Step 2: Data Processing
The sensor sends analog values to the Arduino.
🔹 Step 3: Decision Making
Arduino compares the sensor value with a predefined threshold.
🔹 Step 4: Automatic Control
-
If moisture value < threshold → Soil is dry → 💧 Pump ON
-
If moisture value ≥ threshold → Soil is wet → 🛑 Pump OFF
This loop runs continuously, making the irrigation system fully automatic.
Basic Circuit Connections
Soil Moisture Sensor
| Sensor Pin | Connect To |
|---|---|
| VCC | 5V |
| GND | GND |
| A0 | Arduino A0 |
Relay Module
| Relay Pin | Connect To |
|---|---|
| IN | Arduino Pin 7 |
| VCC | 5V |
| GND | GND |
Pump is connected through relay (external power supply).
Never power the water pump directly from Arduino.
Arduino Code
int soilPin = A0;int relayPin = 7;int threshold = 500; // Adjust based on calibrationvoid setup() {pinMode(relayPin, OUTPUT);Serial.begin(9600);}void loop() {int moistureValue = analogRead(soilPin);Serial.println(moistureValue);if (moistureValue > threshold) {digitalWrite(relayPin, LOW); // Pump ON} else {digitalWrite(relayPin, HIGH); // Pump OFF}delay(1000);}
(Note: Logic may vary depending on relay type – active HIGH or LOW.)
Features
Applications
-
Home gardening
-
Smart agriculture
-
Greenhouses
-
School and college projects
-
IoT-based irrigation systems
Advantages
Future Upgrades
You can enhance the project by adding:
What Students Learn
-
Analog sensor interfacing
-
Relay module control
-
Automation logic
-
Embedded systems basics
-
Sustainable technology design
BEGINNER PROJECTS (Foundation Skills)
- Ultrasonic Distance Measurement
- Traffic Light Simulation with 7-Segment Display
- 7-Segment Display Counter
- Kids Piano Circuit (8-Key Version)
- 16×2 LCD Display with Text Output
- LCD I2C to Arduino UNO
- Temperature Measurement using Arduino UNO
- LDR Controlled Street Light
INTERMEDIATE PROJECTS (Build Your Skills)
- Servo Motor Control Using Potentiometer
- DC Motor Speed Control
- Temperature Controlled Fan
- PIR Based Theft Alert System
- LPG Gas Leakage Detection System
- Automatic Door Locking System
- Soil Moisture Based Automatic Watering System
- Simple Digital Clock using Arduino UNO
- Automatic Voting Machine (EVM)
- Joystick Control using Arduino Uno
- RGB Lamp Control using Arduino Uno
ADVANCED PROJECTS (Master Level)
- Home Automation Using Arduino UNO
- Bluetooth RC Car using Arduino Uno
- Obstacle Avoiding Robot
- Line Follower Robot
- Radar System Using Arduino UNO
- Automatic Parking System
- Bi-Directional People Counter using Arduino Uno
- Automatic Plant Watering System
- NeoPixel LED Ring Control using Arduino Uno
- Smart Gloves for Bedridden People

Comments
Post a Comment