Skip to the content
2 layers71.4 × 99.7 mmRP2350A Macropad, the printed circuit board in 3D

RP2350A Macropad

arkandas/rp2350-macropad

RP2350A 3x3 mechanical macropad with a browser-programmable keymap and an on-board status LCD

Size
71.4 × 99.7 mm
Copper layers
2
Thickness
1 mm
Parts
85
Nets
87
Pads
334
Tracks, vias
559, 393
Pours
20
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
8 May 2026
Updated
6 Aug 2026

Overview

RP2350A Macropad is an open-source printed circuit board by arkandas, from the arkandas/rp2350-macropad repository on GitHub, published under the MIT licence. It is a 2-layer board of 71.4 × 99.7 mm with 85 parts on 87 nets, routed with 559 tracks and 393 vias.

It is built around the 74AHCT1G125GV, AHT20-F and RT6150AGQW, with the W25Q32JVZPIQ, ABM8-272-T3 and 1N4148W among its other parts. Its parts include 22 capacitors, 19 resistors, 14 diodes, 11 switches and 7 ICs. It belongs with the keyboards and input and interfaces and adapters boards and the RP2350 boards of this library.

Main components

11

README

README.md

RP2350 Macropad

A 3x3 mechanical macropad built around the Raspberry Pi RP2350A. It enumerates as a standard USB HID keyboard plus a USB CDC serial port, so each of the nine keys sends a configurable HID keycode and modifier combination. The key map is programmed over the serial port from a small web app, with no need to recompile or reflash the firmware to change it.

The board also drives a 1.14 inch ST7789 LCD that shows live temperature and humidity from an AHT20 sensor, basic system info (CPU clock, static RAM, uptime) and the current 3x3 key map. Three SK6805 RGB LEDs report status: power, caps lock, and an ambient temperature gradient.

Assembled RP2350 Macropad

Repository layout

text
.
├── Kicad/              KiCad 10 schematic, PCB and project files
├── assets/             Renders, board photos, exported schematic PDF
├── datasheets/         Datasheets for the main parts on the board
├── ibom/               Interactive HTML BOM
├── production/         Gerbers and fabrication outputs
└── code/
    ├── firmware/       RP2350 firmware (C, Pico SDK 2.2)
    ├── web-programmer/ Next.js web app for editing the key map
    └── host-actions/   Optional Python daemon for host-side macros

Hardware

  • MCU: RP2350A with 4 MB (32 Mbit) external QSPI flash (W25Q32)
  • Display: 1.14 inch ST7789 240x135 SPI LCD
  • Sensor: AHT20 I2C temperature and humidity
  • LEDs: three SK6805-EC20 (WS2812 compatible) on a single PIO chain
  • Switches: nine Cherry MX switches in a 3x3 matrix (rows GP5-7, columns GP2-4). The footprint takes the 5-pin PCB mount version, not the 3-pin plate mount one
  • USB: native USB on the RP2350, exposing an HID keyboard plus a CDC serial port
  • Debug: 3-pin JST-SH SWD connector (Raspberry Pi Debug Probe) and a 2.54mm UART header

The schematic and PCB are in Kicad/. Rendered images and a PDF schematic are in assets/, and an interactive BOM is in ibom/.

Firmware (code/firmware)

Built with the Raspberry Pi Pico SDK 2.2. The recommended setup is the official "Raspberry Pi Pico" VS Code extension, which downloads the SDK, toolchain and CMake into ~/.pico-sdk/ and provides the build, debug and flash actions used by .vscode/launch.json and .vscode/tasks.json.

Building from the command line

sh
cd code/firmware
export PICO_SDK_PATH="$HOME/.pico-sdk/sdk/2.2.0"
export PICO_TOOLCHAIN_PATH="$HOME/.pico-sdk/toolchain/14_2_Rel1"
cmake -S . -B build -G Ninja
cmake --build build

The output is build/rp2350-macropad.uf2. To flash, hold BOOTSEL while plugging the board in and copy the UF2 onto the mounted RPI-RP2 drive, or run picotool load build/rp2350-macropad.uf2 -fx. With a Debug Probe on the SWD connector, the VS Code extension can flash and debug over SWD directly.

Source files

  • main.c: main loop (USB tasks, matrix scan, sensor read, LCD draw, LED animation, the CDC command protocol, and key map persistence in the last flash sector).
  • usb_descriptors.c: composite USB descriptor (HID keyboard plus CDC).
  • st7789.c, st7789.h: minimal SPI driver and bitmap text routines for the ST7789 panel.
  • font5x7.h: 5x7 bitmap font used by the LCD text routines.
  • icons.h, tools/gen_icons.py: color macro icons, and the script that generates them.
  • ws2812.pio: PIO program driving the SK6805 LED chain.
  • tusb_config.h: TinyUSB configuration (HID and CDC enabled).
  • CMakeLists.txt, pico_sdk_import.cmake: build configuration.

Web programmer (code/web-programmer)

