ESP32-Based Smart Irrigation System with Soil Moisture and Light Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, various sensors (Soil Moisture Sensor, LDR, DHT22), a 2-channel relay module, and a water pump. The circuit is designed to monitor environmental conditions and control the water pump based on sensor inputs.
Component List
ESP32 (30 pin)
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
Soil Moisture Sensor
- Description: A sensor used to measure the moisture level in the soil.
- Pins: VCC, GND, SIG
LDR
- Description: A light-dependent resistor used to measure light intensity.
- Pins: A0, D0, GND, VCC
Resistor
- Description: A 200 Ohm resistor.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
DHT22
- Description: A sensor used to measure temperature and humidity.
- Pins: GND, VCC, DAT
2 Channel Relay Module
- Description: A relay module used to control high voltage devices.
- Pins: N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, pin 7, pin 8, pin 9, pin 10, pin 11, pin 12, VCC+, VCC- (GND), IN 1, IN 2
Water Pump
- Description: A pump used to move water.
- Pins: VCC, GND
Wiring Details
ESP32 (30 pin)
GND is connected to:
- Soil Moisture Sensor GND
- Resistor pin1
- DHT22 GND
- 2 Channel Relay Module VCC- (GND)
3V3 is connected to:
- LDR VCC
- DHT22 VCC
- 2 Channel Relay Module VCC+
- Soil Moisture Sensor VCC
VP is connected to:
- LDR A0
D34 is connected to:
- Soil Moisture Sensor SIG
D25 is connected to:
- DHT22 DAT
D2 is connected to:
- LDR D0
Soil Moisture Sensor
GND is connected to:
- ESP32 GND
VCC is connected to:
- ESP32 3V3
SIG is connected to:
- ESP32 D34
LDR
VCC is connected to:
- ESP32 3V3
A0 is connected to:
- ESP32 VP
D0 is connected to:
- ESP32 D2
GND is connected to:
- Resistor pin2
Resistor
pin1 is connected to:
- ESP32 GND
pin2 is connected to:
- LDR GND
DHT22
GND is connected to:
- ESP32 GND
VCC is connected to:
- ESP32 3V3
DAT is connected to:
- ESP32 D25
2 Channel Relay Module
VCC- (GND) is connected to:
- ESP32 GND
VCC+ is connected to:
- ESP32 3V3
COM 2 is connected to:
- Water Pump VCC
N.C. 2 is connected to:
- Water Pump GND
Water Pump
VCC is connected to:
- 2 Channel Relay Module COM 2
GND is connected to:
- 2 Channel Relay Module N.C. 2
Code
No code is provided for this circuit.