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

ESP32C3-Based Smart AC Light Controller with Voltage Sensing

View and Edit Project In Cirkit DesignerImage of ESP32C3-Based Smart AC Light Controller with Voltage Sensing

Circuit Documentation

Summary

The circuit in question appears to be designed for AC voltage measurement and control. It includes a microcontroller (XIAO ESP32C3) for processing and control, a voltage sensor module (ZMPT101B) for AC voltage sensing, a relay module (12v Relay) for controlling an AC load, a power supply module (Mini AC-DC 110V-230V to 5V 700mA) to convert AC to 5V DC for powering the circuit, an AC bulb as the load, and an AC wire to provide the AC power source.

Component List

XIAO ESP32C3

12v Relay

ZMPT101B

Mini AC-DC 110V-230V to 5V 700mA Module

AC Bulb

AC Wire

Wiring Details

XIAO ESP32C3

12v Relay

ZMPT101B

Mini AC-DC 110V-230V to 5V 700mA Module

AC Bulb

AC Wire

Documented Code

No code was provided for the microcontroller. The expected code should handle the following tasks:

To complete the documentation, the code for the XIAO ESP32C3 microcontroller should be provided and documented here. The code would typically include setup and loop functions, initialization of GPIO pins, ADC (Analog-to-Digital Converter) configuration for reading the ZMPT101B output, and logic to control the relay based on the sensor reading.