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

ESP32-Controlled AC Lighting System with Current Sensing

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled AC Lighting System with Current Sensing

Circuit Documentation

Summary

This circuit is designed to control multiple AC LED bulbs using an ESP32 microcontroller and a 4-channel 5V relay module. The ESP32 is responsible for triggering the relays, which in turn switch the LED bulbs on and off. A current sensor is included to monitor the current flow, and a voltage sensor could be added for voltage monitoring (though it is not wired in this design). The circuit is powered through a socket that provides the AC power to the bulbs and the current sensor.

Component List

ESP32 (30 pin)

Relay 4 Channel 5v

LED bulb AC / Bombillo AC

Current Sensor

Socket

Comments

Wiring Details

ESP32 (30 pin)

Relay 4 Channel 5v

LED bulb AC / Bombillo AC (Instance 1)

LED bulb AC / Bombillo AC (Instance 2)

LED bulb AC / Bombillo AC (Instance 3)

Current Sensor

Socket

Documented Code

ESP32 (30 pin) - 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 GPIO pins connected to the relay module and to handle the control logic for turning the LED bulbs on and off based on some criteria (e.g., sensor input, time of day, external commands via WiFi, etc.).