Skip to the content
2 layers69 × 88.5 mmMainPCB, the printed circuit board in 3D

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.md

Macro 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)

Case PCB

Hardware Assembly

  1. Solder the Pico, switches, and encoder to the PCB.
  2. Mount the assembled PCB into the 3D-printed base using the M3 sized studs.
  3. Attach the lid.

Software Setup

  1. Install CircuitPython on the Raspberry Pi Pico, more precisely it uses adafruit_hid library.
  2. Save the Python script as code.py in 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
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965H1, H2, H3, H4
3SW_PushButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PlateSW2, SW3, SW4
1KY-040KY-040:KY-040-PORTU1
1RaspberryPi_PicoModule:RaspberryPi_Pico_Common_UnspecifiedA1

Similar boards

  • 2 layers103 × 30.5 mmTS Back Endcap, the printed circuit board in 3D

    TS Back Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    9 parts1.3kMIT
  • 2 layers31.8 × 47.6 mmNGC 38 connector, the printed circuit board in 3D

    NGC 38 connector

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    9 parts1.2k
  • 2 layers24 × 27.3 mmExpansion Card Retrofit, the printed circuit board in 3D

    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 mmSKR Mini TFT Thermistor Board, the printed circuit board in 3D

    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 mmLearnoliver, the printed circuit board in 3D

    Learnoliver

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    9 parts915
  • 2 layers17.4 × 16.9 mmToolhead, the printed circuit board in 3D

    Toolhead

    tanaes/whopping_Voron_mods

    9 parts787GPL-3.0
  • 2 layers9.8 × 108 mmExpander, the printed circuit board in 3D

    Expander

    wntrblm/Castor_and_Pollux

    A Juno-inspired dual oscillator

    9 parts587
  • 2 layersKeyboard after, the printed circuit board in 3D

    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.