Skip to the content
2 layers75.5 × 80.5 mmHAckpad, the printed circuit board in 3D

Custom 6-key macro pad powered by a XIAO RP2040. Includes Fusion 360, Chrome, KiCad, Valorant, YouTube, and Arduino IDE shortcuts, plus a rotary encoder for volume control and an OLED display. Pressing the encoder switches to a Discord layer with controls for mute, deafen, screen sharing, and other Discord shortcuts.

Size
75.5 × 80.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
21
Nets
18
Pads
70
Tracks, vias
136, 12
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
25 Sep 2026
Updated
29 Oct 2026

Overview

HAckpad is an open-source printed circuit board by VickB8, from the VickB8/Dis-Cord repository on GitHub. It is a 2-layer board of 75.5 × 80.5 mm with 21 parts on 18 nets, routed with 136 tracks and 12 vias.

Its parts include 7 connectors, 7 switches, 3 resistors and 1 IC. It belongs with the lEDs and displays and keyboards and input boards of this library.

README

README.md

Dis-Cord

Custom 6-key macro pad powered by a XIAO RP2040 with a 0.91 inch OLED display. Includes Fusion 360, Chrome, KiCad, Valorant, YouTube, and Arduino IDE shortcuts, plus a rotary encoder for volume control and an OLED display. Pressing the encoder switches to a Discord layer with controls for mute, deafen, screen sharing, and other Discord shortcuts.

image alt

Inspiration

I wanted to make a custom macro pad that I could actually use while working on my computer. Instead of making all of the keys do the same type of shortcut. I wanted each key to have a different purpose depending on what i am doing.

I also wanted the hack pad to have more functionality than just six buttons, so I added a rotary encoder for volume control and an OLED display to show the current mode and volume.

The main ideas was to have one layer for my normal computer shortcuts and another layer specifically for discord.

Design Concept

I wanted the hackpad to be more than just a small PCB with switches on it, so I designed the physical setup around how I would actually use it at my desk.

I made an under-desk stand that holds the hackpad at an angle, making the keys easy to reach while keeping the OLED visible. The stand is designed to attach underneath the desk so the hackpad sticks out slightly instead of taking up space on the desk.

I also added a dedicated space for a flexible LED filament. I chose a flexible LED because it can follow the shape of the enclosure and add lighting without needing individual LEDs placed around the case. The lighting is mainly a visual design element and is integrated into the physical design of the hackpad.

How it Works

The hackpad uses a Seeed Studio RP2040 as the main microcontroller.

The six mechanical switches act as USB Keyboard inputs. When a key is presses, the XIAO RP2040 sends the programmed keyboard shortcute to the computer.

The rotary encoder controls the computer volume. Pressing the encoder button changes the hack pad from the m=normal mode to Discord mode.

The OLED Display shows the current mode and volume percentage so I can see what the hackpad is doing without needing to look at the computer.

Normal Mode

The normal mode is designed around programs and actions I commonly use.

SW1 Fusion 360 SW4 Valorant SW2 New Chrome tab SW5 Youtube SW3 KiCad SW6 Arduino IDE Rotary Encoder Volume Up/Down Encoder Button Switch to Discord Mode.

The six keys are programmed as shortcuts for quickly opening or switching to these programs and actions.

Discord Mode

Pressing the rotary encoder button switches the hackpad into the Discord layer.

In this mode, the six keys are changed to Discord controls so the same physical buttons can be used for completely different functions.

SW1 Mute SW4 Toggle Video SW2 Deafen SW5 Discord Shortcut SW3 Toggle Screen Share SW6 Discord Shortcut Rotary Encoder Volume Up/Down Encoder Button Switch to Discord Mode.

This allows hack pad to have more functions without needing to add more physical buttons.

OLED Display

The 0.9 inch OLED is used as a status display

It shows information such as:

Current Mode Normal Mode / Discord Mode Current Volume percentage

The display changes when the encoder button is pressed so it is easy to tell which set of functions the keys are currently using.

Rotary Encoder

The Rotary Encoder has two main functions

Turning the Encoder

Turn clockwise - Increase Volume Turn antiClockwise - Decrease Volume

Pressing the Encoder

