Skip to the content
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.

Size
114.3 × 42 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
27
Pads
114
Tracks, vias
241, 16
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
31 Aug 2026
Updated
31 Aug 2026

Overview

Shine keyboard revb is an open-source printed circuit board by kompeki0, from the kompeki0/shine-public repository on GitHub. It is a 2-layer board of 114.3 × 42 mm with 27 parts on 27 nets, routed with 241 tracks and 16 vias.

It is built around the CH552T, USBLC6-2SC6 and CPG151101S11-16, with the TYPE-C-31-M-12 among its other parts. Its parts include 9 switches, 3 capacitors, 3 resistors, 2 ICs and 1 connector. It belongs with the keyboards and input boards and the 8051 (CH55x, STC, AT89) boards of this library.

Main components

4

README

README.md

shine! keyboard — pid.codes source set

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. Product enclosure, keycap, manufacturing and order data are intentionally out of scope.

Device

  • Product name: shine! keyboard
  • MCU: WCH CH552T
  • USB connection: USB Type-C receptacle, USB 2.0 Full Speed
  • USB functions: standard HID Boot Keyboard and a separate Vendor HID configuration interface
  • Keys: nine direct active-low GPIO inputs
  • Switches: MX-compatible switches with Kailh CPG151101S11-16 hot-swap socket footprints

The hardware is the corrected Rev.B source used for the manufactured and received PCBA. The firmware is the Programmable 2.4.0 source line. Its normal keyboard input, WebHID configuration baseline, and corrected transition to the WCH ROM updater have been exercised on Rev.B. The older fixed-function source was not selected because the intended product firmware is now the stable programmable line.

Repository contents

PathContents
hardware/Editable KiCad Rev.B schematic, PCB, project settings, custom CH552T symbol and all project-local footprints
firmware/MIT-licensed CH552T C source, headers, editable configuration, generator and reproducible SDCC build script
docs/vendor-hid-protocol.mdVendor-defined HID interface needed to understand and implement a configurator
docs/reproducibility-report.mdIndependent-source ERC/DRC, physical-pin, build and privacy verification
docs/file-manifest.mdComplete file inventory and inclusion rationale
LICENSERoot licensing scope for hardware, firmware and excluded product works

Hardware

The project was authored and verified with KiCad 10.0.4. Install KiCad 10 with its standard symbol and footprint libraries, then open:

text
hardware/shine-keyboard-revb.kicad_pro

The editable schematic and routed layout are:

text
hardware/shine-keyboard-revb.kicad_sch
hardware/shine-keyboard-revb.kicad_pcb

sym-lib-table, fp-lib-table, shine-keyboard-revb.kicad_sym and shine-keyboard.pretty/ are project-local and use only ${KIPRJMOD} relative paths. The schematic embeds the resolved symbols, and the PCB embeds the resolved footprints; the local libraries additionally keep reassignment and future editing functional. The standard KiCad libraries are a toolchain dependency and are not vendored.

The release-relevant CH552T TSSOP-20 physical mapping is:

PinFunction / Rev.B net
14P3.6 / UDP — USB D+
15P3.7 / UDM — USB D-
16P1.3 / XO — NC
17P1.2 / XI — NC
18GND / VSS — GND
19VCC / VDD — USB VBUS
20V33 — V33 decoupling

See docs/reproducibility-report.md for the source-level pin and footprint checks, including U2 and J1.

An optional repeatable physical-pad check is included. Run it with KiCad's bundled Python so that pcbnew is available:

text
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/verify_hardware.py

Firmware

Prerequisites:

  • Python 3.9 or newer; only the standard library is used
  • SDCC 4.6.0 with sdcc and packihx on PATH (C:\Program Files\SDCC\bin is auto-detected on Windows)

From this directory, make a clean test-only build with:

text
python firmware/build.py --prototype --clean

The build generates its two C include files from editable JSON, compiles every source file, checks the CH552 interrupt vectors and ROM-bootloader jump, and writes:

text
firmware/build/shine-programmable.hex
firmware/build/shine-programmable.bin
firmware/reports/build-report.json

Generated files and build products are ignored and are not part of this source set. Run python firmware/build.py --clean-only to return to the published tree. GNU Make users may run make -C firmware prototype.

Flashing overview

Enter the CH552 ROM bootloader by bridging PCB test pads TP6 (BV) and TP7 (D+) while connecting USB, then remove the bridge. In WCHISPStudio select CH55x / CH552 / USB and load shine-programmable.hex into Object File1, not DataFlash File. Keep DataFlash unchanged. A working Programmable 2.3.1 or newer image can also request the same ROM updater through the documented Vendor HID handoff; physical TP6–TP7 recovery remains available.

USB VID/PID

No production PID has been allocated yet.

firmware/config/usb-identity.json is the only editable identity source. The published configuration uses pid.codes test identity 1209:0001 and is marked TEST ONLY / NOT FOR DISTRIBUTION OR SALE. production_pid contains the literal PID_CODES_PID_PLACEHOLDER; it is not an allocation.

After a pid.codes request is accepted, replace the VID/PID with the allocated pair, set status to allocated, record the accepted registry or pull-request URL in allocation_evidence, and run:

text
python firmware/build.py --production --clean

The production build fails closed until all of those conditions are met. Do not publish or sell a binary built with 1209:0001, an unallocated candidate, or an invented VID/PID.

Current pid.codes prerequisites and application instructions are maintained at https://pid.codes/howto/. pid.codes states that it is not supported, endorsed by, or associated with USB-IF: https://pid.codes/faq/.

WebHID and configurator scope

