Quickstart

Get your AI HAT+ running in minutes. This fast installation guide covers PCIe detection, driver setup, and DXNN quick setup, providing the fastest path to validating your hardware and running your first edge AI inference test.

Quickstart

From unboxing to first inference on the Sixfab AI HAT+

Mount the AI HAT+, install the DEEPX runtime with sudo apt install sixfab-dx, verify the driver, runtime, and on-NPU firmware, then run live object detection on the DEEPX DX-M1M NPU. Intelligented by DEEPX. Built on Raspberry Pi.

25 TOPS at INT8 DEEPX DX-M1M / DX-M1ML Raspberry Pi 5 PCIe Gen 3 x1 HAT+ compliant
~20 min
AI HAT+ · Quickstart · Updated 2026-05-16 · Intelligented by DEEPX · Built on Raspberry Pi
How do I run my first inference on the Sixfab AI HAT+?

Five steps, about 20 minutes. Check the prerequisites and supported host platform, power off your Raspberry Pi 5, mount the Sixfab AI HAT+ with the 16-pin FFC cable, install the DEEPX runtime with sudo apt install sixfab-dx (5–10 minutes depending on your connection), verify the driver, runtime, and on-NPU firmware versions with dxrt-cli -s, then run run_hello_world to launch a live YOLOv8 detection demo on the NPU.

Before you start

This Quickstart is one of three paths through the AI HAT+ documentation. Pick the one that matches what you want to build. You can always come back here when you need the runtime up and running.

The procedure

Five steps. The first confirms what you need to have on hand and which host platform is supported; the next three set up the hardware and software stack; the fifth runs your first inference. Each step's commands are self-contained, so copy them in order.

1

Check the prerequisites and supported host platform

You already have the Sixfab AI HAT+ kit on hand — the kit ships ready to assemble. Before you open the antistatic bag, confirm the host platform you'll mount it on and the few items the kit does not include are in front of you.

What you'll need

Required 3 items
Required
Raspberry Pi 5 (4 GB or 8 GB) The host board that runs the OS and talks to the AI HAT+ over PCIe. See the supported host platforms block below for the full compatibility statement.
Required
Official 27 W USB-C supply Pi 5 + AI HAT+ combined load reaches 13–15 W under inference. A 15 W phone charger triggers under-voltage warnings.
Required
microSD card with Raspberry Pi OS (Bookworm, 64-bit) Holds the OS and compiled model files. Use the size and speed grade Raspberry Pi recommends for the Pi 5. Internet access is required during the runtime install.
Recommended & optional 2 items
Optional
USB or CSI camera Optional for the bundled detection demo. The demo also runs against a stored video file.

Supported host platforms

Supported host platforms
Supported
  • Raspberry Pi 5, the primary host platform.
  • Raspberry Pi Compute Module 5 via the official Raspberry Pi CM5 IO Board.
Not supported
  • Raspberry Pi 4 and earlier.
  • Compute Module 4 and earlier.
  • Non-Raspberry Pi SBCs (Orange Pi, Rock Pi, Jetson, etc.).
CM5 + IO Board path: the 16-pin FFC cable shipped with the AI HAT+ does not fit the IO Board's PCIe connector. A different cable is required. See the FAQ for the cable detail.

What's in the box

Open the kit and confirm all six items are present before you start. The AI HAT+ board itself, every fastener, the PCIe cable, and the passive cooler ship in the same box — nothing else is needed from Sixfab.

Box contents Kit · 6 items
Sixfab AI HAT+ board Main PCBA with the DEEPX NPU (DX-M1M or DX-M1ML, depending on SKU), 16-pin PCIe FFC connector, and the HAT+ ID EEPROM.
PCIe FFC cable (16-pin) Flat flex cable. Carries the PCIe link between the Raspberry Pi 5's PCIe connector and the AI HAT+.
16 mm stacking header 2×20 female header, 8.5 mm plastic body, 12.3 mm pin length, 2.54 mm pitch. Adds the clearance the AI HAT+ needs to sit above the Pi 5's 40-pin GPIO.
M2.5 × 16 mm female-female spacer Keep the AI HAT+ parallel to the Pi 5 and absorb the screw load so the GPIO header isn't stressed.
M2.5 × 5 mm plastic screw Four fasten the spacers to the Raspberry Pi 5's mounting holes from below; four fasten the AI HAT+ to the spacers from above.
Passive cooler Pre-paired with thermal pad. Mounts on the DEEPX NPU package. Sufficient for typical workloads; an Active Cooler on the Pi 5 below is still recommended.
Not in the box. The Raspberry Pi 5, the official 27 W USB-C power supply, the microSD card with Raspberry Pi OS, the Raspberry Pi Active Cooler (recommended), and the USB or CSI camera (optional) are purchased separately.
Power off the Pi 5 before mounting the AI HAT+

