Skip to the content
2 layers90 × 63 mmLed driver cc v2, the printed circuit board in 3D

ESP controlled 4 Channel Led Driver (RGBW)

Size
90 × 63 mm
Copper layers
2
Thickness
1.6 mm
Parts
61
Nets
44
Pads
159
Tracks, vias
287, 115
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
21 Jun 2025
Updated
9 Jun 2026

Overview

Led driver cc v2 is an open-source printed circuit board by ThomasStaeudelmayr, from the ThomasStaeudelmayr/LedDriver repository on GitHub. It is a 2-layer board of 90 × 63 mm with 61 parts on 44 nets, routed with 287 tracks and 115 vias.

It is built around the TSR 1-2490, LM3404B and SMAJ40A. Its parts include 28 capacitors, 8 resistors, 5 ICs, 5 diodes and 4 inductors.

Main components

3

README

README.md

This repository contains two distinct 4-channel LED driver hardware designs controlled by an ESP32-S3 Zero. Both versions support pulse-width modulation dimming.

  • Constant Current (CC) Driver: Designed for high-power LEDs (like the Cree XLamp Color Series) that require current regulation.

  • Constant Voltage (CV) Driver: Features 4 power MOSFETs designed for dimming standard 12V/24V RGBW LED strips.

Hardware

LED Driver CC

The CC version is built around the LM3404 LED driver IC. This is a step-down switching regulator that drives the connected LEDs in constant current mode, eliminating the need for current-limiting resistors and increasing system efficiency.

Current Sense Resistor Calculation

The maximum forward current ($I_F$) delivered to the LEDs is determined by the value of the sense resistor ($R_{SNS}$) connected to the CS pin. Use the following formula to select your resistor value:

$$R_{SNS} = \frac{V_{REF}}{I_F} = \frac{0.2\text{ V}}{I_F}$$

Using a 0.2 $\Omega$ resistor sets the maximum forward current to 1.0 A.

Parts
Part nameQuantityOrder numberDistributor
ESP32-S3-Zero1B0GV459V87Amazon
LM34044LM 3404 MAReichelt
DK_SLF10145 47uH4810-SLF10145TMouser
0R2 25124708-RNCL2512FTR200Mouser
SMAJ40A4652-SMAJ40AMouser
DCDC Converter1LME78_05-1.0Reichelt
MCV_1,5_8-G-3.811220-4888RS
Fuse 5A1576-0454005.NRMouser
MSTBVA 2-G 5,081STBVA 2-G 5,08Reichelt
Capacitor 470uF 10x10 35V2--
Capacitor 470nF 1210 50V4--
Capacitor 2.2uF 1206 50V4--
Capacitor 100nF 1206 50V8--
Capacitor 10uF 1210 50V6--
Resistor 500k 08054--

LED Driver CV

The constant voltage version is designed for standard 12V/24V RGBW LED strips with integrated current-limiting resistors, utilizing 4 power MOSFETs as low-side switches. Dedicated gate drivers rapidly charge the MOSFET gate capacitance. The resulting fast rise and fall times minimize switching power losses during high-frequency PWM operation.

Parts
Part nameQuantityOrder numberDistributor
ESP32-S3-Zero1B0GV459V87Amazon
MCV_1,5_5-G-3.811651-1803455Mouser
MSTBVA 2-G 5,081STBVA 2-G 5,08Reichelt
Capacitor 470uF 35V2FR-A 470U 63BReichelt
SMAJ40A5652-SMAJ40AMouser
Tantal 7343 100uF 16V280-T495D107M16ATE060Mouser
5V LDO1511-LD1117S50Mouser
9V DCDC Converter1TSRN 1-2490Reichelt
MCP1416 SOT-23-54579-MCP1416RTEOTVAOMouser
Mosfet STD80N6F64511-STD80N6F6Mouser
Fuse 5A1576-0454005.NRMouser
Capacitor 10uF 1210 50V4--
Capacitor 100nF 0805 50V4--
Resistor 10R 08054--

Software

ESP-NOW Control Example

The PC sends color values over a USB serial connection to the Led Driver Bridge, which then wirelessly sends those values to the Led Driver Receiver.

1. Get the Receiver's MAC Address

To pair the devices, you need the unique MAC address of the receiver board.

  1. Upload the Receiver Code to your LED driver board.
  2. Open the Serial Monitor. On startup, the ESP32 will print its MAC address.
  3. Copy this address; you will need it for the transmitter code.
2. Transmitter/Bridge Configuration & Operation

The transmitter connects to your PC via USB, listens for incoming serial data, and forwards it wirelessly.

  1. Open the Transmitter Code.
  2. Replace the placeholder bytes with your receiver's MAC address
  3. Upload the code to the transmitter ESP32.
cpp
// Example: Replace with your actual receiver MAC address
uint8_t broadcastAddress[] = {0x34, 0xB7, 0xDA, 0x5B, 0x58, 0xE0};
Sending Control Commands

The bridge ESP expects a single string formatted as R:G:B:W followed by a newline character (\n).

Example: 1024:255:150:360