The static Web Studio is not required to inspect, modify or build this USB device and is therefore excluded from the minimum pid.codes source set. The firmware remains a standard keyboard without it. Because interface 1 is a Vendor HID configuration channel, its complete frame and command description is retained in docs/vendor-hid-protocol.md; an independent configurator can be implemented from that document and the firmware source.

License

  • Electronic hardware in hardware/: CERN Open Hardware Licence Version 2 - Permissive (CERN-OHL-P-2.0); see hardware/LICENSE.
  • Firmware in firmware/: MIT License; see firmware/LICENSE.
  • tools/verify_hardware.py and docs/vendor-hid-protocol.md: MIT License.
  • Other explanatory/audit documents: no separate open-content licence granted.

Enclosure, keycap, artwork, product branding, and other mechanical designs are not included in this open-source release unless explicitly stated. Trademark rights are not granted. See the root LICENSE notice for the exact scope.

The firmware copyright/provenance review is recorded in docs/firmware-provenance-audit.md.

Parts

27
QtyValueFootprintReferences
2100n X7Rshine-keyboard:C_0603_1608Metric_NoSilkC1, C2
25.1k 1%shine-keyboard:R_0603_1608Metric_NoSilkR1, R2
2M2 case mountMountingHole:MountingHole_2.2mm_M2H1, H2
1! (1U)shine-keyboard:MX_Hotswap_1U_CPG151101S11_16SW6
110k 1%shine-keyboard:R_0603_1608Metric_NoSilkR3
11u X5Rshine-keyboard:C_0603_1608Metric_NoSilkC3
1BOOT_DPLUSshine-keyboard:TestPoint_Pad_D1.5mm_NoSilkTP7
1BOOT_VBUSshine-keyboard:TestPoint_Pad_D1.5mm_NoSilkTP6
1CH552Tshine-keyboard:TSSOP-20_4.4x6.5mm_P0.65mm_NoSilkU1
1TP_D+shine-keyboard:TestPoint_Pad_D1.5mm_NoSilkTP3
1TP_D-shine-keyboard:TestPoint_Pad_D1.5mm_NoSilkTP4
1TP_GNDshine-keyboard:TestPoint_Pad_D1.5mm_NoSilkTP2
1TP_RSTshine-keyboard:TestPoint_Pad_D1.5mm_NoSilkTP5
1TP_VBUSshine-keyboard:TestPoint_Pad_D1.5mm_NoSilkTP1
1TYPE-C-31-M-12shine-keyboard:USB_C_Receptacle_HRO_TYPE-C-31-M-12_NoSilkJ1
1USBLC6-2SC6shine-keyboard:SOT-23-6_NoSilkU2
1e (1U)shine-keyboard:MX_Hotswap_1U_CPG151101S11_16SW5
1enter (2U)shine-keyboard:MX_Hotswap_2U_CPG151101S11_16SW9
1h (1U)shine-keyboard:MX_Hotswap_1U_CPG151101S11_16SW2
1half/full (2U)shine-keyboard:MX_Hotswap_2U_CPG151101S11_16SW7
1i (1U)shine-keyboard:MX_Hotswap_1U_CPG151101S11_16SW3
1n (1U)shine-keyboard:MX_Hotswap_1U_CPG151101S11_16SW4
1s (1U)shine-keyboard:MX_Hotswap_1U_CPG151101S11_16SW1
1space (2U)shine-keyboard:MX_Hotswap_2U_CPG151101S11_16SW8

Similar boards

  • 2 layers290.1 × 131 mmKoca58, the printed circuit board in 3D

    Koca58

    Hardware7253/Koca58

    A split keyboard design.

    156 parts
  • 2 layersErgonomicGamepad, the printed circuit board in 3D

    ErgonomicGamepad

    vemcg/ErgonomicGamepad

    Custom ergonomic gaming keypad PCB project (KiCad) with a 4x6 key matrix, hot-swap sockets, and USB-C.

    86 partsGPL-3.0
  • 4 layers149.9 × 152.5 mmTMR2615F osu pad, the printed circuit board in 3D

    TMR2615F osu pad

    dubnubdubnub/Giris

    open source 32 key/half (64 total) analog TMR split ortholinear keyboard w/ 8kHz USB HS

    168 parts4Apache-2.0
  • 2 layers76.2 × 123.5 mmNumpad, the printed circuit board in 3D

    Numpad

    joelspadin/marten_numpad

    Bluetooth numpad based on the nRF52840 SoC

    85 parts2
  • 2 layers219.7 × 111.3 mmScriptPad PCB, the printed circuit board in 3D

    ScriptPad PCB

    jfm92/scriptPad

    The scriptPad project is a macroPad fully customizable with build in USB WebPage allowing to configure every aspect of the device without extra software or web page, everything you need in a single device.

    111 partsMIT
  • 2 layers42 × 54 mmClick counter Q5, the printed circuit board in 3D

    Click counter Q5

    dudgeon/count-fidget

    A lightweight, rechargeable two-key fidget that counts clicks, resets with a second key, and remembers its count while asleep or unpowered. Designed for a home-printed enclosure and professionally assembled electronics.

    96 parts
  • 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

Questions

How big is the Shine keyboard revb PCB?

It measures 114.3 × 42 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Shine keyboard revb use?

27 parts, built around the CH552T, USBLC6-2SC6, CPG151101S11-16 and TYPE-C-31-M-12. 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 Shine keyboard revb KiCad files?

From the kompeki0/shine-public repository on GitHub, at the commit this page was made from: the board is hardware/shine-keyboard-revb.kicad_pcb and its schematic hardware/shine-keyboard-revb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Shine keyboard revb design in my own project?

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