Skip to the content
2 layers11 × 16 mmLeif key, the printed circuit board in 3D

Hardware (KiCad) and CH552 firmware for the Leif focus key, a tiny USB-C key for Mac focus sessions.

Size
11 × 16 mm
Copper layers
2
Thickness
1 mm
Parts
14
Nets
8
Pads
70
Tracks, vias
111, 14
Pours
5
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
20 Oct 2026
Updated
20 Oct 2026

Overview

Leif key is an open-source printed circuit board by smillay1, from the smillay1/leif-key repository on GitHub, published under the MIT licence. It is a 2-layer board of 11 × 16 mm with 14 parts on 8 nets, routed with 111 tracks and 14 vias.

It is built around the CH552T and USBLC6-2SC6. Its parts include 3 capacitors, 2 resistors, 2 ICs and 1 connector. It belongs with the 8051 (CH55x, STC, AT89) boards of this library.

Main components

2

README

README.md

Leif Key

The hardware and firmware for the Leif focus key: a tiny USB-C key that starts and ends focus sessions on a Mac. Plug it in to start a session, take it away, plug it in again to finish. The key only identifies itself; the Leif app on the Mac does the rest.

The Leif Key board, top side

What's here

FolderWhat it isLicence
hardware/KiCad board (11 × 16 mm, 2 layers), schematic, JLCPCB fabrication files (Gerbers, BOM, placement) and the Python scripts that generate themCERN-OHL-P-2.0
firmware/Bare-metal C firmware for the WCH CH552T (SDCC), a prebuilt image, and the flashing and serial-numbering toolsMIT

The board

  • U1 WCH CH552T, an 8051 microcontroller with full-speed USB
  • U2 ST USBLC6-2SC6 ESD protection on D+/D-
  • J1 USB-C plug (Hanxia HX TYPE C-M 24P RA-ST, LCSC C55200595) at the board edge, 1.0 mm PCB
  • R1 5.1 kΩ on CC1 so the Mac turns on VBUS; R2 10 kΩ for the bootloader fallback
  • Test pads TP1–TP6 for power, data, boot and reset

Schematic

How the key works

It enumerates as a vendor-specific USB device with no endpoints, so macOS needs no driver. Product Leif Key, manufacturer Leif, serial LEIF-000001, LEIF-000002, ... Two vendor control requests: 0xB0 (with wValue 0x1EAF) reboots into the CH552 USB bootloader so a sealed key can be re-flashed, and 0xB1 returns the firmware version. If the firmware is ever broken, bridging TP5 to TP3 while plugging in starts the bootloader.

Details, build steps and flashing are in firmware/README.md. Ordering the board is described in hardware/ORDERING.md.

USB IDs

Currently 0x1209 / 0x0001 (pid.codes testing ID). A dedicated pid.codes PID has been requested and will be listed here once assigned.

Licences

Firmware and tools: MIT (LICENSE). Hardware design files: CERN Open Hardware Licence Version 2, Permissive (hardware/LICENSE). The Leif name and logo are not covered by these licences.

Parts

14
QtyValueFootprintReferences
2100nFC_0402_1005MetricC2, C3
110kR_0402_1005MetricR2
11uFC_0402_1005MetricC1
15.1k 1%R_0402_1005MetricR1
1BOOTTestPoint_Pad_D1.0mmTP5
1CH552TTSSOP-20_4.4x6.5mm_P0.65mmU1
1D+TestPoint_Pad_D1.0mmTP3
1D-TestPoint_Pad_D1.0mmTP4
1GNDTestPoint_Pad_D1.0mmTP2
1HX TYPE C-M 24P RA-STLeif:Hanxia_HX_TYPE-C-M_24P_RA-ST_USB-C_PlugJ1
1RSTTestPoint_Pad_D1.0mmTP6
1USBLC6-2SC6SOT-23-6U2
1VBUSTestPoint_Pad_D1.0mmTP1

Similar boards

  • 2 layers149.2 × 82.5 mm0xPM, the printed circuit board in 3D

    0xPM

    llmerlos/0xPM

    PICCTRL 0xPM - 6x3+4 Split Keyboard with onboard CH552

    65 parts11CERN-OHL-P-2.0
  • 2 layers94.9 × 76 mmToadsTempest, the printed circuit board in 3D

    ToadsTempest

    tikinson/ToadsTempest

    Super small custom 42-keys column-staggered ergonomic mechanical keyboard powered by CH552T microcontroller, created for pocket keyboard design contest #00

    113 parts11CC0-1.0
  • 2 layers190.8 × 61.7 mmWahoo30, the printed circuit board in 3D

    Wahoo30

    rqcoon/wahoo30

    30% Keyboard based on the CH552T microcontroller using FAK firmware

    79 parts4GPL-3.0
  • 4 layers49.5 × 21.6 mmUSB Replug Dongle RevC1, the printed circuit board in 3D

    USB Replug Dongle RevC1

    gslee-dev/portpulse

    USB replug test dongle with KiCad hardware, CH552 firmware, and native C host

    38 partsMIT
  • 2 layers114.3 × 42 mmShine keyboard revb, the printed circuit board in 3D

    Shine keyboard revb

    kompeki0/shine-public

    This directory is a deliberately minimal, editable source release for a pid.codes USB PID application. It contains the electronic hardware and the firmware needed to reproduce and modify the USB device.

    27 parts
  • 2 layers143.6 × 139.6 mmKazhan oldCopy, the printed circuit board in 3D

    Kazhan oldCopy

    tikinson/kazhan

    custom 28-keys ergonomic mechanical keyboard powered by CH552T microcontroller

    98 partsGPL-3.0
  • 2 layers98.5 × 45.4 mmIdawgz32, the printed circuit board in 3D

    Idawgz32

    ChrisChrisLoLo/idawgz32

    A full 32 key mechanical keyboard that can be made for only $5

    81 parts77GPL-3.0
  • 2 layers58.3 × 98.2 mmSandKrux, the printed circuit board in 3D

    SandKrux

    sandman21vs/SandKrux

    Placa de desenvolvimento baseada no chip K210, com entradas para touch, câmera e LCD grande, criada especificamente para rodar o firmware Krux.

    176 parts21

Questions

How big is the Leif key PCB?

It measures 11 × 16 mm and has 2 copper layers, 1 mm thick.

What parts does the Leif key use?

14 parts, built around the CH552T and USBLC6-2SC6. 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 Leif key KiCad files?

From the smillay1/leif-key repository on GitHub, at the commit this page was made from: the board is hardware/leif-key.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Leif key design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).