Skip to the content
2 layers333.8 × 162.2 mmSreeram keyboard, the printed circuit board in 3D

Mechanical Keyboard using STM32F405RGT

Size
333.8 × 162.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
216
Nets
151
Pads
1,149
Tracks, vias
1,714, 107
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Jun 2026
Updated
13 Jun 2026

Overview

Sreeram keyboard is an open-source printed circuit board by theRealMantaflow, from the theRealMantaflow/custom_mechanical_keyboard repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 333.8 × 162.2 mm with 216 parts on 151 nets, routed with 1,714 tracks and 107 vias.

It is built around the AP2112K-3.3, USBLC6-2SC6 and TS02-66-70-BK-260-LCR-D. Its parts include 86 diodes, 17 capacitors, 7 resistors, 6 switches and 4 ICs. It belongs with the keyboards and input boards and the STM32 boards of this library.

Main components

3

README

README.md

Custom STM32 Mechanical Keyboard

This repository contains the hardware design files (PCB schematics and mechanical enclosures) for a custom mechanical keyboard. The PCB is designed in KiCad, and the case/mechanical components are modeled in FreeCAD.

Features

  • Microcontroller: STM32F405RGT
  • Connectivity: USB-C 2.0 with dedicated ESD protection (USBLC6-2SC6)
  • Switch Matrix: 6x16 layout supporting up to 96 keys
  • Switches: Cherry MX compatible, utilizing Khail hot-swap sockets
  • Anti-Ghosting: Per-key diodes for full N-Key Rollover (NKRO)
  • Extras: Support for a rotary encoder and broken-out SWD/I2C pins for easy debugging and expansion

Repository Structure

  • / - Contains the KiCad project, schematics, and PCB layout files.
  • /case/ - Contains the FreeCAD design files for the keyboard case and plate.
  • /pcbway_production/ - Contains the gerber files.

Prerequisites & Environment Setup

Before opening the KiCad project files, you need to configure your KiCad environment with the appropriate custom libraries and plugins used in this design.

KiCad Package Installation

Follow these steps exactly to ensure all footprints and symbols load correctly:

  1. Add the ebastler repository:
  2. Install custom libraries:
    • Switch the repository dropdown at the top of the Plugin Manager to the newly added ebastler repo.
    • Find and install the marbastlib package.
  3. Switch back to the official repository:
    • Change the repository dropdown back to the official KiCad repository.
  4. Install required keyboard packages:
    • Search for and install the Keyswitch KiCad Library.
    • (Optional) If you plan on modifying the PCB layout, install the Keyboard footprints placer plugin to make routing and placing switches easier.

Once these packages are installed, you can safely open the .kicad_pro file.

Contributions

Feel free to fork this repository and submit pull requests if you have improvements for the PCB routing or case design.

My Ko-fi link if you wanna support my efforts: Ko-fi Kofi

Thanks

Inspired from: Modern Hobbyist

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for more details.

Parts

216
QtyValueFootprintReferences
86DDiode_SMD:D_SOD-123D1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +70
86MX_SW_HSPCM_marbastlib-mx:SW_MX_HS_S_CPG151101S11_1uMX1, MX2, MX10, MX11, MX12, MX13, MX14, MX15, MX16, MX17, MX18, MX19, MX20, MX21, MX22, MX23 +70
80.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C3, C5, C6, C7, C8, C13, C15
5MountingHole_2.2mm_M2MountingHole:MountingHole_2.2mm_M2M1, M3, M6, M7, M8
410kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R5, R6, R7
4MX_stabPCM_marbastlib-mx:STAB_MX_P_2uS2, S3, S4, S5
310uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C4, C14
20.01uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC16, C17
22.2uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC9, C10
222pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC11, C12
25.1kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2
2Conn_01x10_PinConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ2, J3
1100kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4
112MhzKiCad_Crystal_12MHz:ABLSY1
1550mAFuse:Fuse_1206_3216Metric_Pad1.42x1.75mm_HandSolderF1
1AP2112K-3.3Mouser_VReg_SOT25:SOT95P285X140-5NU2
1MX_stabPCM_marbastlib-mx:STAB_MX_P_6.25uS1
1PEC11L-4020F-S0020KiCad_PEC11L4120FS0020:PEC11L4120FS0020U4
1STM32F405RGTxPackage_QFP:LQFP-64_10x10mm_P0.5mmU1
1TS02-66-70-BK-260-LCR-DKiCad_PushButtons:TS0266100BK100LCRDS6
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U3
1USB_C_Receptacle_USB2.0_14PConnector_USB:USB_C_Receptacle_GCT_USB4085J1

Similar boards

  • 4 layers60.8 × 61.3 mmOS3M Mouse, the printed circuit board in 3D

    OS3M Mouse

    spoter368/os3m-hardware

    All the hardware needed to build your own OS3M Mouse!

    51 parts399
  • 2 layers390 × 120.2 mmKeyboard, the printed circuit board in 3D

    Keyboard

    joshajohnson/entropy

    Strange keyboard with a left hand numpad

    334 parts97
  • 2 layers89 × 124 mmHub20, the printed circuit board in 3D

    Hub20

    joshajohnson/Hub20

    Hub20 is a numpad with a bunch of features you never knew you needed.

    183 parts68
  • 2 layers84.2 × 100 mmFabpack out v5 8, the printed circuit board in 3D

    Fabpack out v5 8

    yuz207/agentpad13

    agentpad13 — open-source 13-key macropad for agentic work (RP2040, vial-qmk, planar joystick, Raw HID agent-status protocol)

    126 parts41
  • 2 layers80.8 × 30 mmStm32 dev, the printed circuit board in 3D

    Stm32 dev

    brainstorm/bbtrackball-rs

    Experimenting with Blackberry trackball for keyboard ergonomics

    61 parts34
  • 2 layers46.8 × 52 mmUsb dev board, the printed circuit board in 3D

    Usb dev board

    cs2dsb/stm32-usb.rs

    A dev board designed to facilitate the development of USB firmware for STM32

    57 parts30Apache-2.0
  • 2 layers64.3 × 25.4 mmFranzininho WiFi, the printed circuit board in 3D

    Franzininho WiFi

    Franzininho/Franzininho-WiFi

    Franzininho WiFi is a board with ESP32-S2.

    38 parts24

Questions

How big is the Sreeram keyboard PCB?

It measures 333.8 × 162.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Sreeram keyboard use?

216 parts, built around the AP2112K-3.3, USBLC6-2SC6 and TS02-66-70-BK-260-LCR-D. 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 Sreeram keyboard KiCad files?

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

Can I use the Sreeram keyboard design in my own project?

Its repository publishes it under the GPL-3.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).