ESP32-Based Smart Energy Monitoring System with RS485 Communication
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, an RS485 communication module, an ACS712 current sensor, a 1-channel relay, and a ZMPT101B voltage sensor. The circuit is designed to monitor current and voltage, control a relay, and communicate via RS485.
Component List
ESP32
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
RS485
- Description: A communication module for RS485 protocol.
- Pins: VCC, RO, RE, GND, B, A, DE, DI
ACS712 Current Sensor 5A 20A 30A
- Description: A current sensor capable of measuring up to 30A.
- Pins: 1, 2, GND, OUT, VCC
1-Channel Relay (5V 10A)
- Description: A relay module capable of switching high power loads.
- Pins: NC, signal, C, power, NO, ground
ZMPT101B
- Description: A voltage sensor for AC voltage measurement.
- Pins: OUT, GND, VCC, NEUTRO, FASE
Wiring Details
ESP32
VN is connected to:
- VCC of ACS712 Current Sensor
- VCC of RS485
- power of 1-Channel Relay
- VCC of ZMPT101B
D34 is connected to:
- OUT of ACS712 Current Sensor
D35 is connected to:
- OUT of ZMPT101B
GND is connected to:
- GND of ACS712 Current Sensor
- GND of ZMPT101B
- GND of RS485
- ground of 1-Channel Relay
D2 is connected to:
- DE of RS485
D4 is connected to:
- RE of RS485
RX2 is connected to:
- RO of RS485
TX2 is connected to:
- DI of RS485
D5 is connected to:
- signal of 1-Channel Relay
RS485
VCC is connected to:
- VN of ESP32
RO is connected to:
- RX2 of ESP32
RE is connected to:
- D4 of ESP32
GND is connected to:
- GND of ESP32
DE is connected to:
- D2 of ESP32
DI is connected to:
- TX2 of ESP32
ACS712 Current Sensor 5A 20A 30A
VCC is connected to:
- VN of ESP32
OUT is connected to:
- D34 of ESP32
GND is connected to:
- GND of ESP32
1-Channel Relay (5V 10A)
power is connected to:
- VN of ESP32
signal is connected to:
- D5 of ESP32
ground is connected to:
- GND of ESP32
ZMPT101B
VCC is connected to:
- VN of ESP32
OUT is connected to:
- D35 of ESP32
GND is connected to:
- GND of ESP32
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code documentation. Each component is described, and the connections between components are clearly outlined.