← Writing

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:

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.

WorkloadInputRateDeadlineIf late
Obstacle depthStereo pair30–60 fps< 50 ms sensor to brakeCollision
Visual-inertial odometryStereo + IMU30 fps / 200 Hz< 20 msDrift, loss of position without GPS
Defect and person detection4K, downscaled to 720p15–30 fps~100 msMissed finding
Tracking and gimbal pointingDetections30 fps~30 msShaky footage
Record and downlink4K H.26530 fpsReal timeLost video
Scene questions (VLM)Keyframes0.2–1 HzSecondsNothing 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:

StageBudget
Exposure and sensor readout10 ms
ISP, rectification4 ms
Stereo depth12 ms
Occupancy update and avoidance planner8 ms
Command to flight controller2 ms
Margin for jitter4 ms
The number that matters is sensor to actuator, at the worst case, on a hot day. Not one model's frames per second on a cool bench.

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.

Try it

How far does your drone fly blind?

Move the sliders. Everything updates live.

flown blind before braking starts
total stopping distance
flight time lost to the computer

5. Size the compute

Work it out from the models, not the datasheet.

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

SAFETY PATH · hard real time · ≤ 4 W Stereo + IMU ISP · rectifystereo engine DSP: VIOfeatures CPU: occupancy+ planner Flight MCU(separate chip) MISSION PATH · soft real time 4K camera ISP · scaler(fixed function) NPU: detectorINT8, frozen CPU: trackergimbal, mission H.265 encoder→ radio, storage GPU: new models, VLM on keyframeslowest priority, first to be shed
Two paths that never share a deadline. The safety path is closed by a separate flight controller; the mission path and the GPU can slow down or stop without the drone falling.
EngineGetsWhy
Flight controller MCU (separate chip)Attitude loop at 1 kHz, failsafes, brakingMust keep flying even if the AI computer resets
ISP, stereo engine, scaler, encoderDebayer, HDR, rectification, stereo matching, H.265Fixed function is 10× cheaper in power than doing it in software
DSPVIO feature tracking, pre- and post-processing (resize, NMS), sensor fusion helpersPredictable timing, low power, vector maths
NPUThe detector and any other model that has stopped changingBest inference per watt, once the compiler supports every operator
GPUModels still in development, the VLM, anything the NPU can't runBroad operator support and fast bring-up, paid for in watts
CPUVIO back end, occupancy map, planner, tracker, commsBranchy, 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:

StateWhat changes
NormalEverything runs
WarmVLM paused; record at 4K, analyse at lower rate
HotDetector drops to 10 fps; GPU off
CriticalMission 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:

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:

Good AI compute architecture puts every model on the right engine, budgets the watts and the bytes as carefully as the TOPS, and still meets the deadline on the worst day.

Questions or a different split in mind? Join the discussion on LinkedIn.

← More writing