Skip to the content
4 layers140 × 50 mmM122, the printed circuit board in 3D

IBM M122 USB / BLE keyboard controller

Size
140 × 50 mm
Copper layers
4
Thickness
1.6 mm
Parts
62
Nets
89
Pads
267
Tracks, vias
649, 92
Pours
5
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
1 Aug 2023
Updated
7 Jul 2026

Overview

M122 is an open-source printed circuit board by SvenHaedrich, from the SvenHaedrich/m122_keyboard repository on GitHub. It is a 4-layer board of 140 × 50 mm with 62 parts on 89 nets, routed with 649 tracks and 92 vias.

It is built around the AP2112K-3.3, DMG2305UX and MBR0540, with the PRTR5V0U2X among its other parts. Its parts include 20 capacitors, 16 resistors, 6 connectors, 4 inductors and 3 ICs. It belongs with the keyboards and input and radio and wireless boards and the nRF52 and nRF5x boards of this library.

Main components

4

README

README.md

m122_keyboard

Project for an IBM M122 keyboard controller

This is a project that replaces the original part from IBM with a nice modern solution. It features a nRF52840 microcontroller and allows to use the keyboard via USB connector, or via Bluetooth.

The firmware is based on the ZMK project.

Assembled PCB

Parts

Beside the assembled PCB you require:

  • A matching IBM Keyboard
  • An external LiPO cell - the unit was designed with a LP103048JU 1.500 m Ah cell in mind
  • One 8 pin connector for the flat flex coming from the keyboad 5-520315-8 from AMP DigiKey P/N 5-520315-8-ND
  • One 20 pin connector for the flat flex coming from the keyboad 7-520355-0 from AMP DigiKey P/N A144436-ND

Tools

You need a debug adapter (JLink) with 6 pin Tag-Connect for the initial flash programming of the board

Order

When ordering the pcb from JLC you need to specify

  • Via Covering Epoxy Filled & Capped
  • Min via hole size 0.2 mm

Initial Setup

  • Use the nrf-Flash-Tool to flash the bootloader to the nrf52840
  • Use drag-and-drop of the uf2 build output to flash the keyboard firmware

Build the Firmware

push and pull_request trigger a github-action to build the firmware. To locate the build output go to the Actions tab and open the respective workflow run. There you find a link to the artifacts generated by the run. You can download it and unpack the .zip archive to access the .UF2 file.

This repository follows the versions of the ZMK project. For details, please refer to the Release Log.

Update Firmware

To update the firmware activate the bootloader. By default you can start the bootloader by hitting the bootloader key. Bootloader key If successful, this will mount your keyboard as a USB mass storage device to your computer. Now, you can install the firmware by simply drag and drop the UF2 file to the mounted device.

Connect to ZMK Studio

To connect the keyboard to ZMK Studio open this link. Google's chrome is the preferred browser for this app. Select the connection to your keyboard. You need to press the studio unlock key on your keyboard to establish the connection. Studio unlock key

Bootloader

The project uses a modified Adafruit bootloader.

Testing

You might want to test the basic electric functionality of the PCB. To do so, flash the firmware and connect the PCB to a computer´s USB port. To view detailled event codes start

bash
sudo evtest

Select your M122 controller as event source. Now, you can short individual rows and columns. Expected results are given for German keyboard layout.

RowColumnKeycode
116KEY_KP0
18KEY_B
28KEY_V
313KEY_RIGHTBRACE
45KEY_Q
59KEY_6
612KEY_F5
71KEY_PPLUS
815KEY_APOSTROPHE
22KEY_KP1
23KEY_CAPSLOCK
14KEY_LEFTSHIFT
120KEY_ENTER
119KEY_KPCOMMA
218KEY_KP2
217KEY_INSERT
415KEY_P
614KEY_9
411KEY_F7
310KEY_F20
76KEY_S
77KEY_D

Parts

