Skip to the content
2 layers95.3 × 44.5 mmLEDBrickHome, the printed circuit board in 3D

Wi-Fi controller compatible with various Lego Lighting kits

Size
95.3 × 44.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
62
Nets
72
Pads
292
Tracks, vias
459, 89
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
7 Dec 2024
Updated
13 May 2025

Overview

LEDBrickHome is an open-source printed circuit board by solhuebner, from the solhuebner/LEDBrickHome repository on GitHub, published under the CERN-OHL-W-2.0 licence. It is a 2-layer board of 95.3 × 44.5 mm with 62 parts on 72 nets, routed with 459 tracks and 89 vias.

It is built around the ESP32-WROOM-32E-N16, AZ1117IH-3.3TRG1 and 2N7002K, with the SM02B-SURS-TF, SM04B-SURS-TF and BC817 among its other parts. Its parts include 22 connectors, 18 transistors, 10 resistors, 7 capacitors and 3 ICs. It belongs with the lEDs and displays and radio and wireless boards and the ESP32 boards of this library.

Main components

6

README

README.md

LEDBrickHome

Wi-Fi controller compatible with various Lego Lighting kits, designed to enable integration of lighting into Home Assistant via ESPHome. Supports single colour and RGB dimmable lights, lighting effects and use in scenes.

Video of lighting in action

Versions

[!WARNING]
Versions up to and included v1.1 have a hardware design issue that prevents the use of USB-C to USB-C cables. They will work correctly with USB-A to USB-C cables.

Different versions of LEDBrickHome may exist in the future with different numbers of output connectors (e.g. to reduce cost or size).

To maximise available number of channels, RGB (4-pin) outputs are shared with single colour (2-pin) outputs. In other words, a 16 PWM controller can support a total of 16 different outputs of a single colour, but for each RGB output used, three single colour outputs are lost.

VersionTotal PWM Outputs2-pin outputs4-pin outputsDimensions
16ch-v1.01616596 x 45 mm
16ch-v1.11616568 x 45 mm

16ch-v1

16ch-v1 is based on an ESP32-WROOM (exact memory size does not matter), uses a CP2102N (drivers) for it's USB->UART bridge, and is powered by a USB-C connector. Outputs are grouped in blocks and identified on the silkscreen which 2-pin outputs are shared with 4-pin outputs.

PCB showing ESP32 and output connectors

16ch-v1.1

16ch-v1.1 is a smaller version of the previous 16ch design, using a CH340C (drivers) for it's USB->UART bridge, but is otherwise functionally identical.

Effects

Various effects are available in ESPHome, which are explained in the documentation, some of these are included in the code examples already. For flickering torch effects, the default flicker intensity (of 1.5%) will want to be increased. The demo video above has flicker set at 10%.

Compatibility

LEDBrickHome is compatible with lighting kits that use a JST SUR connector with 5V on pin 1, and switched 0V on pin 2 (plus pins 3 & 4 for RGB connectors).

The below table shows the results of our testing. You should verify connector type and pinout yourself for your own project.

Light SystemCompatible?Notes
Light My Bricks V1:white_check_mark:
Light My Bricks V2:x:Swapped to a flat ribbon style connector
Briksmax V1:white_check_mark:
Briksmax V2:x:Similar but not compatible with JST SUR
Kyglaring:white_check_mark:

2 pin JST SUR connector

4 pin JST SUR connector Note, order of Red, Green and Blue channels is not important and can be changed in your configuration file.

PCB Design

The PCB design is created in KiCAD V7, and is a simple 2-layer PCB.

Tips

  • Do not add the web server to the code, this seems to cause the ESP32 to reboot regularly.
  • Boot and Reset buttons are included, but shouldn't be required for programming
  • Original ESP32's are used rather than newer parts (e.g. S3, C3, etc.) as the original parts support 16 PWM outputs, whereas the newer parts only support 8 PWM outputs.
  • RGB outputs may need their output channels swapping if the colour mapping is wrong. i.e. if you ask for Red but get Green, change the appropriate lines in your configuration file.

Parts