Normal Mode - Discord Mode Discord Mode - Normal Mode

This gives the Hack pas a simple way to switch between two different sets of controls.

Challenges

One of the biggest challenges was figuring out how to fit six switches, a rotary encoder and an OLED display into a compact design while still making everything comfortable to use.

I also had to figure out how the XIAO RP2040 GPIO pins would be assigned to each component and make sure the schematic and PCB matched the firmware.

Another challenge was getting the rotary encoder to work correctly for both volume control and mode switching.

Designing the PCB in KiCad also took some troubleshooting, especially when working with footprints, silkscreen and the physical placement of the components.

The enclosure was another part of the project that required adjustments. I had to design the case around the actual PCB and components instead of treating the enclosure as a separate part.

What I Learned How to design a custom PCB in KiCad How to use the XIAO RP2040 How USB HID keyboard input works How to program mechanical keyboard switches How rotary encoders work How to use an OLED display How to create multiple keyboard layers How to send keyboard shortcuts from a microcontroller How to design a 3D-printed enclosure around a PCB How to use KiCad DRC to check a PCB How hardware and firmware have to work together

Components

1x Seeed Studio XIAO RP2040 6x MX-style mechanical keyboard switches 6x White blank DSA keycaps 1x Rotary encoder 1x 0.9 inch OLED display Custom PCB Connecting wires 3D-printed enclosure M3 hardware

PCB

The PCB was designed in KiCad and connects the XIAO RP2040 to the six switches, rotary encoder and OLED display.

The component placement was designed around the physical layout of the final hackpad.

image alt

Schematic

The schematic shows the electrical connections between the XIAO RP2040 and the different inputs and display components.

image alt

Case Design

The enclosure was designed specifically for the PCB and components.

I wanted the final design to look more like a finished product instead of just a PCB with switches attached to it. The case holds the electronics while keeping the switches, rotary encoder and OLED accessible.

For assembling the case, I used 5 mm M3 screws instead of the provided 16 mm M3 screws. The shorter screws worked better with my enclosure design and were enough to securely hold the parts together and have some space for the desk mount to easily slide in from the bottom

image alt

Under-Desk Stand

I designed a custom stand for mounting the hackpad underneath my desk.

The stand positions the hackpad at roughly a 40-degree angle so the buttons are easy to press and the OLED screen can still be seen while sitting at the desk.

image alt

Mounting it underneath the desk also keeps the main desk surface clear while making the hackpad easy to access.

image alt

Flexible LED

I also designed a dedicated space in the enclosure for a flexible LED filament.

I chose a flexible LED instead of using individual LEDs because it can bend around the shape of the design and give the hackpad a cleaner appearance.

The LED is integrated into the enclosure so it becomes part of the physical design rather than having separate LEDs mounted around the PCB.

image alt

image alt

Firmware

The firmware is written in Arduino/C++ and runs on the XIAO RP2040.

It handles:

Six mechanical switches Rotary encoder input Volume control OLED display Normal keyboard layer Discord keyboard layer Mode switching USB HID keyboard commands

The firmware allows the same physical buttons to perform different actions depending on the current mode.

Software

Arduino IDE Arduino/C++ USB HID keyboard functionality OLED display libraries

Features

6 programmable mechanical keys XIAO RP2040 microcontroller Rotary encoder Computer volume control 0.9 inch OLED display Two different control layers Discord control layer USB HID keyboard functionality Custom PCB Custom 3D-printed enclosure Custom key layout

Design Files

The repository contains the files for the different parts of the project including:

KiCad schematic KiCad PCB PCB design files 3D enclosure files Firmware Project images

Final Result

The finished hackpad combines the PCB, firmware, switches, OLED and enclosure into one device.

BOM (Bill of Materials)

Here is everything needed to build the Dis-Cord hackpad.

ComponentQuantityPurchase Link
Seeed XIAO RP20401AliExpress
WS2812B LEDs2DigiKey
Cherry MX Switches4Amazon
DSA Keycaps4Amazon
Rotary Encoder1Amazon
0.91-inch OLED1Amazon
1N4148 Diodes5Buy here
M3x5x4 Heat-set Inserts5Amazon
M3x16mm Screws3Amazon
M3x12mm Screws2Amazon
Custom PCB1JLCPCB

