
A Raspberry Pi 5 fitted with eight neural processors has 55 TOPS of available AI compute, although not all of its chips can be used. Jeff Geerling built the mini PC with a PCI Express expansion board and a mix of Coral and Hailo accelerators, then worked through the power and software problems involved in getting them running. The result shows how much hardware can be attached to a small computer, as well as the limits of using it. Discover why those limits matter before attempting a similar build.
Eight Processors Leave Six Available
TL;DR Key Takeaways :
- Six of the eight neural processors are usable, providing 55 TOPS of available capacity.
- The expansion board needs separate power and shares one upstream PCI Express lane.
- Coral and Hailo ran separately, but combined use needs compatible software.
- A smaller setup with one or two devices is the practical recommendation.
The Raspberry Pi AI PC contains 63 TOPS of accelerator hardware, but only four Coral TPUs and two Hailo neural processors are usable. Two dual Edge TPU modules and two single-TPU modules make up the Coral hardware. Each dual module has only one working TPU because each expansion-board slot has just one PCI Express lane connected.
That leaves 16 TOPS of usable Coral compute. Hailo rates the Hailo-8L from the Raspberry Pi AI Kit at 13 TOPS and the separate Hailo-8 at 26 TOPS. Together, the usable accelerators account for the build’s available capacity, rather than the output of a single chip.
The total exceeds the TOPS figure for the latest AMD, Intel, Qualcomm or Apple processor, although those configurations are not directly equivalent to this collection of separate accelerators. Nor is the available capacity a measured result from an application running all the chips together.
A PCI Express Switch Adds Slots and Power Demands
Connecting the accelerators starts with Pineboards’ UPiCty, which places a PCI Express slot above the Raspberry Pi 5. An ALEL 12-slot expansion board plugs into that slot, and its Broadcom PEX 8619 switch expands the Pi’s single PCI Express Gen 2 lane into 12 downstream Gen 2 lanes.
The extra connections do not remove the upstream bottleneck: traffic from every accelerator still shares the single PCI Express Gen 2 lane back to the Pi. There are six more expansion slots available if the extra SSD and Wi-Fi chips are removed, but adding devices would leave them sharing that same connection.
The UPiCty takes a separate 12V supply for the attached board. The Pi’s small cable connector supplies up to 5W, while the attached hardware needs roughly 7 to 10W at a minimum and probably more under load. The ALEL board was made for a short time and is no longer listed on its Crowd Supply page, and it may no longer be in production.
Idle Power Rules Out a Simple Supply
The separate supply runs through a Third Reality Zigbee smart outlet connected to Home Assistant, allowing power consumption to be monitored. The PCI Express board alone drew about 8W at idle, before accounting for demands under load. That reading shows why the Pi’s own connector is not enough for the expansion hardware.
An earlier configuration failed because of a PCI Express issue rather than a power issue. Even so, the expansion board’s idle draw suggests that its power supply might also have caused problems. The physical arrangement has a drawback too: the expansion card sat precariously enough that Geerling was unsure it would stay connected if held for too long.
Coral and Hailo Need Software Fixes
Getting the hardware connected is only part of the work. After the Hailo software was installed using Raspberry Pi’s documentation, the first boot produced a “failed to enable MSI” error. Coral presented a separate software challenge: an older Raspberry Pi OS version had previously been needed because Google provides limited support for its software.
A guide posted by Midnight Link in Geerling’s Pi PCI Express repository provides a way to get Coral TPUs running on Raspberry Pi OS Bookworm. Following it got the driver working, but the process requires building that driver from source, making maintenance less straightforward than using an existing driver.
The Coral setup also involved adding Pineboards’ HAT AI device-tree overlay, which tells the Pi how to use certain hardware. After a restart, the Hailo MSI error disappeared as well. Another overlay, PCI X1 compat pi5, also appears to fix the issue by enabling a compatibility mode for 32-bit accesses and related behavior; devices behind a PCI Express switch behave differently on the Pi 5.
Individual Accelerators Work, but Combined Software Lags
With the Coral driver running, one TPU was recognized and worked in testing. CodeProject.AI, a web interface for AI tasks, was used during the process. It appears to support one Coral TPU, or both TPUs on a dual module, but not multiple cards in a single instance. Running multiple instances for multiple cards could put more load on the Pi.
The Hailo accelerator also ran inference successfully after a camera was connected. Its YOLO model nevertheless tended to identify rectangular objects as cell phones, a limitation worth noting when judging the output rather than just checking that inference runs.
Coral and Hailo worked individually, but using all the TPUs and NPUs together would require software that supports that combination. A configuration filled with Hailo-8 accelerators could reach 200 or 300 TOPS of hardware capacity, yet software support and the single PCI Express lane would still constrain it.
A Smaller Setup Is the Practical Choice
For a usable project rather than an expansion experiment, the recommendation is to stick to one or two devices. Some HATs accommodate an AI NPU and an NVMe SSD together, a combination suggested for Frigate. That avoids making the many-card arrangement a prerequisite for putting an accelerator to work.
We would start with the smaller configuration. The individual Coral and Hailo results show that the accelerators can work with the Pi, but the driver build, shared PCI Express lane and lack of software for the full combination make the larger setup difficult to recommend as a practical system. The 55 TOPS figure is useful for describing the available hardware, not evidence that an application can use all of it together.
This Raspberry Pi 5 build is best treated as an experiment in attaching accelerators, rather than a design to copy for now. Anyone pursuing a practical AI setup has a clearer route in a HAT that accommodates an NPU and an SSD, while the larger configuration still needs software that can use its different processors together.
More on Raspberry Pi:
- $8 Raspberry Pi 5 Passive Cooling Open CNC case
- Orange Pi 5 Pro vs Raspberry Pi 5 mini PCs compared
- New Raspberry Pi 5 EEPROM update enables OS network installations
- Building a Raspberry Pi 5 Nintendo games emulation console
Video Credit: Jeff Geerling
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.