Skip to the content
2 layers75 × 18.4 mmLED controller Rev 1.1, the printed circuit board in 3D

LED controller Rev 1.1

marksdude/Pikne1

A modular and repairable power bank

Size
75 × 18.4 mm
Copper layers
2
Thickness
0.8 mm
Parts
64
Nets
51
Pads
213
Tracks, vias
392, 42
Pours
6
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
18 Jul 2026
Updated
5 Nov 2026

Overview

LED controller Rev 1.1 is an open-source printed circuit board by marksdude, from the marksdude/Pikne repository on GitHub. It is a 2-layer board of 75 × 18.4 mm with 64 parts on 51 nets, routed with 392 tracks and 42 vias.

It is built around the ESP32-C3-WROOM-02-H4, TPS62A02APDDC and AO3400A. Its parts include 27 resistors, 14 capacitors, 6 ICs, 6 connectors and 3 transistors. It belongs with the ESP32 and RISC-V boards of this library.

Main components

3

README

README.md

Pikne

A modular and repairable power bank

Example.jpg Picture of rev 1.0 nonworking build

Features:

  • USB PD output up to 60W
  • 0.91 inch OLED for status monitoring
  • Attachable modules
  • Repairable design
  • 80WH capacity
  • Based on the BQ25792 and TPS25751
  • One USB-C output

Modules:

  • LED controller - Allows you to control LEDs with Home Assistant.
    • Features:
      • Up to 2.5A output
      • 5V output
      • Home Assistant integration
      • Power monitoring on each output
      • 2 monochrome outputs, 1 RGB output and 1 addressable LED output
        • Note: RGB and the monochrome outputs can't be used simultaneously.
      • ESP32-C3 based

LED controller.png

  • Flashlight
    • Features:
      • 6600lm max brightness
        • Note: The LEDs probably won't be able to run at max brightness for very long.
      • PWM dimmable
      • STM32L011F3 based

Coming modules

  • LiPo charger - Allows you to charge up to 4S LiPos from your power bank

How does it work?

Core functionality comes from the TPS25751 and BQ25792 combination.

The TPS25751 is a USB-C PD controller IC. It handles PD negotiations, manages the BQ25792 and also has integrated I2C control for the BQ25792, which simplified firmware development.

The BQ25792 is a battery charger IC with support for USB-C PD output. It charges the battery and generates higher voltages (9V, 12V, 15V, 20V) for the USB C PD output. For 5V there is a separate regulator.

For example, if you connect a device you want to charge, first your device negotiates its required voltage and current with the TPS25751. Then the TPS25751 asks the BQ25792 to generate the requested voltage if it is above 5V. Once the correct voltage is available, the TPS25751 enables the output and your device starts charging.

An ATmega328P acts as the main controller. It monitors everything, handles faults, displays battery information and communicates with the modules.

The BMS is based on the BQ41Z50, a 2-4S battery manager IC. It has all the necessary protections needed for a lithium-ion battery pack and monitors its SoC (State of Charge). The ATmega328P requests battery information from the BMS over SMBus.

Modules can communicate with the power bank over UART through the pogo pins above the USB-C port. A connected module is idendified with an ID number sent by the module (1 for LED controller, 2 for Flashlight). The module can then request battery information or use the button on the power bank for additional control.

LED controller

The LED controller is based on an ESP32-C3-WROOM-02U that is running ESPHome. There are 3 external MOSFETs that are used for the two monochrome outputs and one RGB output. An RGB output needs three MOSFETs, one for each color channel. Since there are only three, the monochrome outputs have to be connected together with two of the RGB channels. This is why the monochrome and RGB outputs can't be used simultaneously. INA219s are used for monitoring power draw of each output.

Wiring

All of the smaller connectors are JST-ZH, while the battery connectors are JST-VH.
The main PCB has 4 connectors. One goes to the pogo connector, two to the BMS and one is for programming.

