ESP32-Powered Smart Home Automation System with Wi-Fi Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, a DHT22 temperature and humidity sensor, a 1 Channel 30A 5V Relay, a 4 Channel 5V Relay, and multiple Door MC-38 magnetic contact sensors. The ESP32 microcontroller serves as the central control unit, interfacing with the sensors and relays to perform various tasks.
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)
DHT22
- Description: A temperature and humidity sensor.
- Pins: +, Out, -
1 Channel 30A 5V Relay
- Description: A single-channel relay module capable of handling high current loads.
- Pins: 5V VCC, GND, IN
Relay 4 Channel 5V
- Description: A four-channel relay module for controlling multiple devices.
- Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
Door MC-38
- Description: A magnetic contact sensor used for detecting the opening and closing of doors.
- Pins: S, GND
Wiring Details
ESP32-POE2
5V is connected to:
- 1 Channel 30A 5V Relay (5V VCC)
- Relay 4 Channel 5V (VCC)
GPIO1/U0TXD is connected to:
- DHT22 (Out)
GPIO2/HS2_DATA0 is connected to:
- 1 Channel 30A 5V Relay (IN)
GPIO3/U0RXD is connected to:
- Relay 4 Channel 5V (IN4)
GPIO4/U1TXD is connected to:
- Relay 4 Channel 5V (IN3)
GPIO5/SPI_CS is connected to:
- Relay 4 Channel 5V (IN2)
GPIO13/12C-SDA (MTCK) is connected to:
- Relay 4 Channel 5V (IN1)
GND is connected to:
- 1 Channel 30A 5V Relay (GND)
- Relay 4 Channel 5V (GND)
- Door MC-38 (GND)
- DHT22 (-)
GPIO33 is connected to:
- Door MC-38 (GND)
GPIO32 is connected to:
- Door MC-38 (GND)
GPIO15/HS2_CMD(MTDO) is connected to:
- Door MC-38 (GND)
GPIO14/HS2_CLK(MTMS) is connected to:
- Door MC-38 (S)
3.3V is connected to:
- DHT22 (+)
DHT22
Out is connected to:
- ESP32-POE2 (GPIO1/U0TXD)
- is connected to:
- Relay 4 Channel 5V (GND)
- Door MC-38 (S)
- ESP32-POE2 (GND)
+ is connected to:
- ESP32-POE2 (3.3V)
1 Channel 30A 5V Relay
5V VCC is connected to:
- ESP32-POE2 (5V)
IN is connected to:
- ESP32-POE2 (GPIO2/HS2_DATA0)
GND is connected to:
- ESP32-POE2 (GND)
Relay 4 Channel 5V
VCC is connected to:
- ESP32-POE2 (5V)
IN4 is connected to:
- ESP32-POE2 (GPIO3/U0RXD)
IN3 is connected to:
- ESP32-POE2 (GPIO4/U1TXD)
IN2 is connected to:
- ESP32-POE2 (GPIO5/SPI_CS)
IN1 is connected to:
- ESP32-POE2 (GPIO13/12C-SDA (MTCK))
GND is connected to:
- DHT22 (-)
- ESP32-POE2 (GND)
Door MC-38
GND is connected to:
- ESP32-POE2 (GPIO33)
- ESP32-POE2 (GPIO32)
- ESP32-POE2 (GPIO15/HS2_CMD(MTDO))
S is connected to:
- ESP32-POE2 (GPIO14/HS2_CLK(MTMS))
- DHT22 (-)
Code
No code is provided for this circuit.