DS34 v2 Numpad (b23_ds34_v2)
34-key + 1-knob numpad · USB wired · QMK firmware · VIA
b23_ds34_v2 is the CZMao DS34 v2 numpad PCB: STM32F103CBT6 (Blue Pill), 8-column × 6-row matrix with a full edit cluster, arrow keys and volume keys, plus one EC11 knob. The knob is mapped to virtual key positions, so both directions can be remapped independently in VIA. QMK firmware, open source, VIA-compatible.
1. Specifications
| Item | Value |
|---|---|
| PCB model | b23_ds34_v2 (DS34 v2) |
| Keys | 34 keys + 1 knob |
| Matrix | 8 columns × 6 rows (COL2ROW) |
| Connection | USB wired (single mode) |
| Port | USB Type-C (C-to-C supported) |
| MCU | STM32F103CBT6 (Blue Pill) |
| Knob | 1 × EC11 encoder (B8 / B9, direction flipped) |
| USB VID / PID | 0x4B23 / 0x4B23 |
| Lighting | WS2812 per-key RGB @ B13, 33 LED positions |
| Default effect | cycle_left_right |
| Layers | 4 (0–3) |
| N-key rollover | Yes (NKRO) |
| Polling rate | 1000 Hz |
| Firmware | QMK (open source) |
| Keymap tool | VIA (web) |
| Source code | github.com/micahyy/czm_qmk |
2. Hardware / pinout (PCB design)
| Function | Pin / value |
|---|---|
| Matrix | 6 rows × 8 columns (COL2ROW) |
| Knob A / B | B8 / B9 |
| WS2812 data pin | B13 |
| Bootloader | stm32duino |
The knob's CW / CCW map to the two virtual positions row 3 / col 0 and row 3 / col 1 (ENCODERS_MATRIX_MAP); they have no physical switch and are editable per layer in VIA. Direction is flipped in firmware (ENCODER_DIRECTION_FLIP).
3. Lighting
- WS2812 per-key RGB, 33 LED positions, default effect "cycle left/right".
- NumLock indicator: LED 9 lights white while NumLock is on.
- Layer indicator: the matching LED lights white on layers 1 / 2 / 3.
- Effects can be controlled from layer 1 shortcuts or the VIA Lighting tab.
4. Layers and shortcuts
4 layers (0–3):
| Action | Result |
|---|---|
Hold FN (4th key of the top row, the Pause position) | Layer 1 |
On layer 1, hold ↓ | Layer 3 (maintenance) |
4.1 Layer 0 (default)
| Area | Keys |
|---|---|
| Top row | PrintScreen, ScrollLock, FN, PgUp, PgDn, Mute, Vol-, Vol+ |
| 2nd row | Insert, Home, PgUp, Num, /, *, - |
| 3rd row | Del, End, PgDn, 7, 8, 9, + |
| 4th row | 4, 5, 6 (the two knob positions are on the left) |
| 5th row | ↑, 1, 2, 3, Enter |
| 6th row | ←, ↓, →, 0 (2u), . |
4.2 Layer 1 (hold FN)
| Position | Key |
|---|---|
Num | RGB toggle (RM_TOGG) |
5 | Next effect (RM_NEXT) |
0 | Next effect (RM_NEXT) |
↓ | Hold for layer 3 (MO(3)) |
4.3 Layer 3 (maintenance; on layer 1 hold ↓ first)
| Position | Key |
|---|---|
Top-left PrintScreen | Bootloader (QK_BOOT) |
Bottom-right . | Factory reset (EE_CLR) |
5. VIA
- Connect over USB and open VIA: CN server | GitHub Pages
- On first use load the keyboard definition JSON in the Design tab
- Switch to Configure and remap — changes apply instantly and are stored on the keyboard
- All 36 positions are editable; row 3 / col 0 and col 1 are the knob
See also: Using VIA
6. Flashing
The PCB uses the stm32duino bootloader:
- Enter bootloader (either way):
- Shortcut: hold
FN, hold↓, then press the top-leftPrintScreenposition (QK_BOOT) - Or: unplug USB, hold the top-left key and plug back in (QMK Bootmagic Lite)
- Shortcut: hold
- Flash:
- QMK Toolbox with the compiled
.bin; or - CLI:
dfu-util -a 2 -d 1EAF:0003 -D <firmware>.bin
- QMK Toolbox with the compiled
- Re-plug when done.
7. Building the firmware
make czmao/b23_ds34_v2:via
Prebuilt binaries: GitHub Actions artifact firmware-b23_ds34_v2.
8. FAQ
Q: VIA does not detect the board? A: Use a WebHID-capable browser (Chrome / Edge) and load the definition JSON. Also try another port or cable.
Q: The knob turns the wrong way? A: Swap the two knob positions in VIA, or change ENCODER_DIRECTION_FLIP and rebuild.
Q: How do I reset the keymap? A: Hold FN → hold ↓ → press the bottom-right . position (EE_CLR).
Q: Numpad digits do not type? A: Turn NumLock on (LED 9 lights white); on some systems disable Mouse Keys.
QQ group: 677654482
📥 Firmware & source
- Firmware source (QMK): github.com/micahyy/czm_qmk (PCB path
keyboards/czmao/b23_ds34_v2) - Prebuilt firmware: GitHub Actions artifact
firmware-b23_ds34_v2
See section 6 "Flashing" for flashing instructions.

评论 / 提问 (填个昵称就能留言,无需注册;邮箱选填,填了能收到回复通知)