Design and research — Electronics
What is connected to the Orange Pi
ExplanationEverything the Orange Pi 5 talks to, what each connection is for, and which part of the software handles it.
AI-generated first draft. Written from the Pico firmware, the control program and the board's KiCad files, not from an actual build. The part names, pins and numbers are read from those files and have not been checked against a built machine.
The Orange Pi 5 is the machine's computer. It runs the machine's software: the control program (the backend), the web page you use to operate the machine, the camera processing, and the AI models that find and identify pieces. It has no screen or keyboard in the machine: you reach it from a browser on another device. Almost everything it talks to arrives over one USB cable, because the cameras and the Pico all sit behind a powered USB hub.
This page is the list of what connects to the Orange Pi and why. Power and USB each have their own page, linked below. Which socket each cable goes into is on Connecting the components.
The big picture
- Power in: 5 V into the board's power USB-C socket, from a buck converter on the machine's 24 V supply. Details: Power distribution.
- USB: one cable to a powered 4-port hub, with the Pico control board (see What is connected to the Pico) and three cameras on it. Details: The USB connections and the hub.
- Network: Ethernet, or WiFi from an M.2 module or a USB adapter. This is how you reach the UI.
- Storage: a microSD card that holds SorterOS and everything the machine saves.
- Cooling: the board needs a fan on its processor (its main chip).
- Not used: the video outputs, the camera ribbon connectors and the 26-pin header. The cameras are USB and the Pico is on USB, so nothing in the machine needs them.
Network
The Orange Pi has a fast (gigabit) Ethernet port and no WiFi of its own. The machine works with a network cable alone. For WiFi you fit the optional M.2 WiFi module, or plug in a Linux-compatible USB WiFi adapter.
The machine needs an internet connection to sort. A cropped photo of each piece is sent to an online service, Brickognize, which identifies the part and its colour, and there is currently no way to sort without it. The photo is sent with no account and no machine identifier. The machine also sends a small status report to Basically once an hour. Every connection the machine can make, what each one carries and which ones can be turned off is listed on What leaves the machine.
The network is how you use the machine at all. On first boot SorterOS opens a setup network called SorterOS-Setup plus six characters, you join it from a phone and pick your WiFi, and from then on the UI is at sorter.local on that network. SorterOS keeps a small file that describes the current network state. The control program reads it, so that the machine's page on Hive (the online service the machines can connect to) can link to the machine wherever it is on the network now.
- WiFi options and the two kinds of M.2 slot: Orange Pi 5
- First boot and joining WiFi: Install the SorterOS image
- Reading the network state:
machine_network.py
Storage
Storage is the microSD card. SorterOS is written to it (this is called flashing), and the machine runs from it. The card should be 32 GB or larger and high-endurance, because the software writes to it all day.
The board has one M.2 socket, a slot for small add-on cards. It takes either an NVMe drive (a fast storage card) or the WiFi module, not both. The machine's documentation covers only the microSD card.
- Card requirements: Orange Pi 5
- Flashing and first boot: Install the SorterOS image
- Shutting down without damaging the card: Shutting down the machine
Display, keyboard and debugging
None is needed. The machine is headless: you set it up and run it from a browser on another device, and you can log in over SSH (a secure remote text login) if you need a command line. The board has an HDMI socket for a screen and a 3-pin header for debugging, but nothing in the machine's design uses them.
- Setting up from a browser: First setup
- When something does not appear: Troubleshooting
- The housing: Orange Pi housing
The NPU
The AI models that find pieces run on a part of the processor built for that job, the neural processing unit (NPU). This is the reason the Orange Pi 5 is the specified board. The NPU has three cores (three parts that work at the same time). The software that analyses the pictures gives each of the three camera channels its own core, always in the same order, so a channel uses the same core after every restart. The control program can also report which AI runtimes (the software that runs a model) the computer offers. The Orange Pi uses one called RKNN.
The same file can also check for a Hailo accelerator, an add-on AI chip that some other computers carry. No Hailo accelerator is part of the Orange Pi build.
- Channels and cores:
perception/service.py - Which runtimes are available:
server/routers/runtimes.py - The detection models: Object detection
Why the Orange Pi 5
- The NPU is usable. Tests in March 2026 found the Orange Pi's NPU to be in the usable range, and concluded that the roughly 150 dollar Orange Pi is the platform because those NPUs can actually be used.
- One board that can be recommended to everyone. At the 5 April 2026 meeting the point was that a machine should have very few settings when somebody deploys it, so that an inexperienced builder does not run into problems nobody has seen. Once the Orange Pi was shown to be a stable way to run the detection models, it became the board the project could recommend across the board.
- Why not a Raspberry Pi. At the same meeting the toolchain for the Raspberry Pi's AI add-on was called substantially difficult, and another attendee had not managed to compile and quantize a model for a Google Coral USB stick. A Raspberry Pi with the AI add-on was to be put online for benchmarking. No result of that comparison is on record.
Cooling
The board gets hot when it is working hard, especially if a model ends up running on the CPU (the general-purpose part of the processor) instead of the NPU. At about 105 °C it shuts itself down to protect itself. The catalog lists the official heatsink fan, which plugs into the board's 5 V fan socket.
- Cooling notes: Orange Pi 5
Other computers
The Orange Pi 5 is the board SorterOS is built for. The software can also be installed on other Linux computers (Debian 12, Ubuntu 24.04, or Raspberry Pi OS on a Raspberry Pi 5) with the Linux installer.