

Original keyboard
Nb.1 - A 12-position programmable macropad with swappable Cherry MX switches and rotary encoders (STM32F405 / QMK / Remap) Nb.1 - Cherry MX互換スイッチとロータリーエンコーダーを搭載した、12キー左手デバイス(STM32F405 / QMK / Remap対応)
- Size
- 96.7 × 95 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 58
- Nets
- 82
- Pads
- 307
- Tracks, vias
- 686, 124
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 15 Aug 2026
- Updated
- 17 Oct 2026
Overview
Original keyboard is an open-source printed circuit board by n4subishin, from the n4subishin/nb1-keyboard repository on GitHub, published under the GPL-2.0 licence. It is a 2-layer board of 96.7 × 95 mm with 58 parts on 82 nets, routed with 686 tracks and 124 vias.
It is built around the STM32F405RGT6, M78AR033-0.5 and 1N4148W, with the KT-0603R, USB4105-GF-A and BLM18KG601SN1 among its other parts. Its parts include 13 capacitors, 13 diodes, 12 switches, 8 resistors and 3 connectors. It belongs with the keyboards and input boards and the STM32 boards of this library.
Main components
6STM32F405RGT6
LQFP-64(10x10)-40℃~+85℃ 1.8V~3.6V 12bit 12bit 168MHz 192KB 1MB 32 Bit 51 ARM Cortex-M4 Built-in FLASH LQFP-64(10x10) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)M78AR033-0.5
SIP,11.5x7.6mm-40℃~+85℃ 1 10.2mm 11.5mm 200uA 20mVp-p 3.3V 4.75V~36V 500mA 680uF 7.55mm 80%、86% 850kHz Plastic encapsulated type Short Circuit Protection、Automatic fault recovery ±2% SIP,11.5x7.6mm DC-DC Power Modules ROHSYLPTECDC-DC Power Modules1N4148W
SOD-123150mA 1A 1V@50mA 1uA@75V 400mW 4ns 75V Independent SOD-123 Switching Diodes ROHSSTMicroelectronicsSwitching DiodesKT-0603R
0603-40℃~+85℃ 1.6mm x 0.8mm square LED 1.8V~2.4V 120° 20mA 300mcd 40mW 615nm~630nm 645nm Discrete Diode Red Water Clear 0603 LED Indication - Discrete ROHSHubei KENTO ElecLED Indication - DiscreteUSB4105-GF-A
SMD-40℃~+85℃ 1 12P 48V 5A Black Female Surface Mount, Right Angle Type-C USB 2.0 SMD USB Connectors ROHSGlobal Connector Technology (GCT)USB ConnectorsBLM18KG601SN1
06031 1.3A 150mΩ 600Ω@100MHz ±25% 0603 Ferrite Beads ROHSMurataFerrite Beads
README
README.mdNb.1
A 12-position programmable macropad. Every position accepts either a Cherry MX compatible switch or a rotary encoder — the two share a single footprint, so you can build it as twelve keys, twelve knobs, or any mix in between. One firmware build covers every variant.
| MCU | STM32F405RGT6 (Cortex-M4F, 168 MHz, 1 MB Flash, 192 KB RAM) |
| Matrix | 3 rows × 4 columns, COL2ROW |
| Encoders | Up to 12, wired directly to GPIO |
| Connection | USB Type-C, USB 2.0 Full Speed |
| Firmware | QMK Firmware (ChibiOS) |
| Configurator | Remap / VIA |
Changing the keymap
No programming required — everything happens in the browser.
- Open https://remap-keys.app/ in Chrome or Edge (Firefox and Safari do not implement WebHID and will not connect)
- Choose Customize your keyboard and connect Nb.1
- Drag and drop keycodes onto the positions you want to change
- Press flash
Click a knob to set its clockwise and counter-clockwise actions separately.
Until Nb.1 is listed in the Remap catalog, load
Nb1_remap_definition.json into Remap first.
Building the firmware
You need a working QMK environment. See the QMK setup guide if you don't have one.
git clone https://github.com/qmk/qmk_firmware.git
cd qmk_firmware
qmk setup
# Drop this repository's keyboard directory into the QMK tree
cp -r /path/to/nb1-keyboard/keyboards/nb1 keyboards/
qmk compile -kb nb1 -km viaTwo keymaps are provided. default is plain QMK; via adds Remap/VIA support
and is what ships on the board.
Clock configuration
Y1 is a 16 MHz crystal. QMK's GENERIC_STM32_F405XG board assumes 12 MHz,
so board.h and mcuconf.h override it:
PFD 2 MHz -> VCO 336 MHz -> SYSCLK 168 MHz, USB 48 MHzDeleting those two files breaks USB entirely — the USB clock would land at 64 MHz instead of the required 48 MHz, and the core would run at 224 MHz, well past its 168 MHz limit.
EEPROM persistence
The STM32F405 has no real EEPROM, and QMK's flash emulation does not cover this
part by default, so it would silently fall back to a RAM-backed fake EEPROM and
lose every remap on unplug. keymaps/via/rules.mk selects the wear-leveling
driver explicitly to prevent that. Do not remove those lines.
Flashing
Two ways into the bootloader:
Keycode — hold position 12 (bottom right) to reach layer 1, then press
position 1. That is QK_BOOT in the shipped keymap.
BOOT0 button — unplug USB, hold the BOOT0 button on the PCB, plug USB back in. This works even when the firmware does not boot at all.
qmk flash -kb nb1 -km viaHardware
| PCB | 96.72 × 95.00 mm, 2 layer |
| Key pitch | 19.2 mm |
| Switches | Cherry MX compatible, Kailh hotswap sockets |
| Encoders | Alps EC12E2440301 (24 detent / 24 pulse, no push switch) |
| Crystal | 16 MHz, CL = 20 pF, HC-49/S |
Full details in docs/SPECIFICATION.md.
Known limitations
- No SWD header. Debugging requires soldering directly to MCU pins 46 and 49.
- No reset button. Can be retrofitted by adding a tactile switch in parallel with C8.
- Matrix rows pass through the J16–J17 cable. If that cable is disconnected, no key responds at all while the encoders keep working. This is the first thing to check when keys go dead.
- The encoders have no push switch, so a position fitted with an encoder responds to rotation only.
JTAG pins
PA15 (JTDI), PB3 (JTDO) and PB4 (NJTRST) are used for the indicator LED and for matrix row 3 / column 1. The board is SWD-only by design; a JTAG probe will not work.
License
Based on QMK Firmware, so this project is GPL v2. See LICENSE.
USB VID 0x1209 is allocated by pid.codes for open source
hardware. Projects using it must be released under a recognised open source
license, which this repository satisfies.
Parts
58| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | C81598 | Diode_SMD:D_SOD-123 | D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12 |
| 12 | SW_MX_EC12E | PCM_Switch_Keyboard_Hotswap_Kailh:original1 | SW13, SW14, SW15, SW16, SW17, SW18, SW19, SW20, SW21, SW22, SW23, SW24 |
| 6 | 100n | Capacitor_SMD:C_0603_1608Metric | C3, C4, C5, C6, C8, C13 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 2 | 10k | Resistor_SMD:R_0603_1608Metric | R7, R8 |
| 2 | 1u | Capacitor_SMD:C_0603_1608Metric | C11, C12 |
| 2 | 2.2u | Capacitor_SMD:C_0603_1608Metric | C1, C2 |
| 2 | 22 | Resistor_SMD:R_0603_1608Metric | R3, R4 |
| 2 | 30p | Capacitor_SMD:C_0603_1608Metric | C9, C10 |
| 2 | 5.1k | Resistor_SMD:R_0603_1608Metric | R1, R2 |
| 2 | Conn_01x03_Pin | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J16, J17 |
| 1 | 0 | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | 1k | Resistor_SMD:R_0603_1608Metric | R6 |
| 1 | 4.7u | Capacitor_SMD:C_0603_1608Metric | C7 |
| 1 | C15742 | Package_QFP:LQFP-64_10x10mm_P0.5mm | U1 |
| 1 | C2286 | LED_SMD:LED_0603_1608Metric | D13 |
| 1 | C3020560 | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J1 |
| 1 | C85833 | Capacitor_SMD:C_0603_1608Metric | FB1 |
| 1 | Crystal | Crystal:Crystal_HC49-U_Vertical | Y1 |
| 1 | M78AR033-0.5 | 2026_NewF:M78AR033-0.5 | U2 |
| 1 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | botton_1 |
Similar boards
- 6 layers25.4 × 50.8 mm

