Circuit Documentation
Summary of the Circuit
This circuit is designed to monitor soil moisture levels and control a water pump based on the sensor data. It uses an ESP32 microcontroller to read data from a DHT11 temperature and humidity sensor and an MKE-S13 soil moisture sensor. The ESP32 also controls a relay module, which in turn controls the power to a water pump. The MB102 Breadboard Power Supply Module provides the necessary power to the components.
Component List
MKE-S13 Soil Moisture Sensor
- Description: A sensor that measures the volumetric content of water in the soil and outputs an analog signal.
- Pins: GND, 5V, SIG
MB102 Breadboard Power Supply Module 3.3V/5V
- Description: A power supply module that provides both 3.3V and 5V outputs for breadboard projects.
- Pins: GND, 3.3V, 5V
DHT11 Temperature and Humidity Sensor
- Description: A basic, ultra low-cost digital temperature and humidity sensor.
- Pins: DATA, GND, VCC
Relay Module 1 Channel
- Description: A module that allows a low-power signal from the microcontroller to control higher power circuits, such as a water pump.
- Pins: S, 5V, GND, NC, COM, NO
Water Pump
- Description: An electric pump that moves water from one place to another.
- Pins: Positive, Negative
ESP32-WROOM-32UE Microcontroller
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities, suitable for a wide range of applications.
- Pins: 3v3, EN, VP, VN, 34, 35, 32, 33, 25, 26, 27, 14, 12, GND, 13, D2, D3, 5V, 23, 22, TX, RX, 21, 19, 18, 5, 17, 16, 4, 0, 2, 15, D1, D0, CKL
Wiring Details
MKE-S13 Soil Moisture Sensor
- 5V: Connected to the 3.3V output from the MB102 Power Supply Module.
- GND: Connected to the common ground.
- SIG: Connected to pin 34 on the ESP32.
MB102 Breadboard Power Supply Module 3.3V/5V
- 3.3V: Provides power to the ESP32, DHT11, and MKE-S13 Soil Moisture Sensor.
- 5V: Provides power to the Relay Module.
- GND: Common ground for all components.
DHT11 Temperature and Humidity Sensor
- VCC: Connected to the 3.3V output from the MB102 Power Supply Module.
- GND: Connected to the common ground.
- DATA: Connected to pin 27 on the ESP32.
Relay Module 1 Channel
- 5V: Connected to the 5V output from the MB102 Power Supply Module.
- GND: Connected to the common ground.
- S: Signal pin connected to pin 26 on the ESP32.
- COM: Common pin, connected to the 5V output from the MB102 Power Supply Module.
- NO: Normally open pin, connected to the positive pin of the water pump.
Water Pump
- Positive: Connected to the NO pin on the Relay Module.
- Negative: Connected to the common ground.
ESP32-WROOM-32UE Microcontroller
- 3v3: Provides power to the DHT11 and MKE-S13 Soil Moisture Sensor.
- GND: Common ground for all components.
- Pins 26, 27, 34: Connected to the Relay Module, DHT11, and MKE-S13 Soil Moisture Sensor respectively.
Documented Code
DHT11 Sensor Code (sketch.ino)
void setup() {
}
void loop() {
}
Additional Documentation (documentation.txt)
No additional code documentation provided.