Circuit Documentation
Summary
The circuit in question is designed to interface an ESP32 microcontroller with a W5500 Ethernet module, a ZMPT101B voltage sensor, and a DHT22 temperature and humidity sensor. The ESP32 serves as the central processing unit, managing data communication over Ethernet and sensor data acquisition. The W5500 module enables network connectivity, while the ZMPT101B and DHT22 sensors allow for environmental monitoring.
Component List
ESP32 (30 pin)
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities, featuring a variety of digital and analog I/O pins.
- Purpose: Acts as the main controller for the circuit, handling sensor data and network communication.
Module Ethernet W5500
- Description: An Ethernet module that provides a network (IP) stack capable of both TCP and UDP.
- Purpose: Enables the ESP32 to connect to a wired network for data communication.
ZMPT101B
- Description: A module for voltage sensing in AC circuits.
- Purpose: Measures the voltage of an AC power source.
DHT22
- Description: A sensor for measuring ambient temperature and humidity.
- Purpose: Provides environmental data to the ESP32 for monitoring or control purposes.
Wiring Details
ESP32 (30 pin)
- EN connected to Module Ethernet W5500 RST
- VP connected to ZMPT101B OUT
- D32, D33, D26, D27 connected to DHT22 Out
- GND connected to DHT22 -, ZMPT101B GND, and Module Ethernet W5500 GND
- Vin connected to ZMPT101B VCC
- D23 connected to Module Ethernet W5500 MOSI
- D19 connected to Module Ethernet W5500 MISO
- D18 connected to Module Ethernet W5500 SCK
- D5 connected to Module Ethernet W5500 SS
- 3V3 connected to DHT22 + and Module Ethernet W5500 3.3V
Module Ethernet W5500
- RST connected to ESP32 EN
- INT connected to ESP32 D25
- GND connected to ESP32 GND and ZMPT101B GND
- MOSI connected to ESP32 D23
- MISO connected to ESP32 D19
- SCK connected to ESP32 D18
- SS connected to ESP32 D5
- 3.3V connected to ESP32 3V3
ZMPT101B
- OUT connected to ESP32 VP
- GND connected to ESP32 GND
- VCC connected to ESP32 Vin
DHT22
- Out connected to ESP32 D32, D33, D26, D27
-
- connected to ESP32 GND
-
- connected to ESP32 3V3
Documented Code
ESP32 Microcontroller Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Module Ethernet W5500 Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code for both the ESP32 and the W5500 Ethernet module is a template with empty setup and loop functions. This code will need to be populated with the necessary initialization and operational routines to manage the sensors and network communication.
