Skip to the content
2 layers64.7 × 63.5 mmFinal macropad, the printed circuit board in 3D

ZizhuoPad is a custom mechanical macropad with 6 keys and an OLED display.

Size
64.7 × 63.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
24
Pads
89
Tracks, vias
92, 55
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
6 Apr 2026
Updated
16 May 2026

Overview

Final macropad is an open-source printed circuit board by yuheng28, from the yuheng28/zizhuo-hackpad repository on GitHub. It is a 2-layer board of 64.7 × 63.5 mm with 20 parts on 24 nets, routed with 92 tracks and 55 vias.

Its parts include 8 resistors, 6 switches, 1 IC and 1 connector. It belongs with the keyboards and input boards and the AVR (ATmega, ATtiny) boards of this library.

README

README.md

ZizhuoPad

Overview

ZizhuoPad is a custom mechanical macropad with 6 keys and an OLED display.

It is designed to allow for easy hotswapping of the switches, and (maybe not as easy) key mapping modifications.

Rationale

This is a project to build a custom mechanical macropad. The purpose of this project is to create a birthday gift for my friend, after whom this project is named.

As a technical challenge, I opted to write the firmware using AVR-C, instead of using Arduino or QMK. The PCB was designed using KiCAD, and the case was designed using Fusion 360.

Hardware Summary

Electronics

  • Microcontroller: SparkFun Pro Micro (ATmega32U4)
  • OLED Display: 128x32 pixel display
  • Switches: 6 hotswappable mechanical switches (Akko Piano Switches)
  • Connector: USB-C

Case

  • Material: PETG
  • Infill: 75%
  • Walls: 10 for Case, 5 for Lid
  • Layer Height: 0.2mm

Modifying the Software

In the firmware directory, a Microchip Studio project is included. You can open the .atsln file in Microchip Studio to build the firmware.

The firmware uses the LUFA library to implement USB HID functionality. The project was first developed using the LUFA library's keyboard example, so as to have the build environment set up and working. Then, the code was modified to implement the desired functionality for the macropad.

However, since these are all in the project files, the build environment is already set up and working.

To modify the key mappings, lines 292-325 in Keyboard.c can be modified by replacing the keycode macros with the appropriate keycodes from LUFA's HID usage tables.

To modify the animation on the OLED display, the lines 65-135 in OLED.c can be modified with the appropriate bytes to display the desired animation. The OLED display has a resolution of 128x32 pixel display. To generate the byte array for the animation, use Javl's image2cpp tool. The relevant settings for the tool are:

  • Canvas Size: 128x32
  • Orientation: Vertical
  • Invert pixels: Yes (alternatively, line 191 in Keyboard.c can be commented to invert the pixels)

The other settings can be left as their default values. The generated byte array can then be copied into lines 292-325 in Keyboard.c.

After building the firmware, the resulting Keyboard.hex file can be flashed to the ATmega32U4 microcontroller using avrdude.

To flash the microcontroller, it needs to first be put into bootloader mode. This can be done by shorting the reset pin to ground. For approximately 8 seconds after doing this, the microcontroller will be in bootloader mode and can be flashed using avrdude.

Project Pictures

Special Thanks

  • Boyce Ang Kok Hong (Hong Guo Feng) [blocked] for helping with the design of the case, as well as providing help every step of the way.
  • HackClub for inspiring this project
  • Javl's image2cpp tool for generating the byte array for the OLED animation
  • LUFA library for providing the USB HID functionality
  • Sun Zizhuo for giving us a reason to make this project in the first place

Bill of Materials

Parts

20
QtyValueFootprintReferences
64.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6
6SW_PushMX_Only:MXOnly-1U-HotswapSW1, SW2, SW3, SW4, SW5, SW6
21kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR7, R8
1LOGOSilkscreen:zizhuo pcbG***
1OLED ModuleConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ1
1Sparkfun_Pro_MicroArduino:Sparkfun_Pro_MicroU1

The 17 most common of 20 parts.

Similar boards

  • 2 layers66.9 × 74.5 mmDeskHop Rev1, the printed circuit board in 3D

    DeskHop Rev1

    hrvach/deskhop

    Fast Desktop Switching Device

    20 parts7.9kGPL-3.0
  • 2 layers86.4 × 64.8 mmSlot machine, the printed circuit board in 3D

    Slot machine

    google/google-ctf

    Google CTF

    20 parts5.1kApache-2.0
  • 2 layers36.2 × 26.8 mmEsp32 minimal, the printed circuit board in 3D

    Esp32 minimal

    atopile/atopile

    Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️

    20 parts4kMIT
  • 2 layers108.1 × 393.8 mmSweep compact ble, the printed circuit board in 3D

    Sweep compact ble

    davidphilipbarr/Sweep

    Sweep - a small promicro based keyboard inspired by the Ferris.

    20 parts2.1k
  • 2 layers26 × 15.9 mmTPS54340 Buck Regulator, the printed circuit board in 3D

    TPS54340 Buck Regulator

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    20 parts1.2k
  • 2 layers67.6 × 30.5 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    20 parts1kGPL-3.0
  • 2 layers44.3 × 28.7 mmLin bus adapter esp32, the printed circuit board in 3D

    Lin bus adapter esp32

    hackclub/OnBoard

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

    20 parts915
  • 2 layers89.5 × 61.6 mmFreeDeck TH 2020-02, the printed circuit board in 3D

    FreeDeck TH 2020-02

    FreeYourStream/freedeck-hardware

    all the stuff you need to build your own FreeDeck

    20 parts772

Questions

How big is the Final macropad PCB?

It measures 64.7 × 63.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Final macropad use?

20 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 Final macropad KiCad files?

From the yuheng28/zizhuo-hackpad repository on GitHub, at the commit this page was made from: the board is pcb/final macropad.kicad_pcb and its schematic pcb/final macropad.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Final macropad design in my own project?

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