Blocks, arrows and promises
A warehouse robot has eight boxes on its diagram and twenty arrows between them. Which do engineers argue about more: the boxes or the arrows?
About 35 min · 3 goals · Checked by automated tests
1.Why should I care?
Nobody can hold a whole robot in their head. A block diagram lets a team split the work, agree what each part promises the others, and spot the single wire or message everything depends on, before any metal is cut.
- ◇ Break a mobile robot into sensing, estimation, planning, control, actuation and power subsystems.
- ◇ Draw a block diagram that separates data paths from power paths.
- ◇ Describe each arrow as an interface: what signal, in what unit, how often.
2.Predict
Two teams each finish a subsystem that passes all its own tests. They plug them together for the first time. What usually breaks first?
Guess first. Being wrong here is how the surprise works.
3.Discover
Place each block of the warehouse robot in its layer and give it an update rate. Before you check, predict: which blocks run fastest, and why are they the ones closest to the motors?
Loading the interactive…
Can't use the interactive? Read a description instead
The architecture builder can be done as a table: wheel encoders, sensing, 1 kHz; camera, sensing, 10 Hz; state estimator, estimation, 100 Hz; object detector, estimation, 10 Hz; mission planner, planning, 1 Hz; wheel speed PID, control, 1 kHz; motor driver, actuation, not a loop; battery, power, not a loop.
4.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Which layer does an object detector that turns camera pixels into 'box at 1.2 m' belong to?
5.Watch
→ List every subsystem the video names, then sort them into sense, think, act and power. Which arrow between them would you test first?
A tour of the subsystems a robot needs (sensing, computing, actuation, power) and how engineers make them work together.
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
Subsystems and layers
A mobile robot's software and hardware fall into layers: sensing (encoders, cameras, IMU), perception and estimation (turning raw readings into 'I am here, a box is there'), planning (choosing what to do next), control (making motors follow the plan) and actuation (drivers and motors). Power runs underneath everything.
Data paths and power paths
In a block diagram, data arrows carry information (a pose, a speed command) and power arrows carry energy (battery to motor driver). Draw them differently, for example solid and dashed. A fault on a power path can take out several data paths at once, which is why engineers look for single points of failure there.
Every arrow is a promise
Label each arrow with its interface: the signal's name, unit, coordinate frame and rate. 'Pose' is vague; 'pose of the robot in the map frame, metres and radians, 50 Hz' is a promise the receiving team can build on and test against.
Explain it another way
Think of a restaurant kitchen. Waiters (sensors) bring orders, the head chef (planner) decides, cooks (controllers) do the work with their tools (actuators), and the gas supply (power) feeds the lot. Most chaos happens at the pass, where one station hands food to the next.
A system block diagram is a directed graph: nodes are subsystems, edges are signals. Each edge has a type (data or power) and an interface specification. The diagram is the basis for splitting work, writing interface tests and analysing failure propagation.
Robot teams often keep the block diagram in the repository next to the code and update it whenever an interface changes, so that new members learn the system from one picture.
Worked example 1
Write a full interface label for the arrow from the wheel encoders to the wheel speed controller.
'Wheel speed, left and right, in rad/s, measured at the wheel, published at 1 kHz with a timestamp.' It names the signal, the unit, where it is measured (its frame), the rate and the timing information.
Common mix-ups
- If every subsystem passes its own tests, the robot will work.
✓ Subsystem tests check each box against its own assumptions; the interfaces between boxes need their own tests. - A block diagram is a picture of the hardware layout.
✓ It shows function and signal flow, not physical position. Two blocks can run on the same chip.
7.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
Why draw power paths differently from data paths?
Practice 3
Which is the best label for an arrow from the localiser to the planner?
Practice 4 · a fresh version every time
A robot's motor-current loop runs at 500 Hz and its path planner at 20 Hz. How many current-loop updates happen between two planner updates?
Practice 5
In a robot where one 5 V regulator feeds the computer, the camera and the lidar, what is the regulator?
8.Apply it
Draw the block diagram of a robot vacuum cleaner with at least seven blocks. Mark data and power paths differently, label four arrows with full interface descriptions, and circle one single point of failure.
9.Reflect
Concepts: Robot system architecture · System integration and interface contracts