ESP32-Based Environmental Monitoring System with Wi-Fi Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an ESP32 microcontroller with various sensors, including a water sensor, soil moisture sensor, MQ-2 gas sensor, LDR (Light Dependent Resistor), and DHT22 temperature and humidity sensor. The ESP32 serves as the central processing unit, collecting data from the sensors and potentially performing actions based on the sensor readings.
Component List
ESP32
- Description: A powerful microcontroller with built-in Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
Water Sensor
- Description: A sensor used to detect the presence of water.
- Pins: Signal, VCC, GND
Soil Moisture Sensor
- Description: A sensor used to measure the moisture content in the soil.
- Pins: VCC, GND, SIG
MQ-2 Gas Sensor
- Description: A sensor used to detect gases such as LPG, i-butane, propane, methane, alcohol, hydrogen, and smoke.
- Pins: GND, VCC, ANALOG, Digital
LDR (Light Dependent Resistor)
- Description: A sensor used to measure light intensity.
- Pins: A0, D0, GND, VCC
DHT22 Temperature and Humidity Sensor
- Description: A sensor used to measure temperature and humidity.
- Pins: +, Out, -
Wiring Details
ESP32
- VP: Connected to MQ-2 (ANALOG)
- VN: Connected to Water Sensor (Signal)
- D34: Connected to LDR (A0)
- D35: Connected to Soil Moisture Sensor (SIG)
- D4: Connected to DHT22 (Out)
- GND: Connected to GND of MQ-2, Water Sensor, Soil Moisture Sensor, DHT22, and LDR
- VIN: Connected to VCC of MQ-2, Water Sensor, Soil Moisture Sensor, DHT22, and LDR
Water Sensor
- Signal: Connected to ESP32 (VN)
- VCC: Connected to ESP32 (VIN)
- GND: Connected to ESP32 (GND)
Soil Moisture Sensor
- SIG: Connected to ESP32 (D35)
- VCC: Connected to ESP32 (VIN)
- GND: Connected to ESP32 (GND)
MQ-2 Gas Sensor
- ANALOG: Connected to ESP32 (VP)
- VCC: Connected to ESP32 (VIN)
- GND: Connected to ESP32 (GND)
LDR (Light Dependent Resistor)
- A0: Connected to ESP32 (D34)
- VCC: Connected to ESP32 (VIN)
- GND: Connected to ESP32 (GND)
DHT22 Temperature and Humidity Sensor
- Out: Connected to ESP32 (D4)
- +: Connected to ESP32 (VIN)
- -: Connected to ESP32 (GND)
Code
No code is provided for this circuit.