Tools Required

ToolQuantityPurchase Link
Soldering Kit1Amazon Canada

Total Project Cost

Prices are approximate averages in CAD and may vary by supplier.

ItemQuantityEstimated Cost (CAD)
Seeed XIAO RP20401$12.00
Cherry MX Switches4$4.00
DSA Keycaps4$6.00
Rotary Encoder1$4.00
0.91-inch OLED Display1$7.00
1N4148 Diodes5$1.00
WS2812B LEDs2$2.00
M3x5x4 Heat-set Inserts5$1.00
M3x16mm Screws3$0.50
M3x12mm Screws2$0.50
Custom PCB1$10.00
Estimated Component Total$48.00
Soldering Kit (reusable tool)1$25.00
Estimated Total Including Tools$73.00

Note: These are approximate component-use costs. Hardware may be sold in multipacks, and the actual checkout total can be higher due to minimum order quantities, shipping, and taxes. The soldering kit is reusable and is not included in the component total.

Extra Stuff

  • USB cable for connecting the macropad to a computer
  • Soldering iron and solder for assembly
  • 3D printer for the enclosure and mounting stand

The main goal of the project was to make something that was both useful and custom instead of just making a basic macro pad. The two-layer system lets me use the same six buttons for normal computer shortcuts and Discord controls.

This project helped me learn more about PCB design, embedded programming, USB HID, OLED displays, rotary encoders and designing physical enclosures for electronics.

Parts

21
QtyValueFootprintReferences
6Conn_01x01Connector_Wire:SolderWire-0.5sqmm_1x01_D0.9mm_OD2.3mmJ2, J3, J4, J5, J6, J7
6SW_PushButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PCBSW1, SW2, SW3, SW4, SW5, SW6
3MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3
3RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1, R2, R3
1Conn_01x04_SocketConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1MOUDLE-SEEEDUINO-XIAOfootprints:XIAO-Generic-Hybrid-14P-2.54-21X17.8MMU1
1RotaryEncoder_SwitchRotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mm_CircularMountingHolesSW7

Similar boards

  • 2 layers28.3 × 39.8 mmLevelShifter, the printed circuit board in 3D

    LevelShifter

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    21 parts5.1kGPL-3.0
  • 2 layers171.2 × 72.9 mmAmiga gfxcard before pour, the printed circuit board in 3D

    Amiga gfxcard before pour

    mntmn/amiga2000-gfxcard

    MNT VA2000, an Open Source Amiga 2/3/4000 Graphics Card (Zorro II/III), written in Verilog

    21 parts1k
  • 2 layers93.9 × 46 mmRectifier, the printed circuit board in 3D

    Rectifier

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    21 parts990GPL-3.0
  • 2 layers45.5 × 42.9 mmEsphome han reader, the printed circuit board in 3D

    Esphome han reader

    hackclub/OnBoard

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

    21 parts915
  • 2 layers31.8 × 14.5 mmEsp prog, the printed circuit board in 3D

    Esp prog

    drandyhaas/KiCadRoutingTools

    A set of Python/Rust tools to aid routing in KiCad

    21 parts744MIT
  • 2 layers23.5 × 15.8 mmQuiverAttachPCB, the printed circuit board in 3D

    QuiverAttachPCB

    Arrow-air/project-quiver

    Project Quiver documentation, designs, and project artifacts.

    21 parts617CERN-OHL-S-2.0
  • 2 layers69.9 × 41.3 mmHeaterMeterLCD, the printed circuit board in 3D

    HeaterMeterLCD

    CapnBry/HeaterMeter

    HeaterMeter and LinkMeter Arduino BBQ Controller

    21 parts557MIT
  • 2 layers161.3 × 111.8 mmDoj, the printed circuit board in 3D

    Doj

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    21 parts463

Questions

How big is the HAckpad PCB?

It measures 75.5 × 80.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the HAckpad use?

21 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 HAckpad KiCad files?

From the VickB8/Dis-Cord repository on GitHub, at the commit this page was made from: the board is Pcb/HAckpad.kicad_pcb and its schematic Pcb/HAckpad.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the HAckpad design in my own project?

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