

MainPCB
A compact macro keyboard featuring 3 keys and 1 rotary encoder for task automation. ## Components - Raspberry Pi Pico - 3x Mechanical Switches - 1x KY-040 Rotary Encoder - Custom PCB - 3D-printed case (base and lid)
- Size
- 69 × 88.5 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 9
- Nets
- 34
- Pads
- 102
- Tracks, vias
- 36, 0
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 5 Oct 2026
- Updated
- 10 Oct 2026
Overview
MainPCB is an open-source printed circuit board by Len0v0CZ, from the Len0v0CZ/HalfLife-Week1 repository on GitHub. It is a 2-layer board of 69 × 88.5 mm with 9 parts on 34 nets, routed with 36 tracks and 0 vias.
Its parts include 3 switches and 1 IC. It belongs with the RP2040 boards of this library.
README
README.mdMacro Keyboard
A compact macro keyboard featuring 3 keys and 1 rotary encoder for task automation.
Components
- Raspberry Pi Pico
- 3x Mechanical Switches
- 1x KY-040 Rotary Encoder
- Custom PCB
- 3D-printed case (base and lid)

Hardware Assembly
- Solder the Pico, switches, and encoder to the PCB.
- Mount the assembled PCB into the 3D-printed base using the M3 sized studs.
- Attach the lid.
Software Setup
- Install CircuitPython on the Raspberry Pi Pico, more precisely it uses
adafruit_hidlibrary. - Save the Python script as
code.pyin the root directory.
Usage
The rotary encoder adjusts the system volume and its button toggles mute. The three mechanical switches can be bound in code.py.
Parts
9| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3_DIN965 | H1, H2, H3, H4 |
| 3 | SW_Push | Button_Switch_Keyboard:SW_Cherry_MX_1.00u_Plate | SW2, SW3, SW4 |
| 1 | KY-040 | KY-040:KY-040-PORT | U1 |
| 1 | RaspberryPi_Pico | Module:RaspberryPi_Pico_Common_Unspecified | A1 |
Similar boards
- 2 layers103 × 30.5 mm

- 2 layers31.8 × 47.6 mm

- 2 layers24 × 27.3 mm

Expansion Card Retrofit
FrameworkComputer/ExpansionCards
Reference designs and documentation to create Expansion Cards for the Framework Laptop
9 parts1.1kCC-BY-4.0 - 2 layers15.6 × 17.3 mm

SKR Mini TFT Thermistor Board
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group
9 parts1.1kGPL-3.0 - 2 layers39.1 × 49.5 mm

Learnoliver
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
9 parts915 - 2 layers17.4 × 16.9 mm

- 2 layers9.8 × 108 mm

- 2 layers

Keyboard after
adamws/kicad-kbplacer
KiCad plugin for automatic keyboard's key placement and routing
9 parts547GPL-3.0
Questions
How big is the MainPCB PCB?
It measures 69 × 88.5 mm and has 2 copper layers, 1.6 mm thick.
What parts does the MainPCB use?
9 parts. 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 MainPCB KiCad files?
From the Len0v0CZ/HalfLife-Week1 repository on GitHub, at the commit this page was made from: the board is PCBs/mainPCB/mainPCB.kicad_pcb and its schematic PCBs/mainPCB/mainPCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the MainPCB design in my own project?
Its repository states no licence, so its author keeps all rights: ask Len0v0CZ before reusing the design.