62
QtyValueFootprintReferences
162N7002KPackage_TO_SOT_SMD:SOT-23Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16, Q17, Q18
16SM02B-SURS-TFConnector_JST:JST_SUR_SM02B-SURS-TF_1x02-1MP_P0.80mm_HorizontalJ2, J3, J4, J5, J6, J7, J8, J9, J10, J11, J12, J13, J14, J15, J16, J17
5SM04B-SURS-TFConnector_JST:JST_SUR_SM04B-SURS-TF_1x04-1MP_P0.80mm_HorizontalJ18, J19, J20, J21, J22
310kResistor_SMD:R_0402_1005MetricR6, R7, R10
310uCapacitor_SMD:C_0603_1608MetricC1, C2, C5
20Resistor_SMD:R_0402_1005MetricR8, R9
2100nCapacitor_SMD:C_0603_1608MetricC3, C4
21uCapacitor_SMD:C_0603_1608MetricC6, C7
25k1Resistor_SMD:R_0402_1005MetricR1, R2
2BC817Package_TO_SOT_SMD:SOT-23Q1, Q2
2SW_PushButton_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2SW1, SW2
11kResistor_SMD:R_0402_1005MetricR3
122k1Resistor_SMD:R_0402_1005MetricR5
147k5Resistor_SMD:R_0402_1005MetricR4
1AZ1117IH-3.3TRG1Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1CP2102N-Axx-xQFN24Package_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.6x2.6mmU3
1ESP32-WROOM-32E-N16Espressif:ESP32-WROOM-32EU4
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ1

More from solhuebner/LEDBrickHome

1
  • 2 layers67.6 × 44.5 mmLEDBrickHome, the printed circuit board in 3D

    LEDBrickHome

    solhuebner/LEDBrickHome

    Wi-Fi controller compatible with various Lego Lighting kits

    61 partsCERN-OHL-W-2.0

Similar boards

  • 2 layers107 × 62 mmZero crossing, the printed circuit board in 3D

    Zero crossing

    machadoleonardo94/Brewers_control_panel

    73 parts
  • 2 layers63.5 × 99.1 mmBlugasm, the printed circuit board in 3D

    Blugasm

    saawsm/Blugasm

    A battery powered nogasm with support for bluetooth toys.

    74 parts19GPL-3.0
  • 4 layers89 × 58 mmHALMET, the printed circuit board in 3D

    HALMET

    hatlabs/HALMET-hardware

    Hat Labs Marine Engine & Tank interface hardware design files

    227 parts8CC-BY-4.0
  • 2 layers116 × 31 mmOpengeiger, the printed circuit board in 3D

    Opengeiger

    fredriknk/eikgeiger

    IOT Geigercounter for workshop

    96 parts3MIT
  • 4 layers90 × 66 mmAudio, the printed circuit board in 3D

    Audio

    AndreasNielsen4000/Group-7-IoT-Project

    The project is a wireless speaker system that can play music from a Bluetooth or WiFi source. The system consists of four main parts with subcomponents:

    162 parts1
  • 4 layers65 × 65 mmProjekt, the printed circuit board in 3D

    Projekt

    jegor377/mini-car

    Mini rc car

    119 parts
  • 2 layers72.3 × 90 mmHMI LVDC Inverter, the printed circuit board in 3D

    HMI LVDC Inverter

    LManuC/ProyectoFinal-Grupo5-VariadorDeFrecuencia

    Variador de frecuencia para motores de 1/3HP trifásicos de 0-500Hz

    120 parts
  • 4 layers160 × 100 mmMastertemp esp32, the printed circuit board in 3D

    Mastertemp esp32

    ryanbjohnson/PentairMasterTempESP32

    This folder is the KiCad project area for the MasterTemp 125 ESP32 interface board.

    95 partsMIT

Questions

How big is the LEDBrickHome PCB?

It measures 95.3 × 44.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the LEDBrickHome use?

62 parts, built around the ESP32-WROOM-32E-N16, AZ1117IH-3.3TRG1, 2N7002K and SM02B-SURS-TF. 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 LEDBrickHome KiCad files?

From the solhuebner/LEDBrickHome repository on GitHub, at the commit this page was made from: the board is PCB/16ch-v1/LEDBrickHome.kicad_pcb and its schematic PCB/16ch-v1.1/LEDBrickHome.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the LEDBrickHome design in my own project?

Its repository publishes it under the CERN-OHL-W-2.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).