Main PCb connectors.png

On the BMS two connectors go to the main PCB and two to the battery pack.

BMS connectors.png

The battery is connected in a 2S2P configuration. There are cutouts in the bottom of the battery holder for routing the wires and for the thermistors. BAT+ and BAT- connect to the BMS input, thermistors and the balance lead connect to the BMS battery sense connector.

The button has to be soldered to the main PCB. The pogo connector is connected to the main PCB.

LED controller

Not much wiring to do here just connect the pogo connector to the PCB.

Output pinout:

LED controller pinout.png

Firmware

Firmware is currently very limited. Version 0.1 has a basic menu to check some battery information, that's about it. It relies on the ArduinoSMBus library for communicating with the BMS and the Adafruit_SSD1306 and Adafruit GFX Library libraries for drawing on the OLED. I plan to move away from these libraries in the future.

There is still a lot left to be implemented.

Why did I make this?

It all started because I was tired of changing the AA batteries in my mom's battery-powered lights. I wanted to make the process faster and less wasteful, so I thought it would be a good idea to design an easily removable, rechargeable battery pack for the lights and also integrate them with Home Assistant. The original idea was going to have 2 parts the battery pack and a controller board. They were supposed to be held together with magnets, connected with pogo pins and communicate over UART. Then I thought, why not turn the battery pack into a power bank so it could be used for things other than the lights? That's what I did. The idea of making the battery pack easily removable led me to make the power bank modular. That's how Pikne was born.

Parts

64
QtyValueFootprintReferences
810Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR13, R14, R17, R18, R20, R21, R23, R24
8100nFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC5, C6, C7, C9, C10, C12, C13, C14
610kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R6, R7, R8, R10, R11
420mResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR15, R16, R19, R22
4INA219AxDCNPackage_TO_SOT_SMD:SOT-23-8U1, U2, U3, U5
3AO3400APackage_TO_SOT_SMD:SOT-23Q1, Q2, Q3
222Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR26, R27
24.7kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR9, R12
25.1kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4, R5
2LEDConnector_JST:JST_XH_S2B-XH-A-1_1x02_P2.50mm_HorizontalJ1, J2
1100kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR3
1100nFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC8
1120pfCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC3
1150kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR25
11uHInductor_SMD:L_1008_2520Metric_Pad1.43x2.20mm_HandSolderL1
11ufCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC4
122uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC11
122ufCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2
13.3VTestPoint:TestPoint_Pad_D1.0mmTP1
1300kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR1
14.7ufCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1
15VTestPoint:TestPoint_Pad_D1.0mmTP2
1BOOTButton_Switch_SMD:SW_SPST_B3U-1000PSW3
1ESP32-C3-WROOM-02RF_Module:ESP32-C3-WROOM-02UU7
1ON/OFFButton_Switch_SMD:SW_SPST_B3U-1000PSW1
1RESETButton_Switch_SMD:SW_SPST_B3U-1000PSW2
1RGB 2A maxConnector_JST:JST_XH_S3B-XH-A-1_1x03_P2.50mm_HorizontalJ5
1RGB 2A maxConnector_JST:JST_XH_S4B-XH-A-1_1x04_P2.50mm_HorizontalJ4
1TPS62A02APDDCPackage_TO_SOT_SMD:SOT-23-6U4
1UARTConnector_JST:JST_ZH_B3B-ZR_1x03_P1.50mm_VerticalJ7
1UP32-1-C-H-G-BMT-P24UP32-1-C-H-G-BMT-P24:SAMESKY_UP32-1-C-H-G-BMT-P24J3

The 62 most common of 64 parts.

More from marksdude/Pikne

