ESP32-Based Wi-Fi Controlled RGB LED and 12V LED Lighting System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an ESP32 microcontroller, multiple power MOSFETs, 12V LEDs, WS2812 RGB LED strips, a MAX4466 microphone amplifier, and a 12V to 5V step-down power converter. The ESP32 controls the LEDs and RGB strips through the MOSFETs, and the MAX4466 microphone amplifier provides audio input to the ESP32. The power supply and step-down converter ensure the correct voltage levels for all components.
Component List
ESP32
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
Power MOSFET
- Description: A transistor used for switching and amplifying electronic signals.
- Pins: PWM, GND, GND(5-36V), +V(5-36V)
12V LED
- Description: A light-emitting diode that operates at 12V.
- Pins: POSITIF, NEGATIF
WS2812 RGB LED Strip
- Description: An addressable RGB LED strip.
- Pins: DIN, 5V, GND, DO
MAX4466
- Description: A microphone amplifier.
- Pins: OUT, GND, VCC
12V Power Supply
- Description: Provides 12V power to the circuit.
- Pins: +, -
12V to 5V Step Down Power Converter
- Description: Converts 12V to 5V.
- Pins: VIN 9v-36v, VIN+, VIN-, USB OUTPUT 5V, 5v OUTPUT, GND
Wiring Details
ESP32
- D34: Connected to OUT of MAX4466
- D35: Connected to PWM of Power MOSFET
- D32: Connected to PWM of Power MOSFET
- D33: Connected to PWM of Power MOSFET
- GND: Connected to GND of WS2812 RGB LED strip, Power MOSFETs, and 12V to 5V Step Down Power Converter
- VIN: Connected to 5V of WS2812 RGB LED strip and 5v OUTPUT of 12V to 5V Step Down Power Converter
- 3V3: Connected to VCC of MAX4466
- D4: Connected to DIN of WS2812 RGB LED strip
Power MOSFET
- PWM: Connected to D35 of ESP32
- GND: Connected to GND of WS2812 RGB LED strip, ESP32, and 12V to 5V Step Down Power Converter
- GND(5-36V): Connected to NEGATIF of 12V LED and - of 12V Power Supply
- +V(5-36V): Connected to POSITIF of 12V LED and + of 12V Power Supply
12V LED
- POSITIF: Connected to +V(5-36V) of Power MOSFET
- NEGATIF: Connected to GND(5-36V) of Power MOSFET
WS2812 RGB LED Strip
- DIN: Connected to D4 of ESP32
- 5V: Connected to VIN of ESP32 and 5v OUTPUT of 12V to 5V Step Down Power Converter
- GND: Connected to GND of ESP32, Power MOSFETs, and 12V to 5V Step Down Power Converter
- DO: Connected to DIN of the next WS2812 RGB LED strip
MAX4466
- OUT: Connected to D34 of ESP32
- GND: Connected to GND of ESP32
- VCC: Connected to 3V3 of ESP32
12V Power Supply
- +: Connected to +V(5-36V) of Power MOSFET
- -: Connected to GND(5-36V) of Power MOSFET
12V to 5V Step Down Power Converter
- VIN+: Connected to + of 12V Power Supply
- VIN-: Connected to - of 12V Power Supply
- 5v OUTPUT: Connected to VIN of ESP32 and 5V of WS2812 RGB LED strip
- GND: Connected to GND of ESP32, Power MOSFETs, and WS2812 RGB LED strip
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 settings, and the loop() function is where you place the code that needs to run continuously.
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and code documentation. This should help in understanding the design and functionality of the circuit.