ESP32-Powered Smart Home Automation with Relay Control and DHT22 Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32-POE2 microcontroller, a 4 Channel 30A 5V Relay, a 2 Channel 30A 5V Relay, and two DHT22 temperature and humidity sensors. The circuit is designed to control relays and read sensor data using the ESP32-POE2 microcontroller.
Component List
ESP32-POE2
- Description: A microcontroller with multiple GPIO pins, capable of handling various input and output operations.
- Pins: 12/24V Selectable, 5VP, 5V, 3.3V, EN, GPIO0, GPIO1/U0TXD, GPIO2/HS2_DATA0, GPIO3/U0RXD, GPIO4/U1TXD, GPIO5/SPI_CS, GPIO12/PHY_PWR (MTDI), GPIO13/12C-SDA (MTCK), GND, GPI39, GPI36/U1RXD, GPI35, GPI34/BUT1, GPIO33, GPIO32, GPIO16/I2C-SCL, GPIO15/HS2_CMD(MTDO), GPIO14/HS2_CLK(MTMS), GPIO13/I2C-SDA(MTCK)
4 Channel 30A 5V Relay
- Description: A relay module with four channels, each capable of handling 30A at 5V.
- Pins: 5V, GND, IN1+, IN1-, IN2+, IN2-, IN3+, IN3-, IN4+, IN4-
2 Channel 30A 5V Relay
- Description: A relay module with two channels, each capable of handling 30A at 5V.
- Pins: 5V, GND, IN1, IN2, COM, COM1, NO1, NC1, COM2, NO2, NC2, LOW1, LOW2, HIGH1, HIGH2
DHT22
- Description: A temperature and humidity sensor.
- Pins: +, Out, -
Wiring Details
ESP32-POE2
5V is connected to:
- 5V pin of the 4 Channel 30A 5V Relay
- 5V pin of the 2 Channel 30A 5V Relay
GPIO2/HS2_DATA0 is connected to:
- IN1 pin of the 2 Channel 30A 5V Relay
GPIO3/U0RXD is connected to:
- IN4+ pin of the 4 Channel 30A 5V Relay
GPIO4/U1TXD is connected to:
- IN3+ pin of the 4 Channel 30A 5V Relay
GPIO5/SPI_CS is connected to:
- IN2+ pin of the 4 Channel 30A 5V Relay
GPIO13/12C-SDA (MTCK) is connected to:
- IN1+ pin of the 4 Channel 30A 5V Relay
GND is connected to:
- GND pin of the 4 Channel 30A 5V Relay
- IN1- pin of the 4 Channel 30A 5V Relay
- IN2- pin of the 4 Channel 30A 5V Relay
- IN3- pin of the 4 Channel 30A 5V Relay
- IN4- pin of the 4 Channel 30A 5V Relay
- GND pin of the 2 Channel 30A 5V Relay
GPIO33 is connected to:
- Out pin of the DHT22 sensor
GPIO32 is connected to:
- Out pin of the second DHT22 sensor
GPIO14/HS2_CLK(MTMS) is connected to:
- IN2 pin of the 2 Channel 30A 5V Relay
3.3V is connected to:
-
- pin of the DHT22 sensor
-
- pin of the second DHT22 sensor
-
4 Channel 30A 5V Relay
5V is connected to:
- 5V pin of the ESP32-POE2
GND is connected to:
- GND pin of the ESP32-POE2
IN1+ is connected to:
- GPIO13/12C-SDA (MTCK) pin of the ESP32-POE2
IN1- is connected to:
- GND pin of the ESP32-POE2
IN2+ is connected to:
- GPIO5/SPI_CS pin of the ESP32-POE2
IN2- is connected to:
- GND pin of the ESP32-POE2
IN3+ is connected to:
- GPIO4/U1TXD pin of the ESP32-POE2
IN3- is connected to:
- GND pin of the ESP32-POE2
IN4+ is connected to:
- GPIO3/U0RXD pin of the ESP32-POE2
IN4- is connected to:
- GND pin of the ESP32-POE2
2 Channel 30A 5V Relay
5V is connected to:
- 5V pin of the ESP32-POE2
GND is connected to:
- GND pin of the ESP32-POE2
IN1 is connected to:
- GPIO2/HS2_DATA0 pin of the ESP32-POE2
IN2 is connected to:
- GPIO14/HS2_CLK(MTMS) pin of the ESP32-POE2
COM is connected to:
- LOW1 pin of the 2 Channel 30A 5V Relay
- LOW2 pin of the 2 Channel 30A 5V Relay
DHT22
Out is connected to:
- GPIO33 pin of the ESP32-POE2 (for the first DHT22)
- GPIO32 pin of the ESP32-POE2 (for the second DHT22)
- is connected to:
- GND pin of the ESP32-POE2
+ is connected to:
- 3.3V pin of the ESP32-POE2
Code
No code is provided for this circuit.