Circuit Documentation
Summary
The circuit in question is designed to interface an ESP32 Devkit V1 microcontroller with a DHT11 temperature and humidity sensor and a two-channel 5V relay module. The relay module is used to control a humidifier, which is powered by a 5V battery. The ESP32 reads data from the DHT11 sensor and controls the relay to turn the humidifier on or off based on the sensor readings. The 5V battery provides power to the relay, which in turn controls the power to the humidifier.
Component List
ESP32 Devkit V1
- Description: A microcontroller development board based on the ESP32 chip, featuring Wi-Fi and Bluetooth connectivity.
- Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN.
DHT11
- Description: A basic, low-cost digital temperature and humidity sensor.
- Pins: DATA, GND, VCC.
Two Channel Relay 5V
- Description: A relay module with two channels that can be used to control high power devices.
- Pins: VCC, IN2, IN1, GND, NC2, C2, NO2, NC1, C1, NO1.
Humidifier
- Description: An electronic device that increases humidity (moisture) in a single room or in the entire home.
- Pins: GND, 5V.
5V Battery
- Description: A power source providing a 5V output.
- Pins: positive, negative.
Wiring Details
ESP32 Devkit V1
- 3V3 connected to DHT11 VCC.
- GND connected to DHT11 GND and Two Channel Relay 5V GND.
- D4 connected to DHT11 DATA.
- D26 connected to Two Channel Relay 5V IN1.
- VIN connected to Two Channel Relay 5V VCC.
DHT11
- DATA connected to ESP32 Devkit V1 D4.
- GND connected to ESP32 Devkit V1 GND.
- VCC connected to ESP32 Devkit V1 3V3.
Two Channel Relay 5V
- VCC connected to ESP32 Devkit V1 VIN.
- IN1 connected to ESP32 Devkit V1 D26.
- GND connected to ESP32 Devkit V1 GND.
- C1 connected to 5V Battery positive.
- NO1 connected to Humidifier 5V.
Humidifier
- 5V connected to Two Channel Relay 5V NO1.
- GND connected to 5V Battery negative.
5V Battery
- positive connected to Two Channel Relay 5V C1.
- negative connected to Humidifier GND.
Documented Code
There is no code provided for the microcontroller in this circuit. The ESP32 Devkit V1 would typically be programmed to read the temperature and humidity data from the DHT11 sensor and control the relay based on predefined conditions to turn the humidifier on or off. However, since no code has been provided, this section cannot be documented further.
