
LevelShifter
gusmanb/logicanalyzer
24 channel, 100Msps logic analyzer hardware and software

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

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

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

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

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.

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

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.


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.
Arduino IDE Arduino/C++ USB HID keyboard functionality OLED display libraries
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
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
The finished hackpad combines the PCB, firmware, switches, OLED and enclosure into one device.
Here is everything needed to build the Dis-Cord hackpad.
| Component | Quantity | Purchase Link |
|---|---|---|
| Seeed XIAO RP2040 | 1 | AliExpress |
| WS2812B LEDs | 2 | DigiKey |
| Cherry MX Switches | 4 | Amazon |
| DSA Keycaps | 4 | Amazon |
| Rotary Encoder | 1 | Amazon |
| 0.91-inch OLED | 1 | Amazon |
| 1N4148 Diodes | 5 | Buy here |
| M3x5x4 Heat-set Inserts | 5 | Amazon |
| M3x16mm Screws | 3 | Amazon |
| M3x12mm Screws | 2 | Amazon |
| Custom PCB | 1 | JLCPCB |
| Tool | Quantity | Purchase Link |
|---|---|---|
| Soldering Kit | 1 | Amazon Canada |
Prices are approximate averages in CAD and may vary by supplier.
| Item | Quantity | Estimated Cost (CAD) |
|---|---|---|
| Seeed XIAO RP2040 | 1 | $12.00 |
| Cherry MX Switches | 4 | $4.00 |
| DSA Keycaps | 4 | $6.00 |
| Rotary Encoder | 1 | $4.00 |
| 0.91-inch OLED Display | 1 | $7.00 |
| 1N4148 Diodes | 5 | $1.00 |
| WS2812B LEDs | 2 | $2.00 |
| M3x5x4 Heat-set Inserts | 5 | $1.00 |
| M3x16mm Screws | 3 | $0.50 |
| M3x12mm Screws | 2 | $0.50 |
| Custom PCB | 1 | $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.
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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | Conn_01x01 | Connector_Wire:SolderWire-0.5sqmm_1x01_D0.9mm_OD2.3mm | J2, J3, J4, J5, J6, J7 |
| 6 | SW_Push | Button_Switch_Keyboard:SW_Cherry_MX_1.00u_PCB | SW1, SW2, SW3, SW4, SW5, SW6 |
| 3 | MountingHole | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3 |
| 3 | R | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R1, R2, R3 |
| 1 | Conn_01x04_Socket | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | MOUDLE-SEEEDUINO-XIAO | footprints:XIAO-Generic-Hybrid-14P-2.54-21X17.8MM | U1 |
| 1 | RotaryEncoder_Switch | Rotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mm_CircularMountingHoles | SW7 |

gusmanb/logicanalyzer
24 channel, 100Msps logic analyzer hardware and software

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


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

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

Arrow-air/project-quiver
Project Quiver documentation, designs, and project artifacts.


It measures 75.5 × 80.5 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask VickB8 before reusing the design.