Skip to the content
2 layers102.8 × 40.5 mmStm32-led controller, the printed circuit board in 3D

Custom STM32 based led strip controller targeting WS2815. Features include Ethernet, WiFi, USB-C (USB 2.0) and a load switch for disconnecting the strip's power

Size
102.8 × 40.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
67
Nets
125
Pads
322
Tracks, vias
805, 53
Pours
4
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
16 Jan 2024
Updated
27 Mar 2026

Overview

Stm32-led controller is an open-source printed circuit board by Joseph-Ladino, from the Joseph-Ladino/stm32-led-controller repository on GitHub. It is a 2-layer board of 102.8 × 40.5 mm with 67 parts on 125 nets, routed with 805 tracks and 53 vias.

It is built around the SN74AHCT125N, W5500 and ABM8-25.000MHZ-B2-T, with the ABM8-48.000MHZ-B2-T, FSM4JH and RB1-125BAG1A among its other parts. Its parts include 28 capacitors, 17 resistors, 6 ICs, 6 connectors and 4 diodes. It belongs with the radio and wireless and lEDs and displays boards and the STM32 boards of this library.

Main components

7

README

README.md

STM32 WS2815 LED Controller

This is a hobby project using an STM32 microcontroller to control WS2815 LED strips over ethernet. While it’s a fun interesting setup, it’s still a work in progress, so the design and code have plenty of room for improvement.

Hardware Overview

The controller is built around a custom PCB and features:

  • Microcontroller: STM32G0B0RE, which handles LED effects, strip control, and MQTT connection.
  • Ethernet: W5500 chip (from Wiznet) for simple 100/10 ethernet functionality.
  • LED Connection: 4-pin connector for attaching WS2815 LED strips.
  • Debugging Options:
    • SWD (Serial Wire Debug): Required for flashing firmware.
    • USB-C Port: Used mainly for serial output, with optional 5V power.
  • Power Setup:
    • 12V Power Connector: Powers the LED strip, switched on/off with a software-controlled load switch. The power connector is subject to change in a future board REV but for now the power leads are attached using M4 machine screws.
    • Buck Converter: Steps down 12V to 5V for the data signals to the LEDs and to power the STM32 and ethernet chip.

Known Issues:

  • The pads' hole size for the 4-pin LED strip connector is too small to easily fit the wires.

Firmware Details

The firmware is written in C++ with portability and extensibility as guiding principles:

  • Connectivity: Includes partially complete, platform-independent abstractions for network interface, sockets, and MQTT client, allowing connection to MQTT servers. Implementations relies on open-source libraries but the design allows these libraries to be swapped out relatively easily.
  • LED Strip Compatibility: The firmware’s design allows control beyond the WS2815, with flexibility for WS2812, WS2811, and potentially other types through a semi-extensible interface. Currently, communication is handled by DMA timers and a circular buffer, but this setup supports future implementations.
  • Configurable, Extensible Architecture: Aiming for maximum configurability, the design focuses on semi-modular components that can be swapped or extended easily.
  • Documentation: Classes are documented using Doxygen. You can find a compiled HTML version in the Firmware/Docs folder.

Known Issues:

  • The MQTT connection intermittently drops despite active ethernet indicators (likely a bug in the reconnect code).

Getting Started

To try it out:

  1. Connect Power and LEDs:

    • Screw down a 12V power source onto the marked.
    • Attach a WS2815 LED strip to the 4-pin connector.
  2. Upload Firmware:

    • Firmware currently needs to be flashed over the SWD connector.
  3. Run and Debug:

    • Connect the USB-C port for serial output or use SWD for debugging.

Specs

FeatureDescription
MicrocontrollerSTM32G0B0RE
EthernetW5500 (100/10 Ethernet)
LED Output Connector4-pin (for WS2815 LED strip)
DebuggingUSB-C, SWD for flashing
Power Input12V screw terminal
Voltage ConversionBuck converter (12V to 5V)
Data BufferSN74125N for 5V data signals
Regulator3.3V for STM32 and W5500

Notes

This project is more of a learning exercise in PCB design and STM32 programming, so it might not be the most optimized controller out there! Any feedback or suggestions are welcome.

Parts

