Skip to the content
2 layers36.8 × 64.5 mmRelay tester, the printed circuit board in 3D

Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

Size
36.8 × 64.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
36
Nets
58
Pads
152
Tracks, vias
253, 51
Pours
3
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
3 Aug 2020
Updated
30 Oct 2026

Overview

Relay tester is an open-source printed circuit board by brainsmoke, from the brainsmoke/leddriver3d repository on GitHub. It is a 2-layer board of 36.8 × 64.5 mm with 36 parts on 58 nets, routed with 253 tracks and 51 vias.

It is built around the CH340B and WS2812B. Its parts include 12 capacitors, 9 resistors, 7 connectors, 4 diodes and 3 ICs. It belongs with the home automation and IoT and lEDs and displays boards and the ESP32 and STM32 boards of this library.

Main components

2

README

README.md

LED Driver for 3D sculptures based on an ESP32 with PSRAM + an STM32F0XX

Design:

text
   programming &
  micropython REPL
         ||
     .--------.
     |  usb   |
     |   to   |  unified codebase       project specific firmware
     | serial |    /                            \
     '--------'   /                              \
         ||      /   standardized protocol        \
   .--------------.            |                  _____________.--
   |  ESP32-D0WD  |          (UART)              |             |-- multiple LED strands
   |   8M PSRAM   |-- 16bit/color LED frames --> |  STM32F0XX  |-- (temporal dithered)
   |  16M FLASH   |                              |_____________|--
   '--------------'                                            '--

ESP Code firmware/esp32/

  • Running micropython

  • 60 FPS 16bit/color (48bit) animation with some routines written in C for speed.

  • Animations use 3D-coordinates of the LEDs, as well as the direction they're pointing at

  • Gamma correction & support for multiple LED orderings.

  • Cached animation frames to prevent garbage collection hiccups

  • Web interface (HTTPS capable, but no automatic cert. updates)

STM32 Code firmware/stm32/

Protocol

Sending a frame: ( [16 bit brightness]* [ FF FF FF F0 ] )*

Brightness must be little endian integers in the (inclusive) range [0 .. 0xFF00]

[ FF FF FF F0 ] is an end of frame marker and allows the protocol to synchronize in the event of an uneven number of bytes being written to the serial port

The firmware is completely agnostic about the color ordering.

Some of the following firmwares allow for tuning of the pulse interval:

( [16 bit number]* [ FF FF FF F3 ] )*

