TactivergeOffline

Level 2 Building Machines That Respond · Term 4: Engineering Design

Geometry and trigonometry for real parts, the mechanics of levers and gears, and the design discipline that turns an idea into a tested, documented machine: testable requirements, weighted trade-offs, simulation test plans, reliability and factors of safety, and records a stranger could follow. Week 36 pulls it together into the Level 2 capstone: a simulated intelligent machine with evidence.

In this file: 27 lessons across weeks 28–36, with 126 practice questions (questions only, no answers).

Program, analyse and test simple machines that sense their surroundings, make decisions and change their behaviour, all in simulation. Levels describe what you can do, not your age. About About 3 hours a week: roughly 1–1.5 hours of lessons, 1 hour of lab or coding practice and 30 minutes of notebook writing..

Week 28: Geometry for engineering

This week you will

Where is that hole? Coordinates and Pythagoras

A drawing says one bolt hole is at (10, 10) mm and another at (40, 50) mm. Your ruler can't measure diagonally across the gap. How far apart are they?

About 30 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Every engineering drawing, CAD sketch and robot path is written in coordinates. Machinists drill holes from coordinate tables, and robots move their hands to coordinates. The moment two features are not lined up, the distance between them is a diagonal, and Pythagoras is how engineers get it right first time.

Goals

Predict

Hole A is at (0, 0) mm and hole B is at (30, 40) mm. How far apart are their centres?

  1. 70 mm (30 + 40)
  2. 50 mm
  3. 35 mm (the average)

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Choose 'Measure a part'. Hole A is fixed at (10, 10) mm. Move hole B, work out the distance on paper with Pythagoras, then press check. Find two positions of B where the distance is a whole number of millimetres.

What the interactive shows, in words

The geometry explorer shows a 60 by 40 millimetre plate on a 10 millimetre grid. Hole A is fixed at (10, 10). You choose hole B's coordinates with two sliders. Dashed lines show the across distance Δx and the up distance Δy; a solid line joins the holes. After you press check, the distance √(Δx² + Δy²) and the angle of the line are given in words.

Understand

Coordinates need an origin

A coordinate pair (x, y) means 'go x across, then y up' from a chosen origin, usually a corner or the centre of a part. Engineers always state the origin and the unit (mm on drawings), because (10, 10) means nothing without them. Moving the origin changes every coordinate, but never the distance between two features.

Diagonals are hypotenuses

Subtract coordinates to get the across and up distances, Δx and Δy. They form the two short sides of a right-angled triangle, and the straight-line distance is the hypotenuse: d = √(Δx² + Δy²). Check the answer is longer than both Δx and Δy but shorter than their sum. If not, something went wrong.

Angles from the same triangle

The same triangle tells you the direction of the line. The angle above the x-axis has tan θ = Δy ÷ Δx, so θ = tan⁻¹(Δy ÷ Δx). You will meet tan properly next week; for now, notice that a line rising 30 mm over 30 mm across is at 45°, whatever its length.

Explain it another way: intuitive

Walking across a rectangular field corner to corner is shorter than going round two sides. Pythagoras tells you exactly how much shorter.

Explain it another way: technical

For points (x₁, y₁) and (x₂, y₂), the Euclidean distance is d = √((x₂ − x₁)² + (y₂ − y₁)²) and the direction is θ = atan2(y₂ − y₁, x₂ − x₁). In 3D add (z₂ − z₁)² under the root.

Explain it another way: mathematical

Holes at (10, 10) and (13, 14) mm: Δx = 3, Δy = 4, d = √(9 + 16) = 5 mm. A 60 × 40 mm plate's diagonal: √(3600 + 1600) = √5200 ≈ 72.1 mm.

Explain it another way: applied

Bolt circles on motor mounts, the spacing of wheels on a chassis and the travel of a 3D printer's nozzle are all specified as coordinates, then checked with distances like this.

Derivation: Why the distance is √(Δx² + Δy²)
  1. Write the across distance as Δx = x₂ − x₁ and the up distance as Δy = y₂ − y₁. These are measured along the axes, so they meet at a right angle.

  2. The straight line from A to B closes the triangle. It is the hypotenuse: the side opposite the right angle.

  3. Pythagoras' theorem says the square on the hypotenuse equals the sum of the squares on the other two sides: d² = Δx² + Δy².

  4. Take the square root: d = √(Δx² + Δy²). Squaring means a negative Δx or Δy gives the same distance, so it doesn't matter which point you call A.

Try these examples

Example 1

Four bolts sit at the corners of a 40 mm square. How far apart are two diagonally opposite bolts?

The worked solution is in the online lesson.

Example 2

A robot's gripper is at (120, 80) mm and the part is at (60, 160) mm. How far must the gripper move in a straight line?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. On the geometry explorer, hole A is at (10, 10) mm and hole B at (13, 14) mm. What is the distance between them, in millimetres?

Answer: mm

2. A drawing puts hole A at (6, 33) mm and hole B at (14, 39) mm. How far apart are the hole centres, in millimetres?

Answer: mm

3. How long is the diagonal of a 60 mm × 40 mm plate, in millimetres?

Answer: mm

4. A designer moves a drawing's origin from the bottom-left corner to the centre of the plate. What happens to the distance between two holes?

  • It doubles
  • It stays exactly the same
  • It halves
  • It depends on the holes

5. A classmate says the distance between (0, 0) and (6, 8) mm is 14 mm. What is the quickest way to know they are wrong?

  • 14 is not a whole number
  • A straight line must be shorter than going 6 across plus 8 up, which is 14
  • Distances are always smaller than 10
  • They should have used centimetres

Apply it

Sketch a 60 × 40 mm mounting plate for a small motor with four holes. Give every hole a coordinate from one corner, then calculate the distance between each pair of diagonal holes. Check one with the geometry explorer.

Reflect

Why do engineering drawings give coordinates from one origin instead of measuring each hole from the previous one?

Same shape, different size: similar triangles

You can't climb the crane, but you have a 1.5 m pole and a sunny afternoon. How do you measure the crane's height without leaving the ground?

About 30 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Scale drawings, model testing, map reading and camera measurements all rely on one fact: shapes with the same angles keep their proportions. It is also the secret behind trigonometry, which you'll use next week to place a robot's fingertip.

Goals

Safety: Measure shadows from the ground only, never by climbing, and never look at the sun.

Predict

A bracket is drawn at a scale of 1 : 5. On paper one edge is 30 mm long and meets the next edge at 40°. What are that edge and angle on the real bracket?

  1. 150 mm and 40°
  2. 150 mm and 200°
  3. 30 mm and 40°
  4. 6 mm and 8°

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Choose 'Scale it'. Change the scale factor k and watch the table: every side multiplies by k, but height ÷ base and the angle stay put. Then set k = 2 and compare the areas. Predict first: does the area double?

What the interactive shows, in words

The 'Scale it' tool draws a right-angled triangle and a scaled copy on top of it. Sliders set the base, height and scale factor k. A table lists the sides, the ratio height ÷ base, the angle and the area for both triangles: sides multiply by k, the ratio and angle stay the same, and the area multiplies by k².

Understand

What makes triangles similar

Two triangles are similar if their angles match. Then every side of one is the matching side of the other multiplied by the same scale factor k. If one triangle has sides 3, 4, 5 cm and a similar one has a 6 cm shortest side, k = 2 and the others are 8 and 10 cm.

Ratios inside a triangle are fixed

Because every side scales by k, any ratio of two sides of the same triangle, such as height ÷ base, stays the same. Sun rays hit a pole and a crane at the same angle, so height ÷ shadow is the same for both: measure the pole and both shadows, and the crane's height follows.

Areas scale by k²

Area is a length times a length, so it scales by k × k = k². A model at half size (k = 0.5) has a quarter of the area. Volumes scale by k³, which is why a half-size model of a solid part weighs only an eighth as much.

Explain it another way: intuitive

Zooming a photo makes everything bigger together: faces keep their shape. Similar triangles are a zoomed copy of each other.

Explain it another way: technical

Triangles are similar (written ∆ABC ~ ∆DEF) if corresponding angles are equal, which forces corresponding sides into a constant ratio k = DE/AB = EF/BC = DF/AC. Lengths scale by k, areas by k², volumes by k³.

Explain it another way: mathematical

Pole 1.5 m, shadow 2 m; crane shadow 12 m. 1.5 ÷ 2 = h ÷ 12, so h = 1.5 × 12 ÷ 2 = 9 m. A 1 : 20 model of a 1.2 m robot arm is 1200 ÷ 20 = 60 mm long.

Explain it another way: applied

Engineers read lengths off scale drawings, test small models of bridges and boats, and measure objects in camera images using similar triangles formed by light passing through the lens.

Try these examples

Example 1

A 1.2 m stick casts a 0.8 m shadow. A wind turbine tower nearby casts a 40 m shadow at the same time. How tall is the tower?

The worked solution is in the online lesson.

Example 2

A plate drawn at 1 : 2 has an area of 600 mm² on paper. What is the real plate's area?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A 1.5 m pole casts a 2 m shadow. At the same moment a tree casts a 12 m shadow. How tall is the tree, in metres?

Answer: m

2. A 2 m tall pole casts a 0.8 m shadow. At the same moment a crane's mast casts a 9 m shadow. How tall is the mast, in metres?

Answer: m

3. Every length of a part is doubled. What happens to the area of its face?

  • It doubles
  • It becomes 4 times as large
  • It becomes 8 times as large
  • It stays the same

4. A real robot arm is 1.2 m long. How long is it on a 1 : 20 scale model, in millimetres?

Answer: mm

5. Which pair of triangles must be similar?

  • Two right-angled triangles
  • A triangle with angles 30°, 60°, 90° and another with angles 30°, 60°, 90°
  • Two triangles that both have a 5 cm side
  • Two triangles with the same area

Apply it

Measure something tall near you (a lamp post, a door, a tree) using a ruler or pole and shadows, or a scale photo with an object of known size in it. Write down both triangles, the scale factor and your answer with units, and say what could make it wrong.

Reflect

Why does the shadow method only work if both shadows are measured at the same moment?

How heavy is that bracket? Area, volume and mass

Robot frames are full of holes. Is that to save weight, money, or something else, and how much does each hole actually save?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Mass decides how big a robot's motors must be, how long its battery lasts and whether a drone can fly at all. Engineers estimate the mass of every part long before anything is made, and plain geometry gets them most of the way there.

Goals

Predict

On a 3 mm aluminium plate, which saves more mass: one hole 12 mm across, or four holes 6 mm across?

  1. One 12 mm hole
  2. Four 6 mm holes
  3. They save exactly the same

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Choose 'Area and mass'. Build an 80 × 40 × 3 mm aluminium plate, then add holes one at a time and watch the mass fall. Switch to steel and PLA. Which change saves more: two more holes, or 1 mm less thickness?

What the interactive shows, in words

The 'Area and mass' tool draws a rectangular plate with a row of round holes. Sliders set width, height, thickness, hole count and hole diameter; buttons choose aluminium, steel or PLA. The readout gives the area (rectangle minus holes), the volume in mm³ and cm³, the mass in grams and the mass each hole saves.

Understand

Break shapes into simple pieces

Real parts are rarely one rectangle. Split them into rectangles, triangles (½ × base × height) and circles (π r²). Add the pieces that are there and subtract the holes. Write each area with its unit, mm², so you can't mix it up with a length.

The cube trap in unit conversion

There are 10 mm in a centimetre, but 1000 mm³ in a cubic centimetre, because you convert three dimensions. Forgetting this is the most common reason a mass estimate comes out 10 or 100 times wrong. A quick check: a sugar cube is about 1 cm³ and weighs a couple of grams.

Material choice multiplies everything

Density is how much mass fits in each cubic centimetre. The same plate in steel weighs about 2.9 times as much as in aluminium, and about 6 times as much as in PLA. That is a trade-off: steel is stiffer and stronger, plastic is light and easy to print.

Explain it another way: intuitive

Mass is 'how much stuff'. Geometry tells you how much space the stuff fills; density tells you how heavy each bit of that space is.

Explain it another way: technical

m = ρ · V, with V = A · t for a plate of uniform thickness. For a rectangle with n round holes, A = w·h − n·π·(d/2)².

Explain it another way: mathematical

100 × 50 × 2 mm aluminium, no holes: A = 5000 mm², V = 10 000 mm³ = 10 cm³, m = 10 × 2.7 = 27 g. Add four 10 mm holes: A drops by 4 × 78.5 = 314 mm², saving 314 × 2 ÷ 1000 × 2.7 ≈ 1.7 g.

Explain it another way: applied

Drone and rover designers 'lightweight' frames by cutting pockets and holes where the material carries little load, and keep a mass budget that every part must fit inside.

Derivation: From a drawing to grams
  1. Area of the outline: a rectangle is width × height. Subtract each hole: a circle of diameter d has area π(d/2)².

  2. Volume = area × thickness. With everything in millimetres the answer is in mm³.

  3. Convert: 1 cm = 10 mm, so 1 cm³ = 10 × 10 × 10 = 1000 mm³. Divide mm³ by 1000 to get cm³.

  4. Mass = volume × density. Densities are usually given in g/cm³ (aluminium 2.7, steel 7.85, PLA plastic about 1.24), so cm³ × g/cm³ = grams.

Try these examples

Example 1

A PLA bracket is an L shape: a 40 × 10 mm strip plus a 20 × 10 mm strip, 4 mm thick. Mass?

The worked solution is in the online lesson.

Example 2

Does halving the thickness or halving the width save more mass?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A solid aluminium plate is 100 mm × 50 mm × 2 mm. Aluminium's density is 2.7 g/cm³. What is its mass, in grams?

Answer: g

