Prototyping with Raspberry Pi GPIO: HATs, pHATs, and Perma-Proto Boards Compared
Once you're past blinking an LED from a breadboard, a Raspberry Pi project usually needs a more permanent way to connect to its GPIO header, and there are three very different paths to get there: a full-size HAT, a half-size pHAT, or a solderable Perma-Proto board. They look similar at a glance stacking boards sitting on the 40-pin header but they solve different problems, and picking the wrong one is a common source of wasted boards and frustrated debugging sessions.
HATs: the standardized, auto-configuring option
A HAT (Hardware Attached on Top) follows the Raspberry Pi Foundation's formal specification: a fixed 65mm x 56mm outline, four mounting holes in defined positions, and critically, an EEPROM chip that identifies the board to the Pi at boot. When a properly built HAT is attached, Raspberry Pi OS reads that EEPROM and can automatically configure device tree overlays, load the right drivers, and set GPIO pin modes without you touching config.txt by hand.
- Best for: projects you want to reproduce reliably across multiple Pis, boards you're designing for other people to use, or anything where "plug it in and it just works" matters
- Downside: full-size footprint means it covers the whole board, and designing a compliant HAT (including the EEPROM programming step) is more work than most one-off projects need
pHATs: HAT-shaped, without the ceremony
A pHAT is a half-size board (roughly 65mm x 30mm) that follows the same header pinout convention as a HAT but skips the formal mechanical spec and, usually, the EEPROM requirement. Most commercial pHATs (Pimoroni's lineup is the best-known example) rely on a driver you install manually via a setup script rather than auto-detection.
- Best for: compact builds where a full HAT footprint is wasted space, and where you're comfortable running an install script rather than relying on plug-and-play detection
- Downside: less standardized than HATs there's more variation between manufacturers in exact dimensions and mounting hole placement, so case compatibility is less predictable
Perma-Proto boards: for circuits that don't exist yet
A Perma-Proto board is just a solderable prototyping board laid out like a breadboard's copper pattern, sized to sit on the Pi's header (Adafruit's Pi-sized Perma-Proto is the common reference point). There's no driver, no EEPROM, no standard pinout beyond "it physically fits the header" it's a blank canvas for whatever circuit you've already proven out on a breadboard and now want to make permanent.
- Best for: one-off and experimental circuits, anything still being iterated on, or projects where buying or designing a dedicated HAT doesn't make sense for a single unit
- Downside: you're doing all the wiring and any needed level-shifting or protection circuitry yourself, and there's no automatic driver loading since there's no defined hardware for an OS to recognize
Comparison at a glance
| HAT | pHAT | Perma-Proto | |
|---|---|---|---|
| Footprint | Full size, fixed spec | Half size, informal | Varies by board chosen |
| Auto-configuration | Yes, via EEPROM | Usually not | No |
| Best for | Repeatable, polished builds | Compact finished projects | Prototyping and one-offs |
| Design effort | Highest (spec + EEPROM) | Moderate | Lowest (just wire it up) |
When to skip all three and just use jumper wires
For a genuinely temporary experiment say, testing whether a sensor works at all before committing to any permanent mounting a handful of female jumper wires straight from the GPIO header is still the fastest path. Perma-Proto boards earn their keep once you know the circuit works and want it to survive being bumped, moved, or left running unattended for weeks; don't reach for solder until you're past the "does this even work" stage.
Designing your own HAT
If you do want full HAT compliance for a board you're distributing to other builders, the EEPROM programming step is the part people skip and then wonder why their board doesn't auto-configure. The Raspberry Pi Foundation publishes the HAT EEPROM format and a Python utility (eepmake / eepflash) for writing the identification data; budget time for this as a distinct step from the PCB design itself, since it requires a one-time I2C programming connection to a blank EEPROM chip before the board behaves like a real HAT.