The given number is the number of cycles outputting a byte should take. (Useful for increasing the FPS and thus improving temporal dithering.

dither16.bin

Read in 16bit/color data in, drive 8 ws2812 LED strips in parallel

strip4.bin

Read in 16bit/color data in, drive 4 ws2812 LED strips in parallel

strip5.bin

Read in 16bit/color data in, drive 5 ws2812 LED strips in parallel, Supports tuning the pulse interval.

relayball.bin

Read in 16bit/color data in, drive 4 circuit-routed ws2812 LED meshes. Small LED strands are connected through PADAUK based relay-chips (firmware/pdk/relay/) that use in-band messages to build up routing circuits.

uartball16.bin

Drives up-to 8 busses with PADAUK based LED drivers which read 38400 baud uart. firmware/pdk/softpwm/

dither8.bin

Older code using a different input protocol, reads 8bit/color data & transforms this to 16 bit colors after gamma correction

STM32 Tester code

jitter_timer.bin

Tester for PADAUK ws2812 relay chips. firmware/pdk/relay/

Tests for functionality and measures the clock speed deviation (for binning).

timing_experiment.bin

Dynamically adjust the T1H and T1L intervals from the ws2812 protocol to test its limits.

Parts

36
QtyValueFootprintReferences
7100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C3, C4, C5, C6, C7, C10
4100kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R4, R6, R9
4Conn_01x04_MaleConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4, J5, J6, J7
4WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD1, D2, D3, D4
210kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR7, R8
210uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC8, C9
214pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC11, C12
25.1kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R3
11kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR5
11uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1
1AP2204K-3.3Package_TO_SOT_SMD:SOT-23-5U2
1CH340BPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU1
1Conn_01x03_MaleConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2
1Conn_01x08_Malelib:padauk_test_aJ3
1Crystal_GND24lib:TSX-3225Y1
1STM32F030F4PxPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU3
1USB_C_Receptacle_USB2.0footprints:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1

More from brainsmoke/leddriver3d

12
  • 2 layers60 × 50 mmDriver wide, the printed circuit board in 3D

    Driver wide

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    73 parts11
  • 4 layers25.4 × 34.3 mmDriver v3.2, the printed circuit board in 3D

    Driver v3.2

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    36 parts11
  • 4 layers25.4 × 34.3 mmDriver v3, the printed circuit board in 3D

    Driver v3

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    36 parts11
  • 4 layers25.4 × 34.3 mmDriver v2, the printed circuit board in 3D

    Driver v2

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    35 parts11
  • 4 layers25.4 × 30.4 mmDriver v4, the printed circuit board in 3D

    Driver v4

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    33 parts11
  • 4 layers25.4 × 34.3 mmDriver v2.1, the printed circuit board in 3D

    Driver v2.1

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    31 parts11
  • 4 layers25.4 × 34.3 mmDriver v3.1, the printed circuit board in 3D

    Driver v3.1

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    31 parts11
  • 4 layers33 × 38.4 mmDriver v1, the printed circuit board in 3D

    Driver v1

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    30 parts11
  • 2 layers82.8 × 70.7 mmDriver aluball v1, the printed circuit board in 3D

    Driver aluball v1

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    29 parts11
  • 2 layers48 × 50.1 mmDriver penta, the printed circuit board in 3D

    Driver penta

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    27 parts11
  • 4 layers25.4 × 27.7 mmDriver v4.2, the printed circuit board in 3D

    Driver v4.2

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    21 parts11
  • 2 layers47.5 × 20 mmDriver slim v1, the printed circuit board in 3D

    Driver slim v1

    brainsmoke/leddriver3d

    Renamed from esp32leddriver because it also contains code and PCBs for other MCUs

    17 parts11

Similar boards

  • 4 layers56 × 56 mmStepper driver, the printed circuit board in 3D

    Stepper driver

    matthewlai/ESP32Stepper

    This is the PCB design and firmware for a Trinamic TMC2590-based stepper motor driver with an ESP32 microcontroller.

    116 parts5Apache-2.0
  • 2 layers137.2 × 83.8 mmPWA REV2, the printed circuit board in 3D

    PWA REV2

    PubInv/krake

    The Krake™ is a Wi-Fi–enabled server using an MQTT broker, which means it can be controlled remotely by other devices ("clients") via the internet.

    215 parts9AGPL-3.0
  • 2 layers18 × 11 mmBase, the printed circuit board in 3D

    Base

    brainsmoke/uuart

    14 parts3
  • 2 layers72.8 × 38 mmFanControl, the printed circuit board in 3D

    FanControl

    bakadave/fanControl

    104 parts
  • 2 layers60 × 60 mmFan controller with ch, the printed circuit board in 3D

    Fan controller with ch

    ferrybig/70w-fan-controller

    A PlatformIO project for Arduino Uno that implements an intelligent fan controller with sensor monitoring, real-time clock, and OLED display.

    51 parts
  • 2 layers29 × 29 mmModule CH340B USB C, the printed circuit board in 3D

    Module CH340B USB C

    Squantor/various_PCB

    Various little boards are added here like level shifters, oscillator breakouts and other simple PCB's. Most of these boards are breadboard plugin friendly.

    31 parts4MIT
  • 2 layers50 × 50 mmNuclone LPC845M301BD48 small, the printed circuit board in 3D

    Nuclone LPC845M301BD48 small

    Squantor/squantorDevelBoards

    Various development boards/test for microcontrollers, check for breakouts here

    72 parts1MIT

Questions

How big is the Relay tester PCB?

It measures 36.8 × 64.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Relay tester use?

36 parts, built around the CH340B and WS2812B. 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 Relay tester KiCad files?

From the brainsmoke/leddriver3d repository on GitHub, at the commit this page was made from: the board is pcb/relay_tester/pcb.kicad_pcb and its schematic pcb/driver_aluball_v1/pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Relay tester design in my own project?

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