- 2 layers204 × 80 mm

- 4 layers200 × 123 mm

DualEMS PCB
HirokiOhara/DualEMS_PCB
This repository contains source code of software from our work "DualEMS: Two-Channel Arbitrary Waveform Electrical Muscle Stimulation Device to Design Interference Stimulation" (ACM AHs2022).
62 parts3 - 2 layers42.5 × 70 mm

PicomniRover
eyr1n/PicomniRover
プロジェクトファイル一式は KiCad/PicomniRover (PicomniRover.kicadpro / .kicadpcb / .kicadsch) にあり、製造用ガーバーデータは KiCad/PicomniRover/jlcpcb/productionfiles/GERBER-PicomniRover.zip にまとめています。
17 partsMIT - 4 layers40 × 40 mm

STM Board V3
Tay0710/Design_S1_006
This project integrates hardware, firmware, and design elements to develop a fully functional autonomous 3D mapping drone system.
46 parts3 - 6 layers34.4 × 20 mm

GigaControl
kaminaris/GigaESC-ControlBoard
Compact six-layer control card for modular GigaESC motor controllers. The MCU, CAN transceiver, IMU and signal conditioning live here; the MOSFET power stage and power supply are separate boards.
54 parts - 4 layers40 × 40 mm

- 4 layers33 × 41.9 mm

Questions
How big is the Original keyboard PCB?
It measures 96.7 × 95 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Original keyboard use?
58 parts, built around the STM32F405RGT6, M78AR033-0.5, 1N4148W and KT-0603R. 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 Original keyboard KiCad files?
From the n4subishin/nb1-keyboard repository on GitHub, at the commit this page was made from: the board is hardware/original_keyboard.kicad_pcb and its schematic hardware/original_keyboard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Original keyboard design in my own project?
Its repository publishes it under the GPL-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).