One brain or many?
Should a robot run everything on one powerful computer, or spread the work across several small ones? Both answers ship in real products.
About 30 min · 2 goals · Checked by automated tests
1.Why should I care?
Architecture choices are expensive to undo. Picking where computation lives decides wiring, software structure and how the robot fails, so engineers make the choice deliberately and write down why.
- ◇ Compare centralised and distributed architectures on cost, latency, reliability and complexity.
- ◇ Use weighted criteria to choose an architecture and state what was traded away.
2.Predict
A robot spreads its control across five small processors linked by a bus. Compared with one big computer, what gets harder?
Guess first. Being wrong here is how the surprise works.
3.Discover
Treat the designs in the trade-offs lab as architecture options. Weight cost, reliability and latency first for a toy robot, then for a hospital delivery robot. Does the winner change? Which design is dominated (worse on everything)?
Explorer 04 — Engineering constraints
No design wins on everything
Choosing a robot's perception and compute stack means trading cost, power and capability. Set your priorities and limits, then see which options survive and which are simply worse than another.
- Meets limits
- ✕ Violates a limit
- Pareto frontier
- Outside a limit
Limits
Priorities (weights 0–10)
Cheaper is better
Lower draw means a smaller battery or longer run time
Headroom for heavier algorithms later
Estimated task success
Illustrative figures for teaching, not measured specifications
BMicrocontroller + low-res cameraRank 1
Microcontroller reading a small low-resolution camera for colour blobs.
- Cost
- 30 CU
- Power
- 0.9 W
- Compute
- 3×
- Est. accuracy
- 52 %
✓ Meets all limits · On the frontier
Score58DSBC + cameraRank 2
Single-board computer running classical vision on a standard camera.
- Cost
- 80 CU
- Power
- 5.5 W
- Compute
- 25×
- Est. accuracy
- 74 %
✓ Meets all limits · On the frontier
Score57AMicrocontroller onlyRank 3
Microcontroller with distance and contact sensors; no camera.
- Cost
- 12 CU
- Power
- 0.3 W
- Compute
- 1×
- Est. accuracy
- 35 %
✓ Meets all limits · On the frontier
Score50CSingle-board computerRank 4
General-purpose single-board computer with the same simple sensors, no camera.
- Cost
- 55 CU
- Power
- 4.0 W
- Compute
- 25×
- Est. accuracy
- 48 %
✓ Meets all limits · Dominated by B (no worse on cost or accuracy, better on one)
Score46ESBC + camera + acceleratorExcluded
Adds a neural-network accelerator for learned object detection.
- Cost
- 150 CU
- Power
- 10.0 W
- Compute
- 120×
- Est. accuracy
- 86 %
✕ over budget by 50 CU; over power limit by 2 W · On the frontier
Score53FSBC + depth cameraExcluded
Single-board computer with a depth camera; better 3-D estimates, costly sensor.
- Cost
- 165 CU
- Power
- 7.5 W
- Compute
- 25×
- Est. accuracy
- 82 %
✕ over budget by 65 CU · Dominated by E (no worse on cost or accuracy, better on one)
Score42
State
4 of 6 options meet the limits (budget 100 CU, power 8.0 W). Highest weighted score: B, Microcontroller + low-res camera, 58 of 100, on the Pareto frontier. Frontier on cost versus accuracy: A, B, D, E.
4 of 6 options meet the limits (budget 100 CU, power 8.0 W). Highest weighted score: B, Microcontroller + low-res camera, 58 of 100, on the Pareto frontier. Frontier on cost versus accuracy: A, B, D, E.
How to read this
Each circle is a design option, placed by cost (left is better) and estimated accuracy (up is better); its area shows power. Filled circles meet every limit you set; dashed, hollow circles marked ✕ break at least one, and the hatched area shows where a limit rules options out.
The stepped line is the Pareto frontier: options for which nothing else is both cheaper (or lower-power) and more accurate. An option off the frontier is dominated, meaning another option beats it on both axes, whatever your priorities. The weighted score below is a different question: it depends entirely on the weights you chose, so two people can reasonably rank the frontier differently.
Assumptions & limitations
- All figures are illustrative teaching values chosen to make trade-offs visible. They are not measured specifications, prices or benchmarks of any product.
- Options are generic archetypes; real stacks vary widely in what each part costs, draws and achieves.
- Scores use a weighted sum of min–max normalised criteria. Normalisation is relative to these six options, so adding or removing one changes every score.
- A weighted sum hides trade-offs: a high score can come from one extreme strength. That is why the Pareto view is shown alongside it.
- The frontier is computed on the two plotted criteria only; an option dominated here may still be the best on a criterion not plotted (for example F has lower power than E).
- Accuracy is treated as a single fixed number. In practice it depends on lighting, the objects, the algorithm and integration effort, and is uncertain until tested.
Can't use the interactive? Read a description instead
In the trade-offs lab, changing the weights changes which design scores highest; one design is worse on every criterion than another and can never win.
4.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Which is a typical advantage of a distributed architecture?
5.Watch
→ Listen for the difference between low-level control and higher-level planning, and where each might run.
From factory arms to rovers: how robots sense, decide and move, including a first look at feedback control.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
The video is optional: everything you need is also in the lesson text and the interactive.
6.Understand
Centralised
One computer runs perception, planning and control. Pros: one place for all data, simpler software, easy to debug. Cons: one busy processor must also meet fast loop deadlines, and if it crashes, everything stops.
Distributed
Small processors near each motor or sensor run fast local loops, and a main computer coordinates them over a bus. Pros: fast, predictable local loops and less wiring. Cons: more interfaces, bus delays and clock synchronisation to manage. A failure can be contained to one node, if the design plans for it.
Decide with criteria, not taste
List criteria (cost, latency, reliability, power, development time), weight them for this robot's users, score each option and check whether any option is dominated. Then record the decision and what you gave up, so the next engineer knows it was a choice, not an accident.
Explain it another way
One brain is like a single manager doing everything: simple, until they get overloaded. Many brains is like a team with walkie-talkies: faster locally, but they must keep talking.
Distributed designs move latency-critical loops next to the hardware and turn many analogue wires into one digital bus, at the cost of interface specifications, message scheduling and fault handling across nodes.
Many industrial arms put a servo drive at every joint that closes the current and speed loops locally, while a central controller plans trajectories and sends setpoints.
Worked example 1
A school robot must cost under 60 pounds and be easy for beginners to debug. Centralised or distributed?
Centralised: one cheap board, one program to read, no bus to configure. Loop timing is manageable because the robot is slow. The trade: if that board resets, the robot stops, which is acceptable for a classroom.
Common mix-ups
- There is one correct robot architecture.
✓ The best architecture depends on the robot's users, budget and risks; record the criteria behind your choice.
7.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
Design A costs more, is slower and is less reliable than design B. What is A?
Practice 3
Weights: cost 3, latency 2, reliability 5. Option X scores cost 4, latency 2, reliability 3 (out of 5). What is X's weighted total?
Practice 4
Why write down what an architecture decision traded away?
Practice 5
For a hospital delivery robot, which criterion should usually get the most weight?
8.Apply it
Pick a robot (lawn mower, delivery drone or classroom rover). Score centralised and distributed designs on four weighted criteria, state the winner and write two sentences on what you traded away.
9.Reflect
Concepts: Robot system architecture · Constraints, budgets and trade-offs