Planning a Raspberry Pi Prototype HAT: Pin Ownership, Startup States and Test Access
A prototype board that fits a Raspberry Pi header gives you a convenient place to build a circuit. It does not decide which pins are available, how the circuit behaves before your program starts, or whether a connector can be reached after the board is mounted.
Those decisions are easier to make on paper than after a densely wired board is soldered. A small design record also makes the finished prototype easier to repair or reproduce.
Distinguish a prototyping board from automatic configuration
PMD Way's Prototype HAT Kit for Raspberry Pi includes a PCB, 2 × 20 female header and mounting hardware, with pads for an optional EEPROM. The bare kit is a construction platform. Empty EEPROM pads do not make the finished circuit identify itself or configure the operating system.
The official Raspberry Pi HAT resources describe identification and design requirements, including distinctions between add-on formats. Treat the kit's product name as a description of its intended use, not evidence that any circuit built on it automatically satisfies a HAT or HAT+ specification.
Before adding components, inspect the copper pattern. Determine which holes are individual pads, which are linked and where the header signals appear. Verify uncertain connections with an unpowered continuity test rather than assuming the board reproduces a solderless breadboard's contact pattern.
Write a pin contract
For every connection, record the physical header position, GPIO signal name, intended function and the device at the other end. Keep physical pin numbers and BCM GPIO numbers in separate columns. A label such as “pin 12” is ambiguous unless the numbering convention is stated.
Add ownership: which driver, service or application controls that signal? A pin assigned to a serial interface cannot simultaneously be treated as an unrelated output just because your own program has not opened it yet.
| Column | Example information to record |
|---|---|
| Header position and signal | Unambiguous physical and GPIO references. |
| Electrical direction | Input, output, bidirectional bus or supply. |
| Voltage domain | Permitted level at each connected device. |
| Software owner | Driver or application responsible for configuration. |
| Inactive behaviour | Required state before startup and after stopping. |
| Test location | An accessible point where the connection can be checked. |
Leave unused pins genuinely unused unless there is a documented reason to connect them. Spare copper can be valuable for later changes, while an unexplained connection becomes an obstacle.
Separate signal levels from supply rails
The official Raspberry Pi hardware documentation states that GPIO operate at 3.3 V and are not 5 V tolerant. The presence of 5 V supply pins on the same header does not change that limit.
Check every external module's signal output, not only its supply requirement. A module powered from 5 V may place 5 V on an output or bus pull-up. Use an appropriate interface where the voltage domains do not match, and verify its direction and behaviour when either side is unpowered.
Do not route motor or relay-coil current through a GPIO. Select the required driver and protection from the load's documentation. Keep load supply and return routing deliberate so a convenient shared pad does not become an unintended high-current path.
Define what happens before the application runs
Consider a prototype with a pushbutton input and a transistor-controlled indicator. During normal operation the program reads the button and controls the indicator. Before the program starts, however, the pin configuration may differ. Write down the intended inactive state of the driver and how the hardware establishes it.
Raspberry Pi's add-on board design guide discusses GPIO configuration sequencing. Default states and later firmware or operating-system configuration must not be confused with a guarantee that your application immediately controls a pin.
Where a defined state is needed, design suitable biasing or an enable arrangement using the connected device's thresholds and leakage specifications. Do not choose a resistor value by habit if it must overcome another pull resistor or driver. Check what happens if the program exits, crashes or restarts as well as during a normal boot.
Keep the identification pins for their intended purpose
The HAT design guide reserves physical pins 27 and 28, ID_SD and ID_SC, for board identification. Do not casually use them as spare button or indicator connections on a HAT-style design. If you add an EEPROM, follow the applicable specification for the device, connections and contents.
An EEPROM is not a storage area for arbitrary application settings simply because its pads are present. For a first prototype, it is often clearer to document the required manual software configuration and leave optional identification circuitry unpopulated until the functional circuit is established.
Make the board inspectable after assembly
Place external connectors where cables can enter without bending sharply over the Pi's connectors or cooling hardware. Allow room to tighten terminal screws and release connector latches. Check the actual board model and enclosure: mechanically similar Pi generations can have different clearance needs.
Reserve labelled test points for supply, ground and key signals. A test point should be reachable without sliding a probe between closely spaced header pins. Keep exposed solder joints and trimmed leads clear of metal connector shells underneath.
Use the mounting hardware to support the board rather than letting the header carry every cable force. Check standoff length with the real assembly, including any heatsink or fan. Tightening a screw should not bend the prototype board.
Commission in stages
- Inspect the unpopulated board and map its copper connections.
- Assemble the header and verify orientation before soldering the remaining joints.
- Add one functional section, then inspect for bridges and incorrect polarity.
- Check intended continuity and unintended supply connections with all power removed.
- Test the section through the planned power arrangement, with appropriate current limiting where applicable.
- Attach to the Pi only after the voltage and wiring checks pass, then verify one function at a time.
Save the pin contract, schematic, photographs and software configuration together. Repeat startup and shutdown checks after adding another section. A well-documented choice from the prototyping HAT collection becomes more than a compact circuit: it becomes a prototype whose behaviour can be understood before, during and after the application runs.