Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Smart Irrigation System with Soil Moisture Sensor and Battery-Powered Water Pump

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Irrigation System with Soil Moisture Sensor and Battery-Powered Water Pump

Circuit Documentation

Summary

This circuit is designed to control a water pump based on soil moisture levels using an ESP32 microcontroller. The system includes a soil moisture sensor, a relay module, and a water pump. The ESP32 reads the soil moisture levels and activates the relay to power the water pump when necessary.

Component List

  1. ESP32 (30 pin)

    • Description: A versatile microcontroller with Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
  2. 1 Channel 5V Relay Module

    • Description: A relay module used to control high voltage devices with a low voltage signal.
    • Pins: VCC+, VCC- (GND), IN, N.O., COM, N.C.
  3. Water Pump

    • Description: A pump used to move water.
    • Pins: VCC, GND
  4. 9V Battery

    • Description: A power source for the water pump.
    • Pins: +, -
  5. LM393

    • Description: A comparator used to read the soil moisture sensor.
    • Pins: A0, D0, GND, VCC
  6. Soil Moisture Sensor

    • Description: A sensor used to measure the moisture level in the soil.
    • Pins: positive, negative
  7. Resistor

    • Description: A 200 Ohms resistor used in the circuit.
    • Pins: pin1, pin2
    • Properties: Resistance = 200 Ohms

Wiring Details

ESP32 (30 pin)

1 Channel 5V Relay Module

Water Pump

9V Battery

LM393

Soil Moisture Sensor

Resistor

Documented Code

sketch.ino

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.print("ceva");
}

documentation.txt