

The Raspberry Pi AI HAT+ (26T) is an advanced add-on board designed to bring artificial intelligence (AI) capabilities to Raspberry Pi devices. Manufactured by Raspberry Pi, this HAT (Hardware Attached on Top) features a neural network accelerator, enabling efficient machine learning (ML) computations directly on the edge. It is ideal for applications requiring real-time AI processing, such as image recognition, natural language processing, and robotics.








The Raspberry Pi AI HAT+ (26T) is designed to integrate seamlessly with Raspberry Pi boards, offering powerful AI capabilities in a compact form factor.
| Specification | Details |
|---|---|
| Manufacturer | Raspberry Pi |
| Part ID | AI HAT+ |
| Neural Network Accelerator | 26 TOPS (Tera Operations Per Second) |
| Supported Frameworks | TensorFlow Lite, ONNX, PyTorch, Caffe |
| Interface | GPIO (40-pin header), I2C, SPI, UART |
| Power Supply | 5V DC (via Raspberry Pi GPIO or external power source) |
| Operating Temperature | -20°C to 70°C |
| Dimensions | 65mm x 56mm x 15mm |
| Weight | 25g |
| Compatibility | Raspberry Pi 4 Model B, Raspberry Pi 3 Model B+, Raspberry Pi Zero 2 W |
The AI HAT+ connects to the Raspberry Pi via the 40-pin GPIO header. Below is the pin configuration:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | 3.3V | Power supply for the HAT |
| 2 | 5V | Power supply for the HAT |
| 3 | SDA1 | I2C Data Line |
| 5 | SCL1 | I2C Clock Line |
| 8 | TXD | UART Transmit |
| 10 | RXD | UART Receive |
| 19 | SPI_MOSI | SPI Master Out Slave In |
| 21 | SPI_MISO | SPI Master In Slave Out |
| 23 | SPI_SCLK | SPI Clock |
| 24 | SPI_CE0 | SPI Chip Enable 0 |
| 26 | GPIO7 | General Purpose Input/Output (customizable) |
Below is an example Python script to run an image classification task using TensorFlow Lite on the AI HAT+:
import tflite_runtime.interpreter as tflite
import numpy as np
from PIL import Image
model_path = "model.tflite" # Replace with your model file path interpreter = tflite.Interpreter(model_path=model_path)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details() output_details = interpreter.get_output_details()
image = Image.open("image.jpg").resize((224, 224)) # Replace with your image file input_data = np.expand_dims(np.array(image, dtype=np.float32) / 255.0, axis=0)
interpreter.set_tensor(input_details[0]['index'], input_data)
interpreter.invoke()
output_data = interpreter.get_tensor(output_details[0]['index'])
print("Inference Results:", output_data)
"model.tflite" and "image.jpg" with the paths to your AI model and input image, respectively.pip install tflite-runtime).HAT Not Detected by Raspberry Pi
Overheating During AI Tasks
vcgencmd measure_temp).Low Inference Performance
Power Supply Issues
Q: Can I use the AI HAT+ with Raspberry Pi Zero?
Q: What AI frameworks are supported?
Q: Do I need an internet connection to use the AI HAT+?
Q: Can I train models on the AI HAT+?
This concludes the documentation for the Raspberry Pi AI HAT+ (26T). For further assistance, refer to the official Raspberry Pi support resources.