2. A PLA plastic mounting plate is 40 mm × 50 mm and 2 mm thick, with 1 round hole of diameter 10 mm drilled through. Density of PLA plastic: 1.24 g/cm³. What is its mass, in grams?

Answer: g

3. What is the area of one round hole of diameter 10 mm, in mm²?

Answer: mm²

4. Convert 4500 mm³ into cm³.

Answer: cm³

5. You double a plate's width and its height but keep the thickness. What happens to its mass (no holes)?

  • It doubles
  • It becomes 4 times as large
  • It becomes 8 times as large
  • It stays the same

Apply it

Design a mounting plate for a 150 g motor that must weigh under 25 g. Choose the size, thickness, material and holes in the geometry explorer, write the area, volume and mass calculation by hand, and say which change saved the most mass.

Reflect

Holes save mass but weaken a plate. Where on a bracket would you put them, and why?

Week 29: Trigonometric intuition

This week you will

sin, cos and tan are just ratios

A 10 cm robot link tilted at 30° lifts its tip 5 cm. Make the link twice as long at the same angle. How high does the tip go?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Every robot arm, crane, ramp and camera tilt involves a length at an angle. Trigonometry is the tool that turns 'this long, at this angle' into 'this far across and this far up', and every robot controller does it thousands of times a second.

Goals

Predict

A 10 cm link at 30° lifts its tip 5 cm. A 20 cm link at the same 30° lifts its tip…

  1. 5 cm, the angle is the same
  2. 10 cm
  3. 20 cm
  4. It depends on the motor

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Fix the angle at 30° and slide the link length from 5 to 30 cm: the sides change, the three ratios don't. Then try the shelf challenges: predict the angle with sin θ = height ÷ length before you slide.

What the interactive shows, in words

The diagram draws a robot link from a shoulder joint at an angle you set, with a dashed horizontal line (adjacent side) and a dashed vertical line (opposite side) making a right-angled triangle. Sliders set the link length and the angle. A table shows sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse and tan θ = opposite ÷ adjacent with the current numbers; changing the length changes the sides but not the ratios.

Understand

Label the sides first

Mark the angle θ you care about. The hypotenuse is the longest side, opposite the right angle (for a robot link, the link itself). The opposite side is across from θ. The adjacent side is next to θ but isn't the hypotenuse. Mislabelled sides cause most trig mistakes.

Three ratios, one angle

sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse and tan θ = opposite ÷ adjacent. Because the hypotenuse is the longest side, sin and cos are never bigger than 1. Some to remember: sin 30° = 0.5, cos 60° = 0.5, tan 45° = 1, sin 90° = 1.

From ratios to robot parts

Rearrange: a link of length L at angle θ reaches L · cos θ across and L · sin θ up. A 12 cm link at 30° lifts its tip 12 × 0.5 = 6 cm. Your calculator must be in degrees for these; next lesson you will meet radians, which most code uses.

Explain it another way: intuitive

Lean a ladder against a wall. The steeper the angle, the higher it reaches and the closer its foot is to the wall. sin and cos tell you exactly what fraction of the ladder's length goes 'up' and 'across'.

Explain it another way: technical

For a right triangle with hypotenuse h, sin θ = o/h, cos θ = a/h, tan θ = o/a = sin θ / cos θ, and sin²θ + cos²θ = 1 (Pythagoras divided by h²).

Explain it another way: mathematical

A 20 cm link at 35°: up = 20 sin 35° ≈ 20 × 0.574 = 11.5 cm, across = 20 cos 35° ≈ 20 × 0.819 = 16.4 cm. Check: 11.5² + 16.4² ≈ 400 = 20².

Explain it another way: applied

Robot arms report joint angles from encoders; the controller multiplies link lengths by sin and cos to work out where the hand is before every move.

Derivation: Why each angle has its own ratios
  1. Take any right-angled triangle with an angle θ. Its three angles are θ, 90° and 90° − θ.

  2. Any other right-angled triangle with the same θ has the same three angles, so the two triangles are similar.

  3. In similar triangles every side is scaled by the same k, so a ratio like opposite ÷ hypotenuse cancels k out: (k·o) ÷ (k·h) = o ÷ h.

  4. So the ratio depends only on θ. We name them: sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse, tan θ = opposite ÷ adjacent (SOH CAH TOA).

  5. Rearranged for a link of length L: vertical part = L · sin θ, horizontal part = L · cos θ.

Try these examples

Example 1

A 15 cm link points 60° above horizontal. How high is its tip above the joint?

The worked solution is in the online lesson.

Example 2

A ramp rises 1 m over 4 m across. What is tan of its angle?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A robot link is tilted at angle θ above the horizontal. Relative to θ, which side is the vertical drop from the tip down to the horizontal line?

  • The hypotenuse
  • The opposite side
  • The adjacent side

2. sin 30° = 0.5. A 12 cm link points 30° above horizontal. How high is its tip above the joint, in cm?

Answer: cm

3. A robot arm link is 12 cm long and points 45° above the horizontal. How far does its tip reach in the vertical direction, in centimetres?

Answer: cm

4. tan 45° = 1. A line rises at 45° and goes 8 cm across. How far up does it go, in cm?

Answer: cm

5. A classmate's calculation gives sin θ = 1.3 for a robot link. What does that tell you?

  • The link is very steep
  • There is a mistake: sin can never be more than 1
  • The angle is more than 90°
  • The motor is too strong

Apply it

In the trig ratio diagram, find the angle that puts a 20 cm link's tip on the 18 cm shelf. Predict it first with sin θ = 18 ÷ 20, then check by sliding. Explain why a 15 cm link can never reach that shelf.

Reflect

Write SOH CAH TOA in your own words, without the letters.

Find the fingertip: two links, one answer

A robot finger has a 5 cm link and a 3 cm link. Bend the knuckle straight up and the middle joint back down. Where does the fingertip end up?

About 40 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

This is forward kinematics: the first calculation in every robot arm's software. A gripper can't pick up an egg until it knows where its fingertip is, and that comes from the joint angles, the link lengths and two lines of trigonometry.

Goals

Predict

A finger with L1 = 5 cm and L2 = 3 cm has θ1 = 90° (first link straight up) and θ2 = −90° (second link bent back to horizontal). Where is the fingertip?

  1. (3, 5) cm
  2. (8, 0) cm
  3. (0, 8) cm
  4. (5, 3) cm

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Open the Robotic Gripper build, Level 2. For each pose, write your predicted fingertip position on paper first, then test it on the live finger. Then find the closest and furthest the fingertip can ever reach.

What the interactive shows, in words

In the gripper build's Level 2, a two-link finger (5 cm and 3 cm) is drawn with joint angle sliders and a fingertip readout. You calculate the tip position for two given poses ((90°, −90°) gives (3, 5) cm; (30°, 60°) gives about (4.33, 5.5) cm), the reach limits (2 cm and 8 cm), and which of four points are reachable, then check each on the live finger.

Understand

Add links tip to tail

Each link is a vector: a length at an angle. To find the fingertip, start at the base, walk along link 1, then walk along link 2 from where you stopped. Adding their x parts and y parts gives the tip, exactly like adding two forces on a free-body diagram.

Relative angles add up

The middle joint's motor only knows how far it is bent relative to link 1. So link 2's direction is θ1 + θ2. Forgetting to add θ1 is the classic forward-kinematics mistake: the answer looks reasonable but is wrong whenever θ1 isn't zero.

The tip is a function of the angles

For fixed link lengths, every pair (θ1, θ2) gives exactly one fingertip position: the tip is a function of the joint angles. Going the other way (inverse kinematics) is harder, because one target can have two answers, elbow up or elbow down, or none if it is out of reach.

Explain it another way: intuitive

Point your upper arm somewhere, then bend your elbow. Where your fingertips end up depends on both, and you add the two movements together.

Explain it another way: technical

p = L1·[cos θ1, sin θ1] + L2·[cos(θ1+θ2), sin(θ1+θ2)]. The workspace of a planar 2R arm is the annulus |L1 − L2| ≤ |p| ≤ L1 + L2.

Explain it another way: mathematical

L1 = 5, L2 = 3 cm at (30°, 60°): x = 5 cos 30° + 3 cos 90° ≈ 4.33 cm, y = 5 sin 30° + 3 sin 90° = 2.5 + 3 = 5.5 cm. Reach ring: 2 cm to 8 cm.

Explain it another way: applied

Industrial arms chain six such links in 3D, and the same add-the-links idea, written with matrices, tells the controller where the tool is 1000 times a second.

Derivation: Forward kinematics of a two-link arm
  1. Link 1 starts at the base and points at θ1, so its tip (the middle joint) is at (L1 cos θ1, L1 sin θ1).

  2. The second joint angle θ2 is measured relative to link 1, so link 2 points at the absolute angle θ1 + θ2.

  3. Link 2 adds (L2 cos(θ1 + θ2), L2 sin(θ1 + θ2)) to the middle joint's position.

  4. Add the two: x = L1 cos θ1 + L2 cos(θ1 + θ2), y = L1 sin θ1 + L2 sin(θ1 + θ2).

  5. Reach: the tip is furthest when the links line up (L1 + L2) and closest when folded back (|L1 − L2|). The reachable area is a ring between those radii.

Try these examples

Example 1

L1 = 6 cm, L2 = 4 cm, θ1 = 0°, θ2 = 90°. Tip?

The worked solution is in the online lesson.

Example 2

Can a 5 cm + 3 cm finger touch the point (0, −7) cm? And (1, 1) cm?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. L1 = 5 cm, L2 = 3 cm, θ1 = 30°, θ2 = 60°. What is the fingertip's y coordinate, in cm?

Answer: cm

2. A two-link finger has L1 = 4 cm and L2 = 6 cm. The first joint is at θ1 = 30° and the second joint bends θ2 = -60° relative to the first link. What is the fingertip's y coordinate, in centimetres?

Answer: cm

3. A finger has L1 = 5 cm and L2 = 3 cm. What is the closest the fingertip can get to the base, in cm?

Answer: cm

4. Can a 5 cm + 3 cm finger touch the point (0, 9) cm?

  • Yes, with θ1 = 90°
  • No: it is 9 cm away, beyond the 8 cm maximum reach
  • Only with elbow up
  • Yes, if the motor is strong enough

5. A learner computes link 2's contribution as L2 cos θ2 instead of L2 cos(θ1 + θ2). When will their answer still be right?

  • Never
  • Only when θ1 = 0°
  • Only when θ2 = 0°
  • Always

Apply it

Finish Level 2 of the Robotic Gripper build. Then choose your own link lengths for a gripper finger that must reach an object 6 cm away and 2 cm up, and show by calculation that the tip can get there.

Reflect

Why do you think robot designers like the ratio of L1 to L2 to be close to 1?

Week 30: Mechanical system concepts

This week you will

Draw the forces: free-body diagrams and equilibrium

A 300 N box sits on a 3 m shelf, 1 m from the left bracket. One bracket is cheaper and weaker. Which end can you use it on?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Before choosing a bracket, a bolt or a motor, an engineer needs the forces on it. A free-body diagram is the drawing that turns 'it feels heavy' into numbers you can design with, and equilibrium is the rule that lets you find forces you can't measure.

Goals

Predict

A 3 m shelf rests on a bracket at each end. A 300 N box sits 1 m from the left bracket. How does the load split?

  1. 150 N each
  2. Left 200 N, right 100 N
  3. Left 100 N, right 200 N
  4. All 300 N on the left

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Choose 'Lever', class 1. The beam is your free body: the load, the effort and the pivot's push are the three forces on it. Move the load further from the pivot and watch the effort and the pivot force change. Check that up forces always equal down forces.

What the interactive shows, in words

The mechanism explorer's lever mode draws a beam on a triangular pivot with a load box, an effort arrow and a pivot-force arrow. Sliders set the load in newtons and the two distances from the pivot. The readout states the balancing effort from load × load distance = effort × effort distance, and the pivot force from up forces = down forces.

Understand

Isolate one object

A free-body diagram draws one object on its own, with an arrow for every force that acts on it: weights, pushes from supports, pulls from cables, friction. Leave out forces the object exerts on other things. Label each arrow with its size in newtons and its point of action.

Moments: turning effect

A force turns an object about a point by its moment = force × perpendicular distance from that point, in newton-metres (N·m). 20 N pushing 0.15 m from a hinge makes a 3 N·m moment. The same force further away turns harder, which is why door handles sit far from the hinges.

Equilibrium: two rules

An object at rest (or moving steadily) is in equilibrium: the forces in each direction add to zero, and the moments about any point add to zero. Choose the point where an unknown force acts, so that force drops out of the moment equation. Then the force rule finds the rest.

Explain it another way: intuitive

A seesaw balances when the heavy child sits closer to the middle. Equilibrium is the seesaw rule written down so it works for any shelf, bracket or robot arm.

Explain it another way: technical

Static equilibrium in 2D: ΣFx = 0, ΣFy = 0, ΣM_P = 0 for any point P. Three equations solve for up to three unknown reactions.

Explain it another way: mathematical

Shelf: ΣM_left = 0 gives 3·R_R − 1·300 = 0, R_R = 100 N; ΣFy = 0 gives R_L = 200 N. A 20 N force at 0.15 m makes M = 3 N·m.

Explain it another way: applied

To size a robot's shoulder motor, engineers draw the arm as a free body, include the weight of each link and the object in the gripper, and take moments about the shoulder to find the torque the motor must hold.

Derivation: Finding two support forces
  1. Isolate the shelf. Forces on it: the box's weight W = 300 N down at 1 m from the left, and two unknown upward forces R_L and R_R at 0 m and 3 m.

  2. Moments about the left support (its own force has zero distance, so it drops out): clockwise W × 1 = anticlockwise R_R × 3, so R_R = 300 ÷ 3 = 100 N.

  3. Forces up = forces down: R_L + R_R = 300 N, so R_L = 200 N.

  4. Check with moments about the right support: R_L × 3 = W × 2, so R_L = 600 ÷ 3 = 200 N. Same answer, so the working is consistent.

