ESP32 Wi-Fi RGB Controller V1

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 wireless RGB LED controller using an ESP32 development board for practical home automation and interactive electronics learning. Adjust individual color channels through a responsive browser interface from compatible devices on your Wi-Fi network.

The ESP32 hosts a web server that receives color commands and converts them into PWM signals controlling LED brightness. Live HEX values, visual previews, and preset buttons make color selection easier.

Before you power up

Disconnect USB power before rewiring. Use a separate current-limiting resistor for each LED channel and verify polarity before powering.

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 controls the RGB LED through PWM outputs.× 1
Common-Cathode RGB LEDCombines red, green, and blue channels to produce different colors.× 1
220 Ohm ResistorsLimit current through each individual LED color channel.× 1
BreadboardProvides a stable platform for arranging and connecting circuit components.× 1
Jumper WiresConnect LED channels, resistors, and shared ground to the ESP32.× 4
USB CablePowers the ESP32 and uploads project 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 and common-cathode RGB LED securely on the breadboard, leaving enough room to place resistors and reach every connection during assembly and testing.

Identify the common-cathode pin and individual red, green, and blue pins. Check the LED datasheet or pinout before making connections.

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 libraries in Arduino IDE.
ESP32 Wi-Fi LibraryConnects the ESP32 to an existing wireless network.
ESP32 WebServer LibraryHosts the web interface and processes HTTP color-control requests.
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 for access from a browser on the same network.

The webpage shows red, green, and blue sliders, a live color preview, HEX value, and preset buttons. Adjusting sliders changes LED brightness and combines channels to create new colors in real time.

06

Troubleshooting & fixes

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

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

Check common-cathode polarity and ground wiring. Confirm each 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 the network is available and within range, restart the board, and review Serial Monitor messages for connection errors or a missing IP address.

03Web sliders fail to change LED colors
Try these checks

Confirm the browser and ESP32 share the same Wi-Fi network. Verify the IP address, HTTP handler, RGB parameter parsing, and PWM pin assignments. Ensure received values reach the LED output functions correctly.

Let’s get your project working.

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

Get project support