A Next.js app that talks to the firmware over the USB CDC serial port using the Web Serial API. It reads the current key map from the device, lets you assign a keycode and modifier combination (or a host macro) to each of the nine keys, and writes the new map back to the last sector of flash so it survives a reboot. A live tester highlights each key on an on-screen copy of the LCD as it is pressed.

Web Serial runs in Chromium browsers (Chrome, Edge and other Chromium based browsers) and in Firefox 151 and newer. Safari does not support it.

Running locally

sh
cd code/web-programmer
npm install
npm run dev

Open http://localhost:3000, click Connect via USB, choose the "Macropad Programmer" port from the browser picker, and edit the key map.

Host actions daemon (code/host-actions)

An optional Python daemon for macros that a single keystroke cannot express, such as running a script or toggling a system setting. A cell marked as a macro in the web programmer types nothing on its own; instead the firmware emits a serial event that the daemon turns into an action on the host. See code/host-actions/README.md for details.

USB CDC command protocol

The firmware exposes a line-oriented ASCII protocol on the CDC interface (115200 baud, although the rate is irrelevant on USB CDC). Each command is a single line ending in \n; responses are also single lines.

CommandResponse
INFOINFO:{"temp":..,"hum":..,"cpu_hz":..,"heap_used":..,"heap_free":..,"static_used":..,"uptime_ms":..,"flash_used":..,"flash_total":..}
GETCONFIG:k0,k1,k2,k3,k4,k5,k6,k7,k8,m0,m1,m2,m3,m4,m5,m6,m7,m8, nine HID keycodes followed by nine modifier bytes in row-major order
SET:k0,k1,...,k8,m0,m1,...,m8OK on success, ERR on a malformed payload. The new key map is written to the last 4 KB sector of flash and takes effect immediately
NAMENAME:<current device name>, empty if the device has never been renamed
SETNAME:<name>OK on success, ERR if <name> is longer than 31 bytes or contains a non-printable-ASCII byte. The name is persisted alongside the key map

In addition to the request/response commands above, the firmware emits two asynchronous push notifications while a host is connected. These are not replies to a request; they arrive whenever a key is touched:

EventWhen
PRESS:<idx>A physical key has just gone down (idx 0-8, row-major)
RELEASE:<idx>A physical key has just gone up

Hosts that do not care about these events can ignore any line whose first token is PRESS or RELEASE. The web programmer uses them to drive the live tester, and the host actions daemon uses them to trigger macros.

Modifier bits follow the standard USB HID convention: bit 0 = Ctrl, bit 1 = Shift, bit 2 = Alt, bit 3 = GUI/Meta, with the right-side modifiers in the upper nibble.

The key map is stored in the last flash sector with the following layout:

OffsetBytesField
0..34magic = 0xCA1A1002 (little-endian)
4..129keycodes (row-major)
13..219modifiers (row-major)
221name length (0..31; 0xFF is treated as "unset")
23..5432name bytes (printable ASCII, padded with 0xFF)

If the magic is missing or wrong (a fresh chip, or a firmware update that erased the sector) the firmware falls back to digits 1-9 with no modifiers and an empty name. Configs written by older firmware that did not yet have the name field still load: byte 22 reads as 0xFF and the name is treated as unset.

License

Released under the MIT License. See LICENSE.

Parts

