40-pin GPIO header
The AI HAT+ uses 14 header pins: power, ground, and the HAT+ ID EEPROM bus. The PCIe link runs over the separate 16-pin FFC cable.
| Pin | Name | Function |
|---|---|---|
| 1, 3.3 V power17, 3.3 V power | 3V3 | 3.3 V: logic supply, EEPROM pull-ups |
| 2, 5 V power4, 5 V power | 5V | 5 V: supply for the NPU and DC-DC regulators |
| 27, ID EEPROM | ID_SD | HAT+ EEPROM data, at boot only; 3.9 kΩ pull-up BCM 0 |
| 28, ID EEPROM | ID_SC | HAT+ EEPROM clock, at boot only; 3.9 kΩ pull-up BCM 1 |
| 6, Ground9, Ground14, Ground20, Ground25, Ground30, Ground34, Ground39, Ground | GND | Ground |
- 5 V power
- 3.3 V power
- Ground
- ID EEPROM
All other pins, the 26 GPIO (BCM 2 to 27) with I²C 1, SPI, UART, and PWM, pass through unconnected for your application or a stacked HAT. For the full header pinout, see the Raspberry Pi hardware documentation.
BCM 0 and 1 are reserved
Pins 27 and 28 (BCM 0 and 1) are the ID EEPROM bus on every HAT+ board. Do not connect other devices to them while a HAT+ board is mounted.
Power
The AI HAT+ takes all its power from the 40-pin header: 5 V on pins 2 and 4 for the NPU and the onboard DC-DC regulators, 3.3 V on pins 1 and 17 for the logic ICs and the EEPROM pull-ups. The 16-pin FFC carries the PCIe link and the power-enable signal, not supply power.
HAT stacking
The AI HAT+ uses almost no GPIO, so it stacks with most HATs. The stack, top to bottom:
- Another HAT (optional), on extra-long pass-through stacking headers.
- AI HAT+. Uses only the ID bus (BCM 0 and 1); every other GPIO passes through.
- Raspberry Pi 5, the host, connected through the 40-pin header and the 16-pin FFC cable.
Requirements
- Extra-long pass-through headers. To stack a HAT on top, replace the AI HAT+ headers with extra-long pass-through headers or add a header extender. Not included.
- Header height. The upper HAT must clear the NPU and its thermal pad, 6.56 mm above the AI HAT+ PCB without heatsink. With the mating depth of the upper HAT, standard 14 to 17 mm pass-through headers are the practical minimum.
- EEPROM coexistence. If the upper HAT also has an EEPROM on the ID bus, check that the device tree fragments do not conflict. The AI HAT+ EEPROM is set up to share the bus.
- FFC routing. The cable stays between the AI HAT+ and the Raspberry Pi 5; route it so the upper HAT does not pinch it.
Compatibility
| HAT or accessory | Compatible | Notes |
|---|---|---|
| Sixfab Base HAT | Yes | The Base HAT uses USB, the AI HAT+ PCIe: no GPIO overlap. Check EEPROM coexistence. |
| Raspberry Pi Active Cooler | Yes | The AI HAT+ sits above it on the included M2.5 standoffs, with room for airflow. |
| Official Raspberry Pi 5 case | Partial | The board fits, but the lid does not close: the AI HAT+ and the NPU are too tall. Remove the fan insert and leave the top open, or use another enclosure. |
| Other HATs | Check | Usually compatible. Check that the HAT does not use BCM 0 and 1, and fit stacking headers. |