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

ESP32-Based Smart Light Control with Potentiometer and Ambient Light Sensor

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Light Control with Potentiometer and Ambient Light Sensor

Circuit Documentation

Summary

This circuit involves an ESP32 microcontroller interfacing with various components including a power supply module, an LCD display, potentiometers, a power MOSFET, a power LED, an ambient light sensor, and passive components like resistors, inductors, and capacitors. The circuit is designed to read inputs from potentiometers and an ambient light sensor, control a power LED through a MOSFET, and display information on an LCD.

Component List

MB102 Breadboard Power Supply Module 3.3V/5V

ESP32 (30 pin)

Lcd 20x4 i2c

Potentiometer

Power MOSFET

Power LED 12V 10W 0.8-0.9A

Ambient Light Sensor

12V Power Supply

Resistor

Inductor

Electrolytic Capacitor

Wiring Details

MB102 Breadboard Power Supply Module 3.3V/5V

ESP32 (30 pin)

Lcd 20x4 i2c

Potentiometer

Power MOSFET

Power LED 12V 10W 0.8-0.9A

Ambient Light Sensor

12V Power Supply

Resistor

Inductor

Electrolytic Capacitor

Code Documentation

ESP32 Code

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

}

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

}

This code is a basic template for the ESP32 microcontroller. The setup() function is where you initialize your components and configurations, and the loop() function is where the main logic of your program will run repeatedly.