Try these examples

Example 1

A 2 m beam has supports at each end and a 400 N load 0.5 m from the right end. Support forces?

The worked solution is in the online lesson.

Example 2

A robot holds a 5 N object at the end of a 0.4 m arm, horizontally. What moment must the shoulder resist (ignoring the arm's own weight)?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A 3 m shelf rests on supports at both ends. A 300 N box sits 1 m from the left support. What upward force does the LEFT support provide, in newtons?

Answer: N

2. A 1 m shelf rests on a support at each end. A 150 N box sits 0.75 m from the left support. Ignoring the shelf's own weight, what upward force does the left support provide, in newtons?

Answer: N

3. A 20 N push acts 0.15 m from a hinge, at right angles to the door. What is its moment about the hinge, in N·m?

Answer: N·m

4. A bracket is in equilibrium. Which must be true?

  • There are no forces on it
  • The forces add to zero AND the moments about any point add to zero
  • Only the forces add to zero
  • The biggest force wins

5. You draw a free-body diagram of a robot gripper holding a cup. Which force does NOT belong on it?

  • The gripper's own weight
  • The force from the wrist holding the gripper
  • The force the gripper's fingers exert on the cup
  • The cup pushing on the fingers

Apply it

Draw a free-body diagram of a robot arm held out horizontally, 30 cm long, holding a 4 N object at its tip, with the arm's own 2 N weight acting at its middle. Find the moment the shoulder must resist, then the vertical force at the shoulder.

Reflect

Why is it smart to take moments about the point where an unknown force acts?

Levers and linkages: trading force for distance

Your hand squeezes pliers with 40 N, yet the jaws bite through wire that needs 160 N. Where did the extra force come from, and what did you pay for it?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Grippers, brakes, scissors, excavator arms and your own forearm are levers. Linkages, which are levers joined together, turn a motor's rotation into a gripper's squeeze or a wiper's swing. Choosing the lengths is choosing the trade between force and movement.

Goals

Predict

Pliers: your hand pushes 10 cm from the pivot, the jaws are 2.5 cm from the pivot. You squeeze with 40 N. What force do the jaws apply?

  1. 10 N
  2. 40 N
  3. 160 N
  4. 400 N

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Choose 'Lever'. Try all three classes. For each, find settings where the mechanical advantage is above 1 and below 1. Which class can never have an advantage above 1, and why would anyone use it?

What the interactive shows, in words

The mechanism explorer draws a lever for each class: class 1 with the pivot between load and effort, class 2 with the load between, class 3 with the effort between. Sliders set the load and both distances. The readout gives the balancing effort, the mechanical advantage (effort distance ÷ load distance), the pivot force, and how much further the effort end moves than the load.

Understand

Mechanical advantage

For an ideal lever, moments balance: effort × effort arm = load × load arm. So the mechanical advantage MA = load ÷ effort = effort arm ÷ load arm. Pliers with a 10 cm handle and a 2.5 cm jaw have MA = 4. MA has no unit: it is a ratio of two forces.

There's no free lunch

Work = force × distance moved. If the jaws get 4 times the force, your hand must move 4 times as far. Work out can never exceed work in; friction makes it a little less. A lever is a trade, not a source of energy. MA below 1 trades force for speed and range, like a fishing rod or your forearm.

Three classes and linkages

Class 1: pivot between load and effort (seesaw, pliers). Class 2: load between pivot and effort (wheelbarrow), MA above 1. Class 3: effort between pivot and load (tweezers), MA below 1. A four-bar linkage joins four rigid links in a loop; driving one link moves the others along fixed paths, turning rotation into rocking or pinching.

Explain it another way: intuitive

Opening a paint tin with a long screwdriver is easy because your hand moves a long way while the lid edge moves a tiny bit. Long handle, small movement at the business end: big force.

Explain it another way: technical

Ideal MA = d_effort / d_load (from ΣM = 0). Velocity ratio = distance moved by effort ÷ distance moved by load, equal to MA for an ideal lever. Efficiency = actual MA ÷ ideal MA.

Explain it another way: mathematical

Class 1, load 100 N at 10 cm, effort at 40 cm: E = 100 × 10 ÷ 40 = 25 N, MA = 4, pivot force = 125 N. If the effort end moves 20 cm, the load rises 5 cm: 25 × 0.20 = 100 × 0.05 = 5 J.

Explain it another way: applied

Gripper designers choose linkage lengths so a small servo produces a firm squeeze near the closed position, where it matters most, and fast travel when the fingers are wide open.

Try these examples

Example 1

A wheelbarrow carries 600 N of soil 0.4 m from the wheel axle. The handles are 1.2 m from the axle. Lifting force?

The worked solution is in the online lesson.

Example 2

Your biceps attaches 4 cm from the elbow and your hand holds 20 N, 32 cm from the elbow. Muscle force?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Pliers: your hand pushes 10 cm from the pivot with 40 N; the jaws are 2.5 cm from the pivot. What force do the jaws apply, in newtons?

Answer: N

2. A lever holds a 30 N load 15 cm from the pivot. You push down 25 cm from the pivot on the other side. What effort balances the load, in newtons?

Answer: N

3. An ideal lever has a mechanical advantage of 4. You push the effort end down 20 cm. How far does the load rise, in cm?

Answer: cm

4. Tweezers are a class 3 lever with mechanical advantage below 1. Why use one?

  • They're a design mistake
  • They give fine control and a gentle grip, with the tips moving further and faster than your fingers
  • They multiply force
  • They use less energy than a class 1 lever

5. What does a four-bar linkage typically do in a machine?

  • Store electrical energy
  • Turn one link's motion, such as a motor's rotation, into a different motion of another link, such as rocking
  • Measure force
  • Increase the total energy in the system

Apply it

Design a gripper finger driven by a servo that pushes with 2 N on a lever. The finger must squeeze the object with at least 6 N. Choose the two lever distances, draw the free-body diagram, and say how far the fingertip moves for each 1 cm of servo arm movement.

Reflect

Find a lever on your body other than your forearm. Which class is it, and is its mechanical advantage above or below 1?

Gears: why a tiny motor can lift a robot arm

A hobby motor spins at 3000 rpm but can barely hold a pencil still. Bolt on a gearbox and the same motor lifts a robot arm. What did the gears change, and what did they cost?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Motors are fast and weak; joints need to be slow and strong. Gear trains are the bridge, and choosing the ratio is one of the first calculations in any robot design. Get it wrong and the arm either can't lift its load or moves at a crawl.

Goals

Predict

A 10-tooth gear on a motor drives a 40-tooth gear. Compared with the motor, the output shaft turns…

  1. 4 times faster with a quarter of the torque
  2. 4 times slower with 4 times the torque
  3. At the same speed with 4 times the torque
  4. 4 times slower with a quarter of the torque

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Choose 'Gear train'. Make a single-stage ratio of 3, then add a second stage to reach 12. Compare the input and output power with 100% efficiency, then with 85% per stage. Which costs more: one big stage or two smaller ones?

What the interactive shows, in words

The gear-train explorer draws meshing gears as toothed circles sized by tooth count. Sliders set the tooth counts of each gear, the motor speed and the motor torque; a checkbox adds a second stage and buttons set the efficiency per stage. The readout gives the overall ratio, output speed, output torque, input and output power, and the output's direction of rotation.

Understand

Ratio from teeth

Gear ratio = teeth on the driven (output) gear ÷ teeth on the driving gear. A 12-tooth gear driving a 36-tooth gear has ratio 3: the output turns 3 times slower. Torque is a turning force, measured in newton-metres (N·m); ideally it is 3 times larger.

Stack stages to multiply

One stage with a huge ratio needs a huge gear. Instead, put a small gear on the same shaft as the first big one and use it to drive another big gear. Ratios multiply: 10→30 then 12→48 gives 3 × 4 = 12. Each meshing pair loses a little power to friction, perhaps 5% for good spur gears.

Power is the real limit

Gears can't create power. If a motor delivers 12.6 W, the output delivers at most 12.6 W, whatever the ratio. Choose the ratio so the joint gets the torque it needs at the speed it needs, then check the motor can supply that power. Each meshing pair also reverses the direction of rotation.

Explain it another way: intuitive

Low gear on a bike: your legs spin fast, the wheel turns slowly, and climbing is easy. Gears move the effort around; they don't add any.

Explain it another way: technical

i = N_out / N_in per stage; i_total = Π iᵢ. ω_out = ω_in / i. T_out = η · i · T_in. P = T · ω, with ω = 2π n / 60 for n in rpm.

Explain it another way: mathematical

1200 rpm, 0.1 N·m motor, ratio 12: 100 rpm and 1.2 N·m ideally. Power in = 0.1 × 1200 × 2π/60 ≈ 12.6 W; out = 1.2 × 100 × 2π/60 ≈ 12.6 W. At 95% per stage: T_out = 0.1 × 12 × 0.95² ≈ 1.08 N·m.

Explain it another way: applied

Robot joints often use ratios of 50 to 160 so a small fast motor can hold an arm steady. The penalty is backlash, a little play between teeth, which makes precise positioning harder.

Derivation: Why torque goes up as speed goes down
  1. Meshing teeth move at the same speed at the contact point. The gear with N teeth makes one turn while N teeth pass, so turns × teeth is the same for both: n_in × N_in = n_out × N_out.

  2. So n_out = n_in × N_in ÷ N_out = n_in ÷ ratio, with ratio = N_out ÷ N_in.

  3. Power is torque × angular speed. With no losses, power in = power out: T_in × n_in = T_out × n_out.

  4. So T_out = T_in × ratio. With efficiency η per stage, T_out = T_in × ratio × η.

  5. For a compound train (two gears on a shared shaft), the stage ratios multiply: 3 × 4 = 12.

Try these examples

Example 1

A 15-tooth motor gear at 1500 rpm drives a 45-tooth gear. Output speed?

The worked solution is in the online lesson.

Example 2

A joint needs 2 N·m. The motor gives 0.25 N·m. Minimum ideal ratio? With 90% efficiency?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A 12-tooth gear on a motor spins at 1200 rpm and drives a 36-tooth gear. What is the output speed, in rpm?

Answer: rpm

2. A motor spins a 10-tooth gear at 900 rpm with 0.05 N·m of torque. It drives a 48-tooth gear. Ignoring friction, what is the output torque, in N·m?

Answer: N·m

3. Stage 1: a 10-tooth gear drives a 30-tooth gear. On the same shaft as the 30-tooth gear, a 12-tooth gear drives a 48-tooth gear. What is the overall ratio?

Answer:

4. A motor gives 0.1 N·m into that two-stage train (ratio 12). Each stage is 95% efficient. What is the output torque, in N·m?

Answer: N·m

5. A salesperson claims their gearbox 'doubles your motor's power'. What's wrong?

  • Nothing, gearboxes add power
  • Gears trade speed for torque; power out can't exceed power in
  • Only belts can double power
  • It depends on the colour of the gears

Apply it

A gripper's lift joint must hold 1.5 N·m and move at about 30 rpm. Your motor gives 0.1 N·m at 1500 rpm. Choose tooth counts for a one- or two-stage train (8–60 teeth per gear), check torque with 95% per stage, and check the speed. Test it in the gear-train explorer and record the numbers.

Reflect

Why might a designer choose two medium gear stages instead of one stage with a huge ratio?

Week 31: Design requirements

This week you will

Requirements two strangers would agree on

The client says the gripper must be 'strong and easy to use'. You build it, they say it fails. Who was wrong?

About 30 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Most failed projects don't fail because the maths was wrong; they fail because nobody agreed what 'working' meant. A testable requirement turns an argument about opinions into a measurement anyone can repeat.

Goals

Predict

Which of these is a testable requirement for a recycling-line gripper?

  1. The gripper should be really strong
  2. The gripper must use rubber pads
  3. The gripper must lift a 250 g bottle without slipping while accelerating up at 2 m/s²
  4. A blue gripper would look nice

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Sort every statement in the recycling-gripper brief as testable, vague, preference or solution in disguise, then check. For each vague one, write a testable rewrite on paper before moving on.

What the interactive shows, in words

The requirements checker lists statements from a client brief. For each one you choose testable requirement, vague, preference or solution in disguise, then press check: each answer is marked with an explanation, for example 'The gripper should be really strong' is vague because it gives no load or test.

Understand

Three parts of a testable requirement

A good requirement says what the system must do, how much (a number with a unit) and under what conditions (load, speed, temperature, number of trials). 'The gripper must close within 0.5 s of the command, in each of 10 trials' has all three. Use must for non-negotiables and should for strong wishes.

Preferences and disguised solutions

A preference ('blue would be nice') is worth recording but nobody fails if it is missed. A solution in disguise ('must use rubber pads') jumps to a design before stating the need. Ask 'why?': the answer ('must not slip on a wet bottle') is the real requirement, and rubber becomes one option among several.

Fixing a vague requirement

Words like strong, fast, easy, safe and reliable need numbers. Ask: strong enough for what load? Fast compared with what time? Easy for whom, doing what, in how long? 'Easy to use' might become 'a new operator sets it up in under 5 minutes using only the README'.

Explain it another way: intuitive

A good requirement is like the rules of a race: everyone knows where the finish line is before they start running.

Explain it another way: technical

Requirements should be necessary, unambiguous, verifiable, feasible and traceable. Each states a measurable criterion and its acceptance condition, independent of the design that meets it.

Explain it another way: applied

Space agencies and car makers keep thousands of numbered requirements, each with a planned test. Changing one means re-checking everything that depends on it.

Try these examples

Example 1

Rewrite: 'The robot must be fast.'

The worked solution is in the online lesson.

Example 2

Rewrite: 'The sorter must use a colour camera.'

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Which statement is testable?

  • The arm must be precise
  • The arm must place its tip within 2 mm of the target in 9 out of 10 trials
  • The arm should be good quality
  • The arm must use a stepper motor

2. 'The greenhouse must use a fan.' What kind of statement is this?

  • A testable requirement
  • A preference
  • A solution in disguise
  • A constraint on cost

3. 'The gripper must hold 300 g.' What is missing that could cause an argument later?

  • Nothing
  • The conditions: for how long, while moving how fast, with which objects
  • A colour
  • The motor's brand

4. Which should be written as 'must'?

  • The case should be recyclable
  • The machine must stop within 0.5 s when the guard opens
  • The display should use large text
  • It should cost under £40 if possible

Apply it

Write five requirements for your capstone machine: at least three testable musts, one should and one could. For each must, write the test you will run in simulation to check it.

Reflect

Pick one requirement you wrote. Could someone meet it in a way you'd hate? If so, what is missing?

From a vague brief to budgets with margins

Your robot must weigh under 1 kg. Today's estimate is 850 g. Are you safe, or are you about to run out of room?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Mass, cost, power and space are shared by every part of a design. Engineers keep a running budget for each, so that when one team adds 50 g, everyone can see whether the whole machine still fits.

Goals

Predict

A robot must weigh at most 1000 g. Parts so far total 850 g. What is the margin?

  1. 150 %
  2. 15 %
  3. 85 %
  4. 0.15 %

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Open the trade-offs lab. Set a cost limit and a power limit and watch designs drop out as 'ruled out'. Find the tightest pair of limits that still leaves at least two designs. Which constraint is doing most of the work?

What the interactive shows, in words

The trade-offs lab lists six hypothetical robot designs with cost, power, computing load and accuracy. You set limits for cost and power; designs that break a limit are marked 'ruled out' and the rest are ranked. The activity is to find the tightest limits that still leave two designs.

Understand

Constraints are limits

A requirement says what the design must do; a constraint limits how it can do it: at most 1 kg, under £40, no more than 10 W, must fit in a 20 cm cube. Clients often state constraints vaguely ('light', 'cheap', 'small'). Your job is to ask until each has a number and a unit.

Budgets add up

Mass, cost and power add across parts, so list every part with its estimate and total them. Frame 150 g + motors 100 g + battery 120 g + electronics 45 g = 415 g. Power works the same way: three 2 W motors plus a 1.5 W controller draw 7.5 W, so a 15 Wh battery lasts about 2 hours.

Keep a margin

Margin = (limit − total) ÷ limit × 100%. Early in a design, estimates are guesses and always grow, so teams aim for 20–30% margin at the start and accept less as numbers firm up. A negative margin means you are over budget now, before anything has been built.

Explain it another way: intuitive

A budget is pocket money for your design: every part spends some, and you want a little left over for surprises.

Explain it another way: technical

For an additive resource, total = Σ parts; margin = (limit − total)/limit. Track estimate maturity (guess, calculated, measured) alongside each line.

Explain it another way: mathematical

Limit 750 g, parts 150 + 100 + 120 + 45 = 415 g: margin = 335 ÷ 750 ≈ 44.7%. Battery life = energy ÷ power = 15 Wh ÷ 7.5 W = 2 h.

Explain it another way: applied

Drone teams keep a mass budget because every extra gram cuts flight time. Spacecraft budgets are so tight that engineers trade grams between subsystems like currency.

Try these examples

Example 1

Client: 'It has to be cheap enough for schools.' Turn this into a constraint.

The worked solution is in the online lesson.

Example 2

Power budget: two 3 W motors, a 0.5 W sensor and a 1 W controller. A 12 Wh battery lasts how long?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A robot must weigh at most 1000 g and the parts total 850 g. What margin is left, as a percentage?

Answer: %

2. A robot must weigh at most 500 g. Current estimates: frame 220 g, motors 80 g, battery 90 g, electronics 60 g. What margin is left, as a percentage of the 500 g limit? (Negative means over budget.)

Answer: %

3. Three motors draw 2 W each and the controller draws 1.5 W. How many hours does a 15 Wh battery last at that power?

Answer: h

4. Why do engineers keep a margin in a mass budget early in a project?

  • To make the numbers look nicer
  • Because estimates usually grow as cables, fasteners and fixes are added
  • Because the limit will probably be relaxed
  • Margins are only needed for cost

5. Which is a constraint rather than a functional requirement?

  • The robot must sort parts into two bins
  • The robot must fit inside a 30 cm cube
  • The robot must stop when the guard opens
  • The robot must detect red parts

Apply it

Make a mass and power budget for your capstone machine (simulated parts can use estimates from datasheets or the Builds). Give each line its source, total each budget, and state the margin against limits you set in your requirements.

Reflect

Which of your budget lines is the shakiest guess, and how could you firm it up?

Every requirement needs a test and a reason

The gripper build runs 24 checks on your design. Where did those 24 come from, and what if one of your requirements has no check at all?

About 40 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Traceability is how engineers prove a design is finished: every requirement has evidence, and every design decision exists for a reason. It also tells you exactly what to re-test when something changes.

Goals

Predict

The gripper build checks 6 things (reach, clearance, control, hold, no crush, motor torque) for each of 4 objects. How many checks is that?

  1. 10
  2. 24
  3. 6
  4. 4

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Open the Robotic Gripper build, Level 3. Before changing anything, write the six checks as requirements with numbers (for example, squeeze never above the object's crush limit). Then design a gripper that passes all 24 checks, noting which requirement drove each choice.

What the interactive shows, in words

Level 3 of the gripper build lets you set two link lengths, the knuckle spacing, the pad material and the squeeze force, then runs six checks (reach, clearance, control, hold, no crush, motor torque) on each of four objects (egg, bolt, tomato, paper cup) and reports which of the 24 checks pass.

Understand

Four ways to verify

Inspection: look or measure ('the README lists every part'). Analysis: calculate ('motor torque under 0.15 N·m by free-body diagram'). Demonstration: show it works once ('the gripper opens and closes'). Test: measure performance under set conditions, usually repeated ('holds the bolt in 10 of 10 fast lifts'). Choose the cheapest method that gives trustworthy evidence.

The traceability table

Make a table with columns: requirement ID, requirement text, verification method, test or calculation, result, and the design decision it drove. R3 'squeeze ≤ 3 N on the paper cup' might trace to 'test: cup case in the build' and to 'decision: rubber pads, so a low squeeze still holds the bolt'.

Gaps tell you something

A requirement with no test is a promise you can't keep. A design decision with no requirement may be gold-plating, or may reveal a requirement you forgot to write. When a requirement changes, the table shows every test to re-run.

Explain it another way: intuitive

Traceability is a receipt for every promise: here is what we said, here is how we checked, here is what we found.

Explain it another way: technical

A requirements traceability matrix maps each requirement to its verification method, verification artefact and status, and to the design elements that satisfy it, in both directions.

Explain it another way: applied

Medical device and aircraft makers must show regulators a traceability matrix before selling a product; an untested requirement can stop a launch.

Try these examples

Example 1

Pick a verification method: 'The gripper's motors must stay under 0.15 N·m in every grasp.'

The worked solution is in the online lesson.

Example 2

Your design uses rubber pads, but no requirement mentions friction. What should you do?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A design has 6 requirements, each checked against 4 objects. How many checks are in the full test matrix?

Answer:

2. Best verification method for 'The README must list every part with a quantity'?

  • Test
  • Analysis
  • Inspection
  • Demonstration

3. Best verification method for 'The gripper must hold the bolt in 10 of 10 lifts at 4.9 m/s²'?

  • Inspection
  • Test
  • Demonstration
  • None needed

4. Your traceability table shows a design decision ('add a second sensor') that traces to no requirement. What is the best response?

  • Delete the table
  • Ask which need it serves; either write that requirement or question the decision
  • Keep it and say nothing
  • Remove all sensors

5. A simulation test plan runs every combination of 5 loads and 3 speeds. 0 of the runs fail a requirement. What percentage of runs pass?

Answer: %

Apply it

Make a traceability table for your capstone machine with at least five requirements. Fill in the verification method for each, and trace at least three design decisions back to them. Mark any gaps.

Reflect

Which of your requirements will be hardest to verify, and why?

Week 32: Engineering trade-offs

This week you will

The weighted decision matrix

Concept A beats concept B on three criteria out of four. Is A the better design?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Teams argue about designs. A decision matrix makes the argument visible: everyone sees which criteria matter, how much, and how each concept scored, so disagreements become specific and fixable.

Goals

Predict

Concept A beats concept B on three of four criteria. In a weighted matrix, must A win?

  1. Yes, it wins most criteria
  2. No: if B wins the criterion with the biggest weight by enough, B can win
  3. Only if the weights are all equal

Write down your guess and your reason. The reveal is in the online lesson.

Discover

With the starting weights, check one total by hand: weight × score for each criterion, then add. Then change one score you disagree with and see whether the winner changes. Is the soft suction cup's lead large or small?

What the interactive shows, in words

The trade-off matrix compares three gripper concepts (two-finger pinch, three-finger claw, soft suction cup) on four criteria. Sliders set each criterion's weight and drop-down menus set each score. A table shows weighted totals; bars show percentages; the winner is starred. With the starting weights the totals are 39, 33 and 46.

Understand

Musts first, then the matrix

Must-have requirements are pass or fail: a concept that fails one is out before any scoring. The matrix compares the survivors on the things you'd like more or less of. Mixing a must into the weights lets a dangerous design win by being cheap.

Weights and scores are judgements

Weights say what matters; scores say how well each concept does. Both are opinions, ideally backed by numbers (a mass estimate, a calculated grip force). Write down why you gave each score: '2 for mass because the claw has three motors'. Then others can challenge the reason, not just the number.

Close calls are information

If two concepts finish within a few points, the matrix is saying 'these are about equal given what we know'. That is a reason to prototype both or find better data, not to declare a winner. Report the margin honestly, and check sensitivity, which is the next lesson.

Explain it another way: intuitive

Choosing a phone: battery matters a lot, colour a little. You'd pick the one that does best on what matters to you, not the one with the most ticks.

Explain it another way: technical

A weighted-sum model: score_j = Σᵢ wᵢ sᵢⱼ. It assumes criteria are independent and that a gain on one can compensate a loss on another at the rate set by the weights.

Explain it another way: mathematical

Weights (3, 4, 2, 2). Pinch (5, 2, 4, 4) = 15 + 8 + 8 + 8 = 39. Claw (3, 4, 2, 2) = 9 + 16 + 4 + 4 = 33. Suction (4, 5, 4, 3) = 12 + 20 + 8 + 6 = 46 of 55.

Explain it another way: applied

Engineering teams use matrices (sometimes called Pugh or weighted scoring matrices) at design reviews to record why a concept was chosen, so later teams don't repeat the argument.

Derivation: Weighted total and percentage
  1. List criteria from your requirements (cost, grip on odd shapes, mass, ease of repair). Give each a weight wᵢ from 0 to 5 for how much it matters.

  2. Score each concept on each criterion, sᵢ from 1 to 5, where 5 is best. For 'cost', best means cheapest.

  3. Weighted total = Σ wᵢ × sᵢ. Suction cup with weights (3, 4, 2, 2) and scores (4, 5, 4, 3): 12 + 20 + 8 + 6 = 46.

  4. The best possible total is 5 × Σ wᵢ = 5 × 11 = 55, so the percentage is 46 ÷ 55 ≈ 84%.

Try these examples

Example 1

Weights: safety 5, cost 2, speed 3. Concept X scores (4, 5, 2); concept Y scores (5, 2, 4). Which wins?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Weights: cost 3, odd shapes 4, mass 2, repair 2. The suction cup scores 4, 5, 4, 3. What is its weighted total?

Answer:

2. Weights (importance 1–5): cost 1, grip strength 5, mass 2, ease of repair 1. A gripper concept scores (1–5): cost 5, grip strength 5, mass 1, ease of repair 5. What is its weighted total (sum of weight × score)?

Answer:

3. With weights summing to 11 and scores out of 5, a concept totals 46. What percentage of the maximum is that?

Answer: %

4. A concept scores highest in the matrix but fails a safety must. What happens?

  • It wins: the numbers decide
  • It is out; musts are checked before scoring
  • Its safety score is lowered a bit
  • The safety weight is raised until it loses

5. Two concepts total 71% and 70%. What is the most honest report?

  • Concept 1 is clearly better
  • They are effectively tied; the choice depends on judgement, so test both or get better data
  • The matrix is broken
  • Pick concept 2 to be safe

Apply it

Make a weighted matrix for at least two concepts for your capstone mechanism. Trace every criterion to a requirement, write one sentence justifying each score, and report the winner and the margin.

Reflect

Which weight in your matrix are you least sure about? What would change your mind?

How fragile is your decision?

Change one weight from 2 to 1 and the 'best' gripper changes. Was your decision ever really made?

About 30 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Weights are educated guesses. A sensitivity check asks: if my guess is a bit off, do I still choose the same thing? If yes, decide and move on. If no, you've found exactly where to spend effort.

Goals

Predict

In the trade-off matrix the suction cup wins with 'grips odd shapes' weighted 4. If that weight drops to 1, what happens?

  1. Suction still wins
  2. The two-finger pinch wins
  3. The claw wins
  4. It becomes a three-way tie

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Use the sensitivity row. Sweep each of the four weights in turn and note, for each, whether the winner ever changes and at what weight. Which criterion is the decision most sensitive to?

What the interactive shows, in words

Below the matrix, buttons choose one criterion. A row of six boxes shows which concept wins as that criterion's weight goes from 0 to 5, with the current weight highlighted. The readout says the weight at which the winner changes, or that it never changes.

Understand

Sweep one thing at a time

Hold all weights fixed except one. Step it from 0 to 5 and record the winner at each step. If the winner never changes, the decision is robust to that weight. If it changes, note the switch point: in the starting matrix, the suction cup wins only while 'grips odd shapes' is weighted 2 or more.

Compare the switch point with your doubt

A switch point far from your chosen weight is reassuring. One right next to it means a small change of opinion flips the result. Ask the client or the requirements: is that criterion really a 4, or could it be a 2? That question is now worth asking, because the answer changes the design.

What to do when it's fragile

Options: get better information (measure grip on odd shapes rather than guessing), prototype both finalists, or look for a hybrid concept that does well on the disputed criterion. Never quietly nudge the weights until your favourite wins: that turns a decision tool into a justification tool.

Explain it another way: intuitive

If you'd pick the same pizza whether you're a bit hungry or very hungry, your choice is robust. If it depends exactly on how hungry you are, think again.

Explain it another way: technical

One-at-a-time sensitivity: vary wₖ over its plausible range with others fixed, and find wₖ* where argmax_j score_j changes. Robustness is the distance from the nominal weight to the nearest switch point.

Explain it another way: mathematical

Odd-shapes weight w, others (3, ·, 2, 2): pinch = 31 + 2w, suction = 26 + 5w. Equal when 31 + 2w = 26 + 5w, w = 5/3 ≈ 1.67. Suction wins for w ≥ 2.

Explain it another way: applied

Engineers present sensitivity results at design reviews so that managers see which assumption the decision rests on, and can decide whether to pay for a test to check it.

Try these examples

Example 1

Two concepts: A = 20 + 3w, B = 26 + w, where w is one criterion's weight. Where does the winner switch?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Concept A scores 31 + 2w and concept B scores 26 + 5w, where w is the weight of one criterion. At what value of w are they equal?

Answer:

2. Sweeping 'cost' from 0 to 5 never changes the winner. What does that mean?

  • Cost doesn't matter
  • The decision is robust to how much you value cost
  • The matrix is broken
  • Cost should be removed

3. The winner flips if one weight changes by 1. Which is the best next step?

  • Adjust the weight until your favourite wins
  • Get better evidence for that criterion or prototype both finalists
  • Pick at random
  • Remove the criterion

4. Weights (importance 1–5): cost 3, grip strength 4, mass 4, ease of repair 5. A gripper concept scores (1–5): cost 3, grip strength 4, mass 3, ease of repair 1. What is its weighted total (sum of weight × score)?

Answer:

Apply it

Run a sensitivity check on your own capstone matrix. For each weight, record whether and where the winner flips. Write two sentences: is the decision robust, and if not, what evidence would settle it?

Reflect

Which criterion in your matrix did you feel most strongly about? Did the sweep agree that it mattered?

Never pick a dominated design

One design is cheaper AND more accurate than another. Is there any reason ever to choose the worse one?

About 30 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Before arguing about weights, throw out the designs that lose on everything. What's left, the Pareto front, are the genuine trade-offs, and those are the only ones worth a debate.

Goals

Predict

Design P costs £30 with 2 cm accuracy. Design Q costs £45 with 3 cm accuracy (smaller is better for both). Could Q ever be the right choice?

  1. Yes, if you care a lot about accuracy
  2. No: P is cheaper and more accurate, so P dominates Q
  3. Yes, if you care a lot about cost

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Open the trade-offs lab and show the two-objective (Pareto) view. Identify which designs are dominated and which sit on the front. Then change the weights in the lab: does a dominated design ever win?

What the interactive shows, in words

The trade-offs lab shows six hypothetical designs plotted on two objectives. Designs not beaten on both by any other are marked as the Pareto front. Changing the criterion weights changes which front design ranks first, but a dominated design never ranks first.

Understand

What dominance means

Option A dominates option B if A is at least as good as B on every objective and strictly better on at least one. A dominated option can't win any weighted matrix with positive weights, so you can drop it without discussing weights at all.

The Pareto front

The options no one dominates form the Pareto front. Moving along it, you can only improve one objective by giving up some of another: cheaper means less accurate, more accurate means pricier. Plot cost against error and the front is the edge nearest the 'cheap and accurate' corner.

Choosing along the front

Every point on the front is a defensible choice for someone. Which one is right depends on the requirements: a must (error under 2 cm) cuts the front; a weight picks a point on what's left. That is why requirements come before trade-offs.

Explain it another way: intuitive

If one bike is lighter and cheaper than another, nobody needs a spreadsheet to reject the heavier, pricier one.

Explain it another way: technical

For objectives to minimise f₁…fₙ, a dominates b iff ∀i fᵢ(a) ≤ fᵢ(b) and ∃i fᵢ(a) < fᵢ(b). The Pareto set is {x : no y dominates x}.

Explain it another way: applied

Rover and drone teams plot mass against battery life, or cost against accuracy, for candidate parts, and only debate the options on the front.

Try these examples

Example 1

Sensors (cost £, error cm): A (10, 5), B (20, 2), C (25, 4), D (40, 1). Which are dominated?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Sensors (cost £, error cm; lower is better for both): A (10, 5), B (20, 2), C (25, 4), D (40, 1). Which is dominated?

  • A
  • B
  • C
  • D

2. In that table of A, B, C and D, how many options are on the Pareto front?

Answer:

3. Your requirement says error must be under 3 cm. Which options remain from A, B, C and D?

  • A and B
  • B and D
  • Only D
  • All four

4. Can a dominated option ever win a weighted matrix that uses only those objectives with positive weights?

  • Yes, with the right weights
  • No: the option that dominates it scores higher whatever the weights
  • Only if it is cheaper
  • Only in a tie

Apply it

For your capstone, list at least four candidate options for one part (a sensor, motor or pad) with two numbers each, from datasheets or the Builds. Plot them, mark the Pareto front, and explain your choice from the front using your requirements.

Reflect

Have you ever bought something that was dominated by another option? Why?

Week 33: Simulation testing

This week you will

What does your simulation leave out?

Your simulated robot passes every test. The real one falls over. Was the simulation wrong, or did you ask it the wrong question?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Every Tactiverge Build and lab is a simplified model, and so are the simulations professionals use. Knowing what a model ignores is what separates a useful simulated result from a misleading one.

Goals

Predict

The kinematics lab says its arm has 'no gravity, no joint friction, no backlash'. Which question can it answer well?

  1. Can the arm's tip reach this point?
  2. Can the motor hold this load still?
  3. How much will the arm wobble when it stops?

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Open the Robotics Workbench and set up a simple robot or arm. Make two lists: what the simulation models (for example, link lengths, joint angles) and what it leaves out (for example, wear, cable drag, sensor noise). For your capstone, mark which left-out effects could change a pass into a fail.

What the interactive shows, in words

In the Robotics Workbench you set up a simulated robot and write two lists: what the simulation models and what it leaves out. If the Workbench is unavailable, use the kinematics lab's stated limits instead: perfect joints, no gravity, no friction, no backlash and no collision checking.

Understand

Every model is simpler than reality

A simulation keeps the effects its builders thought mattered and drops the rest to stay fast and understandable. The Tactiverge labs state their limits: ideal gears, perfect joints, illustrative friction values. A result is trustworthy only for questions where the dropped effects are small.

Verification and validation

Verification: does the code do what the equations say? Check with cases you can work out by hand (a straight arm at 0° should put the tip at x = L1 + L2). Validation: do the equations describe the real system well enough? Check against real measurements, or at least against a different, trusted model.

Fit the evidence to the claim

Simulated evidence supports simulated claims: 'in the gripper model, this design passes all 24 checks'. To claim the real gripper works, you need validation. In your capstone, say clearly which results are simulated, state the model's key assumptions, and name one effect that could break the result in reality.

Explain it another way: intuitive

A map leaves out most things, like every tree and lamp post, on purpose. It's brilliant for finding a route and useless for counting trees. A simulation is a map of a machine.

Explain it another way: technical

Model assumptions define its domain of validity. Verification compares the implementation with the mathematical model; validation compares the model with the physical system within a stated tolerance for the intended use.

Explain it another way: applied

Car makers verify crash software against textbook cases, then validate it against a few real crash tests before trusting it for thousands of simulated ones.

Try these examples

Example 1

A greenhouse simulation assumes the thermometer is perfect. Your requirement is 'stay between 18 °C and 26 °C'. Problem?

The worked solution is in the online lesson.

Example 2

How would you verify the gear-train explorer?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. You check that your arm simulation puts the tip at (8, 0) cm when both 4 cm links lie flat. Is that verification or validation?

  • Verification: checking the code against a case the equations predict
  • Validation: checking against the real world
  • Neither
  • Both

2. A lever model assumes a weightless beam. When does that assumption matter most?

  • When the beam is light compared with the load
  • When the beam is heavy compared with the load
  • Never
  • Only for class 3 levers

3. Your gripper passes all 24 checks in the build. Which claim is honest?

  • The gripper works
  • In the build's simplified model, the design passed all 24 checks; real pads and objects may differ
  • The gripper will never drop anything
  • The design is proven

4. The kinematics lab ignores collisions between links. Which capstone test could that mislead?

  • Whether the tip can reach a point
  • Whether the arm can move between two poses without hitting itself or the table
  • The tip's coordinates at given angles
  • The reach ring's size

Apply it

Write a 'model card' for the simulation your capstone uses: what it models, three things it leaves out, one verification check you ran by hand, and one sentence on what would be needed to validate it.

Reflect

Which left-out effect worries you most for your capstone, and why?

Models are functions: input in, output out

A robot must stop within 1 m of an obstacle. What's the fastest it may drive? One graph answers that instantly.

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

A spring's stretch depends on its load; a robot's stopping distance depends on its speed; an arm tip's height depends on its angle. Writing each as a function, and graphing it, turns a requirement into a range of allowed inputs.

Goals

Predict

A robot's stopping distance is d = 0.2v + v² ÷ 4 metres, with v in m/s. If it doubles its speed from 1 m/s to 2 m/s, its stopping distance…

  1. Doubles
  2. More than doubles
  3. Stays the same
  4. Halves

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Try each example. Move the input slider and read the output; then move the requirement line and read off which inputs pass. For the stopping-distance example, find the top speed that still stops within 1 m.

What the interactive shows, in words

The function grapher offers four examples: spring extension (linear), lever effort (inverse), arm tip height (periodic) and stopping distance (quadratic). A slider sets the input and a point marks it on the curve; another slider sets a requirement line. The readout gives the output and the range of inputs that meet the requirement, and a table lists five input–output pairs.

Understand

One input, one output

A function f takes an input x and gives exactly one output f(x). In engineering both have units: a spring with f(F) = 2.5F turns a load in newtons into an extension in millimetres. Writing f(x) = … makes the rule something you can test, plot and reuse, just like a Python function.

Shapes tell stories

Linear (straight line): equal input steps give equal output steps, like a spring. Inverse: doubling the input halves the output, like effort on a longer lever. Periodic: the output repeats, like an arm's tip height as it turns. Quadratic: the output grows faster and faster, like stopping distance with speed.

Reading backwards

A requirement is a line on the graph: 'stop within 1 m' is a horizontal line at d = 1. Inputs where the curve is below the line pass. For d = 0.2v + v²/4, that's speeds up to about 1.6 m/s. To solve a linear function backwards, undo its steps: if f(x) = 2x + 10 = 50, then x = (50 − 10) ÷ 2 = 20.

Explain it another way: intuitive

A vending machine is a function: press B4, get the same snack every time. A graph is the whole menu at once.

Explain it another way: technical

f : X → Y assigns each x in the domain exactly one y. Engineering models state the domain (valid inputs), units, and assumptions. A simulation with many inputs is a function of several variables.

Explain it another way: mathematical

Stopping: d(v) = 0.2v + v²/4. d(1.6) = 0.32 + 0.64 = 0.96 m ≤ 1 m; d(1.7) = 0.34 + 0.7225 ≈ 1.06 m > 1 m, so the limit is about 1.6 m/s. Spring: e(F) = 2.5F, so e ≤ 30 mm needs F ≤ 12 N.

Explain it another way: applied

Engineers sweep one input of a simulation, plot the output, and draw the requirement line on the plot. That picture often appears in design reviews because it shows the safe range at a glance.

Try these examples

Example 1

A 3D printer's print time is t(m) = 2m + 10 minutes for a part of mass m grams. How long for 25 g? Largest part in 90 minutes?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A spring's extension is e(F) = 2.5·F mm, with F in newtons. What is the extension for a 12 N load, in mm?

Answer: mm

2. Tests show a spring's extension follows f(x) = 5·x, where x is load in N and f(x) is in mm. What input x gives an output of exactly 90 mm?

Answer: N

3. Stopping distance d(v) = 0.2v + v² ÷ 4, in metres, for speed v in m/s. What is d(2)?

Answer: m

4. Doubling a lever's effort arm halves the effort needed. What shape is the graph of effort against effort arm?

  • A straight line going up
  • A straight line going down
  • A curve that falls steeply then flattens (inverse)
  • A repeating wave

5. Which of these is NOT a function of the input?

  • Tip height of a link from its angle
  • The angle of a link from its tip height
  • Spring extension from load
  • Print time from part mass

Apply it

Pick one input of your capstone simulation (belt speed, threshold, squeeze, ramp rate). Run it at five values, record the output, plot the graph by hand or in Python, draw your requirement line, and state the allowed range of the input.

Reflect

What shape do you expect your capstone's graph to have, and why?

A test plan that could prove you wrong

You test your gripper on the egg and it works. Then the bolt slips and the cup crushes. Did testing fail you, or did you test too little?

About 40 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Testing only the cases you expect to pass is the most common way engineers fool themselves. A plan written before the test, with a prediction, makes it impossible to quietly move the goalposts afterwards.

Goals

Predict

In the test harness, a gripper uses one fixed squeeze for an egg, a bolt, a tomato and a paper cup, on rubber or plastic pads, at two lift speeds. Can any single squeeze pass all 16 cases?

  1. Yes, around 3 N
  2. Yes, around 5 N
  3. No: some cases need more squeeze than others can survive

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Before each run, set your predicted pass rate. Try squeezes of 1 N, 3 N and 5 N, then add the edge cases. Record each pass rate and which cases failed. Can you explain every failure from the 'needs' and 'crush' columns?

What the interactive shows, in words

The test harness sets one fixed squeeze force, a required grip safety factor and an option for edge cases. Before running you enter a predicted pass rate. Running fills a table with every case (object, pad, lift acceleration, squeeze needed, crush limit, result) and reports the pass rate against your prediction. The bolt on plastic needs more than 3 N while the cup crushes above 3 N, so no single squeeze passes every case.

Understand

Write the plan first

A test plan states: the question ('does one fixed squeeze meet R2 and R3 for every object?'), the cases (objects × pads × lift speeds), the prediction, the pass criteria (squeeze ≥ needed and ≤ crush limit) and what would change your mind ('if any case fails, the fixed-squeeze design is rejected'). Writing it before running stops you explaining away surprises.

Cover the matrix and the edges

Failures hide in combinations: heavy and slippery, light and fragile. Run every combination of the conditions that matter; with 4 objects, 2 pads and 2 speeds that is 4 × 2 × 2 = 16 cases. Then add edge cases at the limits of what's allowed, such as an emergency lift. If the full matrix is too big, explain how you chose a subset.

Report like an engineer

Give the pass rate and the list of failing cases with the reason for each: 'bolt on plastic at 4.9 m/s² slipped: needs 4.9 N, squeeze 3 N'. A 94% pass rate means nothing if the failing 6% is the safety case. Compare with your prediction and say what you learned.

Explain it another way: intuitive

A good test is a fair attempt to break your design. If you only try the easy cases, you're not testing; you're hoping.

Explain it another way: technical

Full-factorial testing runs every level of every factor. Pass/fail per case against stated acceptance criteria; summarise with a pass rate and a failure list. Pre-registering the prediction separates confirmation from exploration.

Explain it another way: mathematical

Bolt (0.2 kg) on plastic (μ = 0.3) at 4.9 m/s²: needs 0.2 × (9.81 + 4.9) ÷ (2 × 0.3) ≈ 4.9 N per finger. Paper cup crushes above 3 N. No fixed squeeze satisfies both.

Explain it another way: applied

Software teams keep test suites that run every case after every change; hardware teams keep test matrices and re-run them before each design review.

Try these examples

Example 1

A sorter must be tested at 3 belt speeds, with 4 part types, in 2 lighting conditions. How many cases? Which edge case would you add?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A test matrix covers 4 objects, 2 pad materials and 2 lift accelerations. How many test cases are there?

Answer:

2. A simulation test plan runs every combination of 2 loads and 4 speeds. 1 of the runs fail a requirement. What percentage of runs pass?

Answer: %

3. Why write the prediction and pass criteria BEFORE running the test?

  • It's tidier
  • So you can't move the goalposts after seeing the results
  • Because tests take a long time
  • It isn't necessary

4. A design passes 15 of 16 cases. The failing case is the emergency stop. What's the right conclusion?

  • 94% is a great result; ship it
  • The design fails: a safety must failed, whatever the pass rate
  • Re-run until it passes
  • Remove the emergency case

5. Which is the best edge case to add to a gripper test plan?

  • The egg on rubber pads at a gentle lift
  • The heaviest object on the slipperiest pad at the fastest allowed lift
  • A random object
  • The same case run twice

Apply it

Write a one-page test plan for your capstone: the question, the factors and their levels, the full case count, at least two edge cases, pass criteria for each requirement, your prediction, and what result would make you change the design. Run it in your chosen Build or lab and record the results table.

Reflect

Which failure surprised you in the test harness? What would you have missed with only three test cases?

Week 34: Reliability and failure analysis

This week you will

Symptom, mechanism, root cause

The sorter dropped a red part in the blue bin. You lower the red threshold and the problem goes away. Have you fixed it?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Fixing a symptom makes a failure disappear for a while; fixing a root cause makes it stay gone. Every serious engineering field, from aviation to software, investigates failures this way, and blames processes, not people.

Goals

Predict

Glare from a new light makes the colour sensor misread red parts. Which fix treats the root cause?

  1. Lower the red threshold
  2. Find out why the glare reaches the sensor and stop that happening again
  3. Replace the bin
  4. Run the belt more slowly

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Investigate both failures. At each 'why?', pick the cause the evidence supports; read why the others are ruled out. When you reach the root cause, pick the fix you'd ship first and read the feedback. Which fixes are patches?

What the interactive shows, in words

The failure-mode explorer gives a symptom, then asks 'why?' up to four times. Each time you choose from three causes; wrong choices reveal the evidence that rules them out, right choices add the cause and its evidence to the chain. At the root cause you choose a fix and learn whether it prevents, detects, tolerates or only patches the failure.

Understand

Three layers

The symptom is what you see: red parts in the blue bin. The mechanism is how it physically happens: the sensor reads 40 instead of 85 because of glare. The root cause is the deepest cause you can act on, usually a design or process decision: the cleaning checklist doesn't mention the hood. Fix the root cause and the whole chain stops.

Evidence at every step

Each 'why?' answer must be something you could check: a log line, a replay, a test that switches the cause on and off. 'Shading the sensor stops the errors' is strong evidence. 'Someone was careless' isn't evidence and stops the investigation; ask what in the process allowed the mistake. A fishbone diagram helps list candidate causes before testing them.

Prevent, detect, tolerate

Prevent: remove the cause (fix the checklist). Detect: notice when it happens anyway (flag a reading far outside the normal range, or two sensors disagreeing). Tolerate: keep working safely despite it (two sensors that must agree). A patch hides the symptom (lower the threshold) and usually causes a new problem.

Explain it another way: intuitive

Taking a painkiller for toothache treats the symptom. Fixing the cavity treats the cause. Brushing better prevents the next one.

Explain it another way: technical

Root-cause analysis (5 whys, fishbone/Ishikawa, fault trees) traces a failure to its causal factors. Corrective actions target root causes; detection (plausibility and range checks, watchdogs) and redundancy limit the effect of causes not yet found.

Explain it another way: applied

Air accident investigators publish reports that end in recommendations for procedures and design, not blame, which is a big part of why flying became so safe.

Try these examples

Example 1

A greenhouse overheated overnight. The log shows the vent never opened; the vent motor works when tested. Next why?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. 'The bolt slid out between closed fingers during the fast lift.' Which layer is this?

  • Symptom
  • Mechanism
  • Root cause

2. Which fix is a patch rather than a real fix for a sensor that misreads under glare?

  • Fit a hood and add it to the cleaning checklist
  • Lower the colour threshold until the errors stop
  • Flag readings far outside the normal range
  • Use two sensors that must agree

3. An investigation concludes 'the operator forgot'. What should happen next?

  • Close the investigation
  • Ask why forgetting was possible: what in the checklist, design or training allowed it?
  • Replace the operator
  • Add a warning sign and stop

4. A temperature sensor suddenly reads −40 °C in a greenhouse that was 22 °C a second ago. What should a well-designed controller do?

  • Turn the heater on full
  • Treat the reading as implausible, flag a sensor fault and switch to a safe mode
  • Ignore it and carry on as normal
  • Shut down the whole greenhouse forever

Apply it

Take one failure from your capstone tests (or the test harness). Write the symptom, at least three evidence-backed whys, the root cause, and one prevent, one detect and one tolerate fix. Re-run the test after the fix you choose and record the result.

Reflect

Think of a time you fixed a symptom instead of a cause. What was the root cause really?

Chains and spares: reliability by multiplication

Every part of your robot works 95% of the time. With five parts, how often does the whole robot work?

About 40 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Machines are chains of parts, and chains break at their weakest link. Reliability arithmetic tells you which part to improve, and whether a spare sensor is worth its cost, before anything is built.

Goals

Predict

Five parts in series each work 95% of the time, independently. Roughly how often does the whole machine work?

  1. 95%
  2. About 77%
  3. About 50%
  4. 475%

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Start with one 90% sensor, a 99% controller and a 95% motor. Add a second and third sensor in parallel and record the system reliability each time. Then improve the motor instead. Which change helps more? Run 1000 simulated missions a few times and compare with the formula.

What the interactive shows, in words

The reliability calculator draws one, two or three sensors in parallel, then a controller and a motor in series. Sliders set each part's reliability. The readout gives the sensor block's reliability 1 − (1 − R)ⁿ, the system reliability as the product, the expected failures in 1000 missions and the weakest block. A button runs 1000 simulated missions and reports how many succeeded.

Understand

Series: the chain gets weaker

If every part is needed, multiply their reliabilities. A 90% sensor, a 99% controller and a 95% motor give 0.9 × 0.99 × 0.95 ≈ 0.846, so about 85%. The more parts in series, the lower the total. Improving the weakest part gives the biggest gain.

Parallel: spares that cover each other

Redundant parts in parallel fail only if all fail. Two 90% sensors: both fail with probability 0.1 × 0.1 = 0.01, so the block works 99% of the time. Three: 99.9%. Each extra spare helps less, and once the sensor block is strong, the motor becomes the weakest link.

Real failures share causes

The formula assumes independence. Two sensors on the same power wire, or under the same glare, can fail together. Then the pair is barely better than one. Engineers use different sensor types, separate supplies and plausibility checks (does a reading fit physical limits and the other sensors?) so a failure is detected rather than trusted.

Explain it another way: intuitive

A string of old fairy lights in series goes dark if one bulb dies. Lights wired in parallel stay lit if one goes. Machines are mixtures of both.

Explain it another way: technical

For independent components, R_series = Π Rᵢ and R_parallel = 1 − Π(1 − Rᵢ). Common-cause failures violate independence; a beta-factor or shared block models them.

Explain it another way: mathematical

One 90% sensor, 99% controller, 95% motor: 0.9 × 0.99 × 0.95 ≈ 84.6%. Two sensors: 0.99 × 0.99 × 0.95 ≈ 93.1%. Three: 0.999 × 0.99 × 0.95 ≈ 94.0%. Better motor (99%) with one sensor: 0.9 × 0.99 × 0.99 ≈ 88.2%.

Explain it another way: applied

Aircraft use three or more independent flight computers and vote between them; the sorting machine build's Level 4 uses voting so one lying sensor can't fool it.

Derivation: Series and parallel rules
  1. Reliability R is the probability a part works for the mission. Assume parts fail independently.

  2. Series (all must work): the chance that A and B both work is R_A × R_B. For n parts: R = R₁ × R₂ × … × Rₙ.

  3. Parallel (any one is enough): the block fails only if every branch fails. Failure chances multiply: (1 − R₁)(1 − R₂). So R = 1 − (1 − R₁)(1 − R₂)…

  4. Two 90% sensors in parallel: 1 − 0.1 × 0.1 = 0.99. Then with a 95% motor in series: 0.99 × 0.95 ≈ 0.94.

  5. Mixed systems: reduce each parallel block to one R, then multiply along the chain.

Try these examples

Example 1

Battery 98%, controller 99%, two motors that are both needed, each 96%. System reliability?

The worked solution is in the online lesson.

Example 2

Two independent 80% cameras, either one enough, feeding a 99% computer. System?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A sensor (0.9), controller (0.99) and motor (0.95) are all needed and fail independently. What is the system reliability, in percent?

Answer: %

2. A gripper works only if its sensor (reliability 0.98), controller (0.85) and motor (0.85) all work. Each fails independently. What is the chance, in percent, that the gripper works?

Answer: %

3. Two independent 90% sensors are fitted in parallel (either one is enough). What is the reliability of the pair, in percent?

Answer: %

4. Sensor block 99.9%, controller 99%, motor 80%. Which single improvement helps the system most?

  • Add another sensor
  • Improve the motor
  • Improve the controller
  • They all help equally

5. Two 'redundant' colour sensors sit side by side under the same lamp. Why might the pair be much less reliable than 1 − (1 − R)²?

  • Two sensors always interfere
  • Glare from the lamp can fool both at once, so their failures aren't independent
  • Parallel never helps
  • The formula is wrong

Apply it

Draw a reliability block diagram for your capstone machine with an estimated reliability for each block (state that they are estimates). Calculate the system reliability, find the weakest block, and add one plausibility check to your controller that detects that block failing. Then try Level 4 of the Sorting Machine build.

Reflect

Where in your capstone could two 'independent' parts actually fail together?

Factor of safety: margin on purpose

A bracket breaks at 450 N. It only ever carries 150 N. Is it safe? And what could still go wrong?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Materials vary, loads surprise us and calculations simplify. A factor of safety is a deliberate margin between what a part can take and what it must take, chosen to match how much you don't know, and it's one of the oldest ideas in engineering.

Goals

Safety: If you test any real part to breaking, do it only with an adult, eye protection and small loads (a few newtons), never with anything that can swing or fall on a person.

Predict

A 3D-printed bracket breaks at 450 N and carries at most 150 N. What is its factor of safety?

  1. 0.33
  2. 3
  3. 300
  4. 600

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Open Level 4 of the Robotic Gripper build. Work out the smallest squeeze that lifts the 200 g bolt at 4.9 m/s² with rubber pads (μ = 0.8), then decide the squeeze you'd actually use with a factor of safety of 1.5. Does it still stay under the paper cup's 3 N crush limit?

What the interactive shows, in words

Level 4 of the gripper build asks for four calculations: both inverse-kinematics solutions for a fingertip target, the smallest squeeze that lifts a 200 g bolt at 4.9 m/s² with rubber and with plastic pads (1.84 N and 4.90 N), and a knuckle torque. This lesson adds a factor of safety of 1.5 to the rubber-pad squeeze (2.76 N) and checks it against the cup's 3 N crush limit.

Understand

The definition

Factor of safety = what it can take ÷ what it must take, in the same units. A hook that fails at 600 N, loaded to 200 N, has FoS = 3. Turned round: if the requirement says FoS ≥ 2.5, the hook may carry at most 600 ÷ 2.5 = 240 N. Below 1 means it is expected to fail.

Choosing how big

Bigger factors cover more uncertainty but cost mass and money. Engineers use small factors (about 1.2–1.5) where materials and loads are well known and tested, and bigger ones (3 or more) for variable materials such as 3D prints, unknown loads, or where failure would hurt people. Lifting equipment often uses large factors for that reason.

What it does not cover

A factor of safety covers uncertainty in loads you considered. It does not cover loads you forgot (someone sits on the shelf), damage (a crack from a drop), fatigue (repeated small loads weakening a part), or a wrong model. Those need failure analysis, testing and inspection. Also check both directions: a stronger grip is safer for the bolt but risks crushing the cup.

Explain it another way: intuitive

If your school bag strap could hold 15 kg and you carry 5 kg, you've got a factor of three. That's why it survives the day you stuff your PE kit in too.

Explain it another way: technical

FoS = capacity / demand (load, stress or torque). Design codes specify minimum factors by application; uncertainty in material strength, load, and analysis method each push the factor up.

Explain it another way: mathematical

Bracket: 450 ÷ 150 = 3. Hook with required FoS 2.5: 600 ÷ 2.5 = 240 N allowed. Gripper: N_min = 1.84 N; with FoS 1.5, 2.76 N.

Explain it another way: applied

The gripper build's slip-sensing controller squeezes 1.25 times what friction needs: a factor of safety of 1.25 on grip, chosen so fragile objects aren't crushed.

Derivation: A grip with a margin
  1. Friction from two fingers must beat gravity plus the lift: 2μN ≥ m(g + a).

  2. Minimum squeeze per finger: N_min = m(g + a) ÷ (2μ) = 0.2 × (9.81 + 4.9) ÷ (2 × 0.8) ≈ 1.84 N.

  3. With a factor of safety of 1.5: N = 1.5 × 1.84 ≈ 2.76 N.

  4. Check the other requirement: 2.76 N is below the cup's 3 N crush limit, so one squeeze can serve both, but only with a thin margin on the crush side (3 ÷ 2.76 ≈ 1.09).

  5. In general: FoS = capacity ÷ demand, and allowed demand = capacity ÷ required FoS.

Try these examples

Example 1

A servo can deliver 0.15 N·m. A joint needs 0.12 N·m in the worst case. FoS? Is it enough for a printed arm?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A bracket breaks at 450 N and carries at most 150 N. What is its factor of safety?

Answer:

2. Tests show a 3D-printed bracket breaks at 800 N. In use it carries at most 80 N. What is its factor of safety?

Answer:

3. Friction needs at least 1.84 N of squeeze to lift the bolt. You want a factor of safety of 1.5 on grip. What squeeze should you set, in newtons?

Answer: N

4. A shelf has a factor of safety of 4 for books. Which risk does that NOT cover?

  • Books a bit heavier than expected
  • A small variation in the wood's strength
  • A child climbing on it
  • Slightly rough handling

5. Why do 3D-printed parts usually need a larger factor of safety than machined aluminium ones?

  • Plastic is always weak
  • Their strength varies a lot with print settings, layer direction and moisture
  • Printers are inaccurate
  • It's a rule with no reason

Apply it

For your capstone mechanism, find its worst-case load or torque with a free-body diagram, pick a capacity (from a datasheet, the Build's motor limit or a stated estimate), and calculate the factor of safety. Say which risks it covers and name one it does not.

Reflect

What factor of safety would you want on a part that holds something above your head? Why that number?

Week 35: Technical documentation

This week you will

The engineering notebook: decisions with dates

Three weeks ago you changed the squeeze from 5 N to 3 N. Today the bolt slips. Can you say why you changed it, and what you tested afterwards?

About 30 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

Memory edits itself. A notebook doesn't. It lets you (and your capstone audience) trace every design decision back to the evidence behind it, and it's the first thing an engineer reaches for when something breaks.

Goals

Predict

Which notebook entry will help most when the bolt starts slipping weeks later?

  1. 'Changed squeeze. Works now.'
  2. '28 Nov: cup crushed at 5 N in harness (rubber, 4.9 m/s²). Lowered squeeze to 3 N. Re-ran cup cases only: pass. TODO re-run bolt cases.'
  3. A photo of the screen with no notes
  4. 'Gripper is great!'

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Run the test harness at three different squeezes. After each run, write a notebook entry: date, question, settings, prediction, pass rate, failing cases and your decision. Swap entries with someone: can they reproduce your run from your entry alone?

What the interactive shows, in words

The test harness runs every combination of four objects, two pad materials and two lift accelerations for a squeeze you choose, and reports the pass rate and failing cases in a table. In this lesson you write a notebook entry after each of three runs, recording the settings, your prediction, the result and your decision.

Understand

What goes in an entry

Date, goal (what question you're answering), setup (which Build, lab or code version; every setting), prediction, results (numbers with units, or a pointer to a saved table), decision and next step. Short is fine. Missing settings are not: without them nobody, including you, can repeat the run.

Never tidy away failures

Write down tests that failed, ideas you dropped and mistakes you made, with the reason. Crossing out is fine; deleting isn't. In your capstone, the failure and what you changed is a required piece of evidence, and the notebook is where it comes from.

Decisions need reasons

'Chose rubber pads' is a fact. 'Chose rubber pads because the bolt needs 4.9 N with plastic but the cup crushes above 3 N (harness, 28 Nov)' is a decision record. The reason lets a reviewer check your logic and lets you undo a decision safely if the reason stops being true.

Explain it another way: intuitive

A notebook is a time machine: it lets future you ask past you exactly what happened and why.

Explain it another way: technical

Lab notebooks are chronological, dated and append-only, with enough detail (inputs, versions, conditions, raw results) for another person to reproduce each result. Decisions reference the evidence that justified them.

Explain it another way: applied

Research labs and many engineering companies keep notebooks as formal records; in disputes about who invented something first, dated notebooks have been used as evidence.

Try these examples

Example 1

Improve this entry: 'Tested sorter. Mostly OK.'

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Which entry would let a stranger reproduce your test?

  • 'Ran the harness, got 75%.'
  • '2 Dec. Harness: squeeze 3.0 N, grip factor 1, no edge cases. Predicted 70%. Got 12/16 (75%). Fails: bolt plastic both lifts, egg plastic 4.9 m/s², tomato plastic 4.9 m/s².'
  • 'Good test today.'
  • 'See screenshot.'

2. You tried slip sensing and abandoned it because it was too slow in your model. Should it go in the notebook?

  • No, only successes belong
  • Yes, with why it was abandoned and the evidence
  • Only if it worked
  • Only in pencil

3. Which records a decision properly?

  • 'Using 2 sensors.'
  • 'Using 2 colour sensors that must agree, because glare fooled one sensor in 30% of parts in the L4 test (1 Dec).'
  • 'Sensors are good.'
  • 'Decided.'

4. A simulation test plan runs every combination of 3 loads and 4 speeds. 4 of the runs fail a requirement. What percentage of runs pass?

Answer: %

Apply it

Bring your capstone notebook up to date: at least one dated entry for each test you have run, each with settings, prediction, result and decision. Mark any result you can't reproduce from the notebook and re-run it.

Reflect

Which of your past decisions can you no longer explain? What would the entry have needed to say?

A README a stranger can follow

You hand your project to a classmate and leave the room. Can they get it running and repeat your best test without asking you a single question?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

A project only you can run is a project that dies when you move on. A good README is the difference between 'it worked on my laptop' and something another learner can build on, and it's a required part of your capstone.

Goals

Predict

What is the most common reason someone can't follow a README?

  1. It's too short
  2. A step or setting the writer 'just knew' was never written down
  3. It has no pictures
  4. It uses headings

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Complete Level 2 of the Washing Machine build: the control sequence and the safe door-unlock rule. Then write a README for your controller so that someone who has never seen it can enter the same sequence and explain why the door rule is safe.

What the interactive shows, in words

Level 2 of the Washing Machine build asks you to choose which sensor condition ends each stage of a wash cycle and the rule for when the door may unlock. After completing it, you write a README so that someone else can enter the same control sequence and understand the door rule.

Understand

Five sections that cover most projects

What it is (one paragraph: the problem and the machine). How to run it (numbered steps from nothing to working). How to test it (the test plan and how to read the results). Design decisions (short, with reasons; link the notebook). Limits and known issues (what it can't do, what is simulated, what you'd do next).

Steps a stranger can follow

Number the steps. One action per step. State every setting and value ('set the threshold to 60'), and say what the reader should see after key steps ('the belt starts moving'). Avoid 'just' and 'obviously': they hide the steps you skipped.

Test it on a person

Give the README to someone who hasn't seen your project. Watch silently. Every time they hesitate or ask a question, the README is missing something; add it. One round of this fixes more than an hour of rereading your own writing.

Explain it another way: intuitive

A README is a recipe. If your friend's cake comes out different, the recipe, not the friend, needs fixing.

Explain it another way: technical

A README is the entry point of project documentation: purpose, prerequisites, setup, usage, testing, design rationale, limitations, licence and contact. It should be sufficient for reproduction without the author.

Explain it another way: applied

Open-source projects live or die by their READMEs; many people decide in a minute whether a project is usable from its first screen.

Try these examples

Example 1

Improve: 'Open the sorter and set it up like mine, then run it.'

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Which instruction is best?

  • Set it up properly
  • Set the red threshold to 60 (slider under 'Colour')
  • Use the usual settings
  • Configure as needed

2. Why include a 'limits' section in a README?

  • To look modest
  • So readers don't trust the project for something it was never tested or modelled for
  • Because it's required by law
  • To make it longer

3. What is the most reliable way to check a README?

  • Reread it carefully yourself
  • Have someone new follow it while you watch silently
  • Run a spell checker
  • Make it longer

4. Which order should a README's sections usually follow?

  • Limits, design, run, what it is
  • What it is, how to run it, how to test it, design decisions, limits
  • Design decisions first, then everything else
  • Any order

Apply it

Write the README for your capstone using the five sections. Give it to someone who hasn't seen the project; record every question they ask and fix the README for each.

Reflect

What question did your tester ask that surprised you?

Dimensions, tolerances and the stack that bites

Three spacers, each 'about 12 mm', must fit a 40 mm slot. They fit on your drawing. Will they fit every time the parts are actually made?

About 35 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

No part is made exactly to size. Tolerances say how far off is acceptable, and when parts stack up, their errors add. Getting this right is why parts from different makers fit together, and getting it wrong is why some assemblies jam.

Goals

Predict

A 40 ± 0.2 mm slot holds three spacers: 12 ± 0.1, 15 ± 0.1 and 12.5 ± 0.1 mm. Nominal gap is 0.5 mm. In the worst case, can they fail to fit?

  1. No: 0.5 mm of gap is plenty
  2. Yes: the tolerances add up to 0.5 mm, leaving a worst-case gap of 0 mm
  3. Only if the slot is wrong

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Set the predict question's numbers and read the worst-case gaps. Then find two different ways to make the assembly always fit and never rattle more than 1 mm: one by changing a nominal size, one by tightening tolerances.

What the interactive shows, in words

The tolerance stack-up tool draws a slot holding three coloured spacers. Sliders set the slot's width and tolerance and each spacer's size and tolerance. The readout gives the nominal gap, the worst-case smallest gap (smallest slot, largest spacers) and largest gap, and whether the assembly always fits and never rattles more than 1 mm.

Understand

Every dimension needs a tolerance

A drawing that says 12 mm leaves the maker guessing. 12 ± 0.1 mm says any part from 11.9 to 12.1 mm is acceptable. Tighter tolerances cost more to make and check, so engineers make them only as tight as the function needs. Unimportant dimensions get looser ones.

Stacks add up

When parts sit end to end, their tolerances add in the worst case. Four ± 0.1 to ± 0.2 mm tolerances can wipe out a 0.5 mm gap entirely. More parts in a stack means a bigger worst-case spread, which is one reason designers try to keep stacks short.

Fixing a stack

Options: change a nominal size (a 39.5 mm group in a 40 mm slot), tighten the tolerances that matter most, reduce the number of parts in the stack, or add something adjustable such as a shim or slot. Write the requirement first ('always fits, rattle ≤ 1 mm'), then check both worst cases against it.

Explain it another way: intuitive

Stack five books that are each 'about 3 cm'. Each might be a bit thick; together they can be a lot thick. Small errors in a stack don't cancel by luck; in the worst case they pile up.

Explain it another way: technical

Worst-case (arithmetic) stack: T_total = Σ|tᵢ|. Statistical (root-sum-square) stacks assume independent, centred variation and give a smaller, likely spread √(Σtᵢ²), at the risk of occasional misfits.

Explain it another way: mathematical

Slot 40 ± 0.2; spacers 12 ± 0.1, 15 ± 0.1, 12.5 ± 0.1. Nominal gap 0.5 mm; tolerance total 0.5 mm; worst-case gaps 0 mm and 1.0 mm.

Explain it another way: applied

Bearings, gears and the bolt holes of a robot frame all use standard fits, so a bearing from one maker fits a housing from another.

Derivation: Worst-case stack-up
  1. Each dimension is nominal ± tolerance: the real part lies anywhere in that range.

  2. Tightest case: smallest slot and largest parts: gap_min = (slot − t_slot) − Σ(part + t_part).

  3. Loosest case: largest slot and smallest parts: gap_max = (slot + t_slot) − Σ(part − t_part).

  4. So gap_min = nominal gap − (t_slot + Σ t_part) and gap_max = nominal gap + (t_slot + Σ t_part): tolerances add.

  5. Requirement 'always fits' means gap_min ≥ 0; 'never rattles more than 1 mm' means gap_max ≤ 1 mm.

Try these examples

Example 1

Slot 30 ± 0.1 mm, two parts 14 ± 0.05 and 15.5 ± 0.05 mm. Worst-case gaps?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A 40 ± 0.2 mm slot holds spacers of 12 ± 0.1, 15 ± 0.1 and 12.5 ± 0.1 mm. What is the worst-case (smallest) gap, in mm?

Answer: mm

2. A slot is 30 ± 0.3 mm wide. Into it go 2 spacers: 9.5 ± 0.2 mm, 15 ± 0.05 mm. In the worst case (smallest slot, largest spacers), what is the gap left, in millimetres? (Negative means they will not fit.)

Answer: mm

3. Same slot and spacers. What is the largest possible gap, in mm?

Answer: mm

4. Why not give every dimension a very tight tolerance, like ± 0.01 mm?

  • Tight tolerances are impossible
  • They cost much more to make and inspect, and most dimensions don't need them
  • They make parts weaker
  • Drawings can't show them

Apply it

Make a dimensioned sketch of one part of your capstone mechanism with a tolerance on every dimension. Identify one stack (two or more parts in a line), calculate both worst-case gaps, and state whether it meets a fit requirement you write.

Reflect

Where in everyday life have you seen parts that didn't quite fit? Was it a tolerance stack?

Week 36: End-of-year intelligent machine showcase

This week you will

Plan the capstone: every requirement gets evidence

Your machine works. A reviewer asks: 'how do you know?' Which of your six capstone requirements could you answer with a number right now?

About 40 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

The Level 2 capstone asks for a simulated machine that senses, decides and responds, with requirements, a system diagram, decision logic, a calculation, test results including a failure, and a README. Planning the evidence now, before the showcase, is what turns a demo into engineering.

Goals

Predict

Which capstone requirement do learners most often have least evidence for at the last minute?

  1. A system diagram
  2. Recorded test results against each requirement, including a failure and what changed
  3. A title
  4. The README

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Choose 'Your capstone machine' and sort every statement. Then write your own capstone requirements on paper and check each one the same way: testable, vague, preference or solution in disguise.

What the interactive shows, in words

The requirements checker's 'Your capstone machine' set lists six statements, such as 'The sorter must put at least 95% of 200 simulated parts in the right bin' (testable) and 'The machine must use a state machine' (a solution in disguise). You classify each and check, then apply the same test to your own capstone requirements.

Understand

The six capstone requirements

1) Written, testable requirements. 2) A system diagram showing sensing, decision and action. 3) Decision logic as a state machine, rule table or controller, built in a simulator or Python. 4) At least one electrical or mechanical calculation that informed the design. 5) Recorded tests against each requirement, including at least one failure and what was changed. 6) A short presentation and a README another learner could follow.

