Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Controlled AC Lighting System with Power Monitoring

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled AC Lighting System with Power Monitoring

Circuit Documentation

Summary

This circuit is designed to interface an ESP32 microcontroller with a PZEM004T power monitoring module, a current sensor, and multiple LED bulbs through a 4-channel 5V relay module. The ESP32 is responsible for controlling the relay channels and communicating with the PZEM004T module to monitor power usage. The current sensor is used to measure the current flowing through the circuit, and the relay module switches the LED bulbs on and off. The circuit is powered through a socket connection, and the ground connections are shared among the ESP32, PZEM004T, and relay module.

Component List

ESP32 (30 pin)

PZEM004T

Relay 4 Channel 5v

LED bulb AC / Bombillo AC

Current Sensor

Socket

Wiring Details

ESP32 (30 pin)

PZEM004T

Relay 4 Channel 5v

LED bulb AC / Bombillo AC

Current Sensor

Socket

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:

}

Note: The provided code is a template and does not include specific functionality. It should be expanded to initialize the hardware interfaces and implement the control logic for the relay module and communication with the PZEM004T module.