# Worksheet: Robotic system architecture

*Tactiverge Academy · Robotics Foundations, module 2 · https://tactiverge.win/academy/robotics-foundations/#robotic-system-architecture*

Name: ______________________    Date: ____________

## Learning objectives

Tick each one when you can do it without looking at your notes.

- [ ] Draw a block diagram of a robot showing power, sensing, computation and actuation.
- [ ] Explain the difference between low-level control loops and high-level planning.
- [ ] Describe how timing and communication between subsystems affect behaviour.
- [ ] Identify single points of failure in a simple robot design.

## Lesson 1: 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.

Read online: https://tactiverge.win/academy/robotics-foundations/robotic-system-architecture/subsystems-of-a-robot/

#### 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.

1. 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.
2. 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.
3. 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

### Check your understanding

1. Which subsystem does a motor driver board belong to?
   A) Mechanical
   B) Electrical
   C) Software
   D) Sensing

2. One team's code sends a distance in millimetres; another team's code reads it as metres. What kind of failure is this?
   A) A mechanical failure
   B) A sensor failure
   C) A data interface failure
   D) A power failure

3. What is a single point of failure?
   A) A part whose failure stops the whole system
   B) The first part to fail in testing
   C) A part that is never used
   D) A sensor with only one reading

4. A joint encoder measures the robot's own arm angle. A camera measures the room. How are these sensors sometimes classified?
   A) Both are exteroceptive
   B) Both are actuators
   C) The camera is proprioceptive and the encoder is exteroceptive
   D) The encoder is proprioceptive and the camera is exteroceptive

### My notes

______________________________________________

______________________________________________

## Lesson 2: Power systems and energy budgets

Voltage rails, current draw, the difference between peak and average power, and how to estimate how long a robot will run on its battery.

Read online: https://tactiverge.win/academy/robotics-foundations/robotic-system-architecture/power-and-energy-budgets/

#### Project: Paper or Python project: budget your own robot

Design, on paper, a power budget for a robot of your choice — for example a garden-watering robot or a small delivery robot.

1. List every load with its rail voltage, average current, peak current and the fraction of time it is on. Use made-up but realistic numbers and label them as such.
2. Choose a battery voltage and capacity. Calculate the average power, the peak current and the estimated run time, by hand or by adapting the Python program above.
3. Change one design decision — a bigger battery, a more efficient regulator, or a computer that sleeps when idle — and recalculate. Which change helped most?

This is a calculation exercise only; do not connect any real batteries or motors.

**Deliverables**

- A load list with average and peak currents and duty fractions
- Calculated average power, peak current and run time
- One design change and its effect on run time

**Safety (adult supervision required):** This project is calculation only. If you later build anything, do so only under adult supervision, at low voltage, with a fuse near the battery and the manufacturer's charger, and never leave batteries charging unattended.

### Check your understanding

1. About how much energy does a 7.2 V, 5 Ah battery store?
   A) 1.44 Wh
   B) 12.2 Wh
   C) 36 Wh
   D) 72 Wh

2. A robot uses 18 W on average and has 54 Wh of usable energy. What is its estimated run time?
   A) 3 hours
   B) 0.33 hours
   C) 72 hours
   D) 36 hours

3. Every time its motors start, a robot's computer resets. Which quantity most likely needs attention?
   A) The average power
   B) The peak current and the resulting voltage sag
   C) The camera resolution
   D) The robot's top speed

4. A linear regulator supplies 0.2 A at 3.3 V from a 5 V input. Roughly how much power does it waste as heat?
   A) 0.66 W
   B) 1.0 W
   C) 0.2 W
   D) 0.34 W

5. Why do engineers usually plan to use only part of a battery's rated energy?
   A) Batteries only work when half full
   B) To leave a reserve and allow for cold, ageing and fast discharge, which all reduce the energy available
   C) Because rated capacity is always printed incorrectly
   D) To make the robot heavier

### My notes

______________________________________________

______________________________________________

## Lesson 3: Computation on a robot

Microcontrollers versus single-board computers, what real-time really means, and how robots split their work between different processors.

Read online: https://tactiverge.win/academy/robotics-foundations/robotic-system-architecture/computation-on-a-robot/

### Check your understanding

1. Which job is best suited to a microcontroller rather than a single-board computer?
   A) Running a 1 kHz motor current loop
   B) Finding objects in camera images
   C) Building a map of a building
   D) Hosting a web page for an operator

2. In engineering, what does real-time mean?
   A) As fast as possible
   B) Running on a gigahertz processor
   C) Producing a correct result before a deadline, reliably
   D) Showing results on a screen

3. A loop must run every 2 ms and its work takes 300 µs. What fraction of each period does it use?
   A) 6%
   B) 30%
   C) 67%
   D) 15%

