Skip to the content
2 layers57.4 × 52.8 mmH3m3-multipurpose-6key macropad, the printed circuit board in 3D

H3m3-multipurpose-6key macropad

hien-cmd/h3m3-multipurpose-6key-macropad

A macro pad for BOTH gaming and casual work, with 3 magnetic keys with adjustable sensitivity for rapid trigger and 3 normal mechanical keys.

Size
57.4 × 52.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
16
Nets
23
Pads
85
Tracks, vias
70, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
5 Aug 2026
Updated
21 Oct 2026

Overview

H3m3-multipurpose-6key macropad is an open-source printed circuit board by hien-cmd, from the hien-cmd/h3m3-multipurpose-6key-macropad repository on GitHub, published under the MIT licence. It is a 2-layer board of 57.4 × 52.8 mm with 16 parts on 23 nets, routed with 70 tracks and 0 vias.

It is built around the RP2040-ZERO. Its parts include 3 ICs and 3 switches. It belongs with the keyboards and input boards and the RP2040 boards of this library.

Main components

1

README

README.md

H3M3 - THE multi-purpose 6 key macro pad

This is a 6 key macro pad with 6 programmable keys, 3 being hotswap mechanical switches for casual work and the other 3 being magnetic switches for with adjustable sensitivity for gaming.

here's what it looks like all together

Features

  • 3 hotswap mechanical switches
  • 3 interchangable magnetic switches
  • Fully programmable keys and firmware(now can all be modified in a config.json file!)
  • Small form factor
  • Open source hardware and firmware

BOM

bill of materials

Tools needed

  • Soldering iron and a bit of solder
  • Hot glue gun and a bit of glue
  • 3D printer

Firmware

  • code.py, built using CircuitPython and KMK

Schematic

schematic

PCB

pcb

3D-printable case

cad

Prerequisites

-Has all the hardware needed -Has the 3d printed case, keycaps and the PCB

Assembly instructions

  1. Solder hotswap sockets onto pcb
  2. Solder RP2040-Zero headers in if you haven't yet, then solder RP2040-ZERO to PCB
  3. Solder in Hall Effect sensors so it sits on the holes in each magnetic switch slot on the PCB
  4. Put the PCB into the case
  5. Fit the 3 mechanical switches through the casing and fit the pins into the hotswap sockets, so the PCB sits where it should be, then fit the magnetic switches in
  6. Put the keycaps on each switch
  7. Put the upper half onto the bottom casing, you can glue it together if you want but gravity already keeps it stable, personally I don't so i can quickly fix hardware issues case-assembly1 case-assembly2

Firmware installation

  1. Install CircuitPython on the RP2040-Zero:
    1. Plug the RP2040-Zero into your computer, a new storage disk should appear
    2. Download the CircuitPython file here: https://circuitpython.org/board/waveshare_rp2040_zero/
    3. Drag that file into the storage disk, the disk should rename itself into "CIRCUITPY"
  2. Download the full adafruit_hid library here: https://github.com/adafruit/Adafruit_CircuitPython_HID
  3. Download the full kmk library here: https://github.com/KMKfw/kmk_firmware
  4. Drag ONLY the "adafruit_hid" and "kmk" folders inside their corresponding folders and put it in the "lib" folder in the "CIRCUITPY" disk
  5. Drag the provided "code.py" file into the "CIRCUITPY" disk and REPLACE the existing code.py file
  6. Drag the config.json file into the "CIRCUITPY" disk

Default keymap(m=mechanical switch, a=analog/magnetic/hall effect switches)

M1 - a M2 - b M3 - ESC A1 - z A2 - x A3 - c

Programming and customization guide

How the magnetic switches work

Each magnetic switch is read as an analog voltage through a Hall Effect sensor. Rather than a single fixed on/off point, the firmware measures each sensor's own resting voltage at boot, then watches for it to dip by a set amount when a magnet gets close. This means switch to switch differences in magnet strength or sensor tolerance are absorbed automatically, and every tuning value below is a depth or delta relative to that switch's own resting point rather than an absolute voltage.