The AI HAT+ is not hot-pluggable. Disconnect the USB-C power supply completely before mounting or removing the board. Mounting under power can damage the PCIe FFC connector, the NPU, or the Pi 5.

2

Mount the AI HAT+ on the Raspberry Pi 5

The kit's contents and a "Not in the box" reminder are in Step 1 — this step assembles them. The Pi 5 should be powered off and disconnected from its USB-C supply before you begin.

Assemble in this order. Tighten everything finger-tight only.

  1. Press the 16 mm stacking header down onto the Pi 5's 40-pin GPIO header.
  2. Place the four M2.5 × 16 mm spacers on top of the Pi 5's four mounting holes and fasten them from the bottom of the Pi 5 with four of the M2.5 × 5 mm plastic screws.
  3. If the passive cooler is not yet attached to the AI HAT+, peel the thermal pad's protective film and press the cooler onto the DEEPX NPU.
  4. Connect one end of the 16-pin PCIe FFC cable to the Pi 5's PCIe connector. Lift the latch, slide the cable in contact-side down, and close the latch.
  5. Seat the AI HAT+ on the stacking header, align its four mounting holes with the four spacers, and fasten the board to the spacers with the remaining four M2.5 × 5 mm screws from above.
  6. Connect the other end of the PCIe FFC cable to the AI HAT+'s PCIe connector.

Eight screws total: four below, four above. Respect the cable orientation when seating each end of the FFC.

Exploded view of Sixfab AI HAT+ mounting on Raspberry Pi 5, showing 16 mm stacking header, M2.5 spacers, passive cooler on the DEEPX NPU, 16-pin FFC cable seating, HAT placement, and final FFC connection
Fig. 1 Mounting sequence: stacking header on GPIO, spacers in mounting holes, passive cooler on NPU, FFC cable to Pi 5, AI HAT+ seated and screwed down, FFC cable to AI HAT+.
Finger-tight spacers and screws

Tighten the M2.5 spacers and screws by hand only, never with a power driver. Over-torquing strips the threads on the Pi 5 PCB, and the Pi 5 board is not field-repairable once those threads are gone.

16-pin FFC cable orientation matters

Both connectors on the cable expose the contacts on the same face. Match the contact-side arrow on the cable to the connector at each end, fully insert the cable, then close the latch. A reversed or partially seated cable produces no PCIe link, and the NPU will not enumerate.

Close-up of 16-pin FFC cable seated in the Pi 5 PCIe connector with latch closed, contact-side arrow visible and correctly aligned
Fig. 2 16-pin FFC cable seated correctly: contact-side arrow aligned, latch closed.
3

Install the driver and DEEPX runtime

Power on the Pi 5 and open a terminal. A single APT command installs the kernel driver, the DEEPX runtime, and the CLI tools (dxrt-cli, dxtop, run_model).

bash · pi@raspberrypi: ~
# 1. Refresh the package index, then install the runtime
sudo apt update && sudo apt install sixfab-dx

When the installer prompts Do you want to continue? [Y/n], type Y and press Enter. The driver compiles against your running kernel, so the first install can take 5–10 minutes depending on connection speed.

Sanity check: the runtime is reachable and the NPU enumerates

bash · pi@raspberrypi: ~
# 1. Confirm the runtime CLI is on PATH
dxrt-cli --version

# 2. Confirm the NPU enumerates over PCIe
lspci | grep -i deepx
Expected output Runtime reachable
DXRT v3.2.0
01:00.0 Processing accelerators: DEEPX Co., Ltd. DX_M1A
If lspci doesn't list a DEEPX entry

Power off, reseat both ends of the 16-pin FFC cable (latches fully closed), and power back on. If the entry still doesn't appear, run lsmod | grep -i dx to confirm the kernel module loaded, and dmesg | grep -i dx for driver errors. See Troubleshooting.

4

Verify driver, runtime, and on-NPU firmware

Before running inference, confirm that the kernel driver, the DEEPX runtime, and the firmware on the DEEPX NPU module are at the versions you expect. dxrt-cli -s prints a complete hardware and firmware status report in one shot.

Why this matters in production