4. Why is it useful for the microcontroller to stop the motors if commands from the single-board computer stop arriving?
   A) It saves memory
   B) It means a crash or freeze on the more complex computer leads to a safe stop instead of uncontrolled motion
   C) It makes the camera faster
   D) It is required for the robot to boot

5. What is jitter?
   A) Variation in when a task actually runs compared with when it was scheduled
   B) Electrical noise on a sensor wire
   C) The vibration of a motor
   D) A type of operating system

### My notes

______________________________________________

______________________________________________

## Lesson 4: Software layers, loops and timing

How robot software is organised in layers — drivers, control, estimation and planning — why each layer runs at its own rate, and how latency builds up through the stack.

Read online: https://tactiverge.win/academy/robotics-foundations/robotic-system-architecture/software-layers-and-loops/

### Check your understanding

1. Which software layer converts raw encoder counts into an angle in radians?
   A) Planning
   B) Task logic
   C) Estimation
   D) Drivers

2. Why do lower layers typically run at higher rates than upper layers?
   A) They control quantities that change faster, such as motor current and joint position
   B) Lower layers have less code
   C) Upper layers are less important
   D) Processors run faster at the bottom of the stack

3. With a 1 ms tick, a task that runs every 20 ticks has what rate?
   A) 20 Hz
   B) 50 Hz
   C) 200 Hz
   D) 1000 Hz

4. A planner runs at 5 Hz. In the worst case, how long might new information wait before the planner next uses it?
   A) 5 ms
   B) 20 ms
   C) 200 ms
   D) 5 s

5. Why is a bumper often connected to the control layer rather than handled by the planner?
   A) Planners cannot read sensors
   B) Bumpers produce too much data for the planner
   C) It makes the robot cheaper
   D) Handling it low in the stack avoids waiting for perception and planning, so the robot can stop within milliseconds

### My notes

______________________________________________

______________________________________________

## Lesson 5: Communication inside a robot

How the parts of a robot exchange information: buses, messages, publish/subscribe and request/response, and why every message should carry a timestamp.

Read online: https://tactiverge.win/academy/robotics-foundations/robotic-system-architecture/communication-inside-a-robot/

### Check your understanding

1. In publish/subscribe, what does a publisher need to know about its subscribers?
   A) Their exact number
   B) Their network addresses
   C) Nothing; it publishes on a topic and any subscriber receives the messages
   D) Which processor each one runs on

2. Which pattern is the most natural fit for asking a battery monitor for its current reading once?
   A) Request/response
   B) Publish/subscribe
   C) Broadcasting a video stream
   D) Clock synchronisation

3. An object moves at 0.5 m/s. An image of it reaches the planner 80 ms after capture. If the timestamp is ignored, how large is the position error?
   A) 4 mm
   B) 40 cm
   C) 0.4 mm
   D) 4 cm

4. Which time should a sensor message's timestamp record?
   A) When the message arrived
   B) When the measurement was taken
   C) When the robot was switched on
   D) When the message will be used

5. Why do robots with several computers need to synchronise their clocks?
   A) Clocks drift apart, so timestamps from different computers would not be comparable
   B) To make the processors run faster
   C) Because publish/subscribe needs no timestamps
   D) To save battery energy

### My notes

______________________________________________

______________________________________________

## Lesson 6: Drawing a system block diagram

A worked case study: drawing the block diagram for a conceptual two-arm cooperative platform that combines vision with gripper force sensing. A proposed design only, with no results.

Read online: https://tactiverge.win/academy/robotics-foundations/robotic-system-architecture/system-block-diagrams/

#### Project: Paper project: your own block diagram

Choose a robot — your own design idea, or one from earlier lessons, such as the bakery tray-moving arm or the line-follower.

1. List its blocks under the five subsystem headings.
2. Draw a data diagram laid out as sense, think, act, with every line labelled by content, rate and link type. Use made-up but sensible rates, and say so.
3. Draw a separate power diagram, showing where the emergency stop cuts power.
4. Write an interface list with at least four entries, including what happens if data stops arriving.
5. Mark every single point of failure and write one sentence on each.

Use paper, or free diagramming software if you have it. No hardware is needed.

**Deliverables**

- A data block diagram laid out as sense–think–act
- A separate power diagram showing the e-stop
- An interface list with at least four entries and timeout behaviour
- Marked single points of failure with comments

### Check your understanding

1. Why does the case-study design send force readings on their own link instead of through the vision software?
   A) Force sensors cannot use USB
   B) So force data keeps arriving even when the camera's view is blocked or vision is slow
   C) Because vision software cannot read numbers
   D) To reduce the number of microcontrollers

2. In the case-study power diagram, what does the emergency stop disconnect?
   A) All power, including the computers
   B) Only the camera
   C) Nothing; it sends a software message
   D) The arm motor power, leaving the logic powered so computers keep running and logging

