AI HAT+ pinout and GPIO

How the Sixfab AI HAT+ connects to the Raspberry Pi 5: the header pins it uses, power, the HAT+ ID EEPROM bus, and HAT stacking.

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.

PinNameFunction
1, 3.3 V power17, 3.3 V power3V33.3 V: logic supply, EEPROM pull-ups
2, 5 V power4, 5 V power5V5 V: supply for the NPU and DC-DC regulators
27, ID EEPROMID_SDHAT+ EEPROM data, at boot only; 3.9 kΩ pull-up
BCM 0
28, ID EEPROMID_SCHAT+ EEPROM clock, at boot only; 3.9 kΩ pull-up
BCM 1
6, Ground9, Ground14, Ground20, Ground25, Ground30, Ground34, Ground39, GroundGNDGround
  • 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:

  1. Another HAT (optional), on extra-long pass-through stacking headers.
  2. AI HAT+. Uses only the ID bus (BCM 0 and 1); every other GPIO passes through.
  3. 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 accessoryCompatibleNotes
Sixfab Base HATYesThe Base HAT uses USB, the AI HAT+ PCIe: no GPIO overlap. Check EEPROM coexistence.
Raspberry Pi Active CoolerYesThe AI HAT+ sits above it on the included M2.5 standoffs, with room for airflow.
Official Raspberry Pi 5 casePartialThe 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 HATsCheckUsually compatible. Check that the HAT does not use BCM 0 and 1, and fit stacking headers.