The DEEPX runtime, the kernel driver, and the on-NPU firmware all carry independent version numbers. A drift between any two shows up later as silent CPU fallback, version-mismatch errors when loading .dxnn files, or unstable inference. Catching it here is much cheaper than catching it after deployment.

bash · pi@raspberrypi: ~
# Full hardware and firmware status report
dxrt-cli -s
Expected output Versions aligned
DXRT v3.2.0
 * Device 0: M1, Accelerator type
 * RT Driver version  : v2.1.0
 * PCIe Driver version: v2.0.1
 * FW version         : v2.5.0
 * Memory : LPDDR4x 4266 MT/s, 1 GB
 * Board  : M.2, Rev 1.0
 * PCIe   : Gen3 X1 [01:00:00]
NPU 0: voltage 750 mV, clock 1000 MHz, temperature 46 °C
NPU 1: voltage 750 mV, clock 1000 MHz, temperature 46 °C
NPU 2: voltage 750 mV, clock 1000 MHz, temperature 46 °C

What you're confirming on each line

Device 0 M1, Accelerator type DEEPX silicon family. Matches your DX-M1M / DX-M1ML SKU.
RT Driver version v2.1.0 (or newer) Kernel-side runtime driver shipped via APT
PCIe Driver version v2.0.1 (or newer) Kernel-side PCIe driver paired with the runtime
FW version (on-NPU) v2.5.0 (or newer) Firmware on the DEEPX NPU module itself
PCIe link Gen3 X1 Pre-configured at the factory; no config.txt changes needed
NPU cores 3 cores · 750 mV · 1000 MHz Idle temperature should sit around 45–55 °C at room ambient
If the FW version is older than what the runtime expects

The runtime returns a version-mismatch error when loading a .dxnn file if the on-NPU firmware is too old. See the FAQ entry How do I receive SDK and driver updates? and, if a standalone firmware update is required, the dxrt-cli -u fw.bin flash command (covered alongside the runtime install in the step above) handles the update.

5

Run your first inference on the NPU

The sixfab-dx package ships with a pre-compiled YOLOv8 detection demo wired up to run_hello_world. A single command launches it on the NPU and opens a window with bounding boxes drawn in real time.

bash · pi@raspberrypi: ~
run_hello_world
Performance summary Inference on NPU
         PERFORMANCE SUMMARY
================================================
Pipeline Step   Avg Latency   Throughput
------------------------------------------------
Read              21.45 ms      46.6 FPS
Preprocess        14.11 ms      70.9 FPS
Inference        399.69 ms      16.0 FPS*
Postprocess        2.23 ms     449.0 FPS
Display           32.47 ms      30.8 FPS
------------------------------------------------
* Effective throughput via async inference

Total Frames  :  855
Total Time    :  53.6 s
Overall FPS   :  16.0 FPS

A window opens showing the live feed with bounding boxes drawn around detected objects in real time.

YOLOv8 object detection running on Sixfab AI HAT+ NPU, with bounding boxes and class labels drawn around detected objects in a live camera feed, FPS counter visible
Fig. 3 First inference: YOLOv8 detection running live on the DEEPX NPU.
You're running AI inference on the NPU

A live detection window plus the performance summary above means YOLOv8 is executing on the DEEPX NPU, not on the Raspberry Pi CPU. That's the AI HAT+ doing its job.

Watch the NPU work in real time

Open a second terminal while the demo is running and launch dxtop. It prints per-core utilisation, voltage, clock, and temperature, much like htop for the NPU.

bash · second terminal
dxtop
Expected output: dxtop, inference running Live
DX-RT: v3.2.0   NPU Device driver: v2.1.0   DX-TOP: v1.0.1

Device :0  Variant: M1  PCIe Bus Number: 01:00:00  Firmware: v2.5.0
NPU Memory: [320 MiB / 1.00 GiB (31.3%)]
  Core :0  Util: 87.0%  Temp: 52 °C  Voltage: 750 mV  Clock: 1000 MHz
  Core :1  Util: 92.0%  Temp: 51 °C  Voltage: 750 mV  Clock: 1000 MHz
  Core :2  Util: 89.0%  Temp: 52 °C  Voltage: 750 mV  Clock: 1000 MHz

Press q to quit.

AI Model Deployment

Where to next

YOLOv8 is now running on the DEEPX NPU. The hardware and runtime stack are healthy, and the next chapter is AI Model Deployment: choose more pre-compiled models, bring your own trained model to the NPU, or instrument the deployment for production.