yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Hailo-8 AI HAT +📖
0. Preparation
  • 0.Preparation
1.Environment construction
  • Environment Construction
2. rpicam-apps
  • rpicam-apps
3.Test case
  • Object Detection
4.Instance segmentation
  • Instance segmentation
5.Pose estimation
  • Pose Estimation
6.Segmented application
  • 6.Segmented application
7.Monocular depth
  • 7.Monocular depth
Download
  • Image_System_File
Download ZIP

Welcome to Hailo-8 AI HAT + repository

0.Preparation

0.Preparation

0.Preparation0.PreparationRequired contentHardware:Software:

0.Preparation

This chapter teaches you how to set up a Raspberry Pi 5 using AI HAT+.

Required content

Hardware:

  • Raspberry Pi 5
  • AI HAT+
  • Thermal pad (included in kit)
  • Optional: Heatsink
  • Optional: Official Raspberry Pi camera (e.g., Camera Module 3 or high-quality camera)
  • Optional: USB camera

We used a Raspberry Pi 5 model with the official active cooler and a 27W USB-C power supply. We recommend using the official USB-C power supply or a power supply that supports the Raspberry Pi 5 power protocol to ensure the motherboard can provide sufficient power to AI HAT+.

image-20240809160415806

Use the provided four screws and mounting pads. Press firmly onto the bottom of the Raspberry Pi GPIO 40-pin header; ensure all pins are in place. Disconnect the ribbon cable from the AI HAT+ and insert the other end into the Raspberry Pi's PCIe port. Lift the ribbon cable brackets from both sides and insert the ribbon cable with the copper contacts facing inwards toward the USB port. After fully and evenly inserting the ribbon cable into the PCIe port, pull down the ribbon cable brackets from both sides to secure the cable in place.

The installation should look like the image below:

image-20260130111923283

For information on CSI camera connections, please refer to the Raspberry Pi 5 camera example.

Software:

The Raspberry Pi needs to be flashed with the image shown below.

image-20260130112109271

Note: The Raspberry Pi 5's SD card needs to contain a bootable image. Please refer to our Raspberry Pi 5 tutorial for image burning.

The interface that appears after successful boot.

image-20260130112729950

Update System

Note: (The following steps are only necessary for DIY setups. If you are using the image we provide, you do not need to rebuild.)

This will update your system to the latest Raspberry Pi kernel, including AI HAT+ driver support.

sudo apt update
xxxxxxxxxx
sudo apt full-upgrade -y

image-20260130113933057

xxxxxxxxxx
sudo rpi-eeprom-update -a

image-20260130114831345

Then, restart.

xxxxxxxxxx
sudo reboot

Set PCIe to Gen3

To achieve optimal performance for your AI HAT+ device, it's necessary to set PCIe to Gen3. While using Gen2 is an option, it will result in performance degradation.

Open the Raspberry Pi Configuration Tool:

xxxxxxxxxx
sudo raspi-config

image-20260130112429528

image-20260130112443591

image-20260130112455935

image-20260130112505858

image-20260130112522383

image-20260130112531872

Select option "6 Advanced Options," then select option "A8 PCIe Speed." Select "Yes" to enable PCIe Gen 3 mode. Click "Finish" to exit. After exiting, you will be prompted to restart; select "Yes" to restart the Raspberry Pi.

Install AI HAT+ Dependencies

Install all necessary software for Raspberry Pi AI HAT+ to function correctly. To do this, run the following command from a terminal window:

xxxxxxxxxx
sudo apt install dkms
sudo apt install hailo-all

The image below shows a successful installation.

image-20260130115149865

image-20260130115954786

Restart your Raspberry Pi.

xxxxxxxxxx
sudo reboot

 

 

Environment Construction

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文