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

ESP32-Based Smart Relay Control for AC Lighting

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Relay Control for AC Lighting

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to interface an ESP32 Devkit V1 microcontroller with various components including a voltage sensor, a 2-channel relay module, a pushbutton, AC bulbs, a power supply, resistors, a capacitor, and a current sensor. The circuit is capable of monitoring voltage and current, controlling AC bulbs, and receiving input from a pushbutton. The ESP32 Devkit V1 serves as the central processing unit, controlling the relay module based on sensor readings and button press events.

Component List

ESP32 Devkit V1

Voltage Sensor

2-Channel Relay (5V 10A)

Pushbutton

AC Bulb

Power 220V

Resistor (10k Ohms)

Resistor (100 Ohms)

Electrolytic Capacitor

Current Sensor

Wiring Details

ESP32 Devkit V1

Voltage Sensor

2-Channel Relay (5V 10A)

Pushbutton

AC Bulb

Resistor (10k Ohms)

Resistor (100 Ohms)

Electrolytic Capacitor

Current Sensor

Documented Code

Microcontroller: ESP32 Devkit V1

// Code for the ESP32 Devkit V1 microcontroller
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 contain any functional logic. It needs to be populated with the specific instructions to control the relay based on sensor inputs and button press events.