You can type this manually into the Arduino Serial Monitor or automate it using a program. This repository contains two python and one html example that generate the rgbw values. Once the transmitter gets a valid message, it splits the string into individual color values and sends them out over ESP-NOW.

LedDriver_web_app_rgbw.html - control leds via a browser LedDriver_control_hsv.py - control leds via a python script LedDriver_rgbw_waves.py - python script that generates led animation

How to execute Python Scripts
  1. In folder open CMD
  2. generate environment (python -m venv env)
  3. open environment via activate.bat
  4. install modules using pip
  5. execute

Web Server Example

The Web Server example eliminates the need for a dedicated transmitter controller. The ESP32 on the driver board will act as a web server. After altering the Wi-Fi name and password and uploading the code the leds can be controlled on: http://ledcontrol.local

Parts

61
QtyValueFootprintReferences
8100nFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC16, C17, C21, C22, C26, C27, C31, C32
610uFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC3, C5, C18, C19, C24, C29
40.2RResistor_SMD:R_2512_6332Metric_Pad1.40x3.35mm_HandSolderR3, R4, R5, R6
410nFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC14, C23, C28, C33
42,2UFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC15, C20, C25, C30
4470nFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC1, C6, C7, C8
447µHInductor_SMD:L_TDK_SLF10145L2, L3, L4, L5
4536kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR19, R20, R21, R22
4D_SchottkyDiode_SMD:D_SMBD2, D3, D4, D5
4LM3404Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2, U3, U4, U5
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
3LOGOLOGOG***, G***, G***
2470uFCapacitor_SMD:CP_Elec_10x10C2, C4
11Acustom_footprints:Fuse_Littelfuse-NANO2-451_453F1
1Conn_01x02_FemaleConnector_Phoenix_MSTB:PhoenixContact_MSTBVA_2,5_2-G_1x02_P5.00mm_VerticalJ3
1Conn_01x08_PinConnector_Phoenix_MC:PhoenixContact_MCV_1,5_8-G-3.81_1x08_P3.81mm_VerticalJ1
1SMAJ40ADiode_SMD:D_SMAD1
1TSR_1-2490Converter_DCDC:Converter_DCDC_TRACO_TSR-1_THTU1
1~custom_footprints:ESP32-S3-ZeroESP32_S1

More from ThomasStaeudelmayr/LedDriver

1
  • 2 layers90 × 50 mmLed driver cv v2, the printed circuit board in 3D

    Led driver cv v2

    ThomasStaeudelmayr/LedDriver

    ESP controlled 4 Channel Led Driver (RGBW)

    42 parts

Similar boards

  • 2 layers50 × 50 mmSensactLedDriver, the printed circuit board in 3D

    SensactLedDriver

    klaus-liebler/sensact

    Es gibt vier Namespaces für Nachrichten "REQUEST" und "RESPONSE", "EVENT" und "ACKNOWLEDGE". Dies wird mit den beiden LSB des Versions-Namespace-Bytes erklärt (Somit bleiben 64 Versionierungsmöglichkeiten) Alle vier…

    67 parts4Apache-2.0
  • 4 layers99.2 × 52 mmKiwi pwr in, the printed circuit board in 3D

    Kiwi pwr in

    sunipkm/kicad-auto-importer

    A Rust workspace with two companion desktop applications for KiCad, built on a shared, GUI-agnostic core library — each has its own README with full details:

    114 partsMIT
  • 2 layers22 × 40 mmNight light, the printed circuit board in 3D

    Night light

    lucanastasio/myHomeAutomation

    Home automation stuff

    56 parts1
  • 2 layers72 × 80 mmJunior's Amp, the printed circuit board in 3D

    Junior's Amp

    Kaptain2026/AUDIO-AMPLIFIER-PCB-DESIGN

    I designed an audio amplifier pcb for my personal consumption. It has controls for Bass, Tremble and Volume. In addition you can connect to it through Bluetooth and play your music directly.

    96 parts
  • 2 layers35.8 × 28.8 mmPCB Alimentacion, the printed circuit board in 3D

    PCB Alimentacion

    Many3Stars/Another-IoT-network-for-monitoring-forests

    Author: Manuel Álvarez Herrera Supervisor: José Antonio García Souto Year: 2024

    9 parts
  • 2 layers390 × 78.2 mmMBO, the printed circuit board in 3D

    MBO

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    61 parts960Apache-2.0
  • 2 layersTUSS4470 shield, the printed circuit board in 3D

    TUSS4470 shield

    Neumi/open_echo

    Open Source echo sounder / depth sounder / SONAR for bathymetry and research. Arduino based and compatible.

    61 parts530

Questions

How big is the Led driver cc v2 PCB?

It measures 90 × 63 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Led driver cc v2 use?

61 parts, built around the TSR 1-2490, LM3404B and SMAJ40A. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Led driver cc v2 KiCad files?

From the ThomasStaeudelmayr/LedDriver repository on GitHub, at the commit this page was made from: the board is hardware/ledDriver_cc/led_driver_cc_v2.1/led_driver_cc_v2.kicad_pcb and its schematic hardware/ledDriver_cc/led_driver_cc_v2.1/led_driver_cc_v2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Led driver cc v2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask ThomasStaeudelmayr before reusing the design.