An evidence map

Make a table: capstone requirement, your artefact, where it lives, status (done, in progress, not started). For 4, this term gives you plenty: a gear ratio, a lever's mechanical advantage, a factor of safety, a reliability estimate, a tolerance stack. Pick the one that genuinely changed a design decision.

The system diagram

Draw boxes for each sensor, the controller and each actuator, with arrows labelled by what flows (a temperature in °C, a 'red' decision, a motor speed). Include the environment and the user. Mark the system boundary. Week 34's reliability diagram can be drawn from the same boxes.

Explain it another way: intuitive

Before a trip you check you have tickets, a map and money. The evidence map is that checklist for your capstone.

Explain it another way: technical

A verification cross-reference matrix maps each capstone requirement to artefacts and status; the system architecture diagram decomposes the machine into sense, decide and act components with typed interfaces.

Explain it another way: applied

Engineering design reviews open with exactly this: the requirements, the architecture and the status of verification for each requirement.

Try these examples

Example 1

A learner's sorter capstone: what could the calculation (requirement 4) be?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. In a capstone system diagram, what should label the arrows?

  • Nothing
  • What flows between blocks, with units, such as 'temperature (°C)' or 'vent open/closed'
  • The colour of the wires
  • The student's name

2. Which calculation best meets requirement 4 ('a calculation that informed the design')?

  • Working out the area of the screen
  • A factor-of-safety calculation that made you change the squeeze force
  • Adding up how many hours you worked
  • A calculation copied from the lesson with different numbers but no effect on the design

