Table of Contents

Play Video

AUTO IRRIGATION

This auto irrigation system, powered by Arduino Uno, uses a soil moisture sensor to detect dry soil. When moisture levels drop below a set threshold, the relay activates a water pump to irrigate the plants. A buzzer alerts the user during irrigation.

Auto Irrigation is not only a convenient solution for plant care but also an eco-friendly approach that optimizes water usage by delivering moisture precisely where and when plants need it most. By integrating advanced sensors and a programmable water pump via Arduino, this system maintains an ideal balance, fostering lush, thriving plants while reducing water waste. Its automated features not only save time and effort but also contribute significantly to sustainable gardening practices, making it a valuable asset for modern plant enthusiasts and environmental conservation efforts alike.

Components:

  • Soil Moisture Sensor: Measures soil moisture levels to determine when watering is needed.
  • Arduino Board: Controls the system’s operations based on sensor readings.
  • Water Pump: Dispenses water to plants as directed by the Arduino.
  • Relay Module: Enables Arduino to control the water pump.

How it Works:

  • Sensing Moisture: The soil moisture sensor detects moisture levels in the soil.
  • Watering Decision: Arduino processes sensor data and decides whether to activate the water pump.
  • Water Dispensing: Upon Arduino’s command, the relay switches on the water pump to water the plants.

Setting Up/Circuit:

  • Hardware: Connect the soil moisture sensor, water pump, relay module, and Arduino.
  • Programming: Write code for Arduino to read sensor data and control the water pump via the relay.

CODE

// Define pin numbers for components
const int soilMoisturePin = 6; // Soil moisture sensor connected to digital pin 6
const int relayPin = 3;        // Relay module connected to digital pin 3

void setup() {
  // Initialize relayPin as an output pin
  pinMode(relayPin, OUTPUT);
}

void loop() {
  // Read soil moisture value
  int soilMoistureValue = digitalRead(soilMoisturePin); // Read digital value from pin 6

  // Check soil moisture level
  if (soilMoistureValue == HIGH) { // Adjust condition as needed based on sensor behavior
    // Soil is dry, activate irrigation
    digitalWrite(relayPin, HIGH); // Turn on water pump via relay
    delay(10000); // Run water pump for 10 seconds (adjust as needed)
    digitalWrite(relayPin, LOW); // Turn off water pump
  }

  // Delay before next reading
  delay(1000); // Adjust delay as needed
}


Advantages:

  • Water Efficiency: Prevents over or under-watering, conserving water and promoting plant health.
  • Time-Saving: Automates watering tasks, freeing up time for other gardening activities.
  • Customization: Adjust settings to suit different plant types and environmental conditions.
Scroll to Top