Works with
Before you begin
Hardware
- Raspberry Pi 54 GB RAM or more. See Compatibility.
- USB-C PD power supply, 27 W or moreThe official Raspberry Pi 27 W or 45 W supply. The Raspberry Pi 5 and AI HAT+ draw 13 to 15 W during inference; a 15 W supply causes under-voltage warnings.
- Display, micro HDMI to HDMI cable, USB keyboard and mouseFor the Raspberry Pi desktop, where the first inference opens its window. VNC works instead.
- Raspberry Pi Active CoolerOptionalRecommended. Keeps the Raspberry Pi 5 CPU from throttling under sustained load.
- USB or CSI cameraOptionalThe demo also runs on a video file.
Software
- microSD card with Raspberry Pi OS (Trixie, 64-bit)Internet access is needed during the runtime install.
- 1×AI HAT+ boardDEEPX DX-M1M NPU, 16-pin PCIe FFC connector, HAT+ ID EEPROM. The FFC cable comes connected to it.
- 1×PCIe FFC cable, 16-pinCarries the PCIe link from the Raspberry Pi 5 to the AI HAT+.
- 1×Stacking header, 16 mm2 × 20 female, 2.54 mm pitch. Raises the GPIO connection to the AI HAT+.
- 4×M2.5 × 16 mm spacerFemale to female. Hold the AI HAT+ level and take the screw load off the header.
- 8×M2.5 × 5 mm plastic screwFour fasten the spacers from below, four fasten the AI HAT+ from above.
- 1×Passive heatsinkWith thermal pad, for the DEEPX DX-M1M NPU.
Assemble hardware
Power off Raspberry Pi 5
The AI HAT+ is not hot-pluggable. Disconnect the USB-C supply before mounting or removing the board; mounting under power can damage the FFC connector, the NPU, or the Raspberry Pi 5.
-
Fit spacers
Fasten the four M2.5 × 16 mm spacers to the Raspberry Pi 5 mounting holes with four M2.5 × 5 mm screws from below.
- 4× M2.5 × 16 mm spacer
- 4× M2.5 × 5 mm screw
-
Fit stacking header
Press the 16 mm stacking header fully onto the 40-pin GPIO header. The header carries the 3.3 V and 5 V rails and the I²C ID lines to the AI HAT+.
The header body does not reach the AI HAT+. The board rests on the spacers, and the gap lets air flow between the two boards.
- 1× Stacking header, 16 mm
-
Connect PCIe cable
The FFC cable comes connected to the AI HAT+. Pull up the latch on the Raspberry Pi 5 PCIe connector. Hold the AI HAT+ upright over the left end of the Raspberry Pi 5, insert the free end of the cable, marked
RPi5, fully into the connector from above, and press the latch down.A reversed or partly inserted cable gives no PCIe link, and the NPU does not appear.
- 1× AI HAT+ with FFC cable
-
Seat board
Fold the AI HAT+ over onto the Raspberry Pi 5. Align its header with the stacking header and press the board straight down until it rests on the spacers. The cable curves at the left end, with the Sixfab logo facing out.
-
Fasten board
Fasten the AI HAT+ to the spacers with the other four M2.5 × 5 mm screws from above.
- 4× M2.5 × 5 mm screw
-
Fit heatsink (recommended)
Peel the film off the thermal pad, place the heatsink on the NPU as shown, and press evenly so the pad makes full contact.
- 1× Heatsink
-
Connect display, keyboard and mouse
Connect a display to HDMI0, the micro HDMI port next to the USB-C power port, with a micro HDMI to HDMI cable. Connect a USB keyboard and mouse, or their wireless receiver, to the USB ports.
- 1× Display with a micro HDMI to HDMI cable
- 1× USB keyboard
- 1× USB mouse
-
Connect power
Connect the USB-C supply to the Raspberry Pi 5. On first power-up the AI HAT+ LED lights white briefly, then turns off. This is normal. See LED indicators.
- 1× USB-C power supply, 27 W or more
Finger-tight only
Tighten spacers and screws by hand. The threads are in the spacers; over-tightening strips them, and the spacer has to be replaced.
Install runtime
Let the Raspberry Pi 5 boot and open a terminal. Add the Sixfab APT repository and install sixfab-dx:
sudo apt update
sudo apt install apt-repo-sixfab
sudo apt update && sudo apt install sixfab-dx
The package installs the kernel driver, the DEEPX runtime, and the tools dxrt-cli, dxtop, and run_model. The driver is built for the running kernel, so the first install takes 5 to 10 minutes.
Dependency warnings
pip dependency warnings at the end of the install are not errors. The install succeeded when the output ends with DEEPX Runtime installed successfully! If another Python package needs a different version, upgrade or downgrade it with pip.

Enable PCIe Gen 3
The Raspberry Pi 5 runs the PCIe link at Gen 2 by default. Gen 3 gives the NPU more bandwidth and is recommended. Skip this section if dxrt-cli -s already reports Gen3 X1.
Open the boot configuration file:
sudo nano /boot/firmware/config.txt
Add these lines to the end of the file:
dtparam=pciex1
dtparam=pciex1_gen=3
Save the file and reboot:
sudo reboot
Verify installation
Check that the NPU is on the PCIe bus, then print the device status:
lspci | grep -i deepx
dxrt-cli -s
The report should show these values:
| Field | Expected | Meaning |
|---|---|---|
| Device 0 | M1, Accelerator type | DEEPX M1 NPU, matches your DX-M1M |
| RT Driver version | v2.7.0 or newer | Runtime kernel driver |
| PCIe Driver version | v2.7.0 or newer | PCIe kernel driver |
| FW version | v2.7.6 or newer | Firmware on the NPU |
| PCIe | Gen3 X1 | Gen 2 until PCIe Gen 3 is enabled |
| NPU cores | 3 cores, 750 mV, 1000 MHz | Idle temperature about 43 to 55 °C at room temperature |
Versions must match
The driver, runtime, and NPU firmware have separate version numbers. A mismatch causes version errors when a .dxnn file is loaded, a silent fallback to the CPU, or unstable inference.
Run first inference
sixfab-dx includes a pre-compiled YOLOv5 detection demo. It opens a window, so run it on the Raspberry Pi desktop (monitor or VNC), not over SSH:
run_hello_world
The window shows the video with a box and label on each detected object. The model runs on the NPU, not on the CPU.

To see NPU load, temperature, voltage, and clock, run dxtop in a second terminal. Press q to quit.
dxtop
Troubleshooting
Power off, reinsert the FFC cable at the Raspberry Pi 5 end with the latch fully closed, and power on. If the device is still missing, check that the kernel module is loaded (lsmod | grep -i dx) and look for driver errors (dmesg | grep -i dx). See Troubleshooting.
Check the two dtparam lines in /boot/firmware/config.txt and reboot.
The NPU firmware is older than the runtime expects. Update it with dxrt-cli -u fw.bin. See FAQ: How do I receive SDK and driver updates?