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

ESP32-Based Smart Irrigation System with Soil Moisture Sensor and I2C LCD Display

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Irrigation System with Soil Moisture Sensor and I2C LCD Display

Circuit Documentation

Summary

This circuit is designed to monitor soil moisture levels and control a water pump based on the moisture readings. It uses an ESP32 microcontroller to read data from a soil moisture sensor and display the readings on a 16x2 I2C LCD. Additionally, the ESP32 controls a 5V relay to activate a 5V mini water pump when the soil moisture level falls below a certain threshold.

Component List

  1. SparkFun Soil Moisture Sensor

    • Pins: VCC, GND, SIG
    • Description: Measures the moisture level in the soil.
  2. ESP32

    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
    • Description: Microcontroller used to read sensor data, control the relay, and display information on the LCD.
  3. 16x2 I2C LCD

    • Pins: GND, VCC, SDA, SCL
    • Description: Displays the soil moisture readings.
  4. 5V Relay

    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
    • Description: Controls the power to the water pump based on the signal from the ESP32.
  5. 5V Mini Water Pump

    • Pins: Positive pin, Negative pin
    • Description: Pumps water to the soil when activated.
  6. Connector 5V

    • Pins: GND, VCC
    • Description: Provides 5V power supply to the circuit.

Wiring Details

SparkFun Soil Moisture Sensor

ESP32

16x2 I2C LCD

5V Relay

5V Mini Water Pump

Connector 5V

Code

No code is provided for this circuit.