ESP32-Powered Smart Home Automation with DHT22 Sensors and 4-Channel Relay
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, and two DHT22 temperature and humidity sensors. The ESP32-POE2 serves as the central control unit, interfacing with the relay and sensors to perform various tasks. The relay is used to control high-power devices, while the DHT22 sensors provide environmental data.
Component List
ESP32-POE2
- Description: A powerful microcontroller with built-in Wi-Fi and Ethernet capabilities.
- 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 capable of controlling high-power devices.
- Pins: 5V, GND, IN1+, IN1-, IN2+, IN2-, IN3+, IN3-, IN4+, IN4-
DHT22
- Description: A temperature and humidity sensor.
- Pins: +, Out, -
Wiring Details
ESP32-POE2
- 5V is connected to 5V of the 4 Channel 30A 5V Relay.
- GPIO3/U0RXD is connected to IN4+ of the 4 Channel 30A 5V Relay.
- GPIO4/U1TXD is connected to IN3+ of the 4 Channel 30A 5V Relay.
- GPIO5/SPI_CS is connected to IN2+ of the 4 Channel 30A 5V Relay.
- GPIO13/12C-SDA (MTCK) is connected to IN1+ of the 4 Channel 30A 5V Relay.
- GND is connected to GND, IN1-, IN2-, IN3-, and IN4- of the 4 Channel 30A 5V Relay.
- GPIO33 is connected to Out of the first DHT22 sensor.
- GPIO32 is connected to Out of the second DHT22 sensor.
- GND is connected to - of both DHT22 sensors.
- 3.3V is connected to + of both DHT22 sensors.
4 Channel 30A 5V Relay
- 5V is connected to 5V of the ESP32-POE2.
- IN4+ is connected to GPIO3/U0RXD of the ESP32-POE2.
- IN3+ is connected to GPIO4/U1TXD of the ESP32-POE2.
- IN2+ is connected to GPIO5/SPI_CS of the ESP32-POE2.
- IN1+ is connected to GPIO13/12C-SDA (MTCK) of the ESP32-POE2.
- GND is connected to GND of the ESP32-POE2.
- IN1-, IN2-, IN3-, and IN4- are all connected to GND of the ESP32-POE2.
DHT22 Sensors
- Out of the first DHT22 sensor is connected to GPIO33 of the ESP32-POE2.
- Out of the second DHT22 sensor is connected to GPIO32 of the ESP32-POE2.
- - of both DHT22 sensors is connected to GND of the ESP32-POE2.
- + of both DHT22 sensors is connected to 3.3V of the ESP32-POE2.
Code
No code is provided for this circuit.