---
title: "Sixfab AI HAT+ for Raspberry Pi 5"
description: "A HAT+ compliant accelerator for the Raspberry Pi 5 with a DEEPX DX-M1M NPU (25 TOPS), connected over PCIe Gen 3 x1. It runs INT8 vision models on the device."
url: "https://docs.sixfab.com/edge-ai/ai-hat-plus/"
last_updated: "2026-10-12"
---

# Sixfab AI HAT+ for Raspberry Pi 5

A HAT+ compliant accelerator for the Raspberry Pi 5 with a DEEPX DX-M1M NPU (25 TOPS), connected over PCIe Gen 3 x1. It runs INT8 vision models on the device.

- **NPU:** 25 TOPS (INT8 · DX-M1M · 2 GB LPDDR4X)
- **Host link:** PCIe Gen 3 (x1 · 16-pin FFC cable)
- **Typical power:** 3 W (DX-M1M, sustained)
- **Form factor:** HAT+ (65 × 56.5 mm)

![](https://docs.sixfab.com/wp-content/plugins/sixfab-docs-blocks/blocks/card/drawings/ai-hat-plus.svg?ver=1.0.1) ![](https://docs.sixfab.com/wp-content/plugins/sixfab-docs-blocks/blocks/card/drawings/ai-hat-plus-dark.svg?ver=1.0.1)

Vision models (detection, classification, segmentation) compiled to the DXNN format run on the NPU, several at once with `RunAsync` in the DEEPX runtime API. The Raspberry Pi 5 handles I/O, networking, and the application. No network connection is needed at runtime.

With the onboard HAT+ EEPROM, the Raspberry Pi 5 loads the NPU device tree overlay automatically. Use the board to add on-device vision to a small Raspberry Pi 5 build, such as an AI camera, a robot or a drone. To mount the board, install the runtime, and run a first model, follow the [Quickstart](https://docs.sixfab.com/edge-ai/ai-hat-plus/quickstart/).

## Compatibility

**Supported**

- **Raspberry Pi 5**

**Not supported**

- **Raspberry Pi 4** and earlier
- **Compute Module 4** and earlier
- **Compute Module 5** on the CM5 IO Board
- **Other SBCs** (Orange Pi, Rock Pi, Jetson)

> [!NOTE]
> **Compute Module 5**
>
> The AI HAT+ does not fit the CM5 IO Board, mechanically or electrically. For NVMe, LTE/5G, or extra I/O on a Raspberry Pi 5, use the [Sixfab Edge AI Expansion Board](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/).

The 40-pin header carries only power, ground, and the ID EEPROM lines; the other GPIO pins stay free.

> [!WARNING]
> **Power off Raspberry Pi 5**
>
> The AI HAT+ is not hot-pluggable. Power off the Raspberry Pi 5 and disconnect the USB-C supply before mounting or removing the board; mounting under power can damage the board and the Raspberry Pi 5.

## What’s in the box

**In the box** (6 parts)

- 1× **AI HAT+ board**: DX-M1M NPU
- 1× **PCIe FFC cable**: 16-pin, shielded
- 1× **Stacking header**: 2 × 20, 16 mm, clears an active cooler
- 4× **M2.5 × 16 mm spacers**: Female to female
- 8× **M2.5 × 5 mm screws**: Plastic, finger-tight only
- 1× **Passive cooler**: 20 × 20 mm; add a 3.3 V fan for sustained full load

**You’ll also need** (Buy separately · 4 items)

- **Raspberry Pi 5** (Required): 4 GB or more; 8 GB for multi-stream
- **27 W USB-C PD power supply** (Required): 15 W supplies are not enough
- **microSD card** (Required): 32 GB or more, A2
- **Camera** (Optional): Camera Module, USB, or RTSP; for live video only

> [!WARNING]
> **Check power supply first**
>
> Power the Raspberry Pi 5 from a 27 W USB-C PD supply. A weaker supply shows as [under-voltage warnings](https://docs.sixfab.com/edge-ai/ai-hat-plus/troubleshooting/#issue-power), resets and devices that disconnect; change the supply before suspecting the AI HAT+.

## How it works

1. **Capture**

   A CSI, USB, or IP camera feeds frames to the Raspberry Pi 5.

2. **Pre-process**

   The CPU resizes the frame, converts color, and packs the input tensor.

3. **Inference**

   The NPU runs the compiled DXNN model in INT8. Data moves over PCIe Gen 3 x1.

4. **Post-process**

   The application parses the outputs (NMS, for example) and sends the results to a display, a log, or an RTSP stream.

PCIe gives the NPU a dedicated data path, separate from USB and GPIO. CPU pre-processing is usually the first bottleneck: a Raspberry Pi 5 (8 GB) with the DX-M1M handles up to four 1080p streams.

## Software

The `sixfab-dx` package from the Sixfab APT repository installs the DEEPX runtime and the kernel driver. Raspberry Pi OS runs the PCIe link at Gen 2 until `dtparam=pciex1_gen=3` in `/boot/firmware/config.txt` raises it to Gen 3; the Quickstart sets both up. The Sixfab Model Zoo, compiling your own models with the DXNN SDK, and the limits of the stack are covered in [AI Model Deployment](https://docs.sixfab.com/edge-ai/ai-model-deployment/).

## Next steps

- [Quickstart](https://docs.sixfab.com/edge-ai/ai-hat-plus/quickstart/): Mount the board, install the runtime, enable PCIe Gen 3, verify the installation and run the first inference.
- [Hardware reference](https://docs.sixfab.com/edge-ai/ai-hat-plus/hardware-reference/): Specifications, pinout and GPIO, the PCIe FFC link, the HAT+ EEPROM bus, power, cooling, dimensions and compliance.
- [Troubleshooting](https://docs.sixfab.com/edge-ai/ai-hat-plus/troubleshooting/): NPU detection, the runtime, the PCIe link, power, temperature, and inference results.
- [FAQ](https://docs.sixfab.com/edge-ai/ai-hat-plus/faq/): Compatibility, performance, models and the DXNN SDK, power and heat, deployment, updates, and purchase.
- [Sixfab Model Zoo](https://docs.sixfab.com/edge-ai/ai-model-deployment/sixfab-model-zoo/): Pre-compiled DXNN models for detection, classification, segmentation, and pose, with FPS on the AI HAT+.

## Guides

- [DEEPX DX-M1 errors and fixes on Raspberry Pi 5](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/): DEEPX DX-M1 error messages from dx_rt, DKMS, PCIe and DX-COM on a Raspberry Pi 5 with the AI HAT+ or the Edge AI Expansion Board, each with the cause, a command to confirm it, and the fix.

## Projects

Start with [Choose project](https://docs.sixfab.com/projects/ai-hat-plus/choose-ai-hat-plus-project/), then set up [Frigate NVR](https://docs.sixfab.com/projects/ai-hat-plus/set-up-frigate-nvr-ai-hat-plus/) and the [camera feeds and MQTT](https://docs.sixfab.com/projects/ai-hat-plus/connect-camera-feeds-mqtt-frigate/) once; the builds below run on that setup.

- **[Get person alert from camera with Boss Detector](https://docs.sixfab.com/projects/ai-hat-plus/get-person-alert-camera-boss-detector/)**

  Detect people with Frigate on the AI HAT+ and publish a JSON alert over MQTT for each person event.

- **[Identify bird species with bird feeder camera](https://docs.sixfab.com/projects/ai-hat-plus/identify-bird-species-bird-feeder-camera/)**

  Name the bird species at a feeder camera with one NABirds model on the AI HAT+, one MQTT topic per species.

- **[Detect falls and count reps with pose estimation](https://docs.sixfab.com/projects/ai-hat-plus/detect-falls-count-reps-pose-estimation/)**

  Run a rep counter, a fall detection demo and a pose game on one YOLOv8n-pose engine at about 32 FPS.

[All projects](https://docs.sixfab.com/projects/)

## Get the AI HAT+

Buy it from the Sixfab Shop.

[Buy on Sixfab Shop](https://shop.sixfab.com/products/ai-hat-plus-raspberry-pi-5)
