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

ESP-32 Controlled Relay Switching for AC Bulbs

View and Edit Project In Cirkit DesignerImage of ESP-32 Controlled Relay Switching for AC Bulbs

Circuit Documentation

Summary

This circuit is designed to control multiple AC bulbs using KF-301 relays, which are in turn controlled by a HiLetgo ESP-32 microcontroller. The relays act as electrically operated switches that allow the microcontroller to handle high-power devices like AC bulbs. Rocker switches are used to provide manual control over the GPIO pins of the ESP-32, which likely serve as inputs to the microcontroller for various control logic.

Component List

Wiring Details

KF-301 Relay

HiLetgo ESP-32

Rocker Switch

AC Bulb

Power 220V

Documented Code

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

}

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

}

The provided code is a template with empty setup() and loop() functions, which are standard in Arduino sketches. The setup() function is intended to contain initialization code that runs once when the microcontroller is powered on or reset. The loop() function is for code that runs continuously as long as the microcontroller is powered.

Additional code would be required to initialize the GPIO pins connected to the relays and to implement the control logic for turning the AC bulbs on and off based on the state of the rocker switches or other input conditions.