62
QtyValueFootprintReferences
81kResistor_SMD:R_0603_1608MetricR9, R10, R11, R12, R13, R14, R15, R16
4100kResistor_SMD:R_0603_1608MetricR3, R4, R5, R6
412pFCapacitor_SMD:C_0603_1608MetricC10, C11, C12, C13
4MountingHoleMountingHole:MountingHole_3.7mm_PadH1, H2, H3, H4
310uFCapacitor_SMD:C_0603_1608MetricC18, C19, C20
34u7FCapacitor_SMD:C_0603_1608MetricC1, C2, C3
24n7HInductor_SMD:L_0603_1608MetricL2, L4
25k1Resistor_SMD:R_0603_1608MetricR1, R2
2DNPCapacitor_SMD:C_0603_1608MetricC5, C16
10.5pFCapacitor_SMD:C_0603_1608MetricC8
10.8pFCapacitor_SMD:C_0603_1608MetricC6
11.2pFCapacitor_SMD:C_0603_1608MetricC14
1100nFCapacitor_SMD:C_0603_1608MetricC4
1100pFCapacitor_SMD:C_0603_1608MetricC7
110nCapacitor_SMD:C_0603_1608MetricC17
110uHInductor_SMD:L_0603_1608MetricL1
1120RResistor_SMD:R_0603_1608MetricR8
115nHInductor_SMD:L_0603_1608MetricL3
11uFCapacitor_SMD:C_0603_1608MetricC15
1300R @ 100 MHzResistor_SMD:R_0603_1608MetricFB1
132MHzCrystal:Crystal_SMD_TXC_7M-4Pin_3.2x2.5mmY2
132k768HzCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY1
147nFCapacitor_SMD:C_0603_1608MetricC9
14k7Resistor_SMD:R_0603_1608MetricR7
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U2
1AntennaRF_Antenna:Texas_SWRA117D_2.4GHz_RightAE1
1Conn_01x02_PinConnector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ5
1Conn_01x08_SocketConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ4
1Conn_01x20_SocketConnector_PinHeader_2.54mm:PinHeader_1x20_P2.54mm_VerticalJ6
1Conn_02x03_Odd_EvenConnector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalJ3
1DMG2305Package_TO_SOT_SMD:SOT-23Q1
1LED greenLED_SMD:LED_0805_2012MetricD3
1MBR054Package_TO_SOT_SMD:TO-252-2D2
1MCP73831-2-OTPackage_TO_SOT_SMD:SOT-23-5U3
1PRTR5V0U2XPackage_TO_SOT_SMD:SOT-143D1
1SW_Pushm122-models:SW_TS665TPSW1
1USB_CConnector_USB:USB_C_Receptacle_XKB_U262-16XN-4BVC11J1
1USB_ExtConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1nRF52840Package_DFN_QFN:Nordic_AQFN-73-1EP_7x7mm_P0.5mmU1

Similar boards

  • 4 layers70 × 50 mmFinalized bluetooth remote, the printed circuit board in 3D

    Finalized bluetooth remote

    3pnguyen/esp32-bluetooth-media-keyboard

    Electronic project that provides the same control as wireless earbuds.

    62 partsMIT
  • 4 layers22.9 × 63 mmRP2040 Motion Logger, the printed circuit board in 3D

    RP2040 Motion Logger

    rishikesh2715/RP2040_Motion_Logger

    An RP2040 based microcontroller with an ICM-42688 IMU, 1S Battery Charger, SD Card Connector, RGB Led, and USB Type-C connector

    70 parts1MIT
  • 6 layers76 × 78 mmChroma pixel h743, the printed circuit board in 3D

    Chroma pixel h743

    rohamid/chroma-pixel-h743

    Chroma pixel board with STM32H743

    130 parts
  • 4 layers138 × 93.2 mmChroma pixel zeta, the printed circuit board in 3D

    Chroma pixel zeta

    rohamid/chroma-pixel-zeta

    The minimal configuration of Chroma Pixel board for GUI application

    190 parts
  • 6 layers76 × 78 mmH743-lcd dev, the printed circuit board in 3D

    H743-lcd dev

    rohamid/h743-lcd-dev

    temp repo for H743 lcd development board

    138 parts
  • 2 layers80 × 90 mmWiFi Septic Controller, the printed circuit board in 3D

    WiFi Septic Controller

    mikelawrence/WiFi-Septic-Controller

    WiFi enabled Septic Controller

    104 parts8MIT

Questions

How big is the M122 PCB?

It measures 140 × 50 mm and has 4 copper layers, 1.6 mm thick.

What parts does the M122 use?

62 parts, built around the AP2112K-3.3, DMG2305UX, MBR0540 and PRTR5V0U2X. 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 M122 KiCad files?

From the SvenHaedrich/m122_keyboard repository on GitHub, at the commit this page was made from: the board is m122/m122.kicad_pcb and its schematic m122/m122.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the M122 design in my own project?

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