3. Your tests have all passed and you have no failure to report. What is the honest approach?

  • Invent a failure
  • Test harder: add edge cases until something fails, then record it and what you changed
  • Skip requirement 5
  • Say the machine is perfect

4. A colour sensor needs 0.1 s to read a part, and parts are 4 cm long. What is the fastest belt speed (cm/s) at which the sensor still sees each whole part for 0.1 s?

Answer: cm/s

Apply it

Make your capstone evidence map with all six requirements, your artefact for each, where it lives in your Design Studio and its status. For anything 'not started', write the test or task and when you'll do it.

Reflect

Which capstone requirement are you most worried about, and what's your first step on it?

Design review: defend your mechanism

A reviewer points at your lever and asks: 'what's the worst-case force on that pivot, and what's your margin?' Can you answer in one sentence with a number?

About 45 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

A design review is where engineers explain a design to people whose job is to find its weak spots. It's the term project's finale, and it's practice for the capstone showcase: calm, numerical, honest about limits.

Goals

Predict

A reviewer asks a question you can't answer. What's the best response?

  1. Make up a plausible number
  2. Say you don't know yet, say how you'd find out, and add it to your next steps
  3. Change the subject
  4. Say it doesn't matter

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Rebuild your term-project mechanism in the explorer (a lever or a gear train). Record the effort or output torque, the pivot force or output speed, and the mechanical advantage or ratio. Then work out a factor of safety against a capacity you state, and prepare a one-sentence answer to: 'what's the worst case, and what's your margin?'

