Architecting an AI computer for a drone
Start with the deadline and the watts, not the chip. A worked example of AI compute architecture for drone vision: what runs, where it runs, and how to prove it fits.
When people ask which chip to put in a drone, they usually mean "which chip has the most TOPS for the money". That is the last question, not the first. A drone's vision computer runs several models at once, on a battery that also has to keep it in the air, against deadlines set by physics. Get the architecture right and a modest chip is enough. Get it wrong and the fastest chip on the market still crashes into a pylon.
Here is how I would architect it, step by step.
1. Define the vehicle and the mission
Take a concrete example: a 2 kg quadcopter that inspects power lines and bridges. It flies close to structures at up to 10 m/s, sometimes under a bridge deck where GPS drops out, for about 30 minutes per battery. It has three cameras:
- a forward stereo pair, 2 × 1 MP global shutter at 60 fps, for depth and odometry;
- a gimballed 4K main camera at 30 fps, for inspection, detection and recording;
- an IMU at 1 kHz, plus GPS when it's available.
2. List the workloads and their deadlines
Before any chip, write down every job, how often it runs, how late it may be, and what happens if it's late.
| Workload | Input | Rate | Deadline | If late |
|---|---|---|---|---|
| Obstacle depth | Stereo pair | 30–60 fps | < 50 ms sensor to brake | Collision |
| Visual-inertial odometry | Stereo + IMU | 30 fps / 200 Hz | < 20 ms | Drift, loss of position without GPS |
| Defect and person detection | 4K, downscaled to 720p | 15–30 fps | ~100 ms | Missed finding |
| Tracking and gimbal pointing | Detections | 30 fps | ~30 ms | Shaky footage |
| Record and downlink | 4K H.265 | 30 fps | Real time | Lost video |
| Scene questions (VLM) | Keyframes | 0.2–1 Hz | Seconds | Nothing critical |
That table already tells you most of the architecture. Two jobs are safety-critical and hard real time. Three are mission jobs with soft deadlines. One is a nice-to-have that must never get in the way of the others.
3. Turn physics into a latency budget
At 10 m/s, every 100 ms of latency is a metre travelled blind. If the drone can brake at about 5 m/s², it needs v² / 2a = 10 m to stop, so latency eats directly into the safety margin. I'd set a 40 ms budget from photons to brake command:
| Stage | Budget |
|---|---|
| Exposure and sensor readout | 10 ms |
| ISP, rectification | 4 ms |
| Stereo depth | 12 ms |
| Occupancy update and avoidance planner | 8 ms |
| Command to flight controller | 2 ms |
| Margin for jitter | 4 ms |
4. Turn the battery into a power budget
A 2 kg quadcopter hovers on roughly 200 W. Thirty minutes of flight is about 100 Wh. A 15 W computer is 7% of the total power, about two minutes of flight time, before you count the heatsink it needs. Every watt of compute is paid for in minutes in the air.
So I'd set a 10 W sustained budget for the whole vision computer, including memory, with short bursts allowed, and a hard rule that the safety path fits inside 4 W on its own.
How far does your drone fly blind?
Move the sliders. Everything updates live.
5. Size the compute
Work it out from the models, not the datasheet.
- Detector. A small YOLO-class model costs around 14 GMAC per frame at 640 × 640. At 1280 × 720 that grows to roughly 33 GMAC, about 66 GOP. At 30 fps that's about 2 TOPS of useful work.
- Utilization. NPUs rarely run detection networks above 30–50% of their peak, because of layers they can't fuse, memory stalls and pre- and post-processing. So 2 TOPS of work needs an NPU rated at about 4–7 TOPS INT8.
- Depth. Classical semi-global matching on a fixed-function stereo engine costs well under a watt. A learned stereo network is more accurate in low texture but costs several TOPS more. Start with the engine and add the network only where it measurably helps.
- Vision-language model. A 1–3 B parameter model at 4 bits is 0.5–1.5 GB of weights. Generating each token reads all of them, so it's limited by memory bandwidth, not TOPS. It's also the job most likely to starve everything else.
6. Check memory bandwidth, because it's usually the real limit
One 4K frame in NV12 is about 12 MB, so a single pass at 30 fps is about 0.37 GB/s. The ISP writes it, the scaler reads and writes it, the encoder reads it plus its reference frames, and the detector reads the downscaled copy. The camera path alone is 2–3 GB/s. Add the stereo path, detector weights (about 11 MB at INT8, reloaded every frame unless they fit in on-chip SRAM) and activations that spill to DRAM, and the average is around 4–6 GB/s.
A 32-bit LPDDR5 interface peaks around 25 GB/s, so the average fits. The danger is bursts: a VLM decoding tokens at full speed would take most of that bandwidth at exactly the moment the depth pipeline needs it. That's why the VLM gets the lowest priority on the memory controller, a rate cap, or no place on the drone at all.
7. Partition: put each job on the right engine
| Engine | Gets | Why |
|---|---|---|
| Flight controller MCU (separate chip) | Attitude loop at 1 kHz, failsafes, braking | Must keep flying even if the AI computer resets |
| ISP, stereo engine, scaler, encoder | Debayer, HDR, rectification, stereo matching, H.265 | Fixed function is 10× cheaper in power than doing it in software |
| DSP | VIO feature tracking, pre- and post-processing (resize, NMS), sensor fusion helpers | Predictable timing, low power, vector maths |
| NPU | The detector and any other model that has stopped changing | Best inference per watt, once the compiler supports every operator |
| GPU | Models still in development, the VLM, anything the NPU can't run | Broad operator support and fast bring-up, paid for in watts |
| CPU | VIO back end, occupancy map, planner, tracker, comms | Branchy, irregular code |
Count the crossings
Every time a frame moves between engines, it costs a copy, DRAM bandwidth and latency. A 720p frame passing ISP → DSP → NPU → CPU makes three trips through memory. Keep tensors in a format every engine reads without conversion, share buffers instead of copying them, and fuse pre-processing into the ISP's scaler where you can. A partition that looks perfect on a whiteboard can lose all its gains to data movement.
Check operator coverage before you commit
One operator the NPU can't run forces the whole graph to bounce to the CPU or GPU and back. Compile your actual models with the vendor's toolchain on day one. Where an operator is missing, rewrite it into an equivalent the hardware supports, and check the outputs against the float model, layer by layer.
8. Design for heat and the worst day
In flight, prop wash cools the electronics. The worst case is on the ground: a black airframe on a summer launch pad at 45 °C, with no airflow, running the full pipeline for pre-flight checks. Size the sustained numbers there, not on a bench fan. Then decide in advance what gets shed when it gets hot:
| State | What changes |
|---|---|
| Normal | Everything runs |
| Warm | VLM paused; record at 4K, analyse at lower rate |
| Hot | Detector drops to 10 fps; GPU off |
| Critical | Mission path stops; safety path keeps full rate; return home |
The safety path never degrades. If depth misses its deadline anyway, the flight controller brakes and holds position on IMU and GPS. A drone needs a path that doesn't depend on AI at all.
9. Plan for model churn
The airframe stays in service for years; the detector will be retrained every few months. Bring each new model up on the GPU first, where any operator works. When it stops changing, quantize it to INT8, prove its accuracy against the float version on your own flight data, and move it to the NPU. That keeps the power budget honest without freezing the product.
10. Only then, pick the silicon
Now the requirements are concrete, and the shortlist writes itself:
- Three or more camera inputs, with enough ISP throughput for 4K30 plus a stereo pair
- Hardware stereo or optical-flow engine, and an H.265 encoder
- An NPU around 5–10 TOPS INT8 that compiles your models with no fallbacks
- A DSP or vector unit for VIO and pre- and post-processing
- LPDDR5 with QoS, so the safety path can't be starved
- Under 10 W sustained at 45 °C ambient, with fine-grained power states
- A mature toolchain, and a supply life longer than the airframe's
A GPU-centric module gives the most flexibility and the fastest bring-up at 10–15 W. A vision SoC with ISP, encoder, DSP and NPU blocks reaches the same work at a fraction of the power, with less freedom. Many products start on the first and ship on the second.
11. Measure, don't estimate
Compiler estimates can be off by tens of percent. Before signing off, measure on the real board, in the real enclosure, at temperature:
- sensor-to-brake latency: median, 99th and 99.9th percentile;
- sustained power and flight minutes lost;
- DRAM bandwidth per engine, and the safety path's latency while the VLM is running;
- accuracy of each quantized model against its float version, on your own data;
- what happens when you pull the AI computer's power in flight.
Questions or a different split in mind? Join the discussion on LinkedIn.