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

ESP32-Based Automated Plant Watering System with OLED Display

View and Edit Project In Cirkit DesignerImage of ESP32-Based Automated Plant Watering System with OLED Display

Circuit Documentation

Summary

This circuit is designed to monitor soil moisture levels and control a water pump and a fan based on the sensor readings. It uses an ESP32 microcontroller to read data from a SparkFun Soil Moisture Sensor and a DHT11 Humidity and Temperature Sensor. The ESP32 also controls a 2-channel relay to switch a 5V mini water pump and a 12V fan. The system status is displayed on a 1.3" OLED display module. The circuit is powered by a 12V battery.

Component List

Battery 12V

SparkFun Soil Moisture Sensor

ESP32 (30 pin)

USB Cable

5V Mini Water Pump

2-Channel Relay

1.3" OLED Display Module

40mm Fan 12V

DHT11 Humidity and Temperature Sensor

Wiring Details

Battery 12V

SparkFun Soil Moisture Sensor

ESP32 (30 pin)

5V Mini Water Pump

2-Channel Relay

1.3" OLED Display Module

40mm Fan 12V

DHT11 Humidity and Temperature Sensor

Documented Code

ESP32 Microcontroller Code (sketch.ino)

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

}

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

}

2-Channel Relay Microcontroller Code (sketch.ino)

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

}

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

}

Note: The actual functionality of the microcontrollers will be defined in the code, which is not provided in detail here. The code snippets above are placeholders and need to be completed with the logic for reading sensors, controlling the relay, and updating the display.