Subsystems of a robot
Breaking a robot into mechanical, electrical, sensing, computing and software subsystems, and why the interfaces between them are where most problems hide.
Lesson 1 of 6 · 25 min · Self-paced · Free
Too big to think about all at once
Even a small robot contains hundreds of decisions: which motor, which battery, which sensor, which connector, which line of code. Nobody can hold all of them in their head at the same time. Engineers cope by dividing a robot into subsystems — groups of parts that do one job together — and then thinking carefully about how those groups connect. This way of thinking is called system architecture, and it is the subject of this whole module.
A good architecture lets different people work on different parts at the same time, makes faults easier to find, and lets you replace one part without redesigning everything else.
The five common subsystems
Most robots, from a classroom line-follower to an industrial arm, can be described with the same five subsystems.
Mechanical. The physical body: frame, links, joints, wheels, gears, bearings and the end effector. It carries loads, sets the robot's degrees of freedom and protects everything else. Its key numbers are masses, dimensions, stiffness and the torques it must transmit.
Electrical. Everything to do with power: the battery or power supply, voltage regulators, fuses, switches, wiring, and the motor drivers that turn small control signals into the large currents motors need. The emergency stop circuit usually lives here too.
Sensing. The sensors that measure the robot itself (joint encoders, motor current, battery voltage) and its surroundings (cameras, distance sensors, force sensors). Engineers sometimes call the first kind proprioceptive sensors and the second kind exteroceptive ones.
Computing. The processors that run the robot's software: often one or more small microcontrollers close to the hardware, and sometimes a more powerful computer for heavy tasks such as vision. A later lesson in this module looks at how work is split between them.
Software. The programs: drivers that talk to hardware, control loops, perception, planning and the user interface. Software is not a physical subsystem, but it has its own structure and its own interfaces, so it is treated as one.
Actuators — the motors and other devices that create motion — sit across the boundary between mechanical and electrical, which is a hint about where trouble starts.
Interfaces: where subsystems meet
An interface is any point where two subsystems depend on each other. Every interface is an agreement, and every agreement can be broken. The main kinds are:
- Mechanical interfaces: mounting holes, shaft sizes, the space a part occupies. A motor that does not fit its bracket is an interface failure.
- Electrical interfaces: voltage levels, current limits and connectors. A sensor designed for 3.3 V logic connected to a 5 V signal may be damaged.
- Data interfaces: how information is sent — which wires, which protocol, which units, how often. A distance sent in millimetres but read as metres is an interface failure.
- Software interfaces: the functions and messages one program offers another, and what each one promises.
Interfaces are where most integration problems appear, because each side may be correct on its own and the system still fails when they are joined. A famous real example is NASA's Mars Climate Orbiter, lost in 1999 partly because one piece of software produced results in imperial units while another expected metric units.
Engineers protect interfaces by writing them down. A simple interface list records, for each connection, what flows across it, in which units, at what rate, and who is responsible for each side.
Worked example: a line-following robot
A small two-wheeled robot follows a black line on white paper. Breaking it down:
- Mechanical: chassis plate, two wheels on gearmotors, a caster, a bracket holding sensors 5 mm above the floor.
- Electrical: a battery pack, a power switch, a fuse, a motor driver board, a voltage regulator making 5 V for the logic.
- Sensing: five infrared reflectance sensors in a row; a battery voltage measurement.
- Computing: one microcontroller.
- Software: sensor reading, line-position estimate, a steering controller, motor output.
Now list a few interfaces:
- Sensor bracket to chassis (mechanical): sets sensor height. If it changes, the readings change.
- Sensors to microcontroller (data): five analog voltages, read every 2 ms.
- Microcontroller to motor driver (data and electrical): two speed signals and two direction signals at logic voltage.
- Motor driver to battery (electrical): must handle the motors' peak current.
- Line-position code to steering code (software): a number from −2 to +2, where 0 means centred.
Writing interface 5 down settles a question that could otherwise cause a bug: what does "+2" mean — line far left or far right?
Single points of failure
A single point of failure is one part whose failure stops the whole system. In the line-follower, the battery, the fuse, the microcontroller and the motor driver are all single points of failure. That may be acceptable for a classroom robot. For a robot working near people or in a remote place, engineers look for single points of failure deliberately and ask: can this fail safely, can it be detected, or should it be duplicated?
Recap
- Robots are commonly divided into mechanical, electrical, sensing, computing and software subsystems.
- Interfaces — mechanical, electrical, data and software — are agreements between subsystems, and most integration failures happen there.
- Write interfaces down: what crosses, in which units, how often, and who owns each side.
- Look for single points of failure and decide whether each is acceptable.
Project
Paper project: take a robot apart (on paper)
Choose a robot you know something about — a robot vacuum, a drone, a toy robot, or one of the robots from earlier lessons.
- Draw five boxes, one per subsystem, and list the main parts in each. Guess where you are unsure, and mark guesses with a question mark.
- Draw lines between boxes for at least six interfaces. Label each with what crosses it (force, power, data) and, where you can, units and rate.
- Circle every single point of failure you can find, and for one of them, suggest how the robot could detect the failure or fail safely.
Paper and pencil are enough. Do not open up a real device to check.
Deliverables
- A five-box subsystem breakdown with parts listed
- At least six labelled interfaces
- Circled single points of failure, with one improvement suggested
Knowledge check
Check your understanding
Go further
- Wikipedia — Block diagram ↗
A short introduction to the box-and-line diagrams engineers use to show subsystems and their connections.
Lesson materials · free to download
Sign in to track your progress. Reading is free without an account.