ESP32-Based Environmental Monitoring System with Soil Moisture, Light, and Temperature Sensing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to monitor environmental parameters such as temperature, soil moisture, and light intensity. It utilizes a variety of sensors interfaced with an ESP32 microcontroller, which serves as the central processing unit. The circuit is powered by a 5V battery and includes a resistor for current limiting or voltage division purposes. The sensors include a temperature sensor, a soil moisture sensor (SparkFun gator:soil), a photoresistor (LDR) for light sensing, and a DHT11 sensor for measuring temperature and humidity. The ESP32 reads data from these sensors and can process or transmit the data for further analysis or action.
Component List
Temperature Sensor
- Pins: Temp GND Black, Temp VDD Red, Temp DQ Data Yellow
- Description: A sensor used to measure temperature.
SparkFun gator:soil
- Pins: VCC, GND, SIG
- Description: A sensor used to measure the moisture content in soil.
ESP32
- 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
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities, used as the main processing unit in the circuit.
Photoresistor (LDR) Sensor (Wokwi Compatible)
- Pins: VCC, GND, DO, AO
- Description: A light-dependent resistor used to measure light intensity.
DHT11
- Pins: DATA, GND, VCC
- Description: A sensor used to measure temperature and humidity.
5v Battery
- Pins: Positive, Negative
- Description: A power source for the circuit.
Resistor
- Pins: Pin1, Pin2
- Description: A passive two-terminal electrical component used to limit current or divide voltage.
- Properties: Resistance: 4700 Ohms
Wiring Details
Temperature Sensor
- Temp GND Black: Connected to the common ground.
- Temp VDD Red: Connected to the VCC of SparkFun gator:soil.
- Temp DQ Data Yellow: Connected to pin D22 of the ESP32 through a 4700 Ohm resistor.
SparkFun gator:soil
- VCC: Connected to the VCC of the Temperature Sensor.
- GND: Connected to the common ground.
- SIG: Connected to pin D18 of the ESP32.
ESP32
- VIN: Connected to the positive terminal of the 5v battery and VCC of other components.
- GND: Connected to the common ground.
- D27: Connected to the DATA pin of the DHT11 sensor.
- D14: Connected to the AO pin of the Photoresistor (LDR) Sensor.
- D18: Connected to the SIG pin of the SparkFun gator:soil.
- D22: Connected to the Temp DQ Data Yellow of the Temperature Sensor through a 4700 Ohm resistor.
Photoresistor (LDR) Sensor (Wokwi Compatible)
- VCC: Connected to the positive terminal of the 5v battery.
- GND: Connected to the common ground.
- AO: Connected to pin D14 of the ESP32.
DHT11
- DATA: Connected to pin D27 of the ESP32.
- GND: Connected to the common ground.
- VCC: Connected to the positive terminal of the 5v battery.
5v Battery
- Positive: Connected to VIN of the ESP32 and VCC of other components.
- Negative: Connected to the common ground.
Resistor
- Pin1: Connected to the positive terminal of the 5v battery.
- Pin2: Connected to pin D22 of the ESP32 and Temp DQ Data Yellow of the Temperature Sensor.
Documented Code
No code has been provided for the microcontroller. The documentation of the code would typically include a description of the functionality, setup, and main loop, along with comments explaining the purpose of each section of the code. Since no code is available, this section cannot be completed.