---
title: "AI HAT+ pinout and GPIO"
description: "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."
url: "https://docs.sixfab.com/edge-ai/ai-hat-plus/hardware-reference/pinout-gpio/"
last_updated: "2026-10-12"
---

# 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.

| Pin | Name | Function |
| --- | --- | --- |
| 1, 17 | `3V3` | 3.3 V: logic supply, EEPROM pull-ups |
| 2, 4 | `5V` | 5 V: supply for the NPU and DC-DC regulators |
| 27 | `ID_SD` | HAT+ EEPROM data, at boot only; 3.9 kΩ pull-up<br>BCM 0 |
| 28 | `ID_SC` | HAT+ EEPROM clock, at boot only; 3.9 kΩ pull-up<br>BCM 1 |
| 6, 9, 14, 20, 25, 30, 34, 39 | `GND` | Ground |

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](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html).

> [!WARNING]
> **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 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. |
