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

ESP32-Controlled Automated Irrigation System with Soil Moisture Sensing

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Automated Irrigation System with Soil Moisture Sensing

Circuit Documentation

Summary of the Circuit

This circuit is designed to control a water pump based on soil moisture levels detected by a SparkFun Soil Moisture Sensor. The core of the circuit is an ESP32 microcontroller, which reads the moisture level and controls a relay module to turn the water pump on or off. The relay module is powered by a 12v battery, which also powers the water pump. The ESP32 and the soil moisture sensor are powered by the 3.3V output from the ESP32.

Component List

ESP32 (30 pin)

SparkFun Soil Moisture Sensor

Relay module 5v-30v

Water Pump

12v Battery

Wiring Details

ESP32 (30 pin)

SparkFun Soil Moisture Sensor

Relay module 5v-30v

Water Pump

12v Battery

Documented Code

Since no code was provided, this section is left blank. The expected code would include initialization of the ESP32's GPIO pins, analog reading from the soil moisture sensor, and logic to control the relay module based on the moisture level.


Please note that the actual implementation of the code would be necessary to provide a complete documentation of the system's operation. The code would handle tasks such as setting up the ESP32's WiFi and Bluetooth functionalities if needed, reading the analog value from the soil moisture sensor, converting that value to a moisture level, and then using a threshold to control the relay module, which in turn controls the water pump.