3. What is the status of the TV-01 research question used in this lesson?
   A) A proposed study with no results, used here only as a source of design requirements
   B) A completed study showing force sensing works
   C) A completed study showing force sensing does not work
   D) An industry standard

4. Why must the four processors in the design have synchronised clocks?
   A) So the motors run at the same speed
   B) Because CAN bus requires it to power on
   C) So timestamps from different processors can be compared and logs lined up
   D) To make the camera faster

5. Which is a good convention for a top-level block diagram?
   A) Include every wire and resistor on one page
   B) Show one level of detail, label every line with what crosses it, and draw power separately
   C) Leave lines unlabelled to keep it clean
   D) Draw only the software

### My notes

______________________________________________

______________________________________________

---

## Answer key (for self-checking after you try)

**Lesson 1: Subsystems of a robot**

1. B — A motor driver turns small control signals into the large currents a motor needs. It is part of the electrical subsystem, alongside batteries, regulators and wiring.
2. C — Both programs may be correct on their own. The failure is in the agreement between them about units, which is why interfaces should be written down.
3. A — If one part's failure stops everything, it is a single point of failure. Engineers decide whether to accept it, detect it, make it fail safely or duplicate it.
4. D — Proprioceptive sensors measure the robot itself, such as joint angles or motor current. Exteroceptive sensors measure the surroundings.

**Lesson 2: Power systems and energy budgets**

1. C — Energy ≈ voltage × capacity = 7.2 V × 5 Ah = 36 Wh.
2. A — Run time = usable energy / average power = 54 Wh / 18 W = 3 h, before adding any margin.
3. B — Motor start-up draws a large peak current. If the battery voltage sags too far, the regulator feeding the computer can drop out. Peak current, not average, is the issue.
4. D — Input power ≈ 5 × 0.2 = 1.0 W; output power = 3.3 × 0.2 = 0.66 W. The difference, about 0.34 W, becomes heat.
5. B — Real batteries deliver less than their rating in many conditions, and deep discharge can shorten their life. Planning with a usable fraction and margin keeps the estimate honest.

**Lesson 3: Computation on a robot**

1. A — A fast, hard real-time loop needs predictable timing and direct hardware access, which microcontrollers provide. The others need computing power more than precise timing.
2. C — Real-time is about guaranteed deadlines. A slower processor that never misses a deadline is more real-time than a fast one that sometimes does.
3. D — 300 µs / 2000 µs = 0.15, or 15% of the period.
4. B — This watchdog behaviour keeps the time-critical, safety-relevant part independent of the part most likely to misbehave.
5. A — Jitter is timing variation. General-purpose operating systems can delay a task unpredictably, which is a problem for tight control loops.

**Lesson 4: Software layers, loops and timing**

1. D — Drivers sit next to the hardware and turn raw values into sensible units, so the layers above do not depend on details of a particular device.
2. A — Current changes in microseconds and joint position in milliseconds, while the surroundings change over seconds. Each loop must be fast compared with what it controls.
3. B — It runs every 20 ms, and 1 / 0.020 s = 50 Hz.
4. C — At 5 Hz the planner runs every 1 / 5 = 0.2 s, so new information can wait up to 200 ms for the next cycle.
5. D — Latency accumulates as information climbs the stack. Urgent reactions placed in fast, low layers happen much sooner.

**Lesson 5: Communication inside a robot**

1. C — Pub/sub decouples producers from consumers. That makes it easy to add consumers, but also means nobody automatically notices a missing subscriber or publisher.
2. A — A single question with a single answer is the classic request/response case. Pub/sub suits continuous streams.
3. D — 0.5 m/s × 0.080 s = 0.04 m = 4 cm.
4. B — Stamping the measurement time lets software match data from different sensors and correct for transfer and processing delays.
5. A — Each processor has its own clock that drifts slowly. Without synchronisation, a timestamp from one computer cannot be reliably compared with one from another.

**Lesson 6: Drawing a system block diagram**

1. B — The design's purpose is to keep useful information flowing when vision is intermittent. A separate, faster force path does not depend on the camera at all.
2. D — Cutting motor power through hardware stops the arms even if software has crashed, while keeping logic powered preserves logs of what happened.
3. A — TV-01 is proposed and has no results. It can motivate a design exercise but cannot be cited as evidence either way.
4. C — Without a shared sense of time, data from different processors could not be matched, and claims about what happened when could not be checked.
5. B — A top-level diagram should be readable in minutes. Labelled interfaces and separate power and data views keep it clear; detail goes on lower-level diagrams.

---

This work is licensed under the Creative Commons Attribution 4.0 International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. Attribute as: Tactiverge Academy, https://tactiverge.win.