67
QtyValueFootprintReferences
120.1uFCapacitor_SMD:C_0603_1608MetricC1, C3, C4, C11, C12, C13, C14, C15, C16, C17, C19, C23
430pFCapacitor_SMD:C_0603_1608MetricC7, C8, C25, C26
4330Resistor_SMD:R_0603_1608MetricR3, R4, R5, R15
449.9Resistor_SMD:R_0603_1608MetricR9, R10, R11, R12
210nFCapacitor_SMD:C_0603_1608MetricC24, C28
210uFCapacitor_SMD:CP_Elec_4x5.3C18, C20
210uFCapacitor_SMD:C_0805_2012MetricC5, C6
21uFCapacitor_SMD:C_0603_1608MetricC9, C10
2220Resistor_SMD:R_0603_1608MetricR14, R16
24.7uFCapacitor_SMD:C_0603_1608MetricC2, C27
25.11KResistor_SMD:R_0603_1608MetricR1, R2
26.8nFCapacitor_SMD:C_0603_1608MetricC21, C22
2D_SchottkyDiode_SMD:D_SMA-SMB_Universal_HandsolderingD1, D2
2LEDLED_SMD:LED_0603_1608MetricD3, D4
110Resistor_SMD:R_0603_1608MetricR8
1100Resistor_SMD:R_0603_1608MetricR7
1100KResistor_SMD:R_0603_1608MetricR6
1100RInductor_SMD:L_0805_2012MetricFB1
112.4KResistor_SMD:R_0603_1608MetricR17
112401610E4-2AConnector_USB:USB_C_Receptacle_Amphenol_12401610E4-2AJ3
11MResistor_SMD:R_0603_1608MetricR13
1ABM8-25.000MHZ-B2-TSnapEDA Library:XTAL_ABM8-48.000MHZ-B2-TY2
1ABM8-48.000MHZ-B2-TSnapEDA Library:XTAL_ABM8-48.000MHZ-B2-TY1
1BLM18PG121SN1DSamacSys_Parts:BLM18SP221SN1BFB2
1Conn_02x04_Top_BottomConnector_PinSocket_2.54mm:PinSocket_2x04_P2.54mm_VerticalJ6
1DML3006LFDS-7SamacSys_Parts:DML3006LFDS7U5
1EXT_PWR_CONNCustom Connectors:1x02 M4 RINGJ1
1FSM4JHSamacSys_Parts:FSM4JHSW1
1G***Custom:logosvg2mod
1Mini360Mini360_step-down:Mini360_step-downU1
1NCV1117ST33T3GSamacSys_Parts:SOT230P700X180-4NU2
1RB1-125BAG1ARB1-125BAG1A:WIZNET_RB1-125BAG1AJ5
1SN74AHCT125NSamacSys_Parts:DIP794W53P254L1930H508Q14NU4
1STM32G0B0RETxPackage_QFP:LQFP-64_10x10mm_P0.5mmU3
1SWD_CONNConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1W5500Package_QFP:LQFP-48_7x7mm_P0.5mmU6
1WS2815Custom Connectors:LED Strip ConnectorJ4

Similar boards

  • 4 layers90 × 90 mm02 connectivity, the printed circuit board in 3D

    02 connectivity

    tomek-szczesny/byos_m2

    Build Your Own System - a collection of stackable add-ons

    110 parts
  • 2 layersGenesis, the printed circuit board in 3D

    Genesis

    iffycodes/Genesis

    Genesis Board design

    98 parts2
  • 2 layers100 × 86 mmInterfaceBoard, the printed circuit board in 3D

    InterfaceBoard

    farlepet/keithley-615-printer-boards

    Drop-in replacements for the buffer/printer boards for the Keithley 615 Electrometer

    184 partsMIT
  • 4 layers100.2 × 100.1 mmPeripheral board, the printed circuit board in 3D

    Peripheral board

    BroncoSpace-Lab/scales-hardware

    Hardware design files for the Spacecraft Compartmentalized Autonomous Learning and Edge Computing System (SCALES)

    168 parts6
  • 2 layers109 × 84 mmEnvironment sensor v1.0, the printed circuit board in 3D

    Environment sensor v1.0

    SeanDS/environment-sensor

    Ethernet-enabled dust particle, temperature and humidity sensor module

    108 parts
  • 2 layers40 × 80 mmSplitflappcb, the printed circuit board in 3D

    Splitflappcb

    codingcatgirl/split-flap-fae-pcb

    Alternative drop-in replacement PCB for David Kingsman's split-flap display

    46 parts31Apache-2.0
  • 4 layers25.7 × 26.3 mmUleaf, the printed circuit board in 3D

    Uleaf

    leechwort/uleaf

    Minimalistic STM32 devboard to run audio synthesis toolkits

    26 parts3MIT
  • 4 layers165 × 100 mmUsb scoring platform, the printed circuit board in 3D

    Usb scoring platform

    AndrewCraswell/agency

    Native KiCad engineering prototype, separate from the earlier ESP32/tscircuit board. Open usb-scoring-platform.kicadpro in KiCad 10; schematic and PCB are the editable source, with no generator required.

    224 partsMIT

Questions

How big is the Stm32-led controller PCB?

It measures 102.8 × 40.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stm32-led controller use?

67 parts, built around the SN74AHCT125N, W5500, ABM8-25.000MHZ-B2-T and ABM8-48.000MHZ-B2-T. 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 Stm32-led controller KiCad files?

From the Joseph-Ladino/stm32-led-controller repository on GitHub, at the commit this page was made from: the board is PCB/STM32 Led Controller.kicad_pcb and its schematic PCB/STM32 Led Controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stm32-led controller design in my own project?

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