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

ESP32 and PZEM004T-Based Smart Light Control with Current Sensing

View and Edit Project In Cirkit DesignerImage of ESP32 and PZEM004T-Based Smart Light Control with Current Sensing

Circuit Documentation

Summary

This circuit involves an ESP32 microcontroller, a 4-channel relay module, a PZEM004T energy meter, a current sensor, and several LED bulbs connected to an AC socket. The ESP32 controls the relays, which in turn control the LED bulbs. The PZEM004T monitors the energy consumption, and the current sensor measures the current flowing through the circuit.

Component List

ESP32 (30 pin)

Relay 4 Channel 5v

PZEM004T

Current Sensor

LED Bulb AC / Bombillo AC

Socket

Wiring Details

ESP32 (30 pin)

Relay 4 Channel 5v

PZEM004T

Current Sensor

LED Bulb AC / Bombillo AC

Socket

Code Documentation

ESP32 Code

sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

documentation.txt