config.json structure

config.json has three top level sections:

  • "mechanical_keys": a list of 3 key names for the mechanical switches, in the order M1, M2, M3
  • "hall_effect": one entry per magnetic switch (GP27, GP28, GP29), each with a "key" name and, optionally, its own overrides for any of the per switch tuning values below
  • "tuning": the global defaults used by any magnetic switch that doesn't set its own override, plus a few board wide settings

Per switch tuning

Inside a switch's entry under "hall_effect", any of these can be set individually for that switch. Leave one out and it falls back to the matching value in "tuning" instead:

  • "actuation_depth": how far, in volts, the voltage has to drop from that switch's own resting point before it registers as pressed. This is the main sensitivity knob, lower means a lighter, earlier press
  • "hysteresis": the gap, in volts, between the press point and the release point, only used when "rapid_trigger" is off. Keeps a switch sitting right at the threshold from chattering
  • "rapid_trigger": turns rapid trigger on or off for this switch on its own, so you can mix and match. On means fast reset for gaming, off means the key stays held down until you physically let it back up, which is what you want for a hold to repeat key
  • "rt_press_delta": with "rapid_trigger" on, how far the voltage has to push back down from the highest point reached since release before it re-presses
  • "rt_release_delta": with "rapid_trigger" on, how far the voltage has to lift back up from the deepest point reached since pressing before it releases
  • "rest_v": the resting voltage to use for that switch if "auto_calibrate" is turned off
  • "reject_v": that switch's fault floor, see the warning under board wide tuning below

Board wide tuning

These live only in "tuning" and apply to every magnetic switch:

  • "debug": prints resting voltage at boot and live readings a few times a second when true, off by default since it does slow the board down slightly
  • "auto_calibrate": measures each switch's own resting voltage at boot instead of using a fixed "rest_v". Leave this on unless you have a specific reason not to
  • "rapid_trigger": the default for every switch that doesn't set its own, turns on press and release based on direction of travel rather than a single fixed point, this is what makes the switches feel fast for gaming. Turn it off for simple, predictable single actuation behavior instead
  • "filter_strength": how much incoming noise gets smoothed out, higher is smoother but slightly slower to react. 2 is a good starting point
  • "reject_v": a fault floor, any reading below this is treated as a disconnected or malfunctioning sensor and the key is forced off.

Magnetic/Hall Effect switches calibration

As mentioned in the properties list, rapid trigger and more advanced functions need fine tuning and proper calibration:

  1. Set "debug" in config.json to "true" and save the file
  2. Open a serial monitor such as Thonny or Terminal(I personally use Terminal's built-in screen function) at baud 115200
  3. Note the resting value of each switch at boot
  4. One by one press each magnetic switch and note the voltage when it is pressed.
  5. The difference between the resting voltage and the one where it's fully pressed is its full travel. A good "actuation_depth" value for each switch is about a third to half of that value, adjust to however you want it. Here's some reference ranges:
  • Small actuation_depth (0.05 to 0.10) very sensitive
  • Medium (0.15), about halfway down
  • Large (0.25 and up) deeper presses.
  1. If the switches starts pressing on its own, remove the switches in that slot immediatly and raise its actuation depth
  2. Set "debug" back to false once you're done Or if you want a quicker way(however not that precise) you can just raise or lower the preset actuation depth and have a feel for it.

Debug functions

When "debug" is set to "true" in the config.json, it prints each magnetic switch's resting voltage at boot and then its live current voltage. This can be seen with a serial monitor such as Terminal's built in screen function to calibrate actuation depth. Leave it off if you aren't calibrating it because it does make a slightly less reactive.

Mechanical switches properties

keyboard.matrix: - pins: this defines the pins where the mechanical switches are placed. - value_when_pressed: this is the value when the key is pressed. It is determined by the microcontroller's pull up resistor, which registers a constant HIGH/True(3.3V) until the mechanical switch is pressed and join the pin with GND, which pulls it down to Low/False(0V). This can be changed(but in most cases don't). keyboard.keymap: this defines what is typed when a keystroke is registered, can be changed at line 100

