

Shine keyboard revb
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
4CH552T
TSSOP-20-40℃~+85℃ 12Mbps 3.3V~5V USB 2.0 USB to UART、USB to SPI TSSOP-20 USB Converters ROHSWCH (Nanjing Qinheng Microelectronics)USB ConvertersUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)CPG151101S11-16
SMD- Mechanical Keyboard Shaft ROHSKailhMechanical Keyboard ShaftTYPE-C-31-M-12
SMD-30℃~+80℃ 1 10,000 cycles 16P 20V 5A 7.35mm Female Surface Mount, Right Angle Type-C SMD USB Connectors ROHSHRO ElectronicsUSB Connectors
README
README.mdshine! 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
| Path | Contents |
|---|---|
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.md | Vendor-defined HID interface needed to understand and implement a configurator |
docs/reproducibility-report.md | Independent-source ERC/DRC, physical-pin, build and privacy verification |
docs/file-manifest.md | Complete file inventory and inclusion rationale |
LICENSE | Root 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:
hardware/shine-keyboard-revb.kicad_proThe editable schematic and routed layout are:
hardware/shine-keyboard-revb.kicad_sch
hardware/shine-keyboard-revb.kicad_pcbsym-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:
| Pin | Function / Rev.B net |
|---|---|
| 14 | P3.6 / UDP — USB D+ |
| 15 | P3.7 / UDM — USB D- |
| 16 | P1.3 / XO — NC |
| 17 | P1.2 / XI — NC |
| 18 | GND / VSS — GND |
| 19 | VCC / VDD — USB VBUS |
| 20 | V33 — 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:
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/verify_hardware.pyFirmware
Prerequisites:
- Python 3.9 or newer; only the standard library is used
- SDCC 4.6.0 with
sdccandpackihxonPATH(C:\Program Files\SDCC\binis auto-detected on Windows)
From this directory, make a clean test-only build with:
python firmware/build.py --prototype --cleanThe 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:
firmware/build/shine-programmable.hex
firmware/build/shine-programmable.bin
firmware/reports/build-report.jsonGenerated 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:
python firmware/build.py --production --cleanThe 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); seehardware/LICENSE. - Firmware in
firmware/: MIT License; seefirmware/LICENSE. tools/verify_hardware.pyanddocs/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| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 100n X7R | shine-keyboard:C_0603_1608Metric_NoSilk | C1, C2 |
| 2 | 5.1k 1% | shine-keyboard:R_0603_1608Metric_NoSilk | R1, R2 |
| 2 | M2 case mount | MountingHole:MountingHole_2.2mm_M2 | H1, H2 |
| 1 | ! (1U) | shine-keyboard:MX_Hotswap_1U_CPG151101S11_16 | SW6 |
| 1 | 10k 1% | shine-keyboard:R_0603_1608Metric_NoSilk | R3 |
| 1 | 1u X5R | shine-keyboard:C_0603_1608Metric_NoSilk | C3 |
| 1 | BOOT_DPLUS | shine-keyboard:TestPoint_Pad_D1.5mm_NoSilk | TP7 |
| 1 | BOOT_VBUS | shine-keyboard:TestPoint_Pad_D1.5mm_NoSilk | TP6 |
| 1 | CH552T | shine-keyboard:TSSOP-20_4.4x6.5mm_P0.65mm_NoSilk | U1 |
| 1 | TP_D+ | shine-keyboard:TestPoint_Pad_D1.5mm_NoSilk | TP3 |
| 1 | TP_D- | shine-keyboard:TestPoint_Pad_D1.5mm_NoSilk | TP4 |
| 1 | TP_GND | shine-keyboard:TestPoint_Pad_D1.5mm_NoSilk | TP2 |
| 1 | TP_RST | shine-keyboard:TestPoint_Pad_D1.5mm_NoSilk | TP5 |
| 1 | TP_VBUS | shine-keyboard:TestPoint_Pad_D1.5mm_NoSilk | TP1 |
| 1 | TYPE-C-31-M-12 | shine-keyboard:USB_C_Receptacle_HRO_TYPE-C-31-M-12_NoSilk | J1 |
| 1 | USBLC6-2SC6 | shine-keyboard:SOT-23-6_NoSilk | U2 |
| 1 | e (1U) | shine-keyboard:MX_Hotswap_1U_CPG151101S11_16 | SW5 |
| 1 | enter (2U) | shine-keyboard:MX_Hotswap_2U_CPG151101S11_16 | SW9 |
| 1 | h (1U) | shine-keyboard:MX_Hotswap_1U_CPG151101S11_16 | SW2 |
| 1 | half/full (2U) | shine-keyboard:MX_Hotswap_2U_CPG151101S11_16 | SW7 |
| 1 | i (1U) | shine-keyboard:MX_Hotswap_1U_CPG151101S11_16 | SW3 |
| 1 | n (1U) | shine-keyboard:MX_Hotswap_1U_CPG151101S11_16 | SW4 |
| 1 | s (1U) | shine-keyboard:MX_Hotswap_1U_CPG151101S11_16 | SW1 |
| 1 | space (2U) | shine-keyboard:MX_Hotswap_2U_CPG151101S11_16 | SW8 |
Similar boards
- 2 layers290.1 × 131 mm

- 2 layers

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 mm

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 mm

- 2 layers219.7 × 111.3 mm

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 - 4 layers134.4 × 98.5 mm

- 2 layers42 × 54 mm

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 mm

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.