ESP32 Wi-Fi RGB Controller V2

Wiring Schematic

View full-size circuit ↗
LT

YOUR PROJECT LEARNING PATH

Build it with confidence.

Progress saves on this device
01

Project overview

Know what you’re building before you start wiring.

Build a professional wireless RGB LED controller using an ESP32 development board for interactive IoT learning. Adjust color channels through a responsive browser dashboard with improved controls and visual feedback.

The ESP32 hosts a web server that accepts color commands and controls LED brightness using PWM. Six color presets, live HEX values, and a one-click shutdown button expand control options.

Before you power up

Disconnect USB power before rewiring. Use separate current-limiting resistors for each color channel and connect the common-cathode pin directly to ground.

PROJECT ROADMAP3 project stages
✓
Prepare your kitConfirm the components and tools
⌁
Assemble the circuitFollow the build steps in order
⌘
Upload and testCheck the output and resolve issues
Start the build
02

Components required

Gather these parts before you begin.

ESP32 Development BoardConnects to Wi-Fi and manages RGB output using PWM.× 1
Common-Cathode RGB LEDProduces mixed colors using independent red, green, and blue channels.× 1
Current-Limiting Resistors 220 ohmLimit electrical current through each individual LED color channel.× 3
BreadboardProvides a convenient platform for assembling and connecting circuit components.× 1
Jumper WiresConnect LED channels, resistors, and ground to the ESP32.× 4
USB CablePowers the ESP32 and uploads firmware from your computer.× 1
03

Build the project

Work through one focused step at a time. You can revisit any step whenever you need.

STEP 010 / 5 complete
BUILD STAGE 0120% of guide

Prepare the ESP32 and RGB LED

Disconnect USB power and position the ESP32 board and RGB LED on the breadboard, leaving enough space for resistors, wiring, and convenient access during assembly and testing of your circuit.

Identify the common-cathode pin and individual red, green, and blue pins using the LED datasheet or component markings before wiring.

1 of 5
04

Software & tools

Install these before uploading the firmware.

Arduino IDEEdits, compiles, and uploads firmware to the ESP32 development board.
ESP32 Board PackageProvides ESP32 board definitions and required development libraries in Arduino IDE.
ESP32 Wi-Fi LibraryConnects the ESP32 to an existing wireless network.
ESP32 WebServer LibraryHosts the dashboard and processes HTTP requests for color and shutdown controls.
05

Expected output

Compare your build with the result described here.

FINAL CHECKPOINT

After uploading the firmware, open Serial Monitor at 115200 baud and observe connection messages. When the ESP32 joins Wi-Fi, note its local IP address and open it in a browser on the same network.

The dashboard shows red, green, and blue sliders, a live color preview, HEX value, six presets, and shutdown control. Slider changes update the LED color immediately, while shutdown should turn off all channels.

06

Troubleshooting & fixes

Choose the issue that best matches what you’re seeing.

01RGB LED remains off or shows wrong colors
Try these checks

Check common-cathode polarity and ground wiring. Confirm each color channel has its own resistor and GPIO 26, 13, and 14 match the sketch. Inspect the LED pinout and connections for loose wires.

02ESP32 fails to connect to Wi-Fi
Try these checks

Check the network name and password, including capitalization. Confirm network availability and signal strength, restart the board, and review Serial Monitor messages for connection errors or a missing IP address.

03Dashboard sliders or shutdown button fail
Try these checks

Confirm the browser and ESP32 share the same network. Verify the IP address, HTTP handlers, and RGB parameter parsing. Ensure shutdown sets the control flag and PWM updates set all channel outputs to zero.

Let’s get your project working.

When you contact us, include the project name and the step where you got stuck.

Get project support