
Led bage
caesarakalaeii/rgb-badge
The badge to end all badges, cutomizable functions, crazy tight led matrix

The badge to end all badges, cutomizable functions, crazy tight led matrix
Led bage sample is an open-source printed circuit board by caesarakalaeii, from the caesarakalaeii/rgb-badge repository on GitHub, published under the AGPL-3.0 licence. It is a 4-layer board of 28.4 × 22.1 mm with 136 parts on 110 nets, routed with 470 tracks and 213 vias.
It is built around the 74AHCT1G125SE, XL-1010RGBC-WS2812B-DZ and CL21B105KAFNNNE, with the AO4407A, CL21A106KAYNNNE and RCT02100KFLF among its other parts. Its parts include 100 diodes, 28 capacitors, 4 resistors, 2 ICs and 1 transistor. It belongs with the lEDs and displays boards of this library.
A wearable RGB matrix badge featuring 2560 individually addressable LEDs on a 71 × 150 mm board with a 62.5 × 104 mm portrait display area.
This project implements an ultra-dense LED matrix badge designed for human viewing (not camera-optimized) with parallel data lanes to achieve smooth 60+ FPS refresh rates. The design uses a two-board architecture separating the dense LED matrix from controller/power electronics for improved manufacturability and maintainability.
| Parameter | Value |
|---|---|
| Display Area | 62.5 mm × 104 mm (portrait) |
| Resolution | 40 × 64 pixels (2560 total) |
| Board Size | 71 mm × 150 mm, 5 mm corner radius |
| Pixel Pitch | 1.5625 mm (X) × 1.625 mm (Y) |
| Target Refresh Rate | 60+ FPS |
| Power Source | USB-C PD Powerbank |
| Quantity | ~10 boards |
| PCB Tool | KiCad |
A quick browser-based mockup of the 40 × 64 LED grid lives in mockup/. It cycles through 11 test animations (rainbow, plasma, sparkle, scrolling text, rings, matrix rain, A* snake, thumbs-up, pride flag, a multi-scene cat, and a video-driven Bad Apple) so you can sanity-check what 2560 LEDs at this pitch can actually display before writing firmware.
Run from the repo root:
python3 -m http.server -d mockup 8000
# then open http://localhost:8000/Cycle with ← / → arrow keys or the on-screen buttons; space pauses.
nix develop provides KiCad (with import pcbnew working from plain Python), PlatformIO, ffmpeg and the linters. nix flake show lists the available commands.
Board layout changes are scripted in cad/ and checked end to end (outline, lanyard holes, power-entry wiring, silkscreen art, fab minimums, fab outputs, JLCPCB assembly files, DRC with schematic parity) by:
python3 cad/test_board.pyFab outputs (6-layer Gerbers + drill and their zip, BOM, centroid, and the JLCPCB BOM/CPL with LCSC parts and placement corrections, ADR 0004) are regenerated into cad/fab/ by:
python3 cad/export_fab.pyDesign decisions are recorded in docs/adr/.
cad/led_bage.*)
DA1..DH320)cad/art/front.png / back.png (1-bit exports of the artist's PSD layers, canvas = board outline) by cad/add_silkscreen_art.pyData netclass (ADR 0003)A 100-LED sample board (cad/led_bage_sample/) has been fabricated as a reference.
Rationale: Separating control from display allows safe iteration on USB/PD/MCU without risking the expensive, dense LED field.
Why this LED:
Electrical Characteristics:
Footprint Details:
Selection criteria:
USB-C PD Powerbank (25000mAh, 145W class)
↓ (negotiated at 9V baseline, 12V/15V/20V optional)
Buck Converter
↓ (5V rail for LEDs)
LED Matrix (capped brightness in firmware)
+
↓ (3.3V regulator)
ESP32-S3 + LogicPD Voltage Selection:
Rationale:
Mapping:
Refresh Math (per lane):
1 pixel = 24 bits × 1.2 µs ≈ 28.8 µs
320 pixels ≈ 9.22 ms
+ Reset time (>200 µs) ≈ 9.4–9.8 ms total
→ Max refresh ≈ 100+ FPS per laneActual target: 60 FPS with comfortable headroom
At level shifter output:
Optional at matrix connector:
Pads: 4× corner pads, 0.40mm × 0.40mm
Courtyard: Minimal (allow overlap for dense packing)
Soldermask: Conservative expansion per fab limits
Pitch: 1.5625mm (X) × 1.625mm (Y)Datasheet requirement: "Decoupling capacitance between each LED is essential"
Implemented:
Primary concern: Transients and current steps, not just average power
Design for:
Enforcement: Global brightness limiting in firmware to prevent exceeding powerbank capability
Recommendation: Order LEDs in moisture-barrier bags, open only when ready for assembly, and complete assembly quickly.
Matrix PCB Finish
cad/fab/)Controller/Power PCB
Firmware Architecture
Prototype & Test
| Component | Quantity | Unit Cost | Total |
|---|---|---|---|
| XL-1010RGBC-2812B LED | 2560 | €0.03 | €76.80 |
| ESP32-S3 Module | 1 | ~€5 | €5 |
| Buck Converter IC + passives | 1 | ~€2-5 | €3.50 |
| Level Shifters (8ch) | 1-2 | ~€1 | €2 |
| PCBs (Matrix + Controller) | 2 | ~€30-50 | €40 |
| Connectors, passives, misc | - | - | €10-20 |
| Total per badge (estimate) | ~€140-150 |
Note: Costs are rough estimates and will vary with supplier, quantity, and shipping.
Key Principles:
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0) - see the LICENSE file for details.
Project Status: Active Development Last Updated: 2026-10-17
| Qty | Value | Footprint | References |
|---|---|---|---|
| 100 | XL-1010RGBC-WS2812B | LED_SMD:LED_WS2812B-1010_PLCC4_1.0x1.0mm | D1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D100 +84 |
| 25 | CL21B105KAFNNNE | Capacitor_SMD:C_0603_1608Metric | C1, C2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23 +9 |
| 2 | 0.1uF_0603_16V | Capacitor_SMD:C_0603_1608Metric | C26, C27 |
| 2 | 74AHCT1G125 | JLCPCB:SOT-23-5_L3.0-W1.7-P0.95-LS2.8-BL | U1, U2 |
| 2 | RCT02330RFLF | Resistor_SMD:R_0402_1005Metric | R1, R2 |
| 1 | AO4407A | AO4407A:SOIC127P600X175-8N | Q2 |
| 1 | CL21A106KAYNNNE | Capacitor_SMD:C_0805_2012Metric | C28 |
| 1 | Conn_01x06 | Connector_JST:JST_SH_BM06B-SRSS-TB_1x06-1MP_P1.00mm_Vertical | J1 |
| 1 | RCT02100KFLF | Resistor_SMD:R_0402_1005Metric | R3 |
| 1 | RCT0210KFLF | Resistor_SMD:R_0402_1005Metric | R4 |