7
  • 2 layers72 × 26.7 mmLiPo charger Rev 1.0, the printed circuit board in 3D

    LiPo charger Rev 1.0

    marksdude/Pikne

    A modular and repairable power bank

    117 parts1
  • 4 layers60 × 30 mmPikne Rev 1.1, the printed circuit board in 3D

    Pikne Rev 1.1

    marksdude/Pikne

    A modular and repairable power bank

    112 parts1
  • 2 layers73 × 20.8 mmLED driver Rev 1.1, the printed circuit board in 3D

    LED driver Rev 1.1

    marksdude/Pikne

    A modular and repairable power bank

    67 parts1
  • 2 layers74 × 21.5 mmLED, the printed circuit board in 3D

    LED

    marksdude/Pikne

    A modular and repairable power bank

    38 parts1
  • 4 layers50.9 × 18 mmBMS Rev 1.1, the printed circuit board in 3D

    BMS Rev 1.1

    marksdude/Pikne

    A modular and repairable power bank

    35 parts1
  • 2 layers25 × 6.5 mmConnector, the printed circuit board in 3D

    Connector

    marksdude/Pikne

    A modular and repairable power bank

    7 parts1
  • 2 layers37.5 × 10 mmConnector, the printed circuit board in 3D

    Connector

    marksdude/Pikne

    A modular and repairable power bank

    5 parts1

Similar boards

  • 4 layers65 × 56.5 mmROV PCIE USB HUB FINAL, the printed circuit board in 3D

    ROV PCIE USB HUB FINAL

    samnadol/ROV_PCIe_USB_HUB

    up-to-16 port USB hub + PCIe host controller "hat" for Pi 5

    171 parts
  • 4 layers100 × 65 mmFpga pcb, the printed circuit board in 3D

    Fpga pcb

    warhammercasey/MDS_PCB

    230 parts
  • 6 layers50 × 60 mmHealthylink compute v5, the printed circuit board in 3D

    Healthylink compute v5

    Protocentral/protocentral_healthypi6_hardware

    Open hardware design files for HealthyPi 6 — STM32H757 vital-signs monitor with the HealthyLink modular expansion bus

    124 parts2CERN-OHL-P-2.0
  • 4 layers132.5 × 82 mmWandfernsprecher, the printed circuit board in 3D

    Wandfernsprecher

    hanebefl/wandfernsprecher-hw

    GSM conversion for a old German Wandfernsprecher telephone

    93 parts6
  • 4 layers51 × 33 mmSmolExG, the printed circuit board in 3D

    SmolExG

    matthewlai/SmolExG

    63 parts1
  • 2 layers64 × 38 mmLedctl, the printed circuit board in 3D

    Ledctl

    BilginistAdam/esp32-led-controller

    12–24 V LED şeritleri WiFi üzerinden açıp kapatan ve PWM ile dimleyen küçük bir kontrol kartı. Proje KiCad donanım dosyalarını, iki firmware seçeneğini (ESPHome / PlatformIO) ve 3D yazıcıyla basılabilen bir kutuyu…

    36 parts
  • 6 layers63 × 73.2 mmChris, the printed circuit board in 3D

    Chris

    dashonigkuchen/embedded-projects

    A collection of embedded development projects, experiments, and hardware/software prototypes.

    89 partsMIT
  • 4 layers85 × 40 mmWled controller, the printed circuit board in 3D

    Wled controller

    electro-practically/wled-controller

    WLED ESP32 controller powered by USB-C Power Delivery.

    99 partsCERN-OHL-P-2.0

Questions

How big is the LED controller Rev 1.1 PCB?

It measures 75 × 18.4 mm and has 2 copper layers, 0.8 mm thick.

What parts does the LED controller Rev 1.1 use?

64 parts, built around the ESP32-C3-WROOM-02-H4, TPS62A02APDDC and AO3400A. 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 controller Rev 1.1 KiCad files?

From the marksdude/Pikne repository on GitHub, at the commit this page was made from: the board is Modules/LED controller/PCB/LED controller/LED controller Rev 1.1.kicad_pcb and its schematic BMS/BMS Rev 1.1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the LED controller Rev 1.1 design in my own project?

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