85
QtyValueFootprintReferences
11100nCapacitor_SMD:C_0402_1005MetricC5, C9, C10, C13, C14, C15, C16, C17, C18, C20, C22
91N4148Weasyeda2kicad:SOD-123F_L2.7-W1.6-LS3.8-RDD1, D2, D3, D4, D5, D6, D8, D9, D10
9SW_PushPCM_Switch_Keyboard_Cherry_MX:SW_Cherry_MX_PCB_1.00uSW2, SW3, SW4, SW5, SW6, SW7, SW8, SW9, SW10
4MountingHole_PadMountingHole:MountingHole_2.2mm_M2_PadH1, H2, H3, H4
3SK6805-EC20easyeda2kicad:LED-SMD_4P-L2.0-W2.0-BRLED1, LED2, LED3
2100kResistor_SMD:R_0402_1005MetricR5, R6
2100nFCapacitor_SMD:C_0603_1608MetricC19, C21
215pCapacitor_SMD:C_0402_1005MetricC11, C12
21KResistor_SMD:R_0402_1005MetricR1, R15
227ohmResistor_SMD:R_0402_1005MetricR11, R12
24.7keasyeda2kicad:R0603R17, R18
24.7uFCapacitor_SMD:C_0402_1005MetricC7, C8
24.7uFRP2350_60QFN_minimal:C_0402_1005Metric_small_padsC3, C4
247uFCapacitor_SMD:C_0805_2012MetricC1, C6
25.1Keasyeda2kicad:R0402R2, R3
11.1A fuseeasyeda2kicad:FUSE-SMD_L4.7-W3.4F1
1100neasyeda2kicad:C0402C2
1100ohmResistor_SMD:R_0603_1608MetricR19
110KResistor_SMD:R_0603_1608MetricR13
110kResistor_SMD:R_0402_1005MetricR4
110keasyeda2kicad:R0402R10
11KResistor_SMD:R_0603_1608MetricR14
122ohmResistor_SMD:R_0603_1608MetricR16
12u2easyeda2kicad:IND-SMD_L2.5-W2.0L1
13.3ueasyeda2kicad:IND-SMD_L2.0-W1.6_AOTA-B201610S3R3-101-TL2
133ohmResistor_SMD:R_0402_1005MetricR9
1487kResistor_SMD:R_0402_1005MetricR7
174AHCT1G125GVeasyeda2kicad:SOT-23-5_L3.0-W1.7-P0.95-LS2.8-BLU7
186.6kResistor_SMD:R_0402_1005MetricR8
1ABM8-272-T3easyeda2kicad:CRYSTAL-SMD_4P-L3.2-W2.5-BLU5
1AHT20-Feasyeda2kicad:SENSOR-SMD-6_AHT20U6
1BOOTeasyeda2kicad:KEY-SMD_4P-L4.2-W3.2-P2.20-LS5.1-TLSW1
1JST DEBUGeasyeda2kicad:CONN-SMD_SM03B-SRSS-TB-LF-SN-PU3
1LOGOLOGOG***
1MBR120VLSFT1Geasyeda2kicad:SOD-123F_L2.8-W1.8-LS3.7-RDD7
1MMBT2222ALT1Geasyeda2kicad:SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BRQ1
1N114-2413THBIG01-H13easyeda2kicad:LCD-SMD_1.14IPS-LCDLCD1
1RP2350_60QFNRP2350_60QFN_minimal:RP2350-QFN-60-1EP_7x7_P0.4mm_EP3.4x3.4mm_ThermalViasU4
1RT6150AGQWeasyeda2kicad:WDFN-10_L3.0-W3.0-P0.50-BL-EPU2
1RUNeasyeda2kicad:KEY-SMD_4P-L4.2-W3.2-P2.20-LS5.1-TLSW11
1TYPE-C 16PINeasyeda2kicad:USB-C-SMD_TYPE-C-6PIN-2MD-073USB1
1UART PinoutConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1USBLC6-2SC6easyeda2kicad:SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BLD11
1W25Q32JVZPIQeasyeda2kicad:WSON-8_L6.0-W5.0-P1.27-BL-EPU1

Similar boards

  • 2 layers42 × 32 mmRAMS - PCB, the printed circuit board in 3D

    RAMS - PCB

    JanClyde05/Road-Accident-Monitoring-System

    This directory contains the planning, specification, and initial KiCad project for RAMS Wearable PCB Revision C. Do not fabricate from this directory yet -- manual schematic wiring and DRC verification are still needed.

    68 parts1
  • 2 layers58.2 × 60 mmInty FujiCard, the printed circuit board in 3D

    Inty FujiCard

    FujiNetWIFI/fujinet-hardware

    Schematics and design files for FujiNet hardware

    78 parts142
  • 4 layers35.1 × 58.3 mmPicoDAC, the printed circuit board in 3D

    PicoDAC

    Person-0/PicoDAC

    A USB-C to 3.5mm HiFi mini DAC

    46 parts2
  • 2 layers99.1 × 84.8 mmFrdm05-devboard, the printed circuit board in 3D

    Frdm05-devboard

    M-Skut/kl05z-devboard-demo

    Firmware + hardware for KL05Z Development Board Add-on

    71 parts1
  • 4 layers95.5 × 126 mmTTF CX, the printed circuit board in 3D

    TTF CX

    dermatoid-collab/EVC_FW

    Progetto hardware e firmware del sistema di controllo di un ascensore domestico a trazione (TTF) di LiftingItalia s.r.l. Quattro schede basate su STM32F446, collegate in CAN; il motore è comandato da un VFD.

    242 parts
  • 4 layers52.6 × 51.6 mmEos learn rp2350, the printed circuit board in 3D

    Eos learn rp2350

    embeddedos-org/eCAD-Hardware-Products

    Hardware designs + EE docs + Board datasheets of Multiple products

    53 parts8MIT
  • 2 layers93.4 × 42.6 mmEsp32-led controller v2, the printed circuit board in 3D

    Esp32-led controller v2

    arkandas/esp32-led-controller

    Controller for ws2812b/sk6812 LEDs

    66 parts5MIT
  • 2 layers29.6 × 54.3 mmDiscovery, the printed circuit board in 3D

    Discovery

    corvad/argus

    Monorepo

    42 parts1MIT

Questions

How big is the RP2350A Macropad PCB?

It measures 71.4 × 99.7 mm and has 2 copper layers, 1 mm thick.

What parts does the RP2350A Macropad use?

85 parts, built around the 74AHCT1G125GV, AHT20-F, RT6150AGQW and W25Q32JVZPIQ. 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 RP2350A Macropad KiCad files?

From the arkandas/rp2350-macropad repository on GitHub, at the commit this page was made from: the board is Kicad/RP2350A_Macropad.kicad_pcb and its schematic Kicad/RP2350A_Macropad.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the RP2350A Macropad design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).