What the interactive shows, in words

The mechanism explorer offers a lever (class 1, 2 or 3, with sliders for load and distances) and a gear train (one or two stages, with sliders for tooth counts, motor speed and torque, and a choice of efficiency). Its readouts give effort, mechanical advantage and pivot force, or ratio, output speed, torque and power, which you use as the calculation in your design review.

Understand

The review in five minutes

1) The job and its requirements (with numbers). 2) Concepts considered and the decision matrix, including its sensitivity. 3) The free-body diagram and the key calculation: forces, torque or ratio, with units. 4) The factor of safety and what it doesn't cover. 5) Tests run, a failure found, and the next step. One slide or page each.

Answering questions

Answer with evidence: 'the pivot carries 125 N in the worst case; the pin is rated 500 N, so the factor of safety is 4'. If you don't know, say so and how you'd find out. If a reviewer finds a real flaw, thank them and write it down: finding flaws is the review working, not you failing.

Giving a review

When you're the reviewer, ask about the worst case, the assumptions and the evidence: 'what load did you assume, and where did it come from?' Be specific, kind and useful: point at a number or a decision, not at the person. Every question should help the design improve.

Explain it another way: intuitive

A design review is a friendly stress test: people try to break your idea on paper so it doesn't break in real life.

Explain it another way: technical