caesarakalaeii/rgb-badge
The badge to end all badges, cutomizable functions, crazy tight led matrix

stanleyondrus/ILDAWaveX16
ILDAWaveX16 is an open-source, high-resolution, wireless laser DAC with SD-card playback, network control, and ILDA output.


jonny190/TableLight
A 3D-printable, battery-powered, USB-C rechargeable table lamp in the classic "Poldina" shape - honeycomb disc base, thin stem, down-firing cone shade with a white top - running WLED on an ESP32, with a capacitive touch…

develmusa/Thermomine
Thermomine is a 3D-printed naval mine that sits on the gravel of your tank. A sealed LED inside glows blue when the water is too cold, green when it's just right, and red when it's too warm.


ZigEmbeddedGroup/sycl-badge
The badge for the SYCL conference! https://zigembeddedgroup.github.io/sycl-badge/

bkw777/Teeprom
These are all virtual UV EPROMS / virtual mask roms, using electrically programmable EEPROM, FRAM, or FLASH with the pinout adapted to work in place of 27Cxx UV/OTP EPROMS or standard mask roms, on a specially shaped…

It measures 28.4 × 22.1 mm and has 4 copper layers, 1.6 mm thick.
136 parts, built around the 74AHCT1G125SE, XL-1010RGBC-WS2812B-DZ, CL21B105KAFNNNE and AO4407A. 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.
From the caesarakalaeii/rgb-badge repository on GitHub, at the commit this page was made from: the board is cad/led_bage_sample/led_bage_sample.kicad_pcb and its schematic cad/led_bage.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the AGPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).