ESP32-Based Environmental Monitoring and Home Automation System with Ethernet Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to interface an ESP32 microcontroller with various peripherals including an Ethernet module (W5500), a DHT22 temperature and humidity sensor, a ZMPT101B voltage sensor, a 4-channel 5V relay module, and an Adafruit SHTC3 temperature and humidity sensor. The circuit is designed to monitor environmental data and control external devices via the relay module, with network connectivity provided by the Ethernet module.
Component List
Module Ethernet W5500
- Description: Ethernet module based on the W5500 chip, providing network connectivity.
- Pins: NC, INT, RST, GND, 5V, SCK, SS, MOSI, MISO, 3.3V
DHT22
- Description: Digital temperature and humidity sensor.
- Pins: +, Out, -
ZMPT101B
- Description: Module for voltage measurement in AC circuits.
- Pins: OUT, GND, VCC, NEUTRO, FASE
Relay 4 Channel 5v
- Description: 4-channel relay module for controlling high power devices.
- Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
ESP32 ESP32S 30P Expansion Board
- Description: Microcontroller board based on the ESP32 chip, featuring Wi-Fi and Bluetooth connectivity.
- Pins: EN, VP (GPIO36), VN (GPIO39), GPIO34, GPIO35, GPIO32, GPIO33, GPIO25, GPIO26, GPIO27, GPIO14, GPIO12, GPIO13, GPIO23, GPIO22, TX0, RX0, GPIO21, GPIO19, GPIO18, GPIO5, GPIO17, GPIO16, GPIO4, GPIO2, GPIO15, D22, D21, VCC, GND, 5V, 3.3V, 5v
Adafruit SHTC3 STEMMA QT
- Description: Digital temperature and humidity sensor with I2C interface.
- Pins: VCC, 3.3V, GND, SCL, SDA
Wiring Details
Module Ethernet W5500
- INT connected to ESP32 GPIO25
- RST connected to ESP32 EN
- GND connected to common ground
- 5V connected to ESP32 5V
- SCK connected to ESP32 GPIO18
- SS connected to ESP32 GPIO5
- MOSI connected to ESP32 GPIO23
- MISO connected to ESP32 GPIO19
DHT22
-
- connected to ESP32 3.3V
- Out connected to ESP32 GPIO32
-
- connected to common ground
ZMPT101B
- OUT connected to ESP32 VP (GPIO36)
- GND connected to common ground
- VCC connected to common 5V
Relay 4 Channel 5v
- GND connected to common ground
- IN1 connected to ESP32 GPIO26
- IN2 connected to ESP32 GPIO27
- IN3 connected to ESP32 GPIO13
- IN4 connected to ESP32 GPIO4
- VCC connected to common 5V
Adafruit SHTC3 STEMMA QT
- 3.3V connected to ESP32 3.3V
- GND connected to common ground
- SCL connected to ESP32 GPIO22
- SDA connected to ESP32 GPIO21
Documented Code
Microcontroller: ESP32 ESP32S 30P Expansion Board
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt
(No additional documentation provided for the code)
Please note that the code provided is a template and does not contain any functional implementation. It is expected that the user will add the necessary code to initialize and manage the connected peripherals.