Preliminary and critical design reviews check that requirements are complete and traced, the design meets them by analysis, and risks are identified with mitigation plans.

Explain it another way: mathematical

Class 1 lever: 100 N at 10 cm, effort at 40 cm: effort 25 N, pivot 125 N. With a pin rated 500 N, FoS = 4. Gear train ratio 12 from a 0.1 N·m motor at 95% per stage: 1.08 N·m against a 1 N·m requirement gives a FoS of about 1.08: thin.

Explain it another way: applied

Space missions hold design reviews at fixed points; a mission doesn't move to building hardware until reviewers agree the design meets its requirements.

Try these examples

Example 1

Your geared lift needs 1 N·m and the train delivers 1.08 N·m. A reviewer says the margin is thin. Response?

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. A class 1 lever's pivot carries 125 N in the worst case. The pivot pin is rated to 500 N. What is the factor of safety?

Answer:

2. A lever holds a 30 N load 15 cm from the pivot. You push down 25 cm from the pivot on the other side. What effort balances the load, in newtons?

Answer: N

3. Tests show a 3D-printed bracket breaks at 600 N. In use it carries at most 120 N. What is its factor of safety?

Answer:

4. Which reviewer question is most useful?

  • 'Is this good?'
  • 'What load did you assume at the pivot, and where did that number come from?'
  • 'Why didn't you do it my way?'
  • 'Did this take long?'

