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

ESP32-Based Smart Irrigation System with Soil Moisture Sensing and Environmental Monitoring

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Irrigation System with Soil Moisture Sensing and Environmental Monitoring

Circuit Documentation

Summary

This circuit is designed to interface an ESP32 microcontroller with various sensors and actuators, including a DHT22 temperature and humidity sensor, a DFRobot Capacitive Soil Moisture Sensor, and a relay module to control power to devices such as a water pump, LED strip, and fans. The circuit includes a step-down buck converter to regulate voltage from a 12V 5A power supply, and an RS232 to TTL converter for serial communication. The ESP32 controls the relay module to switch devices on and off based on sensor readings and programmed logic.

Component List

ESP32

RS232 to TTL Converter

DFRobot Capacitive Soil Moisture Sensor (V1.0)

DHT22

Step-Down Buck Converter

POWER SUPPLY 12V 5AMP

12V White LED Strip

40mm Fan 12V

Relay 4 Channel 5v

Water Pump

Wiring Details

ESP32

RS232 to TTL Converter

DFRobot Capacitive Soil Moisture Sensor (V1.0)

DHT22

Step-Down Buck Converter

POWER SUPPLY 12V 5AMP

12V White LED Strip

40mm Fan 12V

Relay 4 Channel 5v

Water Pump

Documented Code

sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

documentation.txt

The code for the ESP32 is currently a template with empty setup() and loop() functions. The setup() function should be used to initialize the GPIO pins, sensors, and communication protocols. The loop() function will contain the main logic for reading sensor data, making decisions, and controlling the relay module to power the connected devices.