Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP32-Controlled Soil Moisture Monitoring and Water Pump System

Image of ESP32-Controlled Soil Moisture Monitoring and Water Pump System

Circuit Documentation

Summary

The circuit in question appears to be designed for environmental monitoring and control, likely for applications such as automated plant watering systems. It includes an ESP32 microcontroller for processing and control, a DHT11 sensor for measuring temperature and humidity, a soil moisture sensor for detecting water content in the soil, a 5V mini water pump for water delivery, a 5V relay to control the water pump, and a 5V adapter to provide power to the system.

Component List

ESP32 (30 pin)

  • Description: A microcontroller with WiFi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various sensors and actuators.
  • Purpose: Acts as the central processing unit of the circuit, reading sensor data and controlling the relay and water pump based on programmed logic.

DHT11

  • Description: A basic, low-cost digital temperature and humidity sensor.
  • Purpose: Measures the ambient temperature and humidity to provide environmental data to the ESP32.

5v mini water pump

  • Description: A small water pump that operates at 5V.
  • Purpose: Used to deliver water to the plant when the soil moisture level is below a certain threshold.

5v relay

  • Description: An electromechanical switch that allows a low-power signal to control a higher power circuit.
  • Purpose: Controls the power to the water pump, allowing the ESP32 to turn the pump on and off.

5V Adapter

  • Description: A power supply that converts AC mains power to 5V DC.
  • Purpose: Provides the necessary power to the circuit components.

Soil Moisture Sensor

  • Description: A sensor that measures the volumetric water content of the soil.
  • Purpose: Provides data on soil moisture levels to the ESP32, which can then decide whether watering is needed.

Wiring Details

ESP32 (30 pin)

  • Vin connected to 5V power supply.
  • GND connected to the ground of the power supply.
  • D34 connected to the SIG pin of the Soil Moisture Sensor.
  • D13 connected to the S pin of the DHT11 sensor.
  • D5 connected to the In pin of the 5v relay.

DHT11

  • 5V connected to 5V power supply.
  • S connected to D13 on the ESP32.
  • GND connected to the ground of the power supply.

5v mini water pump

  • positive pin connected to the Common terminal of the 5v relay.
  • negative pin connected to the ground of the power supply.

5v relay

  • VCC connected to 5V power supply.
  • Normally Open not connected in this configuration.
  • Common terminal connected to the positive pin of the 5v mini water pump.
  • In connected to D5 on the ESP32.
  • GND connected to the ground of the power supply.

5V Adapter

  • 5V output connected to the 5V power rail supplying the ESP32, DHT11, Soil Moisture Sensor, and the 5v relay.
  • GND output connected to the ground rail supplying the ESP32, DHT11, Soil Moisture Sensor, 5v mini water pump, and the 5v relay.

Soil Moisture Sensor

  • VCC connected to 5V power supply.
  • GND connected to the ground of the power supply.
  • SIG connected to D34 on the ESP32.

Documented Code

No code was provided for the microcontroller. The expected code should handle reading data from the DHT11 and Soil Moisture Sensor, process the data, and control the relay based on the sensor inputs to activate the water pump when necessary. The code should also include WiFi or Bluetooth functionality for remote monitoring or control, as supported by the ESP32 microcontroller.