← How-Tos
raspberry-pi 3 days ago ◑ 7 views ◯ 3 min read

Prototyping with Raspberry Pi GPIO: HATs, pHATs, and Perma-Proto Boards Compared

raspberry pigpiohatphatperma-protoprototypingeeprom

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.

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.

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.

Comparison at a glance

HATpHATPerma-Proto
FootprintFull size, fixed specHalf size, informalVaries by board chosen
Auto-configurationYes, via EEPROMUsually notNo
Best forRepeatable, polished buildsCompact finished projectsPrototyping and one-offs
Design effortHighest (spec + EEPROM)ModerateLowest (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.