Plug and Play USB-C PD WLED Driver

by gokux in Circuits > LEDs

23 Views, 1 Favorites, 0 Comments

Plug and Play USB-C PD WLED Driver

DSC04009.JPG

In this project, I will create a PCB for a WLED driver with USB Power Delivery (PD) support. This means you won't need a large external power supply to power your LED setup; you can use a charger that supports USB PD. Additionally, we will use the XIAO ESP32C3 to run the WLED firmware. Let's begin the build!

Supplies

Timeline 1_01_00_21_39.jpg
  1. Seeed Studio XIAO ESP32C3
  2. CH224K PD IC
  3. 4*10K 0805 resistors
  4. 2*1k 0805 resistors
  5. 0805 LED Green
  6. 1uf 0805 Capacitor
  7. USB-C Female port

suggesting buying a USB PD module and taking the components from it to build a new PCB

Tools

  1. PD 65w Mini Hot Plate
  2. RELIFE RL-404S Solder Paste (138°C melting point)
  3. Tweezer

PCB Design and Manufacturing

Screenshot 2025-05-06 151725.png
Screenshot 2024-11-20 114123.png

I designed this PCB according to the schematics given above using Easyeda and exported it to a Gerber file for fabrication

I used SeeedStudio Fusion PCB Service, which offers comprehensive PCB manufacturing, prototype PCB assembly, and more. Their services cover everything from PCB fabrication, parts sourcing, and assembly to testing, ensuring top-notch quality throughout the process. Furthermore, once you've gauged market interest and validated your prototype, the Seeed Co-create Program can assist you in bringing your product to market with expert guidance and a well-established network of connections.

PCB Assembly

Screenshot 2025-05-06 153937.png

for this project, I sourced all the parts for the USB PD module, I desolder all the components from that module. and solder all the components to the new PCB, in the end, solder both the OLED and wire connector

R1,R3,R4,R5=10K

R2,R6=1K

C1=1uf

Apply solder paste to all SMD pads using a fine nozzle or stencil.

Place components one by one:

  1. CH224K
  2. Resistors (check their orientation if needed)
  3. Capacitor
  4. LED (watch the polarity)
  5. USB-C female connector

Preheat the mini hot plate to ~140–150°C.

Gently place the PCB on the plate. Watch the solder melt and components self-align.

Carefully lift the board off once the solder paste reflows and allow it to cool.

Solder the XIAO ESP32C3 (either directly or via headers, depending on your PCB design).

WLED Installation

FYX4FTZM5JMIANI.jpg

To do this, go to the WLED installation page on GitHub; you can find the link in my description. Connect your XIAO ESP32-C3 to your computer, select "ESP32-C3" as the board type, click "Install," and choose your XIAO from the port options. After installing, enter your Wi-Fi password and SSID, and click "OK."

My previous instructables will help you install WLED https://www.instructables.com/WLED-ON-XIAO-ESP32/

WLED Set Up

unnamed.png
  1. Plug a USB PD charger (5V/3A) into the USB-C port.
  2. The CH224K will trigger the appropriate voltage.
  3. The green LED should light up to indicate power.
  4. Your WLED firmware should boot and broadcast its Wi-Fi hotspot

Also, we are using GPIO 8 as DOUT pin for WS2812b make sure to enter this in LED configuration

Connecting the LED

vlcsnap-2025-05-06-17h15m53s200.png
vlcsnap-2025-05-06-17h27m42s897.png

Optionally, we can use wire terminals to connect the LED wires to the PCB, or we can solder the wires directly to it. The 5V, OUT, and GND pins are clearly marked; connect your LED strip pins accordingly.

Conclusion

This is a great little project to build a minimal, USB-C powered WLED controller. Perfect for compact lighting setups and a great way to learn about USB PD, ESP32, and WLED firmware. No more bulky bricks—just plug in a charger and light up your world