A Cleaner MacroPad Build Reveals a Magnetic Calibration Trap

macropad, PCB, Hall sensors

This is the read-only HTML version. For the full Visual Space experience, open the app.

macropad, magnetic tiles — Ima

macropad, magnetic tiles — Ima
macropad, magnetic tiles — Ima
macropad, magnetic tiles — Ima
macropad, magnetic tiles — Ima

Source: MacroPad With Tile Holder Buttons PCB Edition on Hackaday.io · Michael Gardi

magnetic tiles, PCB design

Michael Gardi replaced fragile hand wiring with custom PCBs in a tile-based MacroPad. The redesign simplified assembly, but switching Hall-effect sensors exposed a less obvious dependency: the magnets, their spacing and the sensor sensitivity all had to agree.

👆 1
❤️ 1

A removable tile can do more than label a macro button: it can carry a magnetic code that tells the controller which macro it represents. Michael Gardi’s MacroPad With Tile Holder Buttons PCB Edition on Hackaday.io develops that idea into a cleaner assembly, replacing awkward hand wiring with custom circuit boards. The interesting catch is that improving the construction also changed how the tiles read.

This is a late-2023 build, with supplied logs running from November 9 through December 17. Gardi describes it as the third of three related tile-based MacroPads and says this version finally felt finished. Its useful lessons sit inside the enclosure: moving-button wiring, sensor alignment and a component substitution that wasn’t quite a drop-in replacement.

The tile is part of the interface

Each tile holder combines a physical button with two Hall-effect sensors. Magnets in the removable tile produce readings that identify it, while the switch provides the button action.

Gardi’s November 9 tiling log explains the encoding. The software subtracts a calibrated no-magnet midpoint from each sensor reading. Five magnet-holder depths produce five distances from the sensor; reversing the magnet polarity gives readings on the opposite side of that midpoint. Those combinations are assigned the digits zero through nine.

Two magnet positions then represent a two-digit value. In Gardi’s example, a tile assigned 15 uses a positive-polarity magnet in holder 1 and a reversed-polarity magnet in holder 0, which maps to 5. The label and the order of the magnets therefore have to agree: 15 and 51 aren’t interchangeable.

There was also a separate alignment issue. Gardi reports that the sensing point in the earlier SS49E parts wasn’t centered in the package. That meant flipping a tile could alter its readings even when both encoded digits were the same. A December 17 update to the tiling log says the PCB version aligned the magnets and sensors correctly and read tiles in either orientation. That fixes the physical alignment problem; the order of a two-digit code still matters.

Why boards were worth making

The redesign began with a failure rather than a cosmetic preference. Gardi reports that a button in the previous MacroPad failed after a couple of days. He considered its hand-wired construction a weak point, particularly because repeated pressing could stress the solder joints.

The replacement uses a small sensor PCB inside each tile holder and a main PCB in the base. The holder’s four connections carry ground, power and the two sensor outputs. A printed insert secures the sensor board inside the button, and the wires pass through a dedicated channel.

On the main board, a Pro Micro sits alongside a socketed CD4067BE 16-channel analog multiplexer. The November 17 base-assembly log describes fitting the board over the switch pins and adding right-angle headers for the tile-holder connections.

The boards remove much of the tangled wiring, but they don’t remove every mechanical constraint. Gardi changed the header orientation to make the connectors easier to reach and leave enough slack for button movement. That put the headers a few millimeters below the original base, so he used rubber feet for this build and deepened the 3D model for subsequent ones.

He also warns that the switches must sit flush before soldering. A tilted switch can make its button scrape against the upper slots or stick. A tidy PCB still depends on a well-aligned mechanical assembly.

The sensor swap that saturated the readings

The small button boards were Gardi’s first project using surface-mount parts. In the November 12 sensor-board log, he describes practicing with 0402 resistors, printing a PCB-holding jig, applying solder paste with a stencil and using the reflow oven at his local makerspace, Kwartzlab, with help from other members.

Assembly went well. The surprise came when he tested an existing calibration tile.

Gardi had checked that the new EQ-430L surface-mount Hall sensors were linear and bipolar, like the previous through-hole SS49E parts. He hadn’t accounted for their different sensitivity. He reports that the new sensors were much more sensitive, and suggests that better magnet alignment may have amplified the effect.

Instead of distinct readings for different magnet distances, the old tiles produced values at approximately 0 or 1018, depending on polarity. With no magnet present, the readings remained in the low 500s. The electronics responded to the magnets, but the useful distinctions between tile values had collapsed at the ends of the reading range.

That matters because this interface needs more than magnet detection. It needs several distinguishable magnetic levels on each side of the neutral point. Two parts can share the descriptions “linear” and “bipolar” without producing interchangeable results in the same geometry.

The visible log excerpt ends as Gardi begins discussing recalibration, so it doesn’t show the final adjustments. The project overview describes a finished MacroPad, and the December log says that version works, but those statements don’t supply the missing calibration details.

Flexible wiring finishes the job

The later work returns to the original problem: making a moving button behave mechanically as well as electrically.

In the November 18 final assembly, Gardi added a laser-cut 3 mm acrylic guide to the top panel, reporting that it reduced the grating feel and noise when pressing a tile-holder button. Caps over the switches retained the stabilizer wires.

By the December 17 rework, he was addressing a subtler nuisance. The MacroPad worked, but its solid-core wires were stiff enough to tilt the buttons, and attaching the connectors was awkward. He switched to soft silicone-insulated, stranded 28 AWG wire and right-angle connectors. The revised wiring used 42 mm lengths on the left and 46 mm on the right, where the connector needed a half-turn before attachment.

Those small changes are the strongest takeaway from the build. A PCB can secure the sensors and simplify the connections, yet the short wire harness still has to move freely with the button. Likewise, a better-positioned sensor still has to operate within a useful range for the magnets it reads.

Gardi links a project repository for anyone exploring the design further. Before committing to a full set of tiles, the most valuable prototype is one complete moving button: test its encoded levels, flip the tile, and check that the harness doesn’t pull the holder out of alignment. Here, the circuit, calibration and mechanics are all parts of the same interface.

Source: MacroPad With Tile Holder Buttons PCB Edition

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.