Skip to the content
2 layers58 × 50 mmNexus-4, the printed circuit board in 3D

Okay, okay, okay. Let me introduce you to Nexus-4, a custom 4-key macropad. It features an inverted-T arrow key layout, a 128x32 OLED display, and a 3D-printed sandwich-mount case.

Size
58 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
6
Nets
14
Pads
38
Tracks, vias
38, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
29 May 2026
Updated
4 Oct 2026

Overview

Nexus-4 is an open-source printed circuit board by taksh-nahata, from the taksh-nahata/nexus-4 repository on GitHub. It is a 2-layer board of 58 × 50 mm with 6 parts on 14 nets, routed with 38 tracks and 0 vias.

Its parts include 4 switches, 1 IC and 1 connector. It belongs with the keyboards and input boards of this library.

README

README.md

Nexus-4 (my first piece of hardware)

Okay, okay, okay. Let me introduce you to Nexus-4, a custom 4-key macropad. It features an inverted-T arrow key layout, a 128x32 OLED display, and a 3D-printed sandwich-mount case. So I run the the software of this on a Seeed Studio XIAO RP2040 that runs my custom QMK firmware. I've even made some simple ASCII art animations(currently very simple tho)!


Completed Build & Demo

Finished Nexus-4 Top View Finished Nexus-4 Angle View Built and colored Nexus-4 Top View

Video Demonstration

Watch the Nexus-4 in action


Some Features

  • Custom 3D-Printed Enclosure: So basically, I made a two-piece sandwich-mount case (Top Plate + Bottom Case) which are connected together using screws at the corner.
  • Interactive OLED Animation: I've got a 0.91" 128x32 I2C OLED display at the top middle of the macropad, which shows ASCII animations that I made, and they react to your keystrokes.

Hardware & CAD Design

The cadded box I made for the macropad is a sandwich-mount structure, and I made it on Fusion 360. The PCB rests inside this enclosure, and it is topped by the Top Plate, which is secured using screws at the four corners. I've also made a side cutout in the Bottom Case, to give access to the RP2040's USB-C connector.

Case Assembly Overall View


PCB & Schematic

I made the PCB in KiCad completely. I used direct-pin connections to simplify the overall layout and also reduce the number of components I need.

  • Microcontroller: Seeed Studio XIAO RP2040
  • Display Interface: I2C (SDA on GP6, SCL on GP7)
  • Switch Routing:
    • Up Switch (SW1): GP2 (Pin D8)
    • Left Switch (SW2): GP3 (Pin D10)
    • Down Switch (SW3): GP4 (Pin D9)
    • Right Switch (SW4): GP1 (Pin D7)

Schematic PCB Layout


Firmware & OLED Logic

The firmware is compiled with QMK for the RP2040 (promicro_rp2040 target).

Layout:

  • KC_UP (Up Arrow)

  • KC_LEFT (Left Arrow)

  • KC_DOWN (Down Arrow)

  • KC_RIGHT (Right Arrow)

  • Keymaps: This is pretty standard and straight forward. It's just mapped to standard navigation keys (KC_UP, KC_LEFT, KC_DOWN, KC_RIGHT).

  • OLED Engine: The OLED screen shows an inverted (because the OLED is positioned the wrong way on the PCB), and centered ASCII text and animation. When there are no keys being pressed, there is a simple breathing sleep animation (zZz) and this cycles continuously. Pressing any key triggers process_record_user() to update the active expression in the direction of input (owo, >_<, o_o, -w-).


Bill of Materials (BOM)

This does not include all tools I used to build this. Only the components which are directly on the macropad. To view a full list of materials, you can view the BOM file I've attached to this repo.

CategoryComponentQuantity
ElectronicsSeeed Studio XIAO RP20401
Electronics0.91" 128x32 I2C OLED Display1
ElectronicsCherry MX-Compatible Switches4
ElectronicsCustom 2-Layer PCB1
Hardware3D-Printed Top Plate1
Hardware3D-Printed Bottom Case1
HardwareM4 (or M3) Screws & Nuts4
Keycaps1u Keycaps4

How can you make this?

  1. Surface-Mount the microchip: Start by soldering the RP2040 chip directly, flat to the PCB pads, using its castellated edges. This is to ensure that the chip is not raised any more than necessary to give enough spaces for the pins of the switches.
  2. Mount the OLED: Remove the plastic collar from the 4 pin header and then solder the bare pins between the PCB and the OLED. You will need to solder both sides, on the back side of the PCB and on top of the OLED, to ensure the connection is secure.
  3. Mount the Switches: Fit the switches perfectly into the holes from the top of the Top Plate (you will hear a click), and then you can align the PCB with the pins of the switches. Once perfectly aligned and all pins are somewhat through the holes of the PCB, you can solder them all to the PCB. Feed 2-3 mm of solder for this.
  4. Enclosure Assembly: You're basically done! Just drop the PCB assembly into the bottom case and then secure the sandwich using four corner bolts and nuts.
  5. Flash Firmware:
    • Enter bootloader mode by holding the Boot key or grounding GP26 (D0) on startup to mount the RPI-RP2 drive.
    • Compile and copy the .uf2 file:
      bash
      qmk compile -kb taksh_macropad -km default
    • Drag and drop Nexus-4_default into RPI-RP2.

Parts

6
QtyValueFootprintReferences
4SW_PushButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PCBSW1, SW2, SW3, SW4
1Conn_01x04KiCad-SSD1306-0.91-OLED-4pin-128x32:SSD1306-0.91-OLED-4pin-128x32J1
1MOUDLE-SEEEDUINO-XIAOfootprints:XIAO-Generic-Hybrid-14P-2.54-21X17.8MMU1

Similar boards

  • 2 layers18.5 × 11.1 mmSwitch, the printed circuit board in 3D

    Switch

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    6 parts4.3kMIT
  • 2 layers14.6 × 33 mmBrain board SD Card 1, the printed circuit board in 3D

    Brain board SD Card 1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    6 parts1.2k
  • 2 layers9 × 9 mmDpoint, the printed circuit board in 3D

    Dpoint

    Jcparkyn/dpoint

    Open-source digital stylus using camera tracking and inertial measurements

    6 parts1.1kMIT
  • 2 layers51.5 × 16.6 mmMicroswitchXY Endstop, the printed circuit board in 3D

    MicroswitchXY Endstop

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    6 parts1.1kGPL-3.0
  • 2 layers21.9 × 76.7 mmAmiga External, the printed circuit board in 3D

    Amiga External

    hoglet67/RGBtoHDMI

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

    6 parts1kGPL-3.0
  • 2 layers88.9 × 50.8 mmBusinesscard, the printed circuit board in 3D

    Businesscard

    hackclub/OnBoard

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

    6 parts915
  • 2 layers20.3 × 15.2 mmL0 RGB led, the printed circuit board in 3D

    L0 RGB led

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    6 parts546MIT
  • 2 layers9 × 3.6 mmOpticalEncoder, the printed circuit board in 3D

    OpticalEncoder

    adamb314/ServoProject

    Getting the most out of your hobby servo

    6 parts545

Questions

How big is the Nexus-4 PCB?

It measures 58 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Nexus-4 use?

6 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 Nexus-4 KiCad files?

From the taksh-nahata/nexus-4 repository on GitHub, at the commit this page was made from: the board is PCB/Nexus-4.kicad_pcb and its schematic PCB/Nexus-4.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Nexus-4 design in my own project?

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