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

ESP32-Based Automated Soil Moisture Monitoring and Watering System

View and Edit Project In Cirkit DesignerImage of ESP32-Based Automated Soil Moisture Monitoring and Watering System

Circuit Documentation

Summary

This circuit is designed to monitor soil moisture levels and control a water pump based on the moisture readings. The system uses an ESP32 microcontroller to read data from a soil moisture sensor and a soil moisture module. Based on the readings, the ESP32 controls a 5V relay to activate or deactivate the water pump.

Component List

  1. SparkFun Soil Moisture Sensor

    • Pins: VCC, GND, SIG
    • Description: Measures the moisture level in the soil.
    • Purpose: Provides soil moisture data to the ESP32.
  2. ESP32 Wroom Dev Kit

    • Pins: 3V3, EN, VP, VN, GPIO 34, GPIO 35, GPIO 32, GPIO 33, GPIO 25, GPIO 26, GPIO 27, GPIO 14, GND, GPIO 13, SD2, SD3, CMD, V5, GPIO 23, GPIO 22, TXD, RXD, GPIO 21, GPIO 19, GPIO 18, GPIO 5, GPIO 17, GPIO 16, GPIO 4, GPIO 0, GPIO 2, GPIO 15, SD1, SD0, CLK
    • Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
    • Purpose: Reads data from the soil moisture sensor and module, and controls the relay.
  3. Vcc

    • Pins: Vcc
    • Description: Provides a 5V power supply.
    • Purpose: Supplies power to the relay.
  4. GND

    • Pins: GND
    • Description: Ground connection.
    • Purpose: Provides a common ground for all components.
  5. Water Pump

    • Pins: VCC, GND
    • Description: A pump used to water the soil.
    • Purpose: Waters the soil when activated by the relay.
  6. 5V Relay

    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
    • Description: A relay that can be controlled by the ESP32 to switch the water pump on and off.
    • Purpose: Controls the power to the water pump based on the ESP32's signal.
  7. Soil Moisture Module

    • Pins: positive, negative, Analog, Digital, Ground, VCC
    • Description: A module that provides both analog and digital outputs for soil moisture levels.
    • Purpose: Provides additional soil moisture data to the ESP32.

Wiring Details

SparkFun Soil Moisture Sensor

ESP32 Wroom Dev Kit

Vcc

GND

Water Pump

5V Relay

Soil Moisture Module

Code

There is no code provided for this circuit.