##Credits -Keycaps made by this parametric model maker: https://makerworld.com/en/makerlab/parametricModelMaker?designId=2182165&from=model_page&modelName=Keycap_customizable_v1_template.scad&protected=true&unikey=a6cd5a4e-c0e8-4990-b4b3-d559a98cbdf8 -Footprint for Kailh hotswap sockets: https://github.com/kiswitch/keyswitch-kicad-library

AI usage in this project

Only some parts of the code was written by AI, primarily to fix bugs and the schematic, PCB, 3d printable case is completely hand designed by me. All code is reviewed and modified by me. This README of course is made by me.

Possible future improvements

text
-RGB lighting
-Rotary encoder slot 

License

MIT License

Parts

16
QtyValueFootprintReferences
9, , , , , , , ,
3A1301xUAPackage_TO_SOT_THT:TO-92SU1, U2, U3
3SW_Pushkeyswitches.pretty-master:Kailh_socket_MXSW1, SW2, SW3
1RP2040-ZeroRP2040-Zero:RP2040 ZeroRP2040 slot

Similar boards

  • 2 layers132.3 × 94.9 mmCheapino, the printed circuit board in 3D

    Cheapino

    tompi/cheapino

    An affordable split 36 keys keyboard

    59 parts1.2kCC-BY-4.0
  • 2 layers321 × 92.3 mmMx40, the printed circuit board in 3D

    Mx40

    zzeneg/stront

    Split keyboards with 38 or 40 keys, LCD display and Cirque trackpad

    181 parts353MIT
  • 2 layers255.9 × 99.3 mmZerosprey42, the printed circuit board in 3D

    Zerosprey42

    beekeeb/zerosprey42

    Zerosprey42 Keyboard is a wired, beginner friendly, choc hotswap, MonoBlockSplit (Unibody), column-staggered, DIY mechanical keyboard.

    96 parts140
  • 2 layers146.3 × 69.5 mmStress, the printed circuit board in 3D

    Stress

    GroooveBob/Stress

    Pocket Arcade Fight Pad

    22 parts102MIT
  • 2 layers54 × 64 mmDonConIOmini, the printed circuit board in 3D

    DonConIOmini

    ravinrabbid/DonCon2040

    RP2040 based firmware and hardware for DIY Taiko no Tatsujin Drum Controllers

    96 parts66MIT
  • 2 layers52 × 50 mmRP2040-TestPatternGenerator VGA, the printed circuit board in 3D

    RP2040-TestPatternGenerator VGA

    nmur/RP2040-TestPatternGenerator

    A simple test pattern generator running on the RP2040 microcontroller

    12 parts64GPL-3.0
  • 2 layers120 × 40 mmBuinchiez40, the printed circuit board in 3D

    Buinchiez40

    ChrisChrisLoLo/bunchiez40

    A pocket keyboard that makes use of mouse switches to achieve a miniscule size

    90 parts56GPL-3.0
  • 2 layers305.2 × 76.2 mmSoroka, the printed circuit board in 3D

    Soroka

    kapee1/soroka

    40% DIY-keyboard with base kit support

    126 parts47Unlicense

Questions

How big is the H3m3-multipurpose-6key macropad PCB?

It measures 57.4 × 52.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the H3m3-multipurpose-6key macropad use?

16 parts, built around the RP2040-ZERO. 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 H3m3-multipurpose-6key macropad KiCad files?

From the hien-cmd/h3m3-multipurpose-6key-macropad repository on GitHub, at the commit this page was made from: the board is PCB/Untitled.kicad_pcb and its schematic PCB/Untitled.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the H3m3-multipurpose-6key 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).