5. A reviewer finds that your gripper squeezes the cup above its 3 N limit in one case. What should you do?

  • Argue the case is unlikely
  • Thank them, record it with the case, and plan a fix and a re-test
  • Remove the cup from the test plan
  • Ignore it

Apply it

Run a design review of your term-project mechanism with two classmates (or record yourself): five minutes presenting, five minutes of questions. Note every question, your answer, and any action. Add the actions to your capstone plan.

Reflect

What was the hardest question you were asked, and what evidence would have made it easy?

Showcase: evidence, a failure and honest limits

Two teams demo sorting machines. One says 'it works great'. The other says '96% of 200 parts, here's the 4% and what we changed'. Which one would you trust with your parcels?

About 45 min · Checked by automated tests · Interactive lesson · Lite lesson (answers checked here)

Why it matters

The showcase is where your year comes together: a machine that senses, decides and responds, and the evidence that it does. Audiences remember numbers and honest failures far more than adjectives.

Goals

Predict

Your machine passed 47 of 50 simulated runs. Which is the strongest way to present it?

  1. 'It basically always works'
  2. '94% (47 of 50 simulated runs at belt speed 3). The 3 failures were small red parts under glare; adding a second sensor took it to 50 of 50 in the same test.'
  3. '100%, after we removed the bad runs'
  4. 'It works better than most'

Write down your guess and your reason. The reveal is in the online lesson.

Discover

Open Level 5 of the Sorting Machine build and run a small investigation: change one setting across at least four runs and record the accuracy each time. Turn it into one showcase slide: the question, the results table, one sentence of conclusion and one limit.

What the interactive shows, in words

Level 5 of the Sorting Machine build is an open investigation: you ask one question (for example, how belt speed trades throughput against accuracy), change one setting across at least four runs, record the accuracy of each run, and write up a question, a results table, a conclusion and a limit, which becomes one slide of your capstone showcase.

Understand

Numbers with conditions

Every claim gets a number, a sample size and conditions: '96% correct over 200 simulated parts at belt speed 3, threshold 60'. Say clearly that results are simulated and name the model's main simplification. Run more than one trial; Week 34's simulated missions showed how much a single run can scatter.

One failure, told well

Pick your best failure story: the symptom you saw, the evidence-backed root cause, the one change you made, and the same test before and after on every requirement. That story is capstone requirement 5 and usually the most interesting minute of any talk.

Limits and next steps

End with what the machine can't do and what you'd test next: 'untested above belt speed 4', 'sensor glare modelled only as a fixed 30% chance'. Limits aren't weaknesses in your talk; they show you understand your evidence. When asked something you didn't test, say so and how you'd test it.

Explain it another way: intuitive

Showing your working in maths earns marks even when the answer is close. In a showcase, the working is the evidence, and it's what people believe.

Explain it another way: technical

Report results with n, conditions and variability; distinguish simulated from physical evidence; document negative results and ablations (what changed when one feature was removed or added); state threats to validity.

Explain it another way: applied

Engineering and research teams present results this way at reviews and conferences, and good reviewers ask first about sample size, conditions and what failed.

Try these examples

Example 1

Turn this into an evidence sentence: 'Our greenhouse kept the plants comfy.'

The worked solution is in the online lesson.

Common mix-ups

Practice questions

Questions only. Check your answers in the Lite lesson; they are graded on our server and nothing is saved.

1. Which claim is best for a showcase slide?

  • 'Our sorter is really accurate'
  • '97% correct over 200 simulated parts (belt speed 3); 6 errors were all small red parts'
  • 'Nearly perfect'
  • 'Better than last year's'

2. A simulation test plan runs every combination of 2 loads and 4 speeds. 1 of the runs fail a requirement. What percentage of runs pass?

Answer: %

3. Two identical-job sensors are fitted in parallel: the system works if at least one works. Their reliabilities are 0.95 and 0.95, failing independently. What is the system reliability, in percent?

Answer: %

4. Three of your 50 runs failed because of a bug you have since fixed. What should you present?

  • Delete those three runs and report 47 of 47
  • Report 47 of 50 before the fix, explain the bug, then a fresh full run after the fix
  • Report only the fresh run and don't mention the bug
  • Average the two

5. An audience member asks how your machine copes with a sensor that fails completely. You never tested it. Best answer?

  • 'It copes fine'
  • 'We didn't test that. Our plausibility check should flag a reading outside 0–100, and we'd test it by forcing the sensor to 0 in the simulator.'
  • 'That can't happen'
  • 'Good question' and move on

Apply it

Prepare your five-minute capstone showcase: the problem and requirements, the system diagram, the decision logic, one calculation, the results table against every requirement with your failure story, limits and next steps. Rehearse it once in front of someone and answer two questions from evidence.

Reflect

Looking back over the Builder year, which skill changed most how you design machines, and what will you do differently next year?