# Mechanical Engineering and Design

*Tactiverge Academy course pack · version 1.0.0*

How physical things are designed: modelling in CAD, working within constraints, understanding mechanisms, and improving designs through iteration and prototyping.

**Audience:** Curious students aged 13 and over. No workshop or CAD experience needed; activities use paper, free software and simple calculations.

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



---

# Module 1: CAD fundamentals

Computer-aided design from the ground up: sketches, constraints, extrusions and assemblies, and how a digital model becomes a drawing someone can build from.

**Objectives**

- Create a fully constrained 2D sketch using dimensions and geometric relations.
- Turn sketches into 3D parts using extrude, revolve and cut operations.
- Explain why design intent should guide how a model is built.
- Read and produce a basic dimensioned engineering drawing.


## 1.1 What CAD is and why parametric design matters

*Computer-aided design turns ideas into precise digital models. Learn what CAD does, how parametric models remember their own logic, and why that makes changing a design cheap.* (about 35 min)

### Why engineers model before they make

Every robot part you have ever seen, from a gripper finger to a motor bracket, existed as a digital model before anyone cut, printed or moulded it. That model is made with **computer-aided design (CAD)** software. CAD lets an engineer describe a part exactly: every length, every hole, every curve. From that one description you can check that parts fit together, calculate mass, make drawings for a workshop, send files to a 3D printer or a laser cutter, and simulate how the part will bend under load.

Before CAD, designs lived on paper drawings, drawn by hand with rulers, compasses and great patience. A change, such as making a plate 5 mm longer, could mean redrawing several sheets. CAD made precise geometry fast to create. But its biggest gift to engineers is something subtler: it made precise geometry **fast to change**.

### What a CAD model is

There are several kinds of CAD model, and it helps to know them apart:

- **2D drawings** are flat lines and arcs, like a digital version of a technical drawing. They are still used for laser-cut parts and building plans.
- **Solid models** describe a closed 3D volume with an inside and an outside. The software knows which points are in the part, so it can compute volume, mass and whether two parts overlap. Most mechanical design uses solids.
- **Surface models** describe skins with no thickness, useful for complicated curved shapes such as car bodies.
- **Meshes** approximate a shape with many small triangles. They are what 3D printers and games use, but they are hard to edit precisely. You will meet them again in the last lesson of this module.

This module focuses on **parametric solid modelling**, the approach used by most mechanical CAD tools, including free ones.

### Parametric design: models that remember their logic

In a **parametric** model, the shape is controlled by **parameters**, named values such as `hole_diameter = 5.5` or `plate_thickness = 4`, and by the **relationships** between features. The software records the steps used to build the part (draw this outline, extrude it 4 mm, cut a hole through it) in order, in a list usually called the **feature tree** or **history**. Change a parameter and the software replays the steps with the new value, rebuilding the part automatically.

The opposite approach, called **direct modelling**, lets you push and pull faces freely without a recorded history. It is quick for one-off shapes and for editing imported files, but the model does not remember *why* it is the shape it is. Many modern tools offer both.

### A parametric model in Python

You can see the idea without any CAD software. Here, a mounting plate for two bolts is defined entirely by four parameters. The plate's length, width and volume are **derived** from them, never typed in by hand:

```python
import math

def bracket(hole_d, hole_spacing, margin, thickness):
    """Derive a flat mounting plate from four design parameters (mm)."""
    length = hole_spacing + 2 * margin
    width = 2 * margin
    hole_area = math.pi * (hole_d / 2) ** 2
    volume = (length * width - 2 * hole_area) * thickness
    return length, width, volume

for hole_d in [3.4, 5.5]:
    length, width, volume = bracket(hole_d, hole_spacing=40, margin=3 * hole_d, thickness=4)
    print(f"hole {hole_d} mm -> plate {length:.1f} x {width:.1f} mm, volume {volume / 1000:.2f} cm³")
```

Output:

```
hole 3.4 mm -> plate 60.4 x 20.4 mm, volume 4.86 cm³
hole 5.5 mm -> plate 73.0 x 33.0 mm, volume 9.45 cm³
```

The rule `margin = 3 * hole_d` is a design choice made for this example (keep material around each hole in proportion to its size), not a standard. The point is what happens when the bolt size changes: one number changes, and the length, width and volume all follow. Nothing has to be redrawn, and nothing can be forgotten. A parametric CAD model works the same way, only with 3D geometry instead of three numbers.

### Design intent

Parametric models are powerful only if they are built to change in the *right* way. **Design intent** is the set of rules a model should obey when it changes. For the plate above, the intent might be:

- The two holes are always centred across the width.
- The holes are always the same size as each other.
- The edge margin grows with the hole size.

If the model is built with those rules, changing the bolt size gives a sensible new part. If instead the holes were placed by typing "12.3 mm from the left edge", the model would happily produce a part with holes hanging off the edge. Two models can look identical today and behave completely differently tomorrow. Capturing design intent is the main skill this module teaches, and you will meet it in every lesson.

### A typical CAD workflow

Most parametric tools follow the same broad pattern, whatever their buttons look like:

1. **Sketch** a 2D profile on a flat plane, and fix its shape with constraints and dimensions.
2. **Turn the sketch into a solid** with a feature such as extrude or revolve.
3. **Add more features**, such as holes, cuts, fillets and patterns, each building on the last.
4. **Assemble** several parts and define how they move relative to each other.
5. **Document** the design in a drawing with dimensions and tolerances, and **export** files for manufacturing and sharing.

The next five lessons follow exactly this order.

### Choosing software

The concepts in this module apply to any parametric CAD tool. If you want to practise, free options exist. **FreeCAD** is an open-source parametric 3D modeller that runs on Windows, macOS and Linux. **Onshape** runs in a web browser and offers accounts for education; check its website for current plans and who is eligible. Many commercial tools also offer student licences. Do not worry about picking the "best" one: once you understand sketches, constraints, features and design intent, moving between tools is mostly a matter of finding where the buttons are.

### Recap

- CAD describes parts precisely so they can be checked, analysed, drawn and made.
- Parametric models are driven by named parameters and a recorded history of features.
- Change a parameter and the model rebuilds itself; that is what makes design changes cheap.
- Design intent is the set of rules a model should keep when it changes; build models to obey it.

> **Name your parameters.** Most parametric tools let you give parameters names and write dimensions as formulas, such as `margin = 3 * hole_d`. A model whose key dimensions are named is far easier for someone else (or you, three months later) to understand and change than one full of unexplained numbers.

#### Project: Paper project: a parametric phone stand

No software is needed, though you may use Python.

1. Sketch a simple phone stand from the side: a base, a back support and a lip that holds the phone.
2. Choose three to five **parameters** that should control it, for example phone thickness, viewing angle and base depth. Give each a name and a starting value.
3. Write every other dimension as a formula of those parameters (for example, slot width = phone thickness + 2 mm clearance).
4. Write down your **design intent** as three rules the stand should obey when a parameter changes.
5. Change one parameter, such as a phone in a thick case, and recompute every dimension. Did any of your rules break? Revise your formulas if so.

**Deliverables**

- A labelled side-view sketch
- A parameter list with names, values and units
- Formulas for all derived dimensions and three written design-intent rules
- Your recalculation for a changed parameter, with any fixes you made

#### Check your understanding

1. What is the main advantage of a parametric model over a drawing made of fixed lines?
   A) It always looks more realistic
   B) Changing a parameter rebuilds the model automatically, so design changes are fast and consistent
   C) It never needs dimensions
   D) It can only be used for 3D printing

2. Which kind of model can directly report a part's volume and whether two parts overlap?
   A) A solid model
   B) A 2D drawing
   C) A photograph
   D) A hand sketch

3. In the plate example, the bolt size changes from 3.4 mm to 5.5 mm. Why does the plate length update without being edited?
   A) The computer guesses a new length
   B) Python always rounds lengths
   C) The length is derived from the parameters by a formula, so it is recomputed when they change
   D) The plate length is fixed and does not change

4. Two CAD models of a bracket look identical. What could still make one of them better?
   A) Its file name is shorter
   B) It was made more quickly
   C) It uses more features
   D) It captures the design intent, so it changes sensibly when a parameter is edited

**Go further:**

- FreeCAD (official website): https://www.freecad.org/ — Download page and documentation for FreeCAD, an open-source parametric 3D modeller.
- Onshape for Education (official website): https://www.onshape.com/en/education — Information about Onshape's browser-based CAD for students and educators. Check the site for current plans and eligibility.
- Computer-aided design (Wikipedia): https://en.wikipedia.org/wiki/Computer-aided_design — The history of CAD and an overview of the kinds of models it uses.


## 1.2 Sketches, constraints and dimensions

*Every parametric part starts as a 2D sketch. Learn how geometric constraints and dimensions remove degrees of freedom until a sketch is fully defined.* (about 35 min)

### Why sketches matter so much

Almost every feature in a parametric part begins as a **sketch**: a 2D drawing of lines, arcs and circles on a flat plane. The sketch is then extruded, revolved or cut to make 3D shape. If the sketch is vague, the part is vague. If the sketch behaves badly when a dimension changes, the whole part does. Getting sketches right is the most important habit in CAD, and it rests on one idea borrowed from mechanics: **degrees of freedom**.

### Sketch geometry can move

When you first draw a rectangle in a CAD sketch, the software does not yet know that you meant a rectangle. It just sees four lines whose ends happen to be near each other. You can usually drag a corner and watch the shape distort. Each piece of geometry has **degrees of freedom (DOF)**: independent ways it can move or change.

- A **point** in a plane has 2 DOF: it can move in x and in y.
- A **line segment** is defined by its two end points, so it has 4 DOF.
- A **circle** has 3 DOF: the x and y of its centre, plus its radius.

The job of a sketch is to remove those freedoms on purpose, using two tools: **geometric constraints** and **dimensions**.

### Geometric constraints

A geometric constraint states a relationship rather than a number. Common ones, found in almost every CAD tool, include:

- **Coincident**: two points are in the same place (for example, where two lines meet).
- **Horizontal** and **vertical**: a line lies along the x- or y-direction.
- **Parallel** and **perpendicular**: two lines are at 0° or 90° to each other.
- **Tangent**: a line and an arc (or two arcs) meet smoothly, without a corner.
- **Equal**: two lines have the same length, or two circles the same radius.
- **Concentric**: two circles or arcs share a centre.
- **Symmetric**: two points are mirror images about a line.
- **Fixed** (or locked): a point cannot move at all; often the sketch's origin.

Constraints capture **design intent** directly. Saying "these two holes are equal" is better than giving them both a diameter of 5.5 mm, because if one changes, the other must follow.

### Dimensions

A **dimension** fixes a size with a number: a length, a distance, a radius or an angle. In a parametric sketch, dimensions are **driving**: change the number and the geometry moves to match. Many tools also allow **reference** (or **driven**) dimensions, which only display a measurement and cannot be edited. They are useful for checking, but they do not constrain anything.

### Worked example: counting a rectangle down to zero

Let us count the freedoms in a rectangle and remove them one by one.

1. Four separate line segments: 4 × 4 = **16 DOF**.
2. Make the four corners coincident. Each coincident constraint joins two end points, removing 2 DOF. Four corners: 16 − 4 × 2 = **8 DOF**. That matches four free corner points, 4 × 2 = 8.
3. Make two opposite sides horizontal and the other two vertical. Each removes 1 DOF: 8 − 4 = **4 DOF**. The shape is now always a rectangle, but its width, its height and its position can still change.
4. Add a width dimension (60 mm) and a height dimension (40 mm): 4 − 2 = **2 DOF**. The size is fixed, but the rectangle can still slide around.
5. Make one corner coincident with the sketch origin, which is fixed: 2 − 2 = **0 DOF**.

At zero, the sketch is **fully constrained** (also called fully defined): nothing can move unless you change a dimension. Many CAD tools show this by changing the colour of the geometry, and many display the remaining DOF count, though the exact display differs between tools.

Now add a hole. A circle has 3 DOF. A diameter dimension removes 1. Two position dimensions from the rectangle's edges remove the other 2. Back to zero.

### Under-, fully and over-constrained

- An **under-constrained** sketch still has DOF left. It may look right, but a later edit can drag geometry somewhere unexpected. Most tools allow this, which is convenient while you are exploring and dangerous when you are finished.
- A **fully constrained** sketch has exactly zero DOF, with every freedom removed exactly once. This is the goal for finished work.
- An **over-constrained** sketch has more constraints than freedoms, so some constraints repeat or contradict each other. If a rectangle is already constrained with horizontal and vertical sides, adding "perpendicular" to a corner is **redundant**: it says nothing new. Adding a third dimension that disagrees with the other two is a **conflict**. CAD tools usually warn you and refuse to solve until you delete one.

### Choosing which dimensions to give

There is often more than one way to fully constrain a sketch, and the choice matters. Suppose a plate has two holes that must line up with bolts on a robot frame, 40 mm apart. You could dimension each hole from the left edge (10 mm and 50 mm), or dimension the first hole from the edge and then **dimension the hole spacing directly** as 40 mm.

Both are fully constrained today. But if the plate later becomes longer, or the first hole moves, only the second scheme guarantees the 40 mm spacing that actually matters. **Dimension what matters for function**, from the features that matter, such as a mounting face, a centre line or the other hole. This is design intent again.

Some further habits that make sketches robust:

- **Keep sketches simple.** One clear profile per sketch is easier to fix than a tangle of shapes. Add details such as fillets as 3D features later.
- **Use symmetry.** If a part is symmetric, constrain it about a centre line through the origin. Then changing one dimension keeps it centred.
- **Anchor to the origin.** Tie at least one point of each sketch to the origin or to existing geometry, so the part has a stable reference.
- **Avoid tiny gaps.** A line that almost touches another but is not coincident leaves an open profile that cannot be extruded.

### Recap

- Sketch geometry has degrees of freedom: points 2, line segments 4, circles 3.
- Geometric constraints (coincident, horizontal, equal, tangent…) and dimensions remove DOF.
- A fully constrained sketch has zero DOF; aim for this in finished work, and avoid redundant or conflicting constraints.
- Choose dimensions that express function, such as hole spacing, rather than whatever is quickest to click.

> **Read the warnings.** When a CAD tool reports a redundant or conflicting constraint, do not just delete whichever constraint it highlights. Ask which one expresses your intent, and remove the other. Deleting the wrong one can leave a sketch that solves today but behaves strangely after the next edit.

#### Project: Paper project: constrain a robot bracket sketch

On squared paper (or in any free parametric CAD tool if you have one):

1. Draw the outline of an L-shaped bracket made of six straight lines, with two mounting holes in each leg.
2. Count the starting degrees of freedom of all the lines and circles.
3. List the geometric constraints you would add (coincident, horizontal, vertical, equal, and so on) and subtract their DOF step by step, as in the rectangle example.
4. Add dimensions until the count reaches zero. Mark on your drawing which dimensions are functional (for example, hole spacing) and explain why you chose them.
5. Find one constraint that would be redundant and one dimension that would conflict, and explain why.

**Deliverables**

- A labelled bracket sketch
- A step-by-step DOF count reaching zero
- A short explanation of which dimensions express the design intent

#### Check your understanding

1. How many degrees of freedom does an unconstrained circle in a sketch have?
   A) 2
   B) 4
   C) 1
   D) 3

2. A rectangle has coincident corners and horizontal and vertical sides. It is not yet dimensioned or anchored. How many DOF remain?
   A) 0
   B) 2
   C) 4
   D) 8

3. Two holes must always be 40 mm apart to match bolts on a frame. Which dimensioning scheme best captures that intent?
   A) Dimension each hole from the left edge
   B) Dimension the first hole from an edge and the spacing between the holes as 40 mm
   C) Leave the holes undimensioned so they can move freely
   D) Dimension each hole from the top-right corner

4. A rectangle already has horizontal and vertical sides. Adding a perpendicular constraint at one corner makes the sketch:
   A) Over-constrained with a redundant constraint
   B) Fully constrained
   C) Under-constrained
   D) Three-dimensional

5. Why is a fully constrained sketch preferred for finished work?
   A) It uses less memory
   B) It always looks neater
   C) Nothing can move unexpectedly; geometry changes only when you edit a dimension
   D) It is required before saving a file

**Go further:**

- Degrees of freedom (mechanics) (Wikipedia): https://en.wikipedia.org/wiki/Degrees_of_freedom_(mechanics) — The same counting idea applied to rigid bodies, which you will need for assemblies.


## 1.3 From sketch to solid

*Turn constrained sketches into 3D parts with extrude, revolve, cut and fillet, and plan the order of features so the model keeps its design intent.* (about 35 min)

### Why feature order is a design decision

A finished CAD part may look like a single solid object, but inside the software it is a recipe: a sequence of **features**, each built on the ones before. Two engineers can model the same part with different recipes, and both will look correct. Only when someone changes a dimension does the difference show: one model updates cleanly, the other breaks or produces nonsense. This lesson covers the core features and, just as importantly, how to choose and order them.

### Extrude

An **extrude** (sometimes called a pad or boss) sweeps a closed sketch profile straight out of its plane to make a solid. You choose how far it goes:

- **Blind**: a fixed distance, such as 5 mm.
- **Symmetric** (or mid-plane): an equal distance either side of the sketch plane. Useful when the sketch sits on a centre plane.
- **Up to a face or vertex**: stop at existing geometry, so the extrude grows or shrinks if that geometry moves.

The profile must be **closed**. A tiny gap between two lines is the most common reason an extrude fails.

### Revolve

A **revolve** spins a profile around an axis, usually through 360°. It is the natural way to make anything that would be turned on a lathe: shafts, wheels, pulleys, knobs and spacers. You sketch half of the cross-section on one side of the axis and the software sweeps it round. The profile must not cross the axis, or the solid would pass through itself.

### Cut

A **cut** (or pocket) is the reverse of an extrude or revolve: it removes material wherever the swept profile passes. Holes, slots and recesses are all cuts. Most tools also have a dedicated **hole** feature that knows about standard drill sizes, counterbores, countersinks and threads, which makes the design intent ("this is an M5 clearance hole") explicit.

Cuts have the same end conditions as extrudes, and the choice carries meaning. A mounting hole should usually be **through all**. If you make it a blind cut 5 mm deep in a 5 mm plate, the hole looks the same today, but if the plate later becomes 6 mm thick, the hole stops 1 mm short of the far side.

### Fillets and chamfers

A **fillet** rounds an edge with a given radius; a **chamfer** bevels it at an angle. They reduce sharp edges that could cut someone, make parts easier to hold and assemble, and reduce stress concentrations where cracks tend to start. Fillets on inside corners also match reality: a rotating cutter cannot make a perfectly sharp inside corner.

A strong habit: **add fillets and chamfers last**. They depend on edges created by earlier features. If you fillet early, then add a cut that changes those edges, the fillet may fail or attach to the wrong edge.

### Other features worth knowing

- **Pattern**: repeat a feature in a line or around a circle, such as eight bolt holes on a flange. Change the count and they all update.
- **Mirror**: copy features across a plane to keep a part symmetric.
- **Shell**: hollow out a solid to a given wall thickness, as for an enclosure.

### Design intent in feature order

Here is a modelling plan for a simple motor-mount plate: a 60 × 40 × 5 mm rectangle with two 6 mm holes, rounded corners and one long slot.

1. **Sketch** the rectangle on the top plane, centred on the origin with symmetric constraints. Extrude 5 mm.
2. **Sketch** the two holes on the top face. Dimension their spacing directly and make them equal. **Cut through all.**
3. **Sketch** the slot and cut through all.
4. **Fillet** the four vertical corner edges last.

Every choice has a reason. Centring the base sketch means changing its width keeps the part symmetric. Dimensioning the hole spacing keeps the bolt pattern correct. Cutting "through all" keeps the holes through if the thickness changes. Filleting last keeps the corners rounded whatever happens to the outline.

### A warning about fragile references

When one feature's sketch is placed on a face of an earlier feature, it depends on that face. If an earlier edit changes the shape so much that the face is split, merged or renumbered, the software may lose track of which face you meant, and later features can fail or jump to the wrong place. Different tools handle this differently, and some handle it better than others, but every tool has some version of the problem. Two habits reduce it:

- Where you can, sketch on the **main reference planes** (top, front, right) or on planes defined from them, rather than on generated faces.
- After a big change, **check the whole feature tree**, not just the feature you edited.

### Let the model calculate for you

Because a solid model knows its volume, CAD tools can report mass once you assign a material. You can check that kind of result by hand. For the mount plate above:

```python
import math

def mass_g(volume_mm3, density_g_cm3):
    return volume_mm3 / 1000 * density_g_cm3

plate = 60 * 40 * 5                      # mm³
hole = math.pi * (6 / 2) ** 2 * 5        # one 6 mm hole through 5 mm
volume = plate - 2 * hole

print(f"Volume: {volume:.0f} mm³")
print(f"PLA plastic (1.24 g/cm³): {mass_g(volume, 1.24):.1f} g")
print(f"Aluminium (2.70 g/cm³):   {mass_g(volume, 2.70):.1f} g")
```

Output:

```
Volume: 11717 mm³
PLA plastic (1.24 g/cm³): 14.5 g
Aluminium (2.70 g/cm³):   31.6 g
```

(This ignores the slot and fillets, so a CAD tool will report slightly less.) Note that 1000 mm³ = 1 cm³. A quick hand estimate like this is a good check that you have not set the wrong units or material in the software, a surprisingly common mistake. Also, a 3D-printed part is often not solid inside, so its real mass depends on the print settings, not just the CAD volume.

### Recap

- Extrude sweeps a profile straight; revolve spins it round an axis; cut removes material.
- End conditions such as through all or up to a face carry design intent.
- Add fillets and chamfers late, because they depend on earlier edges.
- Plan feature order and references so the model updates cleanly; prefer main planes for key sketches.
- Use the model's volume and mass, but sanity-check them by hand.

> **Model the way it will be made.** Feature choices can mirror manufacturing. A turned part is naturally a revolve; a laser-cut part is naturally one extrude of a 2D profile; a drilled hole is naturally a hole feature. Modelling this way makes it easier to see early whether a part can actually be made with the tools you have.

#### Project: Paper project: write a modelling plan

Choose one everyday object with clear geometric features: a pencil sharpener body, a bottle cap, a ruler, a door wedge or a simple shelf bracket.

1. Sketch it from two directions and note its main dimensions (measure it with a ruler if you have the object).
2. Write a numbered **modelling plan**: for each feature, name the type (extrude, revolve, cut, hole, fillet, pattern, mirror, shell), the sketch plane, the end condition and **why** you chose it.
3. Identify one dimension most likely to change in a future version, and explain how your plan keeps the model working when it does.
4. Estimate the object's volume by hand using simple shapes, then its mass for one plastic and one metal.
5. Optional: build the model in any free parametric CAD tool and compare its reported volume with your estimate.

**Deliverables**

- Two-view sketch with key dimensions
- A numbered modelling plan with a reason for each feature
- A hand estimate of volume and mass, with units shown

#### Check your understanding

1. Which feature is the most natural way to model a pulley wheel?
   A) Extrude
   B) Revolve
   C) Shell
   D) Chamfer

2. A mounting hole is modelled as a blind cut exactly as deep as the 5 mm plate. What happens if the plate becomes 8 mm thick?
   A) The hole automatically becomes 8 mm deep
   B) The plate cannot be changed
   C) The hole becomes wider
   D) The hole stops 3 mm short of the far side and no longer goes through

3. Why is it usually best to add fillets near the end of the feature tree?
   A) Fillets depend on edges made by earlier features, so later changes to those edges can break them
   B) Fillets cannot be made at the start
   C) Fillets make the file larger
   D) Fillets change the material

4. A CAD tool reports that the 60 × 40 × 5 mm plate weighs 32 kg. What is the most likely problem?
   A) The plate is made of a very heavy plastic
   B) Mass cannot be calculated in CAD
   C) A unit or material setting is wrong; a hand estimate gives tens of grams
   D) The holes were not included

**Go further:**

- Solid modeling (Wikipedia): https://en.wikipedia.org/wiki/Solid_modeling — How solid models are represented, including feature-based parametric modelling and its history.


## 1.4 Assemblies and mates

*Combine parts into an assembly, use mates to remove degrees of freedom until only the intended motion is left, and check for interference before anything is made.* (about 35 min)

### Why parts must be checked together

A robot gripper might contain a dozen parts: fingers, pins, a base plate, a linkage, spacers and screws. Each can be modelled perfectly on its own and still fail as a group: a hole that sits 2 mm from its pin, a finger that crashes into the base halfway through its swing, a screw that is too long for the thread it goes into. An **assembly** brings parts together in one model so that you can find those problems on screen rather than at the workbench.

### Parts, instances and the assembly tree

An assembly does not usually copy the geometry of its parts. It **references** them. If the same spacer appears four times, the assembly holds four **instances** of one part file. Edit the spacer once and all four update. Larger designs are organised into **sub-assemblies**, such as "left finger" and "base", just as a real machine is built in stages.

### Degrees of freedom in 3D

In the sketch lesson, a point in a plane had 2 degrees of freedom. A rigid part floating freely in 3D space has **6 DOF**:

- 3 **translations**: sliding along x, y and z.
- 3 **rotations**: turning about x, y and z.

When you add a part to an assembly, it starts with all 6. Usually the first part is **fixed** (or grounded) in place, so it acts as the reference for everything else. Every other part is then positioned with **mates** (also called constraints or joints, depending on the tool).

### Mates remove freedoms

A mate is a geometric relationship between two parts. Each one removes some DOF. The exact names vary between tools, but the ideas are the same:

- **Coincident (face to face)**: two flat faces touch and stay in the same plane. This removes 3 DOF: sliding away from the face, and the two tilts. The part can still slide in two directions across the face and spin about an axis perpendicular to it.
- **Concentric**: two cylindrical surfaces, such as a pin and a hole, share an axis. This removes 4 DOF, leaving 2: sliding along the axis and rotating about it.
- **Distance** and **angle**: like coincident, but with an offset or an angle.
- Many tools also offer **joint** mates that state the intended motion directly: a **revolute** (hinge) joint leaves only 1 rotation; a **slider** (prismatic) joint leaves only 1 translation; a **fastened** or rigid joint leaves none.

### Worked example: a hinge

A gripper finger turns on a pin fixed in the base. Count its freedoms:

1. Free finger: **6 DOF**.
2. Concentric mate between the finger's hole and the pin: 6 − 4 = **2 DOF**. The finger can spin on the pin and slide along it.
3. Coincident mate between the finger's side face and the face of the base: this stops the sliding. Because the faces are perpendicular to the pin, the remaining rotation is already allowed, so in effect this mate removes only the one freedom that was left to remove: 2 − 1 = **1 DOF**.

One DOF remains: rotation about the pin. That is exactly the motion the finger should have. Notice that the second mate did not remove its usual 3 DOF, because 2 of them had already been removed by the first. This is why simple counting gives a guide rather than a rule: **mates can overlap**.

### Under- and over-constrained assemblies

As with sketches, an assembly can be:

- **Under-constrained**: a part has more freedom than intended. It may drift when you drag something else, and you cannot trust measurements between parts.
- **Correctly constrained**: each part has exactly the DOF of its real motion. A fixed bracket has 0. A hinge has 1. A wheel on an axle has 1.
- **Over-constrained**: mates repeat or contradict each other. A redundant mate might solve today, then fail when a dimension changes slightly. Real machines can suffer from the same problem: a shaft held in three bearings that are not perfectly in line can bind. If an assembly needs many redundant mates to hold together, ask whether the real mechanism is over-constrained too.

A useful habit is to **drag each moving part** after mating it. If it moves the way the real one would, and no other way, the mates match the design intent.

### Interference and clearance

Once parts are positioned, the CAD tool can check for **interference**: places where two solids occupy the same space. Interference is sometimes intended (a press-fit pin is slightly larger than its hole) but usually it is a mistake that would stop the parts going together.

Check interference in more than one position. A finger that clears the base when open may hit it when closed. Many tools let you move a mechanism through its range and check for collisions, or you can step a hinge through several angles yourself.

The opposite question is **clearance**: is there enough gap where parts must move freely, or where a finger or a tool must reach in? A screw that technically fits but cannot be reached with a screwdriver is still a design failure.

### Bottom-up and top-down design

There are two common ways to build an assembly:

- **Bottom-up**: model each part separately, then bring them together. This is simple and keeps parts independent, which suits standard parts such as screws and bearings.
- **Top-down**: design parts in the context of the assembly, so that a hole in one part is defined by the position of a pin in another. Change the pin and the hole follows. This is powerful but creates links between files that can be confusing to manage.

Most real projects mix the two. Whichever you use, a **skeleton** sketch, a simple layout of key points and lines that parts reference, is a good way to keep the main dimensions of a mechanism in one place.

### Recap

- An assembly references parts; repeated parts are instances of one file.
- A free rigid part has 6 DOF: 3 translations and 3 rotations. Fix one part, then mate the rest.
- Mates remove DOF; coincident faces remove 3, concentric cylinders remove 4, and mates can overlap.
- Aim for each part to have exactly the DOF of its real motion, and drag parts to check.
- Check interference and clearance across the whole range of motion, not just in one position.

> **Look for pinch points while you can still change them.** An assembly model is the cheapest place to spot a **pinch point**: a gap that closes as a mechanism moves, where a finger could be trapped. Move every joint through its full range and look for gaps that shrink to less than a finger's width. Adding a guard, a stop or more clearance costs nothing on screen and a lot later.

#### Project: Paper project: count the freedoms of a desk lamp

Choose a mechanism you can look at safely without taking it apart: an adjustable desk lamp, a folding chair, a pair of scissors or a door with hinges. Do not dismantle anything.

1. Sketch the mechanism and number each separate rigid part. Choose one part to be fixed.
2. For every joint, name the type of mate you would use in CAD (revolute, slider, concentric plus coincident, fastened) and how many DOF it leaves.
3. Count the total DOF of the mechanism. Check your answer by moving the real object gently: how many independent ways can you move it?
4. Find two places where parts could interfere and two places where you would check clearance, including any pinch point.
5. Optional: model a simple two-part hinge in any free CAD tool and drag it to confirm it has one DOF.

**Deliverables**

- A numbered sketch of the mechanism
- A table (as a list) of joints, mate types and DOF removed
- Your DOF count and how it compares with the real object
- A list of interference, clearance and pinch-point checks

**Safety (adult supervision required):** Only observe and gently move mechanisms that are designed to be moved by hand. Keep fingers away from hinges and closing gaps, do not test scissors' blades, and do not dismantle lamps or anything connected to mains electricity. Ask an adult before handling any tool or appliance.

#### Check your understanding

1. How many degrees of freedom does a free rigid part have in 3D space?
   A) 3
   B) 4
   C) 6
   D) 12

2. A pin is mated concentric with a hole and nothing else. Which motions remain?
   A) Sliding along the axis and rotating about it
   B) None
   C) Only rotation about the axis
   D) All six

3. A wheel on an axle should be able to turn but not wobble or slide. How many DOF should it have in the assembly?
   A) 0
   B) 6
   C) 2
   D) 1

4. A gripper finger clears the base when open but hits it when nearly closed. What does this show?
   A) Interference checks are pointless
   B) Interference should be checked across the whole range of motion, not just one position
   C) The finger has too few DOF
   D) The base should be deleted

5. What is a risk of using top-down design, where one part's geometry is defined from another part in the assembly?
   A) Parts can never be changed
   B) Assemblies become impossible to save
   C) Links between files can be hard to manage, so a change in one part can unexpectedly change another
   D) It removes all degrees of freedom


## 1.5 Technical drawings and tolerances

*Turn a 3D model into a drawing someone can build from: orthographic views, dimensioning, tolerances, stack-ups and the clearance, transition and interference fits between holes and shafts.* (about 40 min)

### Why drawings still matter

If CAD models are so precise, why make drawings at all? Because a model alone does not say **which** dimensions matter, **how accurately** they must be made, or **how** they will be checked. A drawing is a contract between the designer and the person making or inspecting the part. A model says "this hole is 10 mm". A drawing can say "this hole must be between 10.000 and 10.015 mm, measured from this face", and that second sentence is what decides whether a shaft will spin smoothly in it.

### Orthographic views

A technical drawing usually shows a part in **orthographic projection**: separate flat views looking straight at the front, top and side, with no perspective. Each view shows true lengths in two directions, so dimensions can be measured directly.

There are two conventions for arranging the views, and they place them differently:

- **First-angle projection**, common in Europe and much of the world (ISO standards allow both conventions), places the top view *below* the front view.
- **Third-angle projection**, common in the United States, places the top view *above* the front view.

Drawings show a small symbol of a truncated cone to say which convention is used. Misreading it can make a part come out mirrored, so always check.

Other common views include **section views**, which show the part as if cut along a line so hidden internal features become visible, **detail views**, which enlarge a small area, and an **isometric view**, a 3D picture for orientation that is not used for measuring.

### Dimensioning well

CAD tools can generate views automatically, but choosing dimensions is still the designer's job. Good practice includes:

- **Dimension each feature once.** Repeating a dimension in two views invites contradiction after an edit.
- **Dimension from datums.** A **datum** is a reference feature, such as a machined edge or a centre line, from which other features are measured. Measuring from one datum keeps errors from piling up.
- **Dimension what matters for function**, exactly as in sketches: hole spacing, mating faces, the diameter of a bearing seat.
- **Say the units.** Most mechanical drawings use millimetres and state it in the title block.

### Tolerances: nothing is made exactly

No machine, printer or person makes a part to an exact size. A **tolerance** states how far from the nominal size a dimension may be and still be acceptable. Common ways to write it:

- **Plus/minus**: 25.0 ± 0.1 means anything from 24.9 to 25.1 mm is acceptable.
- **Limits**: writing 25.1 above 24.9 gives the same range directly.
- **General tolerances**: a note in the title block covers every dimension without its own tolerance, for example "unless otherwise stated, ±0.2 mm".

Tighter tolerances cost more. They need better machines, slower work and more inspection. A good designer gives **tight tolerances only where function needs them** and generous ones everywhere else.

### Tolerance stack-up

When parts are stacked or chained together, their tolerances add up. Suppose three blocks, each 10 ± 0.1 mm, are stacked:

```python
import math

tolerances = [0.1, 0.1, 0.1]     # ± mm for three stacked 10 mm blocks
nominal = 3 * 10.0

worst = sum(tolerances)
rss = math.sqrt(sum(t ** 2 for t in tolerances))
print(f"Nominal stack: {nominal:.1f} mm")
print(f"Worst case:    ±{worst:.2f} mm  ({nominal - worst:.2f} to {nominal + worst:.2f})")
print(f"RSS estimate:  ±{rss:.2f} mm")
```

Output:

```
Nominal stack: 30.0 mm
Worst case:    ±0.30 mm  (29.70 to 30.30)
RSS estimate:  ±0.17 mm
```

The **worst case** assumes every block is at its limit in the same direction: ±0.3 mm. It is safe but pessimistic. The **root-sum-square (RSS)** estimate, √(0.1² + 0.1² + 0.1²) ≈ 0.17, reflects the fact that random errors tend partly to cancel. It is only valid when errors are independent and random, and it accepts that a small fraction of assemblies may fall outside. If the stack must fit into a 30.2 mm slot, the worst case says it might not; that is exactly the kind of problem to find on paper.

The same logic explains why chained dimensions (each hole measured from the previous one) are risky: each link adds its tolerance. Measuring every hole from one datum keeps each hole's error independent.

### Fits between holes and shafts

When a shaft goes into a hole, the relationship between their tolerances is called a **fit**. There are three kinds:

- **Clearance fit**: the hole is always bigger than the shaft. The parts slide or turn freely.
- **Interference fit** (press fit): the shaft is always bigger than the hole. The parts must be pressed together and then hold by friction.
- **Transition fit**: depending on where within their tolerances the parts land, there may be a tiny clearance or a tiny interference. Used for accurate location.

The ISO system of limits and fits (ISO 286) names tolerance bands with letters and numbers: capital letters for holes, small letters for shafts. A very common choice is the **hole-basis** system, where the hole is H (its smallest size is exactly the nominal) and the shaft letter chooses the fit. For a 10 mm nominal diameter, the standard tables give an H7 hole of 10.000 to 10.015 mm and a g6 shaft of 9.986 to 9.995 mm, a sliding clearance fit:

```python
hole_min, hole_max = 10.000, 10.015     # H7 hole, 10 mm nominal
shaft_min, shaft_max = 9.986, 9.995     # g6 shaft, 10 mm nominal

print(f"Smallest clearance: {hole_min - shaft_max:.3f} mm")
print(f"Largest clearance:  {hole_max - shaft_min:.3f} mm")
```

Output:

```
Smallest clearance: 0.005 mm
Largest clearance:  0.029 mm
```

The smallest clearance comes from the smallest hole with the biggest shaft; the largest from the biggest hole with the smallest shaft. Because both are positive, the shaft always fits. Fits such as H7/p6 are listed in the same tables as press fits. You do not need to memorise any of these numbers. You need to know that fits are chosen from tables, and that the gap between "slides freely" and "must be pressed in" can be a hundredth of a millimetre.

### Tolerances you can actually achieve

A tolerance is only useful if the process can hold it. Hobby 3D printers and hand tools cannot hold ±0.01 mm. Printed holes also often come out a little smaller than modelled. The honest approach is to **test**: print or make a small sample with holes at several sizes, measure them, and choose the clearance that works on your machine. Record what you found so the next design starts from evidence.

For more complex requirements, such as flatness, perpendicularity or the position of a hole relative to datums, engineers use **geometric dimensioning and tolerancing (GD&T)**, a standard symbolic language. It is worth knowing it exists; you can learn it when a design needs it.

### Recap

- A drawing says which dimensions matter, how accurately and from where.
- Orthographic views show true sizes; check whether first- or third-angle projection is used.
- Dimension each feature once, from datums, choosing functional dimensions.
- Tolerances add up in stacks: worst case is safe, RSS is a statistical estimate.
- Fits are clearance, transition or interference, chosen from standard tables; tolerances must match what your process can achieve.

> **Measure, then report what you measured.** When you test printed or machined samples, record the actual measurements, the instrument used and how many samples you checked, even when they disagree with the drawing. A note saying "holes modelled at 6.0 mm measured 5.8–5.9 mm on five samples" is far more useful to the next designer than "holes came out a bit small".

#### Project: Paper project: draw and tolerance a spacer

Design a cylindrical spacer: a tube 20 mm long with a 12 mm outside diameter and a hole that slides onto a 6 mm rod.

1. On squared paper, draw a front view and a side (end) view using one projection convention. Label which convention you used.
2. Add dimensions: length, outside diameter and hole diameter, each once, from sensible datums.
3. Choose tolerances: tight on the hole (it must slide on the rod), generous elsewhere. Write a general tolerance note.
4. Three spacers will be stacked on the rod between two plates 60.5 mm apart. Calculate the worst-case and RSS stack-up for your length tolerance. Will they always fit?
5. Calculate the smallest and largest clearance between your hole and a rod of 5.98–6.00 mm.

**Deliverables**

- A two-view dimensioned drawing with a title block and projection label
- A tolerance stack-up calculation for three spacers
- A clearance calculation for the hole and rod, with a sentence on whether the fit is acceptable

#### Check your understanding

1. A dimension is given as 40 ± 0.2 mm. Which measured part is outside tolerance?
   A) 39.85 mm
   B) 40.15 mm
   C) 40.25 mm
   D) 40.00 mm

2. Four parts, each ±0.05 mm, are stacked end to end. What is the worst-case tolerance of the stack?
   A) ±0.05 mm
   B) ±0.20 mm
   C) ±0.10 mm
   D) ±0.025 mm

3. A hole is 8.00–8.02 mm and a shaft is 8.03–8.05 mm. What kind of fit is this?
   A) Clearance fit
   B) Transition fit
   C) No fit is possible
   D) Interference fit

4. Why is it better to dimension a row of holes from one datum than from each other?
   A) Measuring from one datum stops each hole's error adding to the next, so errors do not accumulate along the row
   B) It uses fewer numbers on the drawing
   C) It makes the holes larger
   D) Chained dimensions are not allowed in CAD

5. Why should tight tolerances be used only where function requires them?
   A) Tight tolerances make parts weaker
   B) CAD tools cannot display tight tolerances
   C) They cost more to make and inspect, and the process may not be able to hold them
   D) They change the nominal size

**Go further:**

- Engineering fit (Wikipedia): https://en.wikipedia.org/wiki/Engineering_fit — Clearance, transition and interference fits, with ISO hole and shaft tolerance tables.
- Multiview orthographic projection (Wikipedia): https://en.wikipedia.org/wiki/Multiview_orthographic_projection — First-angle and third-angle projection explained with diagrams.
- Geometric dimensioning and tolerancing (Wikipedia): https://en.wikipedia.org/wiki/Geometric_dimensioning_and_tolerancing — An introduction to GD&T symbols, datums and feature control frames.


## 1.6 A tool-agnostic CAD workflow with free software

*Native files, STEP and STL: what each format keeps and loses, how to name versions so nobody builds the wrong one, and how to share designs others can use.* (about 35 min)

### Why workflow matters as much as modelling

A perfect model is useless if nobody can open it, if the wrong version gets made, or if the file sent to a printer is too coarse to fit. Real engineering teams spend real effort on what happens **around** the model: which file formats to use, how to name and track versions, and how to share designs. These habits do not depend on any particular CAD tool, and they matter just as much in a school robotics team as in industry.

### Native files

Every CAD tool saves in its own **native** format. FreeCAD, for example, saves `.FCStd` files. A native file contains everything: the parameters, sketches, constraints, feature tree and assembly mates. It is the only file that lets you edit the model *parametrically*. The downside is that other tools usually cannot read another tool's native format fully, and even the same tool may change its format between versions.

**Keep the native file as the master copy.** Everything else is exported from it.

### STEP: exact geometry for sharing

**STEP** (files ending `.step` or `.stp`) is an international standard, ISO 10303, for exchanging product data between CAD systems. A STEP file stores the **exact** shape: true circles, true planes and precise edges, usually as solid bodies, and it can hold whole assemblies.

What it does not keep is the **history**. Open a STEP file in another tool and you get a "dumb" solid: correct shape, but no sketches, no parameters and no feature tree. You can still measure it, mate it in an assembly and edit it with direct-modelling tools, but you cannot simply change a parameter. STEP is the right format for sending a part to someone using a different CAD tool, to a workshop, or to a supplier.

### STL: triangles for printing

**STL** (`.stl`) describes a surface as a mesh of flat triangles. It is the traditional input to 3D-printing software and is accepted almost everywhere. But it has important limits:

- **Curves become flat facets.** A circle becomes a polygon. The software chooses how many facets based on a tolerance you can usually set during export.
- **No units are stored.** An STL file is just numbers. If a part designed in millimetres is read as inches, it comes out 25.4 times too large. Most printing software assumes millimetres, but check the size after importing.
- **No history and no exact geometry.** STL is hard to edit precisely. Treat it as an output, never as your master copy.

How coarse is a mesh? For a circle of radius r drawn with n straight sides, the largest gap between the true circle and the polygon is r · (1 − cos(π / n)):

```python
import math

def chord_error(radius, facets):
    """Largest gap between a true circle and a polygon with this many sides."""
    return radius * (1 - math.cos(math.pi / facets))

for n in [12, 32, 128]:
    print(f"{n:3d} facets: {chord_error(10.0, n):.3f} mm")
```

Output:

```
 12 facets: 0.341 mm
 32 facets: 0.048 mm
128 facets: 0.003 mm
```

A 20 mm diameter hole exported with only 12 facets is wrong by about a third of a millimetre at its worst points, which is more than many fits allow. With 128 facets the error is tiny, but the file is larger. Choose an export resolution that is fine compared with the tolerances that matter.

Other formats you will meet include **3MF**, a newer format for 3D printing that can store units, colours and more, **DXF** for 2D profiles sent to laser cutters, and **PDF** for drawings.

### Naming versions so nobody builds the wrong one

Every team has seen folders full of files called `bracket_final.step`, `bracket_final2.step` and `bracket_final_REAL.step`. Nobody can tell which is current, and someone eventually makes the wrong one. A simple, consistent scheme prevents this:

- **One name per part**, with a clear version number: `gripper-finger_v03.FCStd`. Use two digits so versions sort in order.
- **Never reuse a version number.** If version 3 was sent to be made, any change becomes version 4, even a small one.
- **Exported files carry the same name and version** as their master: `gripper-finger_v03.step`, `gripper-finger_v03.stl`. Then anyone can trace a printed part back to the model that made it.
- **Keep a change log**: a short text file listing each version, the date, what changed and why. "v04: hole spacing 38 → 40 mm to match the new frame; printed and fitted OK."

**Version control** tools such as git, which you meet in the engineering documentation module, can track every change to your files. CAD files are usually binary, so git cannot show what changed inside them, but it still records who changed what, when and with what message. Some cloud CAD tools have version history built in.

### Sharing designs

When you share a design, think about what the other person needs:

- To **view or check fit**: a STEP file, plus a PDF drawing with the important dimensions and tolerances.
- To **make it**: STEP for machining, STL or 3MF for printing, DXF for laser cutting, along with the drawing, the material and any notes on finish.
- To **modify it**: the native file, the tool name and version you used, and a description of the key parameters and design intent.

If you publish designs publicly, choose a **licence** so others know what they may do with them. Open-hardware and Creative Commons licences are common choices; the scientific integrity module covers licensing in more depth. Also credit any parts or libraries you used from other people.

### A complete workflow

Pulling the module together, a sound workflow for any free parametric tool looks like this:

1. Write down the requirements and constraints.
2. Model parts with fully constrained sketches, functional dimensions and a sensible feature order.
3. Assemble them, check DOF, interference and clearance across the full range of motion.
4. Make drawings with tolerances for the dimensions that matter.
5. Export STEP, STL or DXF with the same name and version as the master file, at a sensible resolution.
6. Update the change log, back up the files, and share with a licence.

### Recap

- The native file is the editable master; everything else is exported from it.
- STEP keeps exact geometry but not history; STL keeps only triangles and no units.
- Mesh resolution matters: choose facet sizes small compared with your tolerances.
- Use one name per part, never reuse a version number, match exports to their master, and keep a change log.
- Share the right files for the job, and add a licence when you publish.

> **Credit what you reuse.** Online libraries are full of models of screws, bearings and whole mechanisms. Using them is normal and sensible. But record where each one came from, check its licence allows your use, and credit its creator when you share your design. Presenting someone else's model as your own work is plagiarism, whatever the file format.

#### Project: Software project: a release package

Using any free CAD tool, or the paper designs from earlier lessons if you have no software:

1. Choose one part you have designed in this module. Give it a part name and a version number using the scheme from this lesson.
2. If you have a CAD tool, export it as STEP and as STL at two different resolutions, and compare the file sizes. If not, use the `chord_error` function to choose a facet count that keeps the error below one tenth of your tightest tolerance.
3. Write a change log with at least three versions (real or planned), each with a date, what changed and why.
4. Write a short README for the part: what it is, which files to use for viewing, making and modifying, the units, the material, and the licence you would choose.
5. Arrange everything in a folder structure and list it.

**Deliverables**

- A folder listing with consistently named, versioned files
- A change log with at least three entries
- A README describing the files, units, material and licence

#### Check your understanding

1. A colleague using a different CAD tool needs to check that your part fits their assembly. Which file is the best choice?
   A) Your native file
   B) A STEP file
   C) A low-resolution STL
   D) A screenshot

2. A part modelled in millimetres comes out 25.4 times too large in the printing software. What is the most likely cause?
   A) The STL file stores no units, and it was read as inches
   B) The printer is broken
   C) The model was not fully constrained
   D) STEP files always double the size

3. Why is a STEP file not a good master copy of your design?
   A) It cannot store solid shapes
   B) It is not a standard
   C) It cannot be opened by other tools
   D) It loses the sketches, parameters and feature history, so the model can no longer be edited parametrically

4. Version 3 of a bracket has already been printed and fitted. You change one hole by 0.5 mm. What should the new file be called?
   A) bracket_v03_final.FCStd
   B) bracket_v03.FCStd, overwriting the old one
   C) bracket_v04.FCStd, with a change-log entry explaining the change
   D) new_bracket.FCStd

**Go further:**

- ISO 10303 (STEP) (Wikipedia): https://en.wikipedia.org/wiki/ISO_10303 — Background on the STEP standard and what kinds of product data it can describe.
- STL (file format) (Wikipedia): https://en.wikipedia.org/wiki/STL_(file_format) — How STL files store triangle meshes, and their limitations, including the lack of units.
- FreeCAD (official website): https://www.freecad.org/ — An open-source parametric modeller you can use to practise this whole workflow.


---

# Module 2: Engineering constraints

Every real design lives inside limits — of physics, cost, safety, materials and time. This module shows how to find those limits, write them down and make trade-offs between them deliberately.

**Objectives**

- Distinguish requirements, constraints and preferences, and write each in a measurable form.
- Identify constraints from physics, cost, safety, manufacturing and the people who use a product.
- Use simple scaling relationships to predict how changing a dimension affects stiffness.
- Compare design options with a weighted decision matrix and test how sensitive the result is to the weights.


## 2.1 Requirements, constraints and the design space

*What engineers mean by a constraint, where constraints come from, and how writing them down precisely turns a vague wish into a solvable problem.* (about 30 min)

### Design is choosing within limits

If you were asked to "design a phone stand", you could produce almost anything: a carved marble sculpture, a folded piece of card, a motorized arm. The task only becomes an engineering problem when the limits appear. *It must hold the phone at a readable angle. It must cost less than the price of a sandwich. It must fit in a pencil case. It must not tip over when you tap the screen.* Suddenly, most of the possible designs are ruled out, and the interesting work begins.

Those limits are called **constraints**, and learning to find, write down and work with them is one of the most important skills in engineering. Constraints are not the enemy of creativity. They are what give a design problem its shape.

### Requirements, constraints and preferences

Engineers usually separate three kinds of statement about a design. The boundaries between them are not always sharp, but the distinction is useful.

- **Functional requirements** describe what the design must *do*. "Hold a phone upright so the screen is readable from a desk."
- **Constraints** are limits the design must stay *within*. "Total material cost under the budget." "Fits inside a 20 × 8 × 3 cm space when folded." "No sharp edges."
- **Preferences (or objectives)** describe what would make one acceptable design *better* than another. "Lighter is better." "Cheaper is better." "Looks good on a desk."

A design that fails a requirement or breaks a constraint is not acceptable, however beautiful it is. Among the designs that pass, preferences help you choose.

Constraints themselves come in two strengths. **Hard constraints** cannot be broken: a bridge must carry its load; a child's toy must not contain parts small enough to choke on. **Soft constraints** can be bent at a cost: a project might go slightly over budget if it buys a large improvement in safety. Part of good judgment is knowing which is which — and being honest when a "soft" constraint is really a hard one in disguise.

### Making constraints measurable

A constraint you cannot check is not much use. Compare:

- "The stand should be stable." — Stable under what? How would you test it?
- "The stand must not tip over when a 200 g phone is placed on it and the top of the screen is pushed with a force of 2 N." — Now you can calculate and test it.

Writing constraints in measurable form forces you to think about what really matters. It also prevents arguments later, because everyone agrees in advance what "good enough" means. This is the same discipline that the Research and Engineering Methodology pathway asks of research questions: define success before you test, not after.

When you do not yet know the right number, write your best estimate and mark it as an assumption to check. "Assume phone mass up to 250 g (to be confirmed by weighing five common phones)" is far better than leaving it vague.

### Where constraints come from

Constraints rarely arrive in a neat list. You usually have to go looking for them. Useful places to look:

1. **Physics.** Loads, forces, temperatures, speeds and the strength and stiffness of materials. A shelf must hold its books; a drone's motors must lift its own mass plus its battery.
2. **Cost.** Materials, parts, manufacturing time, shipping. A cost constraint often rules out an otherwise excellent material.
3. **Manufacturing.** What can actually be made with the tools available? A 3D printer struggles with large overhangs; a laser cutter only cuts flat sheets; hand tools limit precision.
4. **Safety.** Sharp edges, pinch points, hot surfaces, stored energy in springs or batteries, toxic materials. Safety constraints are usually hard constraints.
5. **The people who use it.** Their hand size, strength, abilities and expectations. A design that works for an adult engineer may be unusable for a child, an older person or someone with limited grip.
6. **The environment.** Will it get wet, hot, dusty, or be dropped? Where does it go at the end of its life?
7. **Time and resources.** Deadlines and the skills of the team are real constraints on any project, including school ones.

### The design space

It helps to picture every possible design as a point in a large space. For a simple rectangular shelf bracket, the axes might be its length, its thickness and its material. Each constraint draws a boundary in that space and rules out the region on one side. "Must not bend more than 2 mm" rules out brackets that are too thin. "Must cost less than the budget" rules out brackets that are too thick or made of expensive material. "Must fit the wall gap" fixes the length.

What remains — the region where every constraint is satisfied — is called the **feasible region**. Sometimes it is large and you have plenty of freedom. Sometimes it is a narrow sliver and the design is almost decided for you. And sometimes it is **empty**: the constraints contradict each other, and no design can satisfy them all. Discovering an empty feasible region early is valuable. It means you must go back and renegotiate a constraint — a bigger budget, a smaller load, a different material — instead of wasting weeks trying to do the impossible.

### Worked example: a phone stand

Here is how a short, honest constraint list for the phone stand might look:

- **R1 (function):** Holds a phone in portrait or landscape at 60–75° from horizontal.
- **C1 (load):** Supports phones up to 250 g (assumption — to be checked).
- **C2 (stability):** Does not tip when the top of the screen is pushed with 2 N.
- **C3 (size):** Folds to fit within 20 × 8 × 3 cm.
- **C4 (safety):** No sharp corners or edges; no small detachable parts.
- **C5 (manufacturing):** Can be made with tools available to the team.
- **P1 (preference):** Lower cost is better.
- **P2 (preference):** Lighter is better.

Notice that C2 and C3 pull in opposite directions. A wide, heavy base resists tipping, but it does not fold small. That tension is not a mistake in the list — it is exactly where the design thinking will happen, and it is the subject of the next lesson.

> **Safety constraints come first.** When constraints conflict, safety constraints are not up for trade. If a design can only meet its cost target by adding a pinch point or a sharp edge, the cost target must move. In real engineering, safety requirements are often set by standards and law, not by the designer's preference.

#### Check your understanding

1. Which of these is written as a measurable constraint?
   A) "The bag hook should be strong."
   B) "The bag hook should look nice."
   C) "The bag hook should be as good as possible."
   D) "The bag hook must hold a 5 kg load for 10 minutes without permanent bending."

2. What is the feasible region of a design problem?
   A) The set of designs that satisfy every requirement and constraint
   B) The cheapest design
   C) The part of the workshop where prototypes are built
   D) The designs the team likes best

3. "Lighter is better" is best described as a:
   A) Preference (objective)
   B) Hard constraint
   C) Functional requirement
   D) Safety constraint

4. You discover that no design can meet both the load constraint and the budget. What should you do?
   A) Quietly ignore the load constraint
   B) Keep trying random designs until one works
   C) Report that the design meets both anyway
   D) Recognize the feasible region is empty and renegotiate a constraint, recording the decision


## 2.2 Trade-offs, scaling and decision matrices

*When constraints pull in opposite directions: using scaling relationships to understand trade-offs, and decision matrices to choose between options without fooling yourself.* (about 40 min)

### Every improvement costs something

In almost every design, improving one property makes another worse. A thicker bracket is stiffer but heavier and more expensive. A larger battery runs longer but weighs more, so the motors must work harder. A wider phone-stand base resists tipping but no longer fits in a pencil case. These are **trade-offs**, and much of an engineer's job is understanding them well enough to choose the best compromise on purpose rather than by accident.

This lesson gives you two tools. The first, **scaling relationships**, tells you *how strongly* one property changes when you change another. The second, the **decision matrix**, helps you compare whole design options when several preferences compete.

### Scaling: how much does it matter?

Consider a simple bracket: a rectangular strip fixed at one end, sticking out horizontally, with a load at the free end. Engineers call this a **cantilever** — diving boards and shelf brackets are everyday examples. How far does the tip bend down?

Standard beam theory, found in any introductory mechanics textbook, gives the tip deflection δ of a rectangular cantilever as:

```
δ = (F · L³) / (3 · E · I)      with   I = (b · h³) / 12
```

where F is the load, L is the length, E is the material's **stiffness** (its Young's modulus), b is the width and h is the thickness in the direction of bending. I, called the second moment of area, describes how the cross-section's shape resists bending.

You do not need to memorize this. What matters for design is the **powers**:

- Deflection grows with **L³**. Double the length and the tip bends 2³ = **8 times** as much.
- Deflection shrinks with **h³**. Double the thickness and it bends **8 times less**.
- Deflection shrinks only in proportion to **b**. Double the width and it bends **2 times less**.
- Deflection shrinks in proportion to **E**. A material twice as stiff bends half as much.

### Worked example

A 3 mm thick bracket deflects 4 mm under its load. That is more than the 2 mm the constraint allows. What are the options?

- **Make it thicker.** Deflection scales with 1/h³. To halve the deflection we need h³ to double, so h must grow by the cube root of 2, about 1.26. A thickness of about 3.8 mm would bring it to roughly 2 mm. Going to 6 mm would reduce deflection by 8 times, to 0.5 mm — far more than needed, at twice the material.
- **Make it wider.** Deflection scales with 1/b. To halve it, double the width — twice the material for the same gain that 26% more thickness gave.
- **Make it shorter.** If the design allows, reducing the length by about 21% (to 0.79 of the original, since 0.79³ ≈ 0.5) also halves the deflection.
- **Change material.** A material twice as stiff halves deflection without changing shape, but may cost more or be harder to make.

The scaling relationship reveals something that is not obvious by intuition: for a bending part, **adding thickness is far more effective than adding width**. That is why shelves, beams and rulers resist bending best when they stand on edge, and why I-beams put most of their material far from the middle.

### Exploring constraints

The explorer below lets you change design parameters and see which constraints are satisfied. Try to find the feasible region, then look for the design inside it that best meets your preferences. Notice how some parameters have a dramatic effect and others barely matter.

> **Interactive:** Adjust the design parameters and watch which constraints pass or fail. Find a design that satisfies all of them, then try to improve it without breaking any. Try it at https://tactiverge.win/academy/lab/#constraints

### Comparing whole options: the decision matrix

Scaling helps you tune one design. But often you are choosing between quite different **concepts**. For the phone stand, suppose the team has three:

- **A:** a single folded sheet of thin metal
- **B:** a 3D-printed hinged stand
- **C:** flat wooden pieces that slot together

All three pass the hard constraints. Which is best? A **weighted decision matrix** structures the comparison:

1. List the criteria (the preferences) and give each a **weight** reflecting its importance. Weights here add to 1.
2. Score each option on each criterion, say from 1 (poor) to 5 (excellent).
3. Multiply each score by its weight and add up the results.

```
Criterion        Weight    A     B     C
Stability         0.30     4     3     5
Low cost          0.25     3     4     4
Ease of making    0.20     2     4     3
Portability       0.15     5     3     2
Appearance        0.10     3     4     3

Weighted total             3.40  3.55  3.70
```

For option A: 0.30·4 + 0.25·3 + 0.20·2 + 0.15·5 + 0.10·3 = 1.20 + 0.75 + 0.40 + 0.75 + 0.30 = 3.40. The others are computed the same way.

Option C wins — narrowly.

### Do not trust the matrix too much

A decision matrix looks objective because it produces numbers. But the weights and scores are human judgments, often rough ones. Before acting on the result, test how **sensitive** it is.

Suppose the team decides stability matters slightly less than they thought, and cost slightly more: stability 0.20, cost 0.35. Recomputing:

```
A: 0.20·4 + 0.35·3 + 0.20·2 + 0.15·5 + 0.10·3 = 3.30
B: 0.20·3 + 0.35·4 + 0.20·4 + 0.15·3 + 0.10·4 = 3.65
C: 0.20·5 + 0.35·4 + 0.20·3 + 0.15·2 + 0.10·3 = 3.60
```

Now B wins. A modest change in weights flipped the ranking. This does not mean the matrix is useless. It means **B and C are genuinely close**, and the decision should rest on something more solid: a quick prototype of each, a test of the real stability, or a conversation about which criterion truly matters most.

Used well, a decision matrix does three things. It makes the team say out loud what they value. It shows which options are clearly worse (A, here, loses under both weightings). And it reveals when a choice is too close to call — which is itself useful information.

> **Set the weights before you score.** It is easy — and tempting — to adjust weights until your favourite option wins. Agree on the criteria and weights *before* scoring the options, record them, and if you later change them, say so and say why. Reporting the sensitivity check alongside the result is part of an honest design review.

#### Project: Paper project: design a bag hook

Design a hook that clips onto a desk edge and holds a school bag.

1. Write a constraint list in the style of the phone-stand example: at least one functional requirement, four measurable constraints (including at least one safety constraint) and two preferences. Mark any numbers that are assumptions.
2. Sketch three different concepts.
3. Using the cantilever scaling relationships, explain how you would change the thickness of the hook's arm if your first estimate bent twice as much as allowed.
4. Build a weighted decision matrix for your three concepts, then change one weight by 0.1 and recompute. Does the winner change?

This project is designed to be done entirely on paper. If you choose to build a cardboard mock-up as well, see the safety note.

**Deliverables**

- A written constraint list with assumptions marked
- Three labelled concept sketches
- A short scaling calculation for the hook arm
- A decision matrix with a sensitivity check and a one-paragraph recommendation

**Safety (adult supervision required):** If you build an optional cardboard or paper mock-up, use scissors rather than a craft knife where possible. Any use of a craft knife, hot-glue gun or other cutting or heating tool requires adult supervision: cut on a cutting mat, away from your body, keep fingers clear of the blade path, and let hot glue cool before touching it. Do not test a mock-up with a heavy bag where it could fall on someone's feet.

#### Check your understanding

1. A cantilever's length is doubled and nothing else changes. How does its tip deflection change?
   A) It doubles
   B) It halves
   C) It becomes 8 times larger
   D) It stays the same

2. To make a bending strip stiffer using the least extra material, which change is usually most effective?
   A) Increase its width
   B) Increase its thickness in the bending direction
   C) Make it longer
   D) Paint it

3. Option X scores 4 on a criterion with weight 0.25 and 2 on a criterion with weight 0.75. What is its weighted total?
   A) 2.5
   B) 3.0
   C) 6.0
   D) 1.5

4. A small change in weights flips the winner of a decision matrix. What is the best interpretation?
   A) The matrix is broken and should be thrown away
   B) Always choose the option that won first
   C) Keep changing weights until the result feels right
   D) The top options are close; use further evidence such as a prototype or test to decide

**Go further:**

- MIT OpenCourseWare — 2.007 Design and Manufacturing I: https://ocw.mit.edu/courses/2-007-design-and-manufacturing-i-spring-2009/ — A university course on designing and building machines, with notes on mechanisms, materials and the design process.


## 2.3 Budgets: tracking cost, mass and power with margins

*How engineers keep track of quantities that add up across a whole design, such as mass, cost and power, and why every budget needs contingency and margin to survive contact with reality.* (about 30 min)

### Why budgets matter

Imagine a small wheeled robot that must weigh no more than 1.1 kg so that its motors can climb a ramp. Nobody designs "the mass" of a robot directly. One person picks the motors, another designs the chassis, someone else adds a camera, and the wiring appears at the end. Each choice seems small, but they all add up. Many projects discover at the very end that the finished machine is too heavy, too expensive or drains its battery too fast, and by then every part is already made.

A **budget** is the tool that prevents this. In the previous lessons you wrote constraints such as "must weigh no more than 1.1 kg". Some constraints apply to a single part, but others apply to the *sum* of many parts. Mass, cost, power, volume, and even time are all like this. A budget splits such a total into pieces, tracks each piece as the design develops, and warns you early when the total is heading over the limit.

### The parts of a budget

A good budget is a simple list with a few honest columns:

- **Item**: each part or subsystem that contributes to the total.
- **Current best estimate**: your best number *today*. Early on it is a guess; later it comes from a datasheet; finally it comes from weighing or measuring the real part.
- **Source or maturity**: where the number came from. A weighed part is far more trustworthy than a guess.
- **Contingency**: an extra allowance added to each item because estimates usually grow as a design becomes more detailed. Less certain numbers get more contingency.
- **Limit**: the constraint the total must stay below.

The difference between the limit and the predicted total (estimates plus contingency) is the **margin**. Contingency covers growth you *expect* in things you already know about. Margin covers the things you have not thought of yet: a forgotten bracket, an extra sensor someone asks for, a heavier part when the first choice goes out of stock.

Different organisations use the words slightly differently, so always say what you mean. In this course, *contingency* is per item and *margin* is what is left over at the top.

### Worked example: a mass budget

The robot below is a made-up example for illustration. The contingency fractions follow a simple policy: 5% for parts that have been weighed, 10% for datasheet values, 20% for early estimates and 30% for rough guesses. Real teams choose their own policy, but this style is common.

```python
# Mass budget: (name, current best estimate in grams, contingency fraction)
items = [
    ("chassis plate", 180, 0.20),   # early estimate
    ("drive motors x2", 190, 0.10), # datasheet value
    ("wheels x2", 60, 0.05),        # weighed
    ("battery pack", 210, 0.10),    # datasheet value
    ("controller board", 25, 0.05), # weighed
    ("camera", 40, 0.10),           # datasheet value
    ("gripper", 120, 0.20),         # early estimate
    ("wiring and fasteners", 60, 0.30),  # rough guess
]
limit = 1100  # grams, the hard constraint

estimate = sum(mass for _, mass, _ in items)
contingency = sum(mass * frac for _, mass, frac in items)
predicted = estimate + contingency
margin = limit - predicted

print(f"Current best estimate: {estimate} g")
print(f"Contingency:           {contingency:.1f} g")
print(f"Predicted mass:        {predicted:.1f} g")
print(f"Margin to limit:       {margin:.1f} g ({100 * margin / limit:.1f}% of limit)")
```

Running it prints:

```
Current best estimate: 885 g
Contingency:           126.2 g
Predicted mass:        1011.2 g
Margin to limit:       88.8 g (8.1% of limit)
```

The robot currently looks comfortably light at 885 g. But once realistic growth is included, it is predicted at about 1011 g, and only about 89 g (8%) of margin remains. That is less than the mass of the gripper. If someone proposes adding a second camera and a bigger battery, the budget tells you immediately that something else must lose mass first.

Notice which items carry the most risk: the chassis and gripper are both large *and* uncertain. That is where the next round of design effort should go, for example by weighing a prototype chassis to turn a guess into a measurement.

### Power budgets: average and peak

A power budget works the same way, with one extra twist: you must track both **average** power, which sets how long the battery lasts, and **peak** power, which sets the largest current the battery, wires and electronics must deliver at once.

Here is a made-up power budget for the same robot, running from a 7.4 V pack rated at 2.0 Ah:

- Controller board: 0.5 W, steady
- Camera: 1.5 W, steady
- Sensors: 0.3 W, steady
- Two drive motors: 4.0 W average in total while driving, but up to 18 W in total when starting or climbing

Average total: 0.5 + 1.5 + 0.3 + 4.0 = **6.3 W**.

Stored energy is voltage × capacity: 7.4 V × 2.0 Ah = **14.8 Wh** (watt-hours). It is wise not to plan on using every last bit, so suppose only 80% is usable: 0.8 × 14.8 = 11.84 Wh.

Run time ≈ usable energy ÷ average power = 11.84 ÷ 6.3 ≈ **1.88 hours**.

Now add 20% contingency to the power estimate, because motors usually work harder in real use than on paper: 6.3 × 1.2 = 7.56 W, and 11.84 ÷ 7.56 ≈ **1.57 hours**, about 94 minutes. If the requirement is "run for at least 90 minutes", the design passes, but only just. That is a warning, not a celebration.

For the peak, add the largest values that can happen together: 18 + 0.5 + 1.5 + 0.3 = 20.3 W. At 7.4 V that is a current of 20.3 ÷ 7.4 ≈ **2.7 A**. Every wire, connector, fuse and the battery itself must be rated for at least this, with margin.

### Cost budgets

Cost budgets follow the same pattern: list every part, record where each price came from, and add contingency. Remember the costs that hide: shipping, spare parts for the ones you will break, the fasteners and glue, and replacing a part that turns out to be wrong. A useful habit is to keep a small "unknowns" line in the budget from day one, so there is somewhere for surprises to go.

### Top-down and bottom-up

There are two ways to fill a budget, and good teams use both.

- **Top-down allocation**: start with the limit and give each subsystem a share. "The gripper team has 150 g." This lets people work in parallel, each knowing their target.
- **Bottom-up estimation**: add up what the parts actually weigh or cost. This tells you whether the allocations are realistic.

When the two disagree, you have found a problem early, while it is still cheap to fix. You might move mass from one subsystem's allocation to another, choose a lighter part, or go back and renegotiate the constraint itself.

### Keeping a budget alive

A budget is only useful if it is updated. Each time a guess becomes a datasheet value or a real measurement, replace the number, lower its contingency and note the date. Track the margin over time: if it shrinks week after week, the design is in trouble long before it breaks the limit. And never quietly reduce contingency just to make the total look good; that hides risk rather than removing it.

### Recap

- Budgets track quantities that add up across a design: mass, cost, power, volume and time.
- Each item has a best estimate, a source and a contingency that reflects how uncertain it is.
- Margin is what is left between the predicted total and the limit; it protects you from the unknown.
- Power budgets need both average power (run time) and peak power (current ratings).
- Update budgets as estimates become measurements, and watch the margin over time.

> **Do not hide the risk.** It is tempting to trim contingency, or drop an item that is "probably fine", so the budget shows a healthy margin before a review. Resist it. A budget exists to show the truth early. If the margin is thin or negative, say so clearly and propose what to change. A team that reports a problem early can fix it; a team that hides it will meet it at the worst possible moment.

#### Project: Paper project: budget a small household design

Choose a simple object you could design, such as a desk organiser, a lunchbox with dividers or a small shelf. Assume a mass limit and a cost limit that sound reasonable to you, and write them as measurable constraints.

1. List at least six parts or materials.
2. For each, write a current best estimate of mass and cost, its source (guess, product listing, or weighed on a kitchen scale) and a contingency fraction using the policy from this lesson.
3. Calculate the predicted totals and the margin for both mass and cost. You may use a calculator, a spreadsheet or the Python example above, changed to suit your items.
4. Weigh two of the items on a kitchen scale (or similar household objects as stand-ins) and update the budget. Did the margin grow or shrink?
5. Write two sentences saying which item carries the most risk and what you would do about it.

**Deliverables**

- A budget list with estimates, sources and contingency for mass and cost
- Calculated predicted totals and margins, before and after weighing
- A short note identifying the riskiest item and a plan to reduce that risk

#### Check your understanding

1. Why do budgets add contingency to each item's current best estimate?
   A) To make the totals look larger and more impressive
   B) Because estimates usually grow as a design becomes more detailed, especially uncertain ones
   C) Because suppliers always charge more than they advertise
   D) So that the limit can be ignored

2. A design has a 2.0 kg limit. Its estimates add up to 1.6 kg and its contingency to 0.2 kg. What is the margin?
   A) 0.4 kg
   B) 0.6 kg
   C) 0.2 kg
   D) 1.8 kg

3. A device uses 4 W on average and has 10 Wh of usable energy. Roughly how long will it run?
   A) 40 hours
   B) 0.4 hours
   C) 14 hours
   D) 2.5 hours

4. Which quantity in a power budget sets the current rating that wires and connectors need?
   A) The peak power when the most demanding loads happen together
   B) The average power over a full run
   C) The battery's mass
   D) The power used when the device is switched off

5. Over four weeks a project's mass margin shrinks from 15% to 3%, though it is still under the limit. What is the best response?
   A) Nothing, because it is still under the limit
   B) Delete the contingency so the margin looks bigger
   C) Treat the trend as a warning: find where mass is growing and act before the limit is broken
   D) Raise the limit without telling anyone

**Go further:**

- NASA Systems Engineering Handbook: https://www.nasa.gov/reference/systems-engineering-handbook/ — A free, detailed handbook used in real engineering projects. Its sections on technical planning discuss tracking resources such as mass and power.


## 2.4 Writing good requirements

*How to write requirements that are testable, unambiguous and prioritised, so a whole team agrees on what the design must do and how anyone can check it.* (about 30 min)

### A requirement is a promise you can check

In the first lesson of this module you separated requirements, constraints and preferences, and learned to make them measurable. This lesson goes further: how to write a whole set of requirements that a team can actually build and test against.

Why does wording matter so much? Because requirements are read by many people at different times. The person who designs the gripper, the person who tests it, and the person who fixes it a year later will each read the same sentence. If it can mean two things, sooner or later two people will read it two different ways. Most expensive design mistakes are not calculation errors; they are misunderstandings about what was wanted.

### Four qualities of a good requirement

### 1. Testable

Every requirement should come with an obvious way to check it. If you cannot describe the test, the requirement is not finished. Engineers usually verify a requirement in one of four ways:

- **Test**: measure it under controlled conditions ("lift 200 g, time how long it holds").
- **Analysis**: calculate it ("the bracket's stress is below the material's strength").
- **Inspection**: look at or measure the finished item ("no exposed edges sharper than a 0.5 mm radius").
- **Demonstration**: show it working without detailed measurement ("a user can open the lid with one hand").

Writing the verification method next to each requirement is a quick way to catch ones that cannot be checked.

### 2. Unambiguous

Watch out for words that feel precise but are not: *fast, strong, light, easy, user-friendly, robust, sufficient, minimal, approximately, as much as possible*. Replace each with a number and a condition. Also beware of "and/or", which hides two different requirements, and of pronouns like "it" when more than one part could be meant.

### 3. One idea per requirement

"The gripper shall hold a 200 g cup and shall be quiet and cheap" mixes three requirements. If it passes one and fails another, has it passed? Split it so each line can pass or fail on its own.

### 4. Prioritised

Not every requirement is equally important, and when time or money runs short you need to know what to protect. A simple scheme sorts requirements into **must** (the design is unacceptable without it), **should** (important but could be dropped if necessary) and **could** (nice to have). Many teams also use the words *shall* for mandatory requirements and *should* for desirable ones, so the strength of each statement is clear from its wording.

### Say what, not how

A requirement should describe the need, not the solution. "The gripper shall use two rubber pads" is a design choice disguised as a requirement; it rules out every other solution before anyone has thought about them. Ask *why* you want rubber pads. If the real need is "the gripper shall not let a 200 g cup slip by more than 5 mm while the arm moves", write that, and leave the designers free to meet it with rubber, foam, suction or something nobody has thought of yet.

There are exceptions. If the gripper must fit an existing robot, "shall mount using the arm's four M3 holes on a 30 mm square" is a genuine constraint, because the interface already exists.

### Rationale and traceability

Good requirement lists give each line an **ID**, a short **rationale** and its **verification method**. The ID lets people refer to requirements in test reports and design reviews ("the jaw redesign was driven by R4"). The rationale records *why* the number was chosen. When someone later asks whether the 200 g limit can be relaxed, the rationale tells them that it came from the heaviest object in the task list, not from an arbitrary choice. Being able to follow a line from a requirement to the design feature that meets it, and to the test that checks it, is called **traceability**.

### Worked example: rewriting vague requirements

Suppose a team building a classroom pick-and-place robot starts with this list:

- The gripper should be strong.
- It must be fast.
- The gripper should handle lots of objects and be safe.
- Use a servo for the jaw.

Here is a rewritten version, with priority, rationale and verification for each line:

```
R1 (must)   The gripper shall hold objects of mass up to 200 g
            for at least 30 s without dropping them.
            Rationale: heaviest item on the task list is 180 g.
            Verify: test, 10 trials with a 200 g test mass.

R2 (must)   The gripper shall grasp objects from 20 mm to 60 mm wide.
            Rationale: range of widths on the task list.
            Verify: test with 20 mm and 60 mm test blocks.

R3 (must)   The object shall not slip more than 5 mm in the jaws while
            the arm moves at up to 0.2 m/s.
            Verify: test, mark object and measure slip after motion.

R4 (should) The gripper shall close fully within 1.0 s of the command.
            Verify: test, timed with a video recording.

R5 (must)   The jaw closing force shall not exceed 15 N.
            Rationale: limits pinch injury and damage to soft objects.
            Verify: analysis, confirmed by test with a kitchen scale.

R6 (could)  The total gripper mass should not exceed 150 g.
            Rationale: allocation from the robot mass budget.
            Verify: inspection, weigh the finished gripper.
```

Look at what changed. "Strong" became a mass, a time and a pass condition. "Fast" became a closing time. "Lots of objects" became a size range. "Safe" became a force limit with a reason. "Use a servo" disappeared, because it was a solution, not a need. If the team later decides a servo is best, that will appear in the design, linked back to R4 and R5.

Notice too that R3 and R5 pull against each other: a harder squeeze reduces slip but increases pinch risk. Writing both down makes the trade-off visible, so it can be handled deliberately, as in the trade-offs lesson.

### Common traps

- **Gold-plating**: adding requirements nobody actually needs, which raises cost and effort.
- **Missing conditions**: "holds 200 g" — while still, or while moving? Wet or dry?
- **Untestable negatives**: "shall never fail" cannot be verified. Specify a number of cycles or hours instead.
- **Requirements that change silently**: if a requirement changes, update its ID's history and tell everyone. A requirement list is a living document.

### Recap

- Good requirements are testable, unambiguous, single-idea and prioritised.
- Write the verification method (test, analysis, inspection, demonstration) next to each one.
- Describe the need, not the solution, unless the "how" is a genuine interface constraint.
- Give each requirement an ID and rationale, so decisions can be traced and revisited.

> **Agree on how to test before you build.** Deciding the test method while writing a requirement is cheap. Deciding it after the design is finished invites arguments, and makes it tempting to choose a test the design happens to pass. Fixing the verification method in advance is the engineering version of setting your success criteria before collecting data.

#### Project: Paper project: rewrite a requirement list

Here is a vague requirement list for a reusable water bottle:

- It should be big.
- It shouldn't leak.
- It must be easy to clean and carry.
- Make it from stainless steel.
- It should be cheap and look nice.

1. Rewrite it as at least six numbered requirements. Each must have a priority (must, should or could), a short rationale and a verification method.
2. Mark any numbers that are assumptions you would need to check, for example by measuring a bottle you own with a ruler and a measuring jug.
3. Identify one statement in the original list that is a solution rather than a need, and rewrite it as a need.
4. Find two of your requirements that pull against each other and write one sentence on how you would handle the trade-off.

**Deliverables**

- A numbered requirement list with priority, rationale and verification method for each item
- Assumptions clearly marked
- One rewritten solution-as-requirement, and a short note on one trade-off

#### Check your understanding

1. Which requirement is the most testable?
   A) The lid shall be easy to open.
   B) The lid shall be robust.
   C) The lid shall open with a force of no more than 10 N applied at its tab.
   D) The lid shall open as easily as possible.

2. "The robot shall use a camera to find the box." What is the main problem with this requirement?
   A) It states a solution rather than the need, ruling out other ways to find the box
   B) It is too short
   C) Cameras are not allowed on robots
   D) It uses the word "shall"

3. Why split "The arm shall be light and reach 40 cm" into two requirements?
   A) Shorter requirements are always better
   B) So each can pass or fail on its own, making test results unambiguous
   C) Because reach is not a real requirement
   D) To make the list look longer

4. What is the main purpose of recording a rationale with each requirement?
   A) To satisfy a teacher
   B) To make the document longer
   C) To prove the requirement can never change
   D) To record why the number was chosen, so later decisions to change it are informed

5. Weighing the finished part on a scale to check a mass requirement is an example of which verification method?
   A) Analysis
   B) Inspection
   C) Demonstration
   D) Simulation only

**Go further:**

- Wikipedia — Requirement: https://en.wikipedia.org/wiki/Requirement — An overview of requirements in engineering and product development, including characteristics of good requirements.


## 2.5 Safety factors and design margins

*Why engineers design parts to be stronger than the loads they expect, how to calculate a factor of safety and a margin of safety, and what a safety factor can and cannot protect against.* (about 30 min)

### Why design for more than you expect?

A hook rated for exactly the weight of your bag will eventually fail. Not because the calculation was wrong, but because the real world is never exactly like the calculation. The bag is sometimes heavier. It is dropped onto the hook rather than placed gently. The hook was made on a day when the material was slightly weaker. A small crack formed after a thousand uses. Every one of these is an **uncertainty**, and engineers cover uncertainty with **safety factors** and **design margins**.

In the budget lesson, margin meant room left under a limit. Here the idea is similar but applied to strength: how much more load a part could take before failing, compared with the load it actually sees.

### Factor of safety

The **factor of safety** (FoS, also called the safety factor) compares what a part can withstand with what it is asked to withstand:

```
factor of safety = capacity / load
```

Capacity and load must be the same kind of quantity, in the same units: a force in newtons, a stress in pascals, or a moment in newton-metres. A factor of 1 means the part is exactly at its limit. A factor of 3 means it could take three times the load before failing.

Capacity can mean different things depending on what "failure" means. For a metal bracket it might be the load that causes permanent bending (yielding). For a rope it is the breaking load. For a shelf it might be the load that causes too much sag, even though nothing breaks. Always say which failure the factor refers to.

### Where the uncertainty comes from

A safety factor has to cover several kinds of doubt at once:

- **Loads**: you may not know the largest load. People lean on things, objects are dropped, robots crash.
- **Dynamic effects**: a load that is applied suddenly can produce a much larger force than the same load placed gently. Jerking a bag onto a hook is a classic example.
- **Material variation**: two samples of the "same" material are never identical. 3D-printed parts in particular vary a great deal with print settings and are often much weaker between layers than along them.
- **Manufacturing**: dimensions, holes, glue joints and welds are never perfect.
- **Models**: the equations you used are simplifications.
- **Ageing**: wear, corrosion, sunlight, moisture and repeated loading (fatigue) weaken parts over time.

### Choosing a factor

How large a factor should be depends on how much uncertainty there is and how bad a failure would be. Textbooks give rough guidance along these lines:

- Around **1.5–2** when loads and materials are well known and the design is checked carefully by analysis and testing.
- Around **2–3** for ordinary materials and reasonably known loads.
- **3–4 or more** when loads or materials are uncertain, or when failure could injure someone.

Aircraft structures are a well-known example of a relatively low factor: they are commonly designed so that they can carry 1.5 times the largest loads expected in service. That works only because aircraft materials, loads and designs are analysed and tested exhaustively, and because every extra kilogram of structure costs fuel for the whole life of the aircraft. Equipment for lifting things above people, such as cranes and lifting slings, uses much larger factors, set by standards and law.

In other words, a high safety factor is not automatically "good". It costs mass, money and material. A low factor is not automatically "dangerous" if it is backed by strong evidence. The factor should match the uncertainty.

### Margin of safety

A related number, the **margin of safety**, tells you how much spare capacity you have *beyond* a required factor:

```
margin of safety = capacity / (load × required factor of safety) − 1
```

A positive margin means the design meets its required factor with room to spare. Zero means it just meets it. Negative means it fails the requirement, even if it has not actually broken. Some books define margin of safety more simply as FoS − 1; always check which definition is being used.

### Worked example: a bag hook

The test numbers below are made up for illustration.

A desk hook must hold a school bag of up to 4 kg. The team requires a factor of safety of 3, and allows for a dynamic factor of 2 because bags are often dropped onto the hook.

- Static load: weight = mass × g = 4 kg × 9.81 m/s² = **39.24 N**.
- Design load including the dynamic factor: 2 × 39.24 = **78.48 N**.
- Required capacity: 3 × 78.48 = **235.44 N**, about 235 N.

The team prints five identical hooks and pulls each one until it breaks. The breaking loads range from 260 N to 330 N, averaging about 300 N.

Which capacity should they use? Not the average. Roughly half of all hooks are weaker than the average. A cautious choice is the **weakest result**, 260 N:

- Factor of safety = 260 ÷ 78.48 ≈ **3.31**
- Margin of safety = 260 ÷ (78.48 × 3) − 1 ≈ **0.10**, or about 10%

The hook passes, with a small margin. But five tests is a small sample; a sixth hook might be weaker still. If the team changed print settings, material or orientation, they would need to test again, because the old results no longer describe the new part.

### What a safety factor does not cover

A factor of safety protects against *expected* uncertainty. It does not protect against:

- **Wrong failure modes.** A part with a big strength factor can still fail by buckling, fatigue, wear, loosening or overheating if you never checked those.
- **Mistakes.** A wrong unit, a misread drawing or a part installed upside down is not covered by any factor.
- **Misuse far beyond the design.** A desk hook is not designed to hold a person.
- **Stacked guesses.** Multiplying several generous factors together "to be safe" can make a design absurdly heavy without making it much safer. It is better to reduce uncertainty, by measuring loads and testing parts, than to pile on factors.

### Recap

- Factor of safety = capacity ÷ load, for a clearly stated failure mode.
- Margin of safety measures spare capacity beyond a required factor; negative means the design fails its requirement.
- Larger uncertainty and worse consequences call for larger factors, but extra strength always costs something.
- Use conservative capacity values, such as the weakest test result, not the average.
- Safety factors do not protect against mistakes or failure modes nobody checked.

> **Testing to failure is a hazard in itself.** Breaking things on purpose releases energy suddenly. Parts can snap and fly, and weights can drop. Any load test beyond light paper-and-coin experiments needs adult supervision, eye protection, a clear area, and weights that cannot fall on feet or hands. Never stand under or lean over a load being tested, and never test anything that a person will hang from or stand on.

#### Project: Household experiment: the factor of safety of a paper strip

Find the capacity of a paper strip and use it to decide a safe working load.

1. Cut five identical strips of printer paper, each 2 cm wide and about 20 cm long, using scissors.
2. Tape one end of a strip firmly to the edge of a sturdy table and tape a small bag or plastic cup to the other end, so it hangs just above a cushion on the floor.
3. Slowly add coins or small identical objects (for example, dry pasta or marbles) to the cup until the strip tears. Weigh the cup and its contents on a kitchen scale. Repeat for all five strips.
4. Convert each mass to a force using F = m × g with g = 9.81 m/s². Record the lowest, highest and average breaking force.
5. Using the lowest value and a required factor of safety of 3, calculate the largest load you would allow on a single strip. Then calculate the margin of safety if you hung 100 g on one strip.
6. Write a short paragraph on what might make real strips weaker than your test strips (humidity, a small nick at the edge, sudden loading).

**Deliverables**

- A table-style list of five breaking masses and forces
- Lowest, highest and average capacity
- A safe working load with factor of safety 3, and the margin of safety for a 100 g load
- A paragraph on sources of uncertainty

**Safety (adult supervision required):** Keep loads small (well under 2 kg) and let the cup fall onto a cushion, not onto feet or the floor. Use scissors, not a craft knife; if you choose to use a craft knife, an adult must supervise and you must cut on a cutting mat with fingers clear of the blade. Keep marbles and coins away from small children.

#### Check your understanding

1. A rope breaks at 600 N and is used to hold a 200 N load. What is its factor of safety?
   A) 0.33
   B) 400
   C) 3
   D) 800

2. A part has a capacity of 900 N, a load of 250 N and a required factor of safety of 4. What is its margin of safety?
   A) −0.10, so it fails the requirement
   B) +0.10, so it passes
   C) 2.6
   D) 0, exactly at the requirement

3. Five test samples break at 210, 240, 250, 260 and 290 N. Which value is the most cautious choice for capacity?
   A) 250 N, the average
   B) 290 N, the strongest
   C) 210 N, the weakest
   D) 1250 N, the total

4. Why might an aircraft use a lower factor of safety than a playground swing chain?
   A) Aircraft never carry people
   B) Aircraft loads and materials are analysed and tested exhaustively, and every extra kilogram has a large cost
   C) Safety factors do not apply to aircraft
   D) Swings are heavier than aircraft

5. Which of these does a large strength safety factor NOT protect against?
   A) A load that is a little larger than expected
   B) Small variations in material strength
   C) Slight manufacturing imperfections
   D) A mistake in units that makes the real load 1000 times bigger than calculated

**Go further:**

- Wikipedia — Factor of safety: https://en.wikipedia.org/wiki/Factor_of_safety — Definitions of factor of safety and margin of safety, with typical values used in different industries.


## 2.6 Design for manufacture and availability

*How to design parts that can actually be made, assembled and sourced: standard parts, features that suit the process, sensible tolerances and supply chains that do not leave you waiting.* (about 30 min)

### A design you cannot make is not a design

It is easy to draw something in CAD that is difficult or impossible to make. A perfectly sharp internal corner, a hole that no drill can reach, a 0.01 mm tolerance on a part cut with a hand saw, a motor that the only supplier stopped making last year. The drawing looks finished, but the project is stuck.

**Design for manufacture** (often shortened to DFM) means shaping the design around how it will actually be made, assembled and bought. It is one more source of constraints, the "manufacturing" category from the first lesson of this module, but it is worth a lesson of its own because it so often decides whether a project ships on time.

### Use common parts

The cheapest, fastest and most reliable part is usually one you do not have to design at all.

- **Standard fasteners.** Metric screws such as M3, M4 and M5 in common lengths are cheap and available almost everywhere. Using one or two sizes throughout a design means fewer tools and fewer things to run out of.
- **Standard stock.** Sheet materials, rods and tubes come in standard thicknesses and diameters. Designing a plate to be 3.2 mm thick when 3 mm sheet is what everyone sells forces someone to machine every plate.
- **Standard components.** Bearings, springs, gears, belts and shaft couplings come in catalogue sizes. Designing around a catalogue size is almost always better than inventing a custom one.

A good habit is to ask, for every custom part: *is there a standard part that does this job?*

### Fewer parts, easier assembly

Every part must be designed, made or bought, stored, counted and assembled, and every joint between parts is a place where something can loosen or misalign. Reducing **part count** is one of the most effective ways to make a design cheaper and more reliable. Ask, for each part: does it move relative to its neighbours? Must it be a different material? Must it come apart for maintenance? If the answer to all three is no, it could probably be combined with a neighbour.

**Design for assembly** adds a few more habits:

- Make parts **self-locating**, with tabs, pins or slots so they can only go together in the correct position.
- Make wrong assembly impossible where you can. A part that is nearly symmetrical but must go one way round is an invitation to install it backwards; either make it fully symmetrical or make it obviously asymmetrical. This error-proofing idea is often called *poka-yoke*, a Japanese term from manufacturing.
- Assemble from **one direction** where possible, so the assembler does not keep turning the part over.
- Leave room for **tools and fingers**: a screw that cannot be reached with a screwdriver might as well not exist.

### Match the features to the process

Each manufacturing process has things it does easily and things it does badly. Some examples:

- **3D printing (FDM)**: steep overhangs and bridges need support material; holes often print slightly undersized; parts are weaker between layers. Orient parts so the main load runs along the layers, not across them.
- **Laser cutting**: only makes flat parts from sheet, and the beam removes a thin strip of material, called the **kerf**, which makes slots slightly wider than drawn. Slot-together designs must allow for it.
- **Milling and drilling**: cutting tools are round, so internal corners always have a radius at least as large as the tool. Deep, narrow pockets are slow and difficult.
- **Bending sheet metal**: needs a minimum bend radius, and holes too close to a bend get distorted.
- **Hand tools**: precision is limited, so the design should tolerate small errors.

The best way to learn a process's limits is to ask the people who run it, before the design is finished.

### Tolerances cost money

No part is made exactly to size. A **tolerance** states how far a dimension may vary, such as 30.0 ± 0.1 mm. Tighter tolerances need better machines, more careful work and more inspection, so they cost more. The rule is simple: **tolerance tightly only what matters**, such as where parts fit together or move against each other, and leave everything else loose.

When several parts stack up, their variations add. This is called **tolerance stack-up**.

### Worked example: a stack-up

Three plates, each 10.00 ± 0.05 mm thick, must fit into a slot 30.40 ± 0.10 mm wide. Is there always a gap?

Nominal gap: 30.40 − 3 × 10.00 = **0.40 mm**.

**Worst case**: assume everything is at the unluckiest end of its tolerance.

- Smallest gap: smallest slot minus thickest stack = 30.30 − 30.15 = **0.15 mm**.
- Largest gap: largest slot minus thinnest stack = 30.50 − 29.85 = **0.65 mm**.

So the plates always fit, and the gap varies between 0.15 and 0.65 mm. If the design needed the gap to be under 0.5 mm, worst-case analysis says it might fail.

Worst case is cautious, because it is unlikely that every part is at its extreme at once. A common statistical estimate, the **root sum of squares** (RSS), combines independent tolerances like this:

```
RSS tolerance = √(0.10² + 0.05² + 0.05² + 0.05²) = √0.0175 ≈ 0.13 mm
```

That predicts a typical gap of 0.40 ± 0.13 mm, roughly 0.27 to 0.53 mm. RSS is only valid when the variations are independent and random, and when you are making many parts; for a one-off or safety-critical fit, use worst case.

### Availability and sourcing

A part is only useful if you can get it, when you need it, at a price you can afford. Before committing to a component, check:

- **Is it in stock**, and how long is the lead time if not?
- **Is there more than one supplier?** A part available from only one source is a risk. If that source runs out, raises prices or stops making it, the design stops too.
- **Is there an equivalent?** Prefer parts with interchangeable alternatives, such as standard sizes made by several manufacturers.
- **Will it still exist next year?** Very new or very old parts are more likely to disappear.
- **What does it really cost delivered?** Shipping and minimum order quantities can double the price of a small part.

Record the supplier and an alternative in your bill of materials, so anyone rebuilding the design can find the parts.

### Recap

- Prefer standard fasteners, stock sizes and catalogue components to custom parts.
- Reduce part count and make assembly self-locating, error-proof and accessible.
- Shape features to suit the process: overhangs for printing, kerf for laser cutting, corner radii for milling.
- Tolerance tightly only what matters, and check stack-ups with worst-case or RSS analysis.
- Check stock, lead time and alternative suppliers before committing to a part.

> **Talk to the maker early.** Whether it is a school technician, a print-farm operator or a machine shop, the person who will make your part knows its limits better than any rulebook. Showing them a rough sketch early, and asking "what would make this easier to make?", often saves more time and money than any amount of clever design later.

#### Project: Paper project: a manufacturability review

Pick an everyday product with several parts that you can examine without taking it apart, such as a stapler, a clothes peg, a desk lamp or a toy.

1. Count its visible parts and list them. For each, guess the material and how it was made (moulded, stamped from sheet, cut, machined, bought as a standard part).
2. Identify every standard part you can see, such as screws, springs or rivets.
3. Suggest two parts that could be combined, and explain what that would save and what it might cost.
4. Sketch one feature you think was shaped to suit its process (for example, a draft angle on a moulded part or a rounded corner).
5. Do a worst-case and RSS stack-up for this case: four spacers of 5.00 ± 0.10 mm in a slot of 20.50 ± 0.20 mm. Find the nominal, smallest and largest gaps.

Do not dismantle anything with springs or sharp parts; this is an observation exercise.

**Deliverables**

- A labelled parts list with guessed materials and processes
- Two part-combination suggestions with pros and cons
- One annotated sketch of a process-driven feature
- Worst-case and RSS stack-up calculations

**Safety (adult supervision required):** This is an observation exercise: do not take apart products with springs, blades, batteries or mains wiring. If you want to examine inside a product, an adult must supervise, the product must be unplugged and any batteries removed, and you should wear eye protection when releasing anything spring-loaded.

#### Check your understanding

1. Why is it usually better to design a plate around 3 mm sheet than to specify 3.2 mm?
   A) 3.2 mm is not a real thickness
   B) 3 mm is a common stock size, so the part can be cut straight from available sheet without extra machining
   C) Thinner parts are always better
   D) Tolerances do not apply to 3 mm sheet

2. Two parts, each 8.0 ± 0.2 mm, sit in a slot 16.5 ± 0.1 mm wide. What is the worst-case smallest gap?
   A) 0.5 mm
   B) 0.3 mm
   C) 0.0 mm
   D) −0.1 mm

3. A milled pocket is drawn with perfectly sharp internal corners. What is the problem?
   A) Milling tools are round, so internal corners will have a radius at least as large as the tool
   B) Sharp corners are always forbidden by law
   C) Milling can only make external corners
   D) There is no problem

4. Which part choice carries the most supply risk?
   A) A standard M3 screw sold by many suppliers
   B) A common bearing size made by several manufacturers
   C) Standard 3 mm plywood sheet
   D) A special sensor available from only one small supplier with a long lead time

**Go further:**

- Wikipedia — Design for manufacturability: https://en.wikipedia.org/wiki/Design_for_manufacturability — An overview of DFM principles for different manufacturing processes.
- Wikipedia — Tolerance analysis: https://en.wikipedia.org/wiki/Tolerance_analysis — Worst-case and statistical (root-sum-square) approaches to tolerance stack-ups.


---

# Module 3: Mechanical systems

The building blocks of machines — levers, gears, linkages, bearings and fasteners — and how they transmit force and motion.

**Objectives**

- Calculate mechanical advantage for levers and simple gear trains.
- Explain the trade-off between torque and speed in a gear reduction.
- Describe how common linkages convert rotation into other motions.
- Choose appropriate fasteners and bearings for a simple assembly.


## 3.1 Forces, moments and free-body diagrams

*What forces and moments are, how the conditions for equilibrium let you calculate unknown forces, and how to draw a free-body diagram, the single most useful sketch in mechanical engineering.* (about 35 min)

### Why start with forces?

Before you can choose a motor for a robot arm, size a bracket or check that a shelf will hold, you need to know what forces act on each part. Every later lesson in this module, on levers, gears, linkages, stress and friction, depends on this one skill: working out the forces and moments on a part that is not moving, or moving steadily. Engineers call this **statics**.

### Forces are vectors

A **force** is a push or a pull. It has a size (magnitude), measured in **newtons** (N), and a direction. Quantities with both size and direction are called **vectors**, and we draw them as arrows. One newton is roughly the weight of a small apple.

The most common force is **weight**, the pull of gravity on a mass:

```
W = m × g        with g ≈ 9.81 m/s² near Earth's surface
```

A 1 kg bag of flour weighs about 9.81 N. Mass (kg) and weight (N) are different things: your mass is the same on the Moon, but your weight is about a sixth as much.

A force at an angle can be split into **components**. A force F at angle θ above the horizontal has a horizontal component F·cos θ and a vertical component F·sin θ. For example, a 50 N pull at 30° above horizontal has components 50 × cos 30° ≈ 43.3 N horizontally and 50 × sin 30° = 25 N vertically.

### Moments: the turning effect of a force

A force can also make something rotate. Push a door near its handle and it swings easily; push near the hinge and it barely moves. The turning effect is called a **moment** (or **torque** when it turns a shaft):

```
M = F × d
```

where d is the **perpendicular distance** from the pivot to the line along which the force acts. Moments are measured in newton-metres (N·m). Each moment turns either clockwise or anticlockwise; we pick one direction as positive (here, anticlockwise) and keep to it.

### Equilibrium

If a part is not accelerating, the forces and moments on it must balance. In two dimensions this gives three equations:

```
ΣFx = 0      (horizontal forces balance)
ΣFy = 0      (vertical forces balance)
ΣM  = 0      (moments about any point balance)
```

Σ means "the sum of". Three equations means you can solve for up to three unknown forces on a flat (planar) problem. This is what makes statics so powerful: from the forces you know, you can calculate the ones you do not.

### Free-body diagrams

A **free-body diagram** (FBD) is a simple sketch of one part, cut free from everything around it, with every force and moment that acts on it drawn as an arrow. The steps:

1. **Choose the body.** Decide exactly which part (or group of parts) you are analysing.
2. **Isolate it.** Draw it on its own, as a simple outline.
3. **Add known forces.** Weights act at the centre of mass. Applied loads act where they are applied.
4. **Replace every contact with forces.** Wherever the body touched something else, draw the force (and, if needed, the moment) that the other thing exerts on it. These are **reaction forces**.
5. **Label dimensions and choose axes** and a positive direction for moments.
6. **Apply the equilibrium equations** and solve.

Different supports provide different reactions. A **roller** or smooth surface pushes only at right angles to the surface, giving one force. A **pin** stops movement in any direction but allows rotation, giving two force components. A **fixed support**, such as a beam built into a wall, stops movement and rotation, giving two force components and a moment.

The most common mistakes are forgetting a force (usually a weight or a reaction), drawing forces that act *on other bodies*, and mixing up which way a reaction points. If you guess a direction wrong, the maths will simply give a negative answer, which tells you the force points the other way.

### Worked example 1: a plank on two supports

A uniform plank 2.0 m long with a mass of 4 kg rests on supports at each end, A (left) and B (right). A 10 kg box sits 0.5 m from A. What force does each support provide?

Free-body diagram: the plank's weight 4 × 9.81 = **39.24 N** acts at its centre, 1.0 m from A. The box's weight 10 × 9.81 = **98.1 N** acts 0.5 m from A. Reactions R_A and R_B push up at each end.

Take moments about A, so that R_A has no moment and drops out:

```
R_B × 2.0 = 39.24 × 1.0 + 98.1 × 0.5
R_B × 2.0 = 39.24 + 49.05 = 88.29
R_B = 44.145 N ≈ 44.1 N
```

Vertical forces must balance:

```
R_A + R_B = 39.24 + 98.1 = 137.34
R_A = 137.34 − 44.145 = 93.195 N ≈ 93.2 N
```

The support nearer the box carries more, which matches intuition. Taking moments about a point where an unknown force acts is a standard trick: it removes that unknown from the equation.

### Worked example 2: a robot arm holding a load

A single robot arm link, 0.30 m long with a mass of 0.2 kg, is held horizontally by a motor at the shoulder. It holds a 0.5 kg object at its tip. What moment must the shoulder motor provide?

The link's weight (0.2 × 9.81 = 1.962 N) acts at its centre, 0.15 m from the shoulder. The object's weight (0.5 × 9.81 = 4.905 N) acts at 0.30 m.

```
M = 1.962 × 0.15 + 4.905 × 0.30
M = 0.2943 + 1.4715 = 1.7658 N·m ≈ 1.77 N·m
```

The shoulder must provide about 1.77 N·m anticlockwise to stop the arm drooping. Notice that the arm's own weight accounts for about a sixth of the total. Designers often forget it, and then the motor is too small. Notice too that the moment is largest when the arm is horizontal: when the arm points straight up, the perpendicular distance to both weights is zero.

### Recap

- A force has size and direction and is measured in newtons; weight is W = m × g.
- A moment is force times perpendicular distance, measured in N·m.
- For a part in equilibrium, forces balance in each direction and moments balance about any point.
- A free-body diagram isolates one body and shows every force on it, including reactions at supports.
- Taking moments about an unknown force's point of action removes it from the equation.

> **Check units and directions every time.** Write the unit next to every number in your working, and check that the answer has the right unit at the end. A moment in N rather than N·m means a distance has gone missing. And always sanity-check a direction: if a support appears to *pull* a plank down when it can only push, either a mistake has crept in or the plank is about to lift off that support.

#### Project: Kitchen experiment: measure support reactions

Check the plank calculation with a ruler and two kitchen scales.

1. Place two kitchen scales side by side, set them to zero, and lay a long ruler or thin wooden board across them so each end rests on one scale. Measure the distance between the two contact points.
2. Record each scale's reading with only the ruler. Convert grams to newtons with F = m × g (for example, 150 g gives 0.150 × 9.81 ≈ 1.47 N).
3. Weigh a mug or a can of food on one scale, then place it on the ruler at three different positions. Before each reading, draw a free-body diagram and predict both reactions using moments, as in worked example 1.
4. Compare predicted and measured values. Work out the difference as a percentage.
5. Write a paragraph explaining any differences, for example uncertainty in where the ruler touches each scale, or the scales' own resolution.

If you only have one scale, put a book of the same height under the other end and measure one reaction at a time, using the equilibrium equations to find the other.

**Deliverables**

- A free-body diagram for each of the three positions
- Predicted and measured reactions, with percentage differences
- A short paragraph on sources of error

**Safety (adult supervision required):** Use light objects (under 1 kg) and keep the set-up at the back of a table so nothing can fall onto feet. Check the kitchen scales' maximum load before you start.

#### Check your understanding

1. What is the weight of a 2.5 kg object on Earth?
   A) 2.5 N
   B) 24.5 N
   C) 0.25 N
   D) 250 N

2. A 30 N force is applied at right angles to a spanner 0.2 m from the bolt. What moment does it produce?
   A) 150 N·m
   B) 30.2 N·m
   C) 0.0067 N·m
   D) 6 N·m

3. In a free-body diagram of a beam resting on a pin and a roller, which forces should be drawn?
   A) Only the loads on the beam
   B) The loads, the beam's weight, and the reactions from the pin and the roller
   C) The forces the beam exerts on the floor
   D) Only the reactions

4. Why is it useful to take moments about a support where an unknown reaction acts?
   A) That unknown force has zero moment about its own point, so it drops out of the equation
   B) Moments about supports are always zero
   C) It makes all forces positive
   D) It is required by convention but makes no difference

5. A robot arm holds a weight at its tip. In which position does the shoulder motor need the largest moment to hold still?
   A) Pointing straight up
   B) Pointing straight down
   C) Horizontal
   D) It is the same in every position

**Go further:**

- Wikipedia — Free body diagram: https://en.wikipedia.org/wiki/Free_body_diagram — Examples of free-body diagrams for common situations, and the conventions used to draw them.


## 3.2 Torque, levers and mechanical advantage

*How levers trade force for distance, how to calculate torque and mechanical advantage, and why no simple machine can give you something for nothing.* (about 30 min)

### Small effort, big result

A claw hammer pulls out a nail that you could never pull with your fingers. A bottle opener lifts a cap that is crimped on tightly. A robot gripper's small motor squeezes hard enough to hold a can. Each uses the same idea: a **lever** that turns a modest force into a large one, at the price of moving further. Understanding exactly how much force you gain, and what you give up, is essential for choosing motors and designing mechanisms.

### Torque

In the previous lesson you met the **moment** of a force about a point. When a force turns a shaft, a wheel or a joint, engineers usually call the same quantity **torque** (τ, the Greek letter tau):

```
τ = F × r × sin θ
```

Here F is the force, r is the distance from the axis to where the force is applied, and θ is the angle between the force and the line from the axis. When the force is at right angles (θ = 90°, sin θ = 1) this simplifies to τ = F × r, the largest torque that force can give.

For example, pushing a spanner with 20 N at 0.25 m from the bolt gives 20 × 0.25 = **5 N·m** if you push at right angles. Push at 60° to the handle instead and you get 5 × sin 60° ≈ **4.33 N·m**. Same effort, less torque, which is why you instinctively push spanners at right angles.

Torque also works the other way round. A motor produces a torque, and a wheel turns it into a force at the ground:

```
F = τ / r
```

A motor giving 0.5 N·m to a wheel of radius 0.04 m pushes the robot forward with 0.5 ÷ 0.04 = **12.5 N**. A bigger wheel gives a faster robot but less pushing force, a trade-off you will meet again with gears.

### The lever

A lever is a rigid bar that turns about a pivot, called the **fulcrum**. An **effort** force is applied at one point and a **load** force acts at another. Taking moments about the fulcrum, for a lever in balance:

```
effort × effort arm = load × load arm
```

where each arm is the perpendicular distance from the fulcrum to that force. The **mechanical advantage** (MA) is the ratio of the forces:

```
MA = load / effort = effort arm / load arm     (ideal, no friction)
```

### Three classes of lever

Levers are traditionally grouped by where the fulcrum sits:

- **First class**: fulcrum between effort and load. Examples: a see-saw, scissors, a crowbar. MA can be more or less than 1, depending on the arm lengths.
- **Second class**: load between fulcrum and effort. Examples: a wheelbarrow, a bottle opener, a nutcracker. MA is always greater than 1.
- **Third class**: effort between fulcrum and load. Examples: tweezers, a fishing rod, your forearm. MA is always less than 1; you gain speed and range of movement instead of force.

### Worked example 1: pulling a nail

A claw hammer acts as a first-class lever. The hand pushes 0.30 m from the hammer head's contact point (the fulcrum), and the nail is gripped 0.03 m from it.

```
MA = 0.30 / 0.03 = 10
```

A 50 N push on the handle produces about 50 × 10 = **500 N** on the nail (ignoring friction). That is roughly the weight of a 51 kg mass, from a push most people could give with one hand.

### Nothing for free

If a lever multiplies force by 10, what is the catch? **Distance.** As the lever rotates, each point moves a distance proportional to its distance from the fulcrum. When your hand moves 10 cm, the nail moves only 1 cm.

Work, in joules, is force times distance moved. Ideally the work in equals the work out:

```
50 N × 0.10 m = 5 J        500 N × 0.01 m = 5 J
```

This is the law of conservation of energy applied to machines. A lever, a gear or a pulley can change how force and distance are traded, but it can never put out more work than goes in. In real machines, some work is always lost to friction, so the actual force out is a little less than the ideal. The ratio of work out to work in is the **efficiency**, which is always less than 1 (or 100%).

### Worked example 2: your forearm

Your forearm is a third-class lever. The elbow is the fulcrum, the biceps muscle attaches roughly 4 cm from it, and a weight held in the hand is roughly 35 cm away. These are rough, typical figures. Holding a 2 kg bag of sugar with the forearm horizontal:

```
load moment = 2 × 9.81 × 0.35 = 6.867 N·m
biceps force = 6.867 / 0.04 ≈ 172 N
```

The muscle pulls with about 172 N, almost nine times the bag's 19.6 N weight. Why would evolution choose such a poor mechanical advantage? Because a short muscle contraction produces a large, fast movement of the hand. Robot arms make the same trade: motors near the shoulder, long links, and large torques at the joints so that the tip can move quickly over a wide area.

### Levers in robots

Many grippers are lever mechanisms. A small motor or servo turns a short arm, which pushes on a long jaw (or the reverse). Choosing the arm lengths sets how hard the jaws squeeze and how far they open. Robotic joints are often described by their torque, not force, because torque is what the joint motor must supply, whatever is attached to the end of the link.

### Recap

- Torque is force times perpendicular distance from the axis, τ = F × r × sin θ, measured in N·m.
- In a balanced lever, effort × effort arm = load × load arm.
- Mechanical advantage = load ÷ effort = effort arm ÷ load arm (ideal).
- A lever that multiplies force divides distance by the same ratio; work in ≥ work out.
- Third-class levers, like your arm, trade force for speed and range.

#### Project: Household experiment: a coin lever

Build a lever balance from a ruler, a pencil and a handful of identical coins.

1. Lay a round pencil on a table and balance a 30 cm ruler across it at the 15 cm mark. This is your fulcrum. Balancing at the centre means the ruler's own weight has no moment about the fulcrum.
2. Stack 4 coins with their centres 5 cm to the left of the fulcrum. Predict, using effort × effort arm = load × load arm, where 2 coins must go on the right to balance. Test it.
3. Predict how many coins at 12 cm on the right balance 3 coins at 8 cm on the left. Test it.
4. Choose your own arrangement of at least three stacks (for example, two stacks on one side), predict the balance point, and test it.
5. For one arrangement, gently tip the ruler and measure with another ruler how far each stack moves up or down. Check that the heavier stack moves less, in the ratio predicted by the arm lengths.

**Deliverables**

- Predictions and results for at least four balance arrangements
- A sketch with a free-body diagram of one arrangement
- Distance measurements showing the force–distance trade-off

**Safety (adult supervision required):** No tools are needed. Keep coins away from small children, who might swallow them.

#### Check your understanding

1. A wheel of radius 0.05 m is driven with a torque of 0.4 N·m. What forward force does it produce at the ground (ignoring losses)?
   A) 0.02 N
   B) 8 N
   C) 0.45 N
   D) 20 N

2. A lever has an effort arm of 1.2 m and a load arm of 0.3 m. What is its ideal mechanical advantage?
   A) 0.25
   B) 1.5
   C) 3.6
   D) 4

3. A pair of tweezers has the effort between the pivot and the tips. What class of lever is it, and what does it trade?
   A) Third class: it gives up force to gain fine control and movement at the tips
   B) Second class: it multiplies force
   C) First class: it always balances
   D) It is not a lever

4. A lever with mechanical advantage 5 lifts a load by 2 cm. Ideally, how far does the effort move?
   A) 0.4 cm
   B) 2 cm
   C) 10 cm
   D) 7 cm

5. Why do you get less torque when you push a spanner at a shallow angle to the handle?
   A) The force becomes smaller
   B) Only the part of the force at right angles to the handle produces torque (τ = F × r × sin θ)
   C) The spanner becomes shorter
   D) Torque does not depend on angle

**Go further:**

- Wikipedia — Lever: https://en.wikipedia.org/wiki/Lever — The classes of lever, the law of the lever and its history.
- Wikipedia — Mechanical advantage: https://en.wikipedia.org/wiki/Mechanical_advantage — Ideal and actual mechanical advantage for levers, pulleys, gears and other simple machines.


## 3.3 Gears, belts and transmissions

*How gear trains and belt drives change speed and torque, how to calculate ratios for single and compound trains, and why efficiency and backlash matter for real machines.* (about 35 min)

### Why transmissions exist

Small electric motors are good at spinning fast, often thousands of revolutions per minute (rpm), but they produce only a small torque. A robot wheel or arm joint usually needs the opposite: slow rotation with a large torque. A **transmission**, made from gears, belts or chains, sits between the motor and the load and trades speed for torque. It is the rotating version of the lever from the previous lesson.

### How a pair of gears works

When two gears mesh, their teeth move past the contact point at the same speed. A gear with more teeth therefore turns more slowly than a gear with fewer teeth. The **gear ratio** compares the driven (output) gear with the driving (input) gear:

```
gear ratio = teeth on driven gear / teeth on driving gear
output speed = input speed / ratio
output torque = input torque × ratio × efficiency
```

A 15-tooth gear driving a 45-tooth gear has a ratio of 45 ÷ 15 = **3**, often written 3:1. The output turns 3 times more slowly, and (ideally) with 3 times the torque. The two gears also turn in **opposite directions**.

Like a lever, a gear pair cannot create energy. Power, which is torque times angular speed, stays the same apart from losses:

```
P = τ × ω        with ω in radians per second
```

To convert rpm to radians per second, multiply by 2π and divide by 60. For example, 6000 rpm is 6000 × 2π / 60 ≈ 628 rad/s.

### Gear sizes must match

Meshing gears must have the same tooth size. For common metric spur gears, tooth size is described by the **module** m, in millimetres. The pitch diameter of a gear (the diameter of the imaginary circle where it effectively rolls against its partner) is:

```
d = m × N        (N = number of teeth)
```

So with module 1, a 12-tooth gear has a pitch diameter of 12 mm and a 36-tooth gear 36 mm. The distance between their shafts must be half the sum of the pitch diameters: (12 + 36) / 2 = **24 mm**. Get that distance wrong and the gears either jam or skip teeth. CAD tools and gear catalogues help you get these numbers right.

### Compound gear trains

A single pair rarely gives more than about 5:1 or 6:1 neatly, because the big gear becomes very large. For bigger ratios, designers use a **compound train**: two gears fixed to the same middle shaft, so the output of one pair drives the next. The overall ratio is the **product** of each stage's ratio.

An **idler** gear placed between two others, on its own shaft, does not change the ratio. It only reverses the direction and fills a gap. Check this: a 20-tooth gear drives a 40-tooth idler, which drives a 20-tooth output. Ratio = (40/20) × (20/40) = 1.

### Worked example: a two-stage gearbox

A small motor produces 0.05 N·m at 6000 rpm. It drives a 12-tooth gear meshing with a 120-tooth gear (ratio 10). On the same shaft as the 120-tooth gear is a 10-tooth gear, meshing with a 50-tooth output gear (ratio 5). Each stage is assumed to be 95% efficient, a typical rough figure for a well-made spur-gear pair.

```python
import math

motor_torque = 0.05      # N·m
motor_speed_rpm = 6000
stages = [(12, 120), (10, 50)]   # (driver teeth, driven teeth) for each stage
efficiency_per_stage = 0.95

ratio = 1.0
for driver, driven in stages:
    ratio *= driven / driver

efficiency = efficiency_per_stage ** len(stages)
out_speed_rpm = motor_speed_rpm / ratio
out_torque = motor_torque * ratio * efficiency

def rpm_to_rad_s(rpm):
    return rpm * 2 * math.pi / 60

p_in = motor_torque * rpm_to_rad_s(motor_speed_rpm)
p_out = out_torque * rpm_to_rad_s(out_speed_rpm)

print(f"Overall ratio: {ratio:.0f}:1")
print(f"Output speed:  {out_speed_rpm:.0f} rpm")
print(f"Output torque: {out_torque:.3f} N·m")
print(f"Power in: {p_in:.1f} W, power out: {p_out:.1f} W")
```

Output:

```
Overall ratio: 50:1
Output speed:  120 rpm
Output torque: 2.256 N·m
Power in: 31.4 W, power out: 28.4 W
```

The ideal output torque would be 0.05 × 50 = 2.5 N·m, but two stages at 95% give 0.95 × 0.95 ≈ 0.90 of that, about 2.26 N·m. The missing 3 W of power becomes heat and noise in the gears. Efficiencies multiply, so long gear trains lose noticeably more than short ones.

Compare this with the robot arm in the forces lesson, whose shoulder needed about 1.77 N·m. This gearbox could hold it, with some margin, but the motor's torque must be checked at the speed it will actually run, a topic covered in the Robotics Foundations lesson on choosing an actuator.

### Other kinds of gear

- **Spur gears**: straight teeth on parallel shafts. Simple and efficient, but can be noisy.
- **Helical gears**: angled teeth that engage gradually, so they run more quietly, but they push sideways along the shaft.
- **Bevel gears**: cone-shaped, to turn motion through an angle, usually 90°.
- **Worm and wheel**: a screw-like worm drives a gear wheel, giving large ratios (such as 30:1) in one compact stage. Efficiency is often much lower than spur gears, and many worm drives cannot be turned backwards from the output, which can usefully hold a load in place when the motor stops.
- **Planetary (epicyclic) gears**: a central sun gear, orbiting planet gears and an outer ring. Compact, with high ratios and torque, and common in robot joints and power tools.

### Belts and chains

A **belt drive** wraps a belt around two pulleys. The ratio works the same way, using diameters (or teeth, for toothed pulleys):

```
belt ratio = driven pulley diameter / driving pulley diameter
```

A 20 mm pulley driving a 60 mm pulley gives a ratio of 3. Unlike meshing gears, both pulleys turn the **same direction**. Belts can span long distances, are quiet, and absorb shocks. Smooth belts rely on friction and can slip under heavy load, which can protect a mechanism but loses position. **Toothed (timing) belts** do not slip, so they are common in 3D printers and robot axes. **Chains**, as on a bicycle, work like toothed belts but carry larger forces.

### Backlash

Meshing teeth need a little clearance or they would jam. That clearance means that when the input reverses direction, it turns a little before the output starts to move. This lost motion is called **backlash**.

Backlash matters most in positioning. Suppose a robot arm joint has 0.5° of backlash at its output, and the arm is 0.3 m long. The tip can wobble by about:

```
arc length = r × angle in radians = 0.3 × (0.5 × π / 180) ≈ 0.0026 m ≈ 2.6 mm
```

That is enough to miss a small target. Designers reduce backlash with more precise gears, spring-loaded split gears, keeping the load always pushing one way, using belts, or measuring position at the output instead of at the motor. In feedback control, backlash can cause the controller to hunt back and forth around the target.

### Recap

- Gear ratio = driven teeth ÷ driving teeth; speed divides by the ratio and torque multiplies by it (times efficiency).
- Compound ratios multiply; idlers change direction, not ratio.
- Meshing gears share a module; shaft spacing is half the sum of pitch diameters.
- Belts give the same ratio rules, same-direction rotation, and timing belts avoid slip.
- Efficiencies multiply across stages, and backlash causes lost motion that matters for precise positioning.

#### Project: Observation project: the gears on a bicycle

A bicycle is a chain transmission you can study without taking anything apart.

1. With an adult's help, find a bicycle with gears. Count the teeth on the front chainring and the rear sprocket the chain is on (mark a starting tooth with chalk or a piece of tape so you do not lose count).
2. Calculate the ratio of wheel turns to pedal turns (front teeth ÷ rear teeth). For example, 44 front teeth and 11 rear teeth give 4 wheel turns per pedal turn.
3. Measure the wheel's diameter with a tape measure and calculate how far the bike travels per pedal turn (ratio × π × diameter).
4. Repeat for the lowest and highest gears. In which gear is climbing a hill easiest, and why, in terms of torque?
5. If you have no bicycle, do the calculations on paper for chainrings of 32 and 48 teeth with sprockets of 12 and 28 teeth, and a wheel 0.67 m in diameter.

**Deliverables**

- Tooth counts and ratios for at least two gear combinations
- Distance travelled per pedal turn for each
- A short explanation of the torque–speed trade-off when climbing

**Safety (adult supervision required):** An adult must supervise. Keep fingers, hair, loose clothing and laces well away from the chain and sprockets, and never turn the pedals while someone's hand is near the chain. If the bike is turned upside down, make sure it is stable before working on it. Chains are oily, so wash your hands afterwards.

#### Check your understanding

1. A 15-tooth gear drives a 45-tooth gear. If the input turns at 900 rpm, how fast does the output turn?
   A) 2700 rpm
   B) 300 rpm
   C) 60 rpm
   D) 900 rpm

2. A compound train has stages of 4:1 and 6:1. What is the overall ratio?
   A) 10:1
   B) 1.5:1
   C) 24:1
   D) 2:1

3. What does an idler gear placed between a driver and a driven gear do?
   A) Doubles the gear ratio
   B) Halves the torque
   C) Removes backlash completely
   D) Reverses the output direction without changing the overall ratio

4. A three-stage gearbox has 90% efficiency per stage. What is its overall efficiency, roughly?
   A) 73%
   B) 90%
   C) 270%
   D) 30%

5. Why does backlash matter more for a robot arm's position than for a fan?
   A) Fans have no gears
   B) Backlash makes the output move before the input
   C) Lost motion when reversing causes position error at the arm tip, while a fan just spins one way
   D) Backlash only occurs in belts

**Go further:**

- Wikipedia — Gear train: https://en.wikipedia.org/wiki/Gear_train — Gear ratios, compound and planetary trains, and idlers, with diagrams.
- Wikipedia — Backlash (engineering): https://en.wikipedia.org/wiki/Backlash_(engineering) — What backlash is, where it occurs and how it is reduced.


## 3.4 Linkages and mechanisms

*How rigid links joined by pins and sliders turn one motion into another: counting degrees of freedom, the four-bar linkage and Grashof's rule, the slider-crank, and how grippers use linkages.* (about 35 min)

### Motion, reshaped

A motor spins. But a windscreen wiper swings back and forth, a pump piston slides in and out, and a gripper's jaws close in parallel. **Linkages** make these conversions. A linkage is a set of rigid **links** connected by **joints**, and with only a few bars and pins it can produce surprisingly complex motion. Linkages are everywhere: in folding chairs, car suspensions, desk lamps, excavators, bicycle brakes and robot grippers.

### Links and joints

The two simplest joints in a flat (planar) mechanism are:

- A **revolute joint** (pin): allows rotation about one axis, like a door hinge.
- A **prismatic joint** (slider): allows sliding along one line, like a drawer.

Each allows one degree of freedom of relative motion, and is sometimes called a *full joint*. The fixed frame that the mechanism is mounted to counts as one of the links, called the **ground** link.

### Counting degrees of freedom

How many independent inputs does a mechanism need? For planar linkages, the **Grübler** (or Gruebler) equation answers this. Each free rigid body in a plane has 3 degrees of freedom (two directions of movement and one rotation), and each full joint removes 2:

```
M = 3(n − 1) − 2j
```

where n is the number of links including ground and j is the number of full joints (pins or sliders). There is a slightly longer version for joints that allow two freedoms, such as a pin in a slot, but this version covers most simple mechanisms.

- **Three links, three pins** (a triangle): M = 3 × 2 − 2 × 3 = **0**. It cannot move: it is a rigid structure. This is why trusses and bridges are made of triangles.
- **Four links, four pins** (a four-bar linkage): M = 3 × 3 − 2 × 4 = **1**. One input, such as a motor turning one link, fixes the position of everything.
- **Five links, five pins**: M = 3 × 4 − 2 × 5 = **2**. It needs two inputs; with only one, it flops about.

The equation counts, it does not understand geometry, so occasionally special dimensions make it wrong. But it is an excellent first check.

### The four-bar linkage

The four-bar linkage is the workhorse of mechanism design. Its four links are the **ground** (fixed), the **input** link (often driven by a motor and called the *crank* if it turns all the way round), the **coupler** (the floating link opposite the ground), and the **output** link (called the *rocker* if it swings back and forth).

By changing the four lengths, you get very different behaviour. **Grashof's rule** tells you whether any link can rotate fully. Let s be the shortest link, l the longest, and p and q the other two:

```
If s + l ≤ p + q, at least one link can rotate fully (a "Grashof" linkage).
If s + l > p + q, no link can rotate fully; every link only rocks.
```

For a Grashof linkage, *which* link is shortest decides the behaviour:

- Shortest link next to the ground: **crank-rocker**. The shortest link turns all the way round while the opposite link rocks. A motor turning continuously produces a back-and-forth swing, as in a windscreen wiper.
- Shortest link is the ground: **double-crank** (drag link). Both side links rotate fully.
- Shortest link is the coupler: **double-rocker**. Both side links only rock.

A special case is the **parallelogram linkage**, where opposite links are equal. The coupler then stays parallel to the ground as it moves. Desk lamps, some car-park barriers and many grippers use this.

### The slider-crank

Replace one pin of a four-bar with a slider and you get the **slider-crank**, the mechanism in car engines, pumps and air compressors. A crank of radius r turns, and a connecting rod of length L links it to a slider. The slider moves back and forth through a **stroke** of exactly 2r.

### Worked example in Python

Here is a short script that checks Grashof's rule and calculates where a slider-crank's slider is, measured from the crank pivot, for a crank angle θ:

```python
import math

def grashof(links):
    """Return True if the shortest link can rotate fully (Grashof condition)."""
    s, p, q, l = sorted(links)
    return s + l <= p + q

def slider_position(r, L, theta_deg):
    """Slider-crank: distance from crank pivot to slider pin, in the same units as r and L."""
    t = math.radians(theta_deg)
    return r * math.cos(t) + math.sqrt(L**2 - (r * math.sin(t))**2)

print(grashof([2, 7, 6, 8]))    # links in cm
print(grashof([3, 9, 4, 5]))
for angle in (0, 90, 180):
    print(angle, round(slider_position(3, 10, angle), 2))
```

Output:

```
True
False
0 13.0
90 9.54
180 7.0
```

The first linkage has s + l = 2 + 8 = 10 and p + q = 6 + 7 = 13, so it is Grashof. The second has 3 + 9 = 12, which is more than 4 + 5 = 9, so no link turns fully. For the slider-crank with a 3 cm crank and a 10 cm rod, the slider moves between 13 cm and 7 cm from the pivot: a stroke of 6 cm, exactly twice the crank radius. At 90° it is at 9.54 cm, not halfway at 10 cm, because the connecting rod is tilted. The slider's motion is not perfectly smooth, which is one reason engines vibrate.

### Linkages in grippers

Robot grippers use linkages to turn a motor's motion into a useful grip:

- **Angular grippers**: each jaw is a lever pivoting on a pin, so the jaws close in an arc. Simple and cheap, but the grip point moves as the jaws close, and objects of different sizes are gripped at different angles.
- **Parallel grippers**: a parallelogram linkage on each side keeps the jaw faces parallel as they close, so flat objects are gripped squarely across their whole face.
- **Toggle linkages**: as two links straighten into a line, their mechanical advantage grows very large. A toggle gripper can squeeze hard with a small motor and hold its grip when power is removed, but the force rises steeply near the straight position, which can crush delicate objects.

Notice that a linkage's mechanical advantage usually *changes* as it moves, unlike a gear pair. Designers often check it at several positions, and particularly at the end of travel where the grip actually happens.

### Recap

- Linkages are rigid links joined by pins and sliders that convert one motion into another.
- Grübler's equation, M = 3(n − 1) − 2j, counts a planar mechanism's degrees of freedom.
- Grashof's rule, s + l ≤ p + q, tells you whether a four-bar has a fully rotating link.
- A slider-crank's stroke is twice its crank radius.
- Grippers use levers, parallelograms and toggles; their mechanical advantage changes with position.

> **Linkages create pinch points.** Wherever two links pass close to each other, they can trap a finger with a force multiplied by the linkage, especially near a toggle position. On real machines, pinch points must be guarded or designed out. Even with a cardboard model, get in the habit of noticing where these points are.

#### Project: Card project: build and test a four-bar linkage

Build working linkages from thin card and paper fasteners (split pins).

1. Cut four strips of card about 1.5 cm wide, with hole-to-hole lengths of 4, 10, 8 and 9 cm. Make the holes with a single-hole punch, or by pushing a sharpened pencil through the card into a lump of modelling clay.
2. Check Grashof's rule for these lengths by hand, and predict which link will rotate fully if the 4 cm link is next to the ground. Use the Python function above if you like.
3. Pin the strips into a loop, and pin the 9 cm link flat to a piece of cardboard as the ground. Turn the 4 cm link and observe the motion. Was your prediction right?
4. Make the 4 cm link the coupler instead (rearrange the order) and predict, then observe, the new behaviour.
5. Build a parallelogram linkage with strips of 8, 4, 8 and 4 cm and attach a small card "jaw" to the coupler. Show that it stays parallel as it moves.
6. Draw each linkage and count its degrees of freedom with Grübler's equation.

**Deliverables**

- Grashof predictions and observed behaviour for two arrangements
- A working parallelogram linkage with a jaw that stays parallel
- Labelled sketches with degree-of-freedom calculations

**Safety (adult supervision required):** Use scissors and a hole punch rather than a craft knife. If you use a craft knife or a bradawl to make holes, an adult must supervise: cut on a cutting mat, keep fingers out of the blade's path and press away from your body. Split pins have sharp ends; fold them flat and keep them away from small children.

#### Check your understanding

1. Using Grübler's equation, how many degrees of freedom does a planar linkage with 6 links (including ground) and 7 pin joints have?
   A) 1
   B) 3
   C) 0
   D) 2

2. Why are bridge trusses built from triangles?
   A) Triangles use the most material
   B) A triangle of three links and three pins has zero degrees of freedom, so it is rigid
   C) Triangles have three degrees of freedom
   D) Triangles look better

3. A four-bar has links of 4, 10, 7 and 8 cm. Is it a Grashof linkage?
   A) No, because 4 + 10 is greater than 7 + 8
   B) It depends only on which link is the ground
   C) Grashof's rule only applies to sliders
   D) Yes, because 4 + 10 = 14 is less than 7 + 8 = 15

4. A slider-crank has a crank radius of 25 mm. What is the slider's stroke?
   A) 25 mm
   B) 12.5 mm
   C) 50 mm
   D) It depends on the motor speed

5. What is the main advantage of a parallelogram linkage in a gripper?
   A) It keeps the jaw faces parallel, so flat objects are gripped squarely
   B) It has no pinch points
   C) It gives constant mechanical advantage in every position
   D) It needs no motor

**Go further:**

- Wikipedia — Four-bar linkage: https://en.wikipedia.org/wiki/Four-bar_linkage — Grashof's condition, the classification of four-bar linkages and animated examples.


## 3.5 Stress, strain and choosing materials

*What stress and strain are, how stiffness and strength differ, how to read a stress–strain curve, and how to compare materials using approximate textbook properties.* (about 35 min)

### Will it break, and will it bend?

You can now work out the forces on a part. The next question is what those forces do *to the material*. Two parts carrying the same force can behave completely differently: a thick steel rod barely notices a load that would snap a thin plastic one. To compare them fairly, engineers use **stress** and **strain**, which describe the load and the deformation in a way that does not depend on the part's size.

### Stress

**Stress** (σ, the Greek letter sigma) is force divided by the area that carries it:

```
σ = F / A
```

Its unit is the pascal (Pa), one newton per square metre. That is a tiny unit, so engineers usually use megapascals: **1 MPa = 1,000,000 Pa = 1 N/mm²**. The N/mm² form is handy: a force in newtons divided by an area in square millimetres gives MPa directly.

Stress can pull (tension), push (compression) or slide layers past each other (shear). Bending produces tension on one face of a beam and compression on the other, which is why the cantilever in the trade-offs lesson was so sensitive to thickness.

### Strain

**Strain** (ε, epsilon) is how much something stretches compared with its original length:

```
ε = ΔL / L
```

Strain has no units, because it is a length divided by a length. A 200 mm rod that stretches by 0.2 mm has a strain of 0.2 / 200 = 0.001, sometimes written as 0.1%.

### Stiffness: Young's modulus

For most materials, at small strains, stress and strain are proportional. This is **Hooke's law**:

```
σ = E × ε
```

E is **Young's modulus**, a measure of the material's **stiffness**: how much it resists stretching. Steel's E is about 200 GPa (gigapascals, 1 GPa = 1000 MPa); many plastics are around 2–4 GPa. So steel is roughly 50 to 100 times stiffer, and a plastic part of the same shape bends that many times more under the same load.

### Strength: yield and ultimate

Stiffness and strength are **different**. Stiffness says how much a part deforms; strength says how much load it can take before it fails.

- The **yield strength** is the stress at which a material starts to deform permanently. Below it, the part springs back when unloaded; above it, it stays bent.
- The **ultimate tensile strength** is the highest stress the material can carry before it starts to break.

### The stress–strain curve

If you pull a test sample and plot stress against strain, you get a **stress–strain curve**. For a typical ductile metal such as mild steel or aluminium:

1. A straight line from the origin. Its slope is E. This is the elastic region.
2. A point where the line bends over: the yield point. Beyond it, deformation is permanent.
3. A rising curve as the material hardens while stretching, up to the ultimate strength.
4. A drop as the sample forms a narrow "neck" and finally breaks, often after stretching a great deal.

**Ductile** materials, like most metals and many plastics, stretch a lot before breaking, which gives warning and absorbs energy. **Brittle** materials, like glass, ceramics, cast iron and some printed plastics, follow a straight line almost to the end and then snap suddenly with little warning. Designers prefer ductile materials where a sudden failure could hurt someone.

### Approximate material properties

These are typical textbook values, **approximate** and for comparison only. Real values depend on the exact grade, treatment, temperature and, for wood and printed plastics, direction.

```
Material            Young's modulus E   Strength (approx.)        Density
Mild steel          ≈ 200 GPa           yield ≈ 250 MPa           ≈ 7850 kg/m³
Aluminium 6061-T6   ≈ 69 GPa            yield ≈ 275 MPa           ≈ 2700 kg/m³
PLA (solid)         ≈ 3.5 GPa           tensile ≈ 50–60 MPa       ≈ 1240 kg/m³
ABS                 ≈ 2.2 GPa           tensile ≈ 40 MPa          ≈ 1050 kg/m³
Pine (along grain)  ≈ 9–11 GPa          very variable             ≈ 500 kg/m³
Rubber              ≈ 0.01–0.1 GPa      very variable             ≈ 1100 kg/m³
```

3D-printed PLA and ABS parts are often much weaker than these solid values, especially when pulled across the layers. Wood is much stronger and stiffer along the grain than across it. Never use a table like this for anything safety-critical; use tested values for your actual material.

### Worked example: a steel or aluminium rod

A rod 6 mm in diameter and 0.5 m long carries a tension of 2000 N (about the weight of a 204 kg mass). Is it strong enough, and how much does it stretch?

```python
import math

force = 2000.0          # N
diameter = 0.006        # m
length = 0.5            # m

# Approximate textbook values: (Young's modulus in Pa, yield strength in Pa)
materials = {
    "mild steel": (200e9, 250e6),
    "aluminium 6061-T6": (69e9, 275e6),
}

area = math.pi * (diameter / 2) ** 2
stress = force / area
print(f"Area: {area * 1e6:.2f} mm², stress: {stress / 1e6:.1f} MPa")

for name, (E, yield_strength) in materials.items():
    strain = stress / E
    stretch_mm = strain * length * 1000
    factor = yield_strength / stress
    print(f"{name}: stretch {stretch_mm:.2f} mm, factor of safety {factor:.1f}")
```

Output:

```
Area: 28.27 mm², stress: 70.7 MPa
mild steel: stretch 0.18 mm, factor of safety 3.5
aluminium 6061-T6: stretch 0.51 mm, factor of safety 3.9
```

Both rods have a factor of safety against yielding above 3, using the approach from the safety-factors lesson. The aluminium rod is actually slightly *stronger* here (with this grade), but it stretches almost three times as much, because it is about a third as stiff. Which matters more depends on the requirement: if the rod sets the position of something precise, stiffness might be the deciding property.

### Choosing a material

Picking a material is a trade-off like any other in this pathway. Useful questions:

- **Is the limit stiffness or strength?** Many robot parts fail by bending too much long before they break.
- **Does mass matter?** Compare properties per unit mass. Dividing E by density gives almost the same value for steel and aluminium (about 25 in units of MPa per kg/m³), so for the same mass they are nearly equally stiff in tension. Dividing yield strength by density favours this aluminium alloy by roughly three times.
- **How will it be made?** Aluminium machines easily; steel welds well; PLA prints easily; plywood cuts easily.
- **What is the environment?** Heat softens many plastics; moisture swells wood; salt water corrodes steel.
- **Will it be loaded many times?** Repeated loading can cause **fatigue** cracks at stresses well below the yield strength.
- **Where are the stress concentrations?** Holes, notches and sharp corners concentrate stress. A small round hole in a wide plate under tension raises the local stress to about three times the average. Rounded corners and smooth transitions help a lot.

### Recap

- Stress is force per area (σ = F / A, in MPa = N/mm²); strain is stretch per length (ε = ΔL / L).
- Young's modulus E measures stiffness; yield and ultimate strength measure strength. They are different properties.
- Ductile materials stretch and warn before breaking; brittle ones snap suddenly.
- Material values in tables are approximate; tested values are needed for real designs.
- Choose materials by comparing stiffness, strength, mass, manufacturability, environment and fatigue together.

#### Project: Household experiment: stretch a rubber band

Measure how a rubber band stretches as you load it, and see where Hooke's law stops working.

1. Hang a rubber band from a hook, a door handle or a pencil wedged in a heavy book at the edge of a table. Hang a small plastic bag or cup from its lower end.
2. Tape a ruler alongside it, and measure the band's unloaded length L.
3. Add identical small items (coins, marbles or dry pasta portions) one at a time, weighing the total load on a kitchen scale. Record the stretch ΔL after each addition.
4. Calculate strain ε = ΔL / L for each load and force F = m × g.
5. Plot force against strain on paper (or in a spreadsheet). Is the graph a straight line? Where does it curve?
6. Remove the load and measure the length again. Has the band returned exactly to its original length?

**Deliverables**

- A table-style list of loads, stretches and strains
- A force–strain graph with the straight and curved regions marked
- A paragraph comparing the band's behaviour with Hooke's law and the stress–strain curve described in this lesson

**Safety (adult supervision required):** Stretched rubber bands can snap and fling. Keep your face back from the band, wear glasses or safety glasses if you have them, and keep loads small (under 1 kg) so nothing heavy falls. Keep coins and marbles away from small children.

#### Check your understanding

1. A force of 1000 N acts on a cross-section of 50 mm². What is the stress?
   A) 50,000 MPa
   B) 0.05 MPa
   C) 20 MPa
   D) 1050 MPa

2. A 400 mm wire stretches by 0.8 mm. What is its strain?
   A) 0.002
   B) 0.5
   C) 500
   D) 320

3. Two rods of the same size carry the same load. Rod A is made of a material with three times the Young's modulus of rod B. What can you conclude?
   A) Rod A is three times stronger
   B) Rod A breaks first
   C) Rod B is stiffer
   D) Rod A stretches about a third as much as rod B

4. What does it mean if a part is loaded above its yield strength and then unloaded?
   A) It returns exactly to its original shape
   B) It is permanently deformed
   C) Its Young's modulus doubles
   D) Nothing, because yield strength only applies to brittle materials

5. Why are rounded internal corners preferred in loaded parts?
   A) Sharp corners concentrate stress, which can start cracks
   B) Rounded corners are always cheaper
   C) Sharp corners reduce the Young's modulus
   D) Rounded corners make parts heavier and so stronger

**Go further:**

- Wikipedia — Stress–strain curve: https://en.wikipedia.org/wiki/Stress%E2%80%93strain_curve — Stress–strain curves for ductile and brittle materials, with the key points labelled.
- Wikipedia — Young's modulus: https://en.wikipedia.org/wiki/Young%27s_modulus — Definition of Young's modulus and approximate values for many common materials.


## 3.6 Friction, grip and contact

*How friction works, how to use the friction coefficient to calculate how hard a gripper must squeeze, and why soft and deformable objects make grasping much harder.* (about 35 min)

### Holding things is harder than it looks

Pick up a glass of water. Your fingers squeeze hard enough that it does not slip, but not so hard that it shatters, and you adjust without thinking if the glass is wet. For a robot, every part of that is a design problem. A two-finger gripper usually holds an object not by wrapping around it but by **friction** at its fingertips. Understanding friction lets you calculate how hard a gripper must squeeze, why wheels slip, and why soft objects are so challenging.

### The friction coefficient

When two surfaces press together, friction resists them sliding past each other. The simple model taught in most textbooks, often called **Coulomb friction**, says that the largest friction force is proportional to how hard the surfaces are pressed together:

```
F_friction ≤ μ × N
```

N is the **normal force**, the force pushing the surfaces together at right angles. μ (mu) is the **coefficient of friction**, a number with no units that depends on the two materials and their condition.

The "≤" matters. Friction is only as large as it needs to be to stop sliding, up to a maximum of μN. Push a heavy box gently and friction matches your push exactly, so it stays still. Push harder than μN and it slides.

There are two coefficients:

- **Static** friction (μs) applies while the surfaces are not sliding.
- **Kinetic** (or dynamic) friction (μk) applies once they are sliding, and is usually a little smaller. That is why a box is hardest to push just as it starts to move.

### Approximate values

Friction coefficients vary widely with surface finish, cleanliness, moisture and temperature. These are **rough** static values for dry, clean surfaces, for comparison only:

- Rubber on dry concrete: about 0.6–1.0
- Dry steel on steel: about 0.5–0.8
- Wood on wood: about 0.25–0.5
- PTFE (non-stick coating) on steel: about 0.04–0.1

Add water, oil or dust and these values can drop sharply. For real designs, measure μ for your actual materials.

A surprising consequence of the simple model: friction does **not** depend on contact area. A brick slides with the same force whether it lies flat or on its side, because the same weight is spread over more or less area. This is a good approximation for hard materials, but it breaks down for soft materials such as rubber, which is one reason tyres and fingertips are soft.

### Measuring μ with a slope

Put an object on a surface and tilt it slowly. At the angle θ where the object just starts to slide, gravity's pull along the slope equals the maximum friction, which gives:

```
μs = tan θ
```

If you measure the slope's length L and the height h it has been lifted to, tan θ = h / √(L² − h²). For example, an eraser on a 25 cm book cover that starts to slide when the end is lifted 12 cm gives tan θ = 12 / √(625 − 144) = 12 / 21.93 ≈ **0.55**, at an angle of about 28.7°.

### Worked example 1: how hard must a gripper squeeze?

A parallel two-finger gripper holds a 0.3 kg cup by its sides. The fingertips are rubber-faced, and the friction coefficient between rubber and the cup is measured as 0.5. Each finger presses with normal force N, so two contacts give up to 2μN of friction holding the cup up.

To hold the cup still, friction must at least match its weight, m × g = 0.3 × 9.81 = 2.943 N. Using the approach from the safety-factors lesson, design for a factor of 2 because μ varies:

```
2 × μ × N ≥ 2 × m × g
N ≥ (2 × 0.3 × 9.81) / (2 × 0.5) = 5.886 N
```

So each finger needs to squeeze with about **5.9 N**.

Now suppose the arm lifts the cup with an upward acceleration of 2 m/s². The fingers must provide m × (g + a) = 0.3 × 11.81 = 3.543 N of upward force, so:

```
N ≥ (2 × 3.543) / (2 × 0.5) = 7.086 N
```

about **7.1 N** per finger. Fast movements need a firmer grip. This is why grippers often slip when a robot moves suddenly, even though they held the object perfectly when it was still.

### The friction cone

Friction can resist a sideways force at a contact only up to μ times the normal force. Geometrically, the total contact force must stay inside a cone around the normal direction, with a half-angle of arctan(μ). For μ = 0.5 that angle is about 26.6°. If the load tries to push the contact force outside this **friction cone**, the contact slips. Grasp planners in robotics use friction cones to decide where to place fingers so that a grasp is secure.

### Worked example 2: wheels and traction

Friction also limits how hard a robot can push or accelerate. A 2 kg robot has all its weight on two driven wheels with μ = 0.6 against the floor. The largest forward force before the wheels spin is:

```
F_max = μ × N = 0.6 × (2 × 9.81) ≈ 11.8 N
```

With wheels of radius 0.04 m, that corresponds to a total wheel torque of 11.8 × 0.04 ≈ 0.47 N·m. Any extra motor torque beyond this just spins the wheels. A bigger gearbox cannot push harder than friction allows, which is a useful check when sizing motors with the gear-ratio tools from earlier in this module.

### Soft and deformable objects

Everything above assumes rigid objects. Real objects are often soft: fruit, bread, cloth, cables, plastic bags, sponges. These are much harder to grip:

- **Contact changes with force.** As you squeeze, a soft object deforms, the contact area grows and its shape changes, so the grip is not described by one fixed μ.
- **Too hard damages, too soft slips.** A tomato needs enough force to lift without bruising, and that window can be narrow.
- **Shape changes during handling.** Cloth folds, cables bend and bags sag, so where the object is and how it rests in the fingers keeps changing.
- **Vision struggles.** Deformable objects can hide parts of themselves as they fold, and cameras alone may not show whether a grip is slipping.

Engineers respond with **compliant fingertips** (soft pads that spread the load and increase grip), **force sensing** (measuring grip force and adjusting it, as your fingers do), and **slip detection**. Tactiverge's own proposed project TV-01 asks whether inexpensive local force sensing can help robots handle unfamiliar deformable materials when visual information is intermittent. It is a proposed study with no results; it is mentioned here only to show that grasping soft objects is still an open research question.

### Recap

- Maximum friction is μ times the normal force; actual friction is only as large as needed, up to that limit.
- Static friction is usually a little larger than kinetic friction.
- μs can be measured as tan θ at the angle where sliding starts.
- A two-finger grip needs 2μN at least equal to the load, plus a safety factor and extra for acceleration.
- Traction limits how hard a wheeled robot can push, whatever its motor torque.
- Soft and deformable objects change their contact as they are squeezed, which is why force sensing and compliant fingers help.

> **Measure friction, do not just look it up.** Friction tables are useful for a first estimate, but μ for your exact materials, surface finish and conditions can differ greatly from a published value. If a design depends on friction, such as a gripper or a wheel, measure μ with a simple slope test, record the conditions, and report the spread of several measurements rather than a single number.

#### Project: Household experiment: measure friction coefficients

Use a hardback book as a slope to measure static friction.

1. Choose four small objects with different surfaces: for example, an eraser, a coin, a plastic bottle cap and a wooden block. Measure the length L of the book's cover.
2. Place an object near the top of the closed book and slowly lift one end. Use a second ruler to measure the height h at which the object just starts to slide. Repeat five times for each object.
3. Calculate μs = h / √(L² − h²) for each trial, then the average and range for each object.
4. Repeat one test with the cover lightly dampened with a cloth, or with a sheet of paper laid over it. How much does μ change?
5. Using your highest μ, calculate the squeezing force a two-finger gripper would need to hold a 0.2 kg object with a factor of safety of 2.

**Deliverables**

- Five measurements, an average and a range of μs for each of four objects
- A note on how a changed surface affected friction
- A gripper squeezing-force calculation with working

**Safety (adult supervision required):** Use light objects and a low table, and keep the area clear so nothing slides onto the floor where someone could step on it. Keep coins and small caps away from small children.

#### Check your understanding

1. A block is pressed onto a surface with a normal force of 10 N. If μs = 0.4, what is the largest friction force before it slides?
   A) 25 N
   B) 10.4 N
   C) 0.04 N
   D) 4 N

2. An object starts to slide when a slope reaches 30°. Roughly what is μs?
   A) 0.58
   B) 0.50
   C) 0.87
   D) 30

3. A two-finger gripper holds a 0.5 kg object with μ = 0.25. Without a safety factor, what normal force must each finger apply just to hold it still?
   A) 1.2 N
   B) 9.8 N
   C) 19.6 N
   D) 4.9 N

4. According to the simple friction model, what happens to the maximum friction force if a hard brick is turned onto a smaller face?
   A) It doubles, because the pressure is higher
   B) It halves, because the area is smaller
   C) It stays about the same, because it depends on the normal force, not the area
   D) It becomes zero

5. Why are deformable objects such as bread or cloth harder for a robot to grasp than a rigid block?
   A) They have no friction
   B) They are always heavier
   C) Robots cannot use friction with soft objects
   D) Their contact area and shape change as they are squeezed, and too much force damages them

**Go further:**

- Wikipedia — Friction: https://en.wikipedia.org/wiki/Friction — Static and kinetic friction, the Coulomb model, its limits, and tables of approximate coefficients.


---

# Module 4: Design iteration

Why good designs are rarely right the first time, and how to plan, test, learn and improve in deliberate cycles.

**Objectives**

- Describe the design cycle of defining, generating, testing and refining.
- Plan a test that answers a specific question about a design.
- Record design changes and the reasons for them in a design log.
- Decide when a design is good enough to stop iterating.


## 4.1 The engineering design cycle

*Why engineers work in loops rather than straight lines, what happens at each stage of the design cycle, and how to tell when a design is good enough to stop.* (about 25 min)

### Nobody gets it right first time

Imagine you are building a small wheeled robot and need a clip to hold its battery in place. Your first version snaps the moment you push the battery in. The second holds the battery but rattles loose when the robot drives over a doorstep. The third works, but you cannot get the battery out again without a screwdriver. The fourth is the one you keep.

That story is not a sign of poor engineering. It *is* engineering. Real designs are almost never right the first time, because a design problem contains things you cannot know until you try: how stiff the plastic really is, how people actually use the part, what the vibration does. Professional engineers expect this. Instead of hoping to be right, they organise their work so that each attempt teaches them as much as possible, as cheaply as possible. That organised loop is called the **design cycle**.

### The stages of the cycle

Different textbooks draw the cycle with different names and numbers of boxes, but they describe the same ideas:

1. **Define the problem.** Who is it for, what must it do, and what are the constraints? This is the work of the Engineering constraints module: requirements, constraints and preferences written in measurable form.
2. **Research.** What already exists? How have other people solved similar problems? What do you need to measure before you can design?
3. **Generate concepts.** Produce many possible solutions, deliberately including unusual ones. The next lesson covers this.
4. **Select a concept.** Compare the options against your criteria and pick one (or two) to develop. Lesson three covers decision matrices and Pareto thinking.
5. **Build a prototype.** Make something real enough to test: a sketch, a cardboard model, a 3D print, a simulation.
6. **Test and evaluate.** Does it meet the requirements? What surprised you? Lesson four is about designing tests that answer specific questions.
7. **Refine, or go back.** Improve the design and test again, or return to an earlier stage if you learned something fundamental.

### Why it is a cycle, not a ladder

The arrows in a design cycle do not only point forward. A test result can send you back to *any* earlier stage:

- A prototype snaps → back to **build**, with a thicker section.
- Users hold the device in a way you never expected → back to **define**, because a requirement was missing.
- Every concept fails the same test → back to **generate**, because the whole family of ideas was wrong.
- You discover the load is three times larger than assumed → back to **research**, to measure properly.

Going backwards is not failure. It is the cycle working. The real failure is pressing forward with a design you already have evidence against.

### The cost of change

There is a strong reason to iterate *early*. Changing a design gets more expensive the further along it is. Moving a hole on a sketch costs a few seconds with an eraser. Moving it in a CAD model costs minutes. Moving it after twenty parts have been 3D printed costs hours of printing and material. Moving it after a product has shipped to customers can cost a recall.

This leads to the central strategy of iterative design: **make your mistakes while they are cheap.** Use quick, rough prototypes to answer the big, uncertain questions first, and save careful, expensive work for when the design has settled.

### A worked example: the battery clip

Here is the battery-clip story again, seen as cycles:

- **Cycle 1.** Concept: a single printed hook. Test: insert the battery. Result: the hook snapped at its base. Learning: the base was too thin, and the sharp inside corner concentrated stress. Change: thicker base with a rounded inside corner.
- **Cycle 2.** Test: insert battery, then drive over a 2 cm step ten times. Result: the battery shifted after three bumps. Learning: friction alone was not enough. Change: add a small lip that the battery snaps behind.
- **Cycle 3.** Test: insert, drive, then remove by hand. Result: secure, but removal needed a tool. Learning: a requirement was missing. Change: go back to **define** and add "battery can be removed by hand in under 10 seconds", then add a finger tab.
- **Cycle 4.** All three tests pass. Stop.

Notice that each cycle had a specific test, a recorded result and a specific change. Notice also that cycle 3 sent the team back to the problem definition. That is normal.

### Knowing when to stop

Iteration could go on forever, because almost any design could be slightly better. You need a stopping rule, and the best one is decided *before* you start: **stop when the design meets all its requirements and constraints, and the remaining improvements are worth less than the time they would take.**

Useful questions to ask at the end of each cycle:

- Does it now pass every requirement and hard constraint?
- Is the next improvement important to the people who will use it, or only satisfying to me?
- Is the deadline, budget or material running out?
- Are the changes getting smaller each cycle? (If so, you are probably close.)

"Good enough" is not an excuse for sloppy work. It is a deliberate engineering judgement that the design is fit for its purpose.

### Recap

- The design cycle is define, research, generate, select, prototype, test and refine, repeated.
- Tests can send you back to any earlier stage; that is the process working.
- Change is cheap early and expensive late, so answer the big questions with quick prototypes first.
- Each cycle needs a specific test, a recorded result and a deliberate change.
- Decide in advance what "good enough" means, and stop when you reach it.

> **Iteration in software and hardware.** Software teams can often iterate many times a day, because changing code is fast. Hardware iteration is slower, because parts must be made. That is exactly why mechanical engineers lean so heavily on sketches, cardboard, simulation and calculation: they are ways of running a cycle without waiting for a real part.

#### Project: Paper project: map a design cycle

Pick an everyday object that has clearly been improved over time, such as a stapler, a water bottle lid, a bicycle lock or a phone case.

1. Write a one-paragraph problem definition for it, with at least two measurable requirements.
2. Imagine three earlier versions that did not quite work. For each, describe the test that revealed the problem, the result and the change that fixed it.
3. Mark at least one cycle that sent the designer back to the *define* or *generate* stage instead of just refining.
4. Write a stopping rule: what would have to be true for the designer to say "this is good enough"?

This is a thinking exercise on paper; no tools are needed.

**Deliverables**

- A problem definition with two measurable requirements
- Three imagined design cycles, each with a test, result and change
- A written stopping rule

#### Check your understanding

1. A prototype test shows that users hold your device in a way you never expected. Which stage should you most likely return to?
   A) Build the prototype again with a stronger material
   B) Define the problem, because a requirement was missing
   C) Skip straight to final manufacture
   D) Select a concept by adding more weight to cost

2. Why do engineers try to answer the biggest uncertainties with quick, rough prototypes early on?
   A) Rough prototypes always look better in reports
   B) Early prototypes do not need to be tested
   C) Changes get more expensive the later they happen, so cheap early learning saves time and money
   D) Customers prefer rough prototypes

3. Which is the best stopping rule for iterating on a design?
   A) Stop when the design meets all requirements and further improvements are worth less than their cost in time and resources
   B) Stop after exactly three cycles, whatever the results
   C) Never stop; there is always something to improve
   D) Stop when you are tired of the project

4. Every concept you prototyped fails the same test in the same way. What does this most likely suggest?
   A) The test equipment is definitely broken
   B) You should pick whichever failed least and ship it
   C) You should stop testing
   D) The whole family of ideas shares a flaw, so return to generating different concepts

**Go further:**

- Engineering design process (Wikipedia): https://en.wikipedia.org/wiki/Engineering_design_process — An overview of the stages of the design process and how they are described in different fields.


## 4.2 Generating concepts

*How to produce many genuinely different design ideas before choosing one: diverging before converging, quick sketching, breaking a problem into functions, and escaping the pull of your first idea.* (about 30 min)

### The first idea is rarely the best one

Suppose you need a gripper for a small robot arm that must pick up soft fruit without bruising it. The first idea that comes to mind is probably two rigid fingers that close together, because that is what most robot grippers in pictures look like. It might work. But if you stop there, you will never discover that a soft rubber cup, a set of flexible fingers that wrap around the fruit, or a gentle scoop might work far better.

The quality of the design you end up with is limited by the quality of the options you considered. A brilliant selection process cannot choose an idea that nobody thought of. That is why the concept-generation stage of the design cycle deliberately aims for **many** ideas, including strange ones, before judging any of them.

### Diverge, then converge

Good concept generation has two distinct phases, and mixing them up is the most common mistake.

- **Divergent thinking** widens the set of options. The goal is quantity and variety. Judgement is switched off: no idea is criticised, because a weak idea can spark a strong one.
- **Convergent thinking** narrows the set down by comparing options against requirements. This is the work of the next lesson.

When people criticise ideas while they are still generating them, two things happen. Fewer ideas are produced, and the ideas that survive are the safe, familiar ones. Keep the phases separate in time. A simple rule for a session: "For the next fifteen minutes, we only add ideas. We judge them afterwards."

### Sketching to think

Sketching is not about making beautiful drawings. It is a fast way to think with your hands and to show an idea to someone else. A useful concept sketch:

- takes one to three minutes, not thirty;
- shows the key idea, with arrows for motion and labels for important parts;
- includes a one-line caption saying what makes it different;
- is drawn on its own piece of paper or box, so ideas can be laid out, sorted and compared.

A common exercise is to fold a sheet of paper into eight panels and sketch a different solution in each, giving yourself about a minute per panel. The time pressure pushes you past the obvious first two or three ideas into territory you would not have reached by thinking slowly.

### Breaking the problem into functions

Big problems are easier to explore when split into smaller **functions**: things the design must do, written as a verb and a noun. For the fruit gripper:

1. **Make contact** with the fruit
2. **Hold** the fruit securely
3. **Limit** the squeezing force
4. **Release** the fruit

For each function you can list several ways to achieve it, then combine them. This is called a **morphological chart** (morphology means "the study of form"). Written as a list:

- *Hold:* rigid fingers · flexible wrapping fingers · suction cup · scoop
- *Limit force:* soft foam padding · spring in the drive · force sensor with software limit
- *Release:* reverse the motor · spring return · release the vacuum

Four ways to hold, three ways to limit force and three ways to release gives 4 × 3 × 3 = **36** combinations. Some are nonsense (a scoop does not need a vacuum release), but many are reasonable concepts you might never have considered as whole ideas. The chart turns concept generation from waiting for inspiration into a systematic search.

### Other ways to widen the search

- **Look at nature.** Octopus suckers, elephant trunks and bird feet all grip irregular objects. Borrowing principles from biology is called biomimicry.
- **Look at other industries.** How do bakeries move soft dough? How do packing machines lift eggs?
- **Reverse the problem.** Instead of "how do we grip the fruit?", ask "how could we move the fruit without gripping it at all?" A tilting tray might do.
- **Change one assumption.** What if the gripper could be twice as big? What if it did not need a motor?
- **Work alone, then together.** Groups often converge too quickly on whoever speaks first. Having each person sketch privately for ten minutes before sharing produces more varied ideas.

### Design fixation

**Design fixation** is the tendency to get stuck on an idea you have already seen or thought of, and produce only small variations of it. Psychologists have long studied a related effect called functional fixedness: people struggle to use a familiar object in an unfamiliar way, such as using a drawing pin box as a shelf.

In design, fixation shows up when you are shown an example solution at the start and every later idea secretly resembles it. Engineers are not immune; expertise can make fixation stronger, because experts know the "usual" answer so well.

Ways to fight fixation:

- Generate your own ideas *before* looking at existing products.
- When you notice all your sketches share a feature, deliberately sketch three that do not.
- Use the morphological chart to force combinations you would not naturally choose.
- Ask someone from outside the project, who does not know the usual answer.

### Recap

- You cannot select an idea nobody thought of, so generate many before choosing.
- Separate divergent thinking (adding ideas, no judgement) from convergent thinking (comparing them).
- Quick, labelled sketches are a thinking tool, not artwork.
- Splitting a problem into functions and combining options in a morphological chart makes the search systematic.
- Design fixation pulls you back to familiar solutions; recognise it and push against it deliberately.

> **Quantity is not the final goal.** Fifty ideas are not automatically better than ten. The point of generating many is to make sure the good, unusual ones get onto the page. What matters is the *variety* of the set: ideas that differ in principle, not fifty versions of the same two-finger gripper with slightly different finger shapes.

#### Project: Paper project: a morphological chart for a desk tidy

Design a device that keeps cables from sliding off the back of a desk.

1. Write the problem as three or four functions, each a verb and a noun (for example *attach to desk*, *hold cable*, *release cable*).
2. For each function, list at least three different ways of achieving it.
3. Calculate how many combinations your chart contains.
4. Fold a sheet into eight panels and sketch eight different whole concepts in about eight minutes, picking combinations from your chart. Caption each in one line.
5. Look at your eight sketches. Do they share a hidden assumption? Sketch two more that break it.

Paper and pencil only.

**Deliverables**

- A function list for the problem
- A morphological chart with at least three options per function and the combination count
- Ten captioned concept sketches
- A short note naming the hidden assumption you broke

#### Check your understanding

1. Why should judging ideas be kept separate from generating them?
   A) Judging is not part of engineering
   B) Criticism during generation reduces the number of ideas and favours safe, familiar ones
   C) Ideas can only be judged by managers
   D) It makes the session shorter

2. A morphological chart has 3 options for one function, 4 for a second and 2 for a third. How many combinations does it contain?
   A) 9
   B) 12
   C) 24
   D) 6

3. A team is shown a photo of an existing gripper at the start of a session, and every idea they produce looks like it. What is this called?
   A) Design fixation
   B) Convergent thinking
   C) A morphological chart
   D) Biomimicry

4. Which of these best describes a good concept sketch?
   A) A detailed, shaded drawing taking at least half an hour
   B) A CAD model with every dimension
   C) A written paragraph with no drawing
   D) A quick drawing that shows the key idea, with labels, motion arrows and a one-line caption

5. Rewriting "how do we grip the fruit?" as "how could we move the fruit without gripping it?" is an example of:
   A) Convergent thinking
   B) Reversing the problem to widen the search
   C) Design fixation
   D) A stopping rule

**Go further:**

- Morphological analysis (Wikipedia): https://en.wikipedia.org/wiki/Morphological_analysis_(problem-solving) — The general method behind morphological charts: breaking a problem into dimensions and exploring combinations.
- Functional fixedness (Wikipedia): https://en.wikipedia.org/wiki/Functional_fixedness — The psychology of getting stuck on the usual use of an object, closely related to design fixation.


## 4.3 Selecting concepts with decision matrices and Pareto thinking

*How to narrow many concepts down to one: screening against hard constraints, scoring with a weighted decision matrix, and using the Pareto frontier to discard options that are beaten on every count.* (about 35 min)

### From many ideas to one

The previous lesson ended with a wall of sketches. Now you have to choose. This is the **convergent** half of concept work, and it matters as much as the divergent half: a team that cannot choose either builds the first idea anyway or argues until the deadline passes.

Selection works best in three steps, each removing options for a different reason:

1. **Screen** out anything that breaks a hard constraint.
2. **Remove dominated options**, which are beaten on every criterion that matters by some other option.
3. **Weigh** the remaining options against each other, and check how sensitive the choice is.

You met weighted decision matrices in the Engineering constraints module. This lesson adds the screening step and Pareto thinking, which together make the matrix far more trustworthy.

### Step 1: screen against hard constraints

A hard constraint is pass or fail. There is no point scoring a concept for appearance if it cannot carry the load or is unsafe. So before any scoring, go through each concept and ask: does it break any hard constraint? If yes, set it aside (keep the sketch; constraints sometimes change).

Many teams also use a quick **comparison against a reference** at this stage. Pick one concept as the reference, then mark every other concept as better (+), the same (0) or worse (−) on each criterion. This rough method, often called a Pugh matrix after the engineer who popularised it, is useful when you have many concepts and not enough information for numbers.

### Step 2: Pareto thinking

Suppose four gripper concepts for soft fruit survive screening. The team estimates two properties for each: cost and grip quality on a 1–5 scale. **These numbers are hypothetical, made up for illustration:**

```
Concept                       Cost     Grip quality
A  Rigid two-finger jaw        8          3
B  Flexible wrapping fingers  12          5
C  Suction cup                10          2
D  Foam-padded pincer          6          4
(cost in arbitrary currency units; higher grip is better)
```

Look at A and D. D is *cheaper* (6 versus 8) and *grips better* (4 versus 3). There is no reason ever to choose A over D, whatever you care about. We say **D dominates A**. Similarly, D dominates C: cheaper and better grip.

What about B and D? B grips better but costs more. Neither dominates the other. Which is better depends on how much you value grip compared with cost.

The set of options that are not dominated by any other is called the **Pareto frontier** (after the economist Vilfredo Pareto). Here it is {D, B}. The key insight:

> Whatever weights you choose, the winner will always be on the Pareto frontier.

So you can discard dominated options *before* arguing about weights. That often removes half the list with no judgement calls at all. The remaining choice, along the frontier, is a genuine trade-off: to gain grip you must pay more. Weights are how you decide where on that trade-off you want to be.

### Step 3: a weighted matrix on what remains

With more criteria the frontier is harder to see by eye, so we score. The team agrees criteria and weights *before* scoring (weights add to 1), then scores each concept from 1 to 5. **Again, all scores are hypothetical:**

```
Criterion           Weight    A     B     C     D
Grip on soft fruit   0.35     3     5     2     4
Low cost             0.20     4     3     3     5
Ease of making       0.25     3     3     4     5
Low mass             0.20     4     4     5     3

Weighted total                3.40  3.90  3.30  4.25
```

Check D: 0.35·4 + 0.20·5 + 0.25·5 + 0.20·3 = 1.40 + 1.00 + 1.25 + 0.60 = 4.25.
Check B: 0.35·5 + 0.20·3 + 0.25·3 + 0.20·4 = 1.75 + 0.60 + 0.75 + 0.80 = 3.90.

D leads. Now the sensitivity check. Suppose a test shows that grip matters even more than thought, so grip rises to 0.50 and ease of making falls to 0.10:

```
B: 0.50·5 + 0.20·3 + 0.10·3 + 0.20·4 = 2.50 + 0.60 + 0.30 + 0.80 = 4.20
D: 0.50·4 + 0.20·5 + 0.10·5 + 0.20·3 = 2.00 + 1.00 + 0.50 + 0.60 = 4.10
```

Now B narrowly wins. Both B and D are on the frontier, and the choice between them hinges on how much grip really matters. That is not a failure of the method; it tells you exactly what to test next. A quick prototype of each, tried on real soft fruit, is worth more than another hour adjusting weights.

### The explorer

The explorer below applies the same ideas to a different decision: choosing the computing and sensing package for a small robot. Each option has an illustrative cost, power draw and estimated task accuracy. Constraints (budget, power limit, minimum accuracy) screen options out, the plot highlights the Pareto frontier, and the weights rank the survivors.

> **Interactive:** First lower the budget and power limit and watch options get excluded. Then change the weights: notice that the top-ranked option always sits on the Pareto frontier. Find two weightings that pick different winners, and identify which options are never chosen whatever the weights. Try it at https://tactiverge.win/academy/lab/#constraints

### Common traps

- **Double counting.** "Low mass" and "easy to carry" may measure the same thing. Counting both quietly doubles its weight.
- **False precision.** A score of 3.90 against 3.85 is a tie. Scores are rough judgements, so differences smaller than about half a point on a 1–5 scale rarely mean much.
- **Scoring your favourite.** People unconsciously score the idea they like more generously. Score criterion by criterion across all options (all grip scores, then all cost scores) rather than option by option, and where possible base scores on measurements or calculations.
- **Forgetting the frontier.** If a dominated option wins your matrix, check your arithmetic; it cannot happen with consistent scores and positive weights.

### Recap

- Screen out concepts that break hard constraints before scoring anything.
- An option is dominated if another is at least as good on every criterion and better on one; dominated options can be discarded regardless of weights.
- The Pareto frontier is the set of non-dominated options; the best choice always lies on it.
- Set weights before scoring, score criterion by criterion, and always run a sensitivity check.
- When the frontier options are close, use a prototype or test to decide, not more arithmetic.

> **Record the decision, including the runner-up.** Write down which concept you chose, the weights, the scores, the sensitivity result and the runner-up. If the chosen concept later fails, you will know exactly where to go back to, and nobody will have to guess why the decision was made.

#### Check your understanding

1. Option P costs 20 and scores 4 for performance. Option Q costs 25 and scores 3. Higher performance is better. What is true?
   A) Q dominates P
   B) Neither dominates the other
   C) P dominates Q
   D) They are both on the Pareto frontier

2. Why is it useful to remove dominated options before choosing weights?
   A) Dominated options can never win under any positive weighting, so removing them needs no judgement
   B) Dominated options are always unsafe
   C) Weights only work with two options
   D) It makes the matrix look more impressive

3. A concept fails a hard safety constraint but scores highest in the matrix. What should happen?
   A) Choose it, because it scored highest
   B) Lower the weight of safety until it passes
   C) Average its score with the runner-up
   D) Exclude it at the screening step; hard constraints are pass or fail, not scored

4. Two frontier options score 3.9 and 4.1, and a small change in weights swaps their order. What is the best next step?
   A) Pick the 4.1 option and stop thinking about it
   B) Build quick prototypes of both and test the criterion the decision hinges on
   C) Add more criteria until one option wins clearly
   D) Discard both and start again

**Go further:**

- Pareto front (Wikipedia): https://en.wikipedia.org/wiki/Pareto_front — A more formal treatment of domination and the Pareto frontier in multi-objective optimisation.
- Decision-matrix method (Wikipedia): https://en.wikipedia.org/wiki/Decision-matrix_method — Background on the Pugh method and weighted decision matrices.


## 4.4 Testing to learn

*Every prototype should answer a specific question. How to write that question, predict the answer, design the smallest test that settles it, and decide in advance what result would change your mind.* (about 30 min)

### "Let's build it and see" is not a plan

A team spends two weeks building a complete robot gripper: motor, linkage, padded fingers, wiring and control code. They switch it on, it picks up a soft ball, drops it, and nobody knows why. Was the grip force too low? The finger pads too slippery? The motor too slow? The code wrong? Because the prototype tried to answer every question at once, it answered none of them clearly.

Compare a second team. Before building anything, they ask: *will foam pads grip a soft ball securely with a modest squeeze?* They glue foam to two wooden blocks, squeeze a ball between them by hand using a simple spring clip, and shake it. In twenty minutes they have an answer. Then they ask the next question.

The difference is not skill or budget. It is that the second team treats every prototype as **a question made physical**.

### Start with the question

A good prototype question is specific, answerable and connected to a real decision. Compare:

- Vague: "Does the gripper work?"
- Specific: "With 3 N of squeeze, does a foam-padded finger hold a 60 g soft ball without slipping when shaken?"

The specific version tells you what to build (two padded surfaces and a way to apply about 3 N), what to measure (slip, yes or no), and what conditions to use. It also connects to a decision: if foam works at 3 N, a small, cheap actuator will do; if not, you need more force or a different pad.

To find good questions, look at your design and ask: **what am I least sure about, and what would be most expensive to get wrong?** Test that first. This is sometimes called retiring risk: tackling the riskiest unknowns early, while changes are still cheap.

### Predict before you test

Before running the test, write down what you expect to happen and why. "I predict the ball will not slip, because foam has a high friction coefficient against rubber." This small habit does three things:

1. It forces you to think about the physics before you look.
2. It makes surprises visible. If you did not write a prediction, it is easy to convince yourself afterwards that you "knew it all along".
3. Surprises are where the learning is. A result that matches your prediction confirms your understanding; one that does not tells you your mental model is wrong somewhere.

### Decide what would change your mind

Also write, before testing, the **decision rule**: what result leads to what action. For example:

- If the ball stays put in at least 9 of 10 shake tests → keep foam pads, move on to sizing the actuator.
- If it slips in 2 or more of 10 → try a textured rubber pad and retest.

Setting the rule in advance protects you from a very human tendency: reading an ambiguous result as good news because you like the design. The Research and Engineering Methodology pathway calls this pre-registration; in engineering it is simply good practice.

### Design the smallest test that answers the question

A test should isolate the thing you are asking about. Some guidelines:

- **Change one thing at a time.** If you change the pad material and the squeeze force together, you cannot tell which caused the difference.
- **Build only what the question needs.** The foam question needs no motor and no code.
- **Repeat.** One trial can be luck. Several trials show whether the result is consistent. Ten quick repeats are usually more informative than one careful one.
- **Measure if you can.** "It held" is useful; "it held at 3 N but slipped at 2 N" is far more useful. A kitchen scale, a ruler and a phone stopwatch go a long way.
- **Keep conditions fixed.** Same ball, same shake, same surface, so only the variable you are testing changes.

### A worked test record

Here is how a short test might be written up. **The results are hypothetical, made up for illustration.**

```
Question:   Does a foam pad hold a 60 g soft ball at about 3 N squeeze
            when shaken?
Prediction: Yes - foam should grip rubber well.
Rule:       >= 9/10 holds -> keep foam. <= 8/10 -> try textured rubber.
Setup:      Two wooden blocks, 5 mm craft foam glued on, spring clip
            giving about 3 N (checked by pressing the clip on a kitchen
            scale: about 300 g reading).
Method:     Clip ball, shake side to side 5 times, record slip yes/no.
            10 trials.
Result:     7 holds out of 10. Slips happened when the ball was gripped
            off-centre.
Decision:   Rule says try textured rubber. Also new question:
            does a centring guide fix off-centre grips?
```

Notice the scale check: a reading of about 300 g corresponds to a force of about 0.3 kg × 9.8 m/s² ≈ 2.9 N. Notice also that the result produced a *new* question. That is normal. A good test often answers one question and reveals the next.

### Test failure is information

A prototype that "fails" a well-designed test has succeeded at its real job: it has told you something true about the world, cheaply, before you committed to the design. The only truly wasted prototype is one built without a question, because you cannot learn much from its result.

### Recap

- Every prototype should answer a specific, answerable question linked to a decision.
- Test your biggest and most expensive uncertainties first.
- Write a prediction and a decision rule before testing.
- Isolate one variable, build only what the question needs, repeat trials and measure where you can.
- A "failed" test that teaches you something is a successful prototype.

> **Testing physical prototypes.** Even simple tests can hurt someone. Springs, elastic bands and clamps store energy and can snap or fly off; wear eye protection when testing anything under tension. Keep fingers out of anything that closes, and never test a prototype by hanging a heavy load over feet or people. Any test that uses tools, motors or batteries needs adult supervision.

#### Project: Paper project: write three test plans

Choose a design you know or are working on (for example the bag hook, phone stand or desk cable tidy from earlier lessons).

1. List the three things you are least sure about in the design. Rank them by how expensive they would be to get wrong.
2. For the top three, write a full test plan using the structure in the worked record: question, prediction, decision rule, setup, method and number of trials.
3. For each plan, check that only one variable changes and that the prototype contains only what the question needs.

You only need to write the plans. If you later carry one out with cardboard, string or other household items, follow the safety note and ask an adult to supervise any test involving tools, stored energy or loads.

**Deliverables**

- A ranked list of three uncertainties
- Three complete written test plans with predictions and decision rules
- A short note on which variable each test isolates

**Safety (adult supervision required):** This project is designed to be done on paper. If you build and run any of your tests, do so with adult supervision. Wear eye protection when anything is under tension (springs, elastic bands, clamps), keep fingers clear of closing parts, use scissors rather than craft knives where possible, and never test with loads that could fall on feet or people.

#### Check your understanding

1. Which is the best question for a prototype to answer?
   A) "Is the design good?"
   B) "Will people like it?"
   C) "Does a 2 mm thick printed clip survive 50 battery insertions without cracking?"
   D) "What happens if we build everything?"

2. Why write a decision rule before running a test?
   A) To stop yourself interpreting an ambiguous result in favour of the design you prefer
   B) Because tests cannot be run without one
   C) So the test takes longer
   D) To guarantee the design passes

3. A team changes both the pad material and the squeeze force between two tests, and grip improves. What can they conclude?
   A) The new material caused the improvement
   B) The higher force caused the improvement
   C) Both changes were equally responsible
   D) They cannot tell which change caused it, because two variables changed at once

4. A spring clip pressed on a kitchen scale reads about 500 g. Roughly what force does it apply?
   A) About 0.5 N
   B) About 4.9 N
   C) About 50 N
   D) About 500 N


## 4.5 Failure analysis and finding root causes

*When a prototype breaks or misbehaves, how to look past the symptom to the root cause, using careful observation, the 5 whys and a fishbone diagram, and then confirm the cause with a test.* (about 30 min)

### A failure is a clue

Your robot's gripper arm suddenly droops during a test and drops what it is holding. The tempting response is to fix the first thing you see: tighten a screw, add a bit of glue, and run again. Sometimes that works. Often the failure comes back a day later, because you fixed the **symptom** and not the **cause**.

Failure analysis is the discipline of working out *why* something failed, carefully enough that the fix stops it happening again. It matters for robots, and it matters enormously in industries like aviation and medicine, where investigators examine failures in detail so that the same accident is never repeated. On a smaller scale, the same habits will save you hours of frustration on your own projects.

### Step 1: preserve the evidence and observe

Before fixing anything, look. Once you have taken a part apart or glued it, evidence is gone.

- **Photograph** the failed part from several angles, with a ruler for scale.
- **Write down the conditions:** what the robot was doing, the load, how long it had been running, anything unusual.
- **Look closely at broken surfaces.** A clean, flat break across 3D-printed layers suggests the layers separated. A part that bent before breaking suggests overload. A crack that started at a sharp inside corner suggests stress concentration. Shiny, worn patches suggest rubbing.
- **Ask whether it has happened before.** A one-off and a repeating failure usually have different causes.

### Step 2: separate symptom, mechanism and root cause

It helps to name three levels:

- **Symptom:** what you saw. *The arm drooped.*
- **Failure mechanism:** the physical process. *The screw holding the arm to the motor hub worked loose.*
- **Root cause:** the deepest cause you can act on, which, if removed, prevents the failure. *The screw was driven straight into soft plastic, which cannot hold a thread under repeated vibration.*

Fixing the symptom (pushing the arm back up) achieves nothing. Fixing the mechanism (retightening the screw) buys time. Fixing the root cause (using a metal threaded insert or a nut) solves the problem.

### The 5 whys

A simple way to dig from symptom to root cause is to keep asking "why?" Around five times is a rule of thumb, not a law; stop when you reach something you can change that would prevent the failure.

```
1. Why did the arm drop the object?
   The arm drooped about 20 degrees mid-task.
2. Why did it droop?
   The arm slipped on the motor hub.
3. Why did it slip?
   The clamping screw had loosened.
4. Why had it loosened?
   Vibration gradually stripped the thread the screw had
   cut in the printed plastic.
5. Why was a thread cut in plastic at all?
   The design screwed directly into the print to save a part;
   nobody checked whether plastic threads survive vibration.
Root cause: design choice - screw into bare plastic under vibration.
Fix: add a nut or threaded insert; add a vibration test to the plan.
```

Notice that the final answer points at a *design decision and a missing test*, not at a person. That is deliberate. "Why? Because Sam tightened it badly" is almost never a useful root cause. Ask instead why the design allowed a small human variation to cause a failure.

The 5 whys has a weakness: it follows a single chain, but real failures often have several contributing causes. That is where the next tool helps.

### The fishbone diagram

A **fishbone diagram** (also called an Ishikawa diagram, after the quality engineer Kaoru Ishikawa) lays out many possible causes at once. The failure goes at the "head" of the fish, and the main bones are categories of cause. A common set for engineering:

- **Materials:** wrong material, poor batch, moisture in filament, worn parts
- **Method:** assembly steps, print settings, the order things are done
- **Machine:** tools, printer calibration, motor or sensor faults
- **Measurement:** wrong readings, uncalibrated sensors, mis-read dimensions
- **Environment:** temperature, vibration, dust, humidity
- **People:** training, unclear instructions, fatigue

A fishbone can be drawn on paper as a horizontal spine with diagonal bones, or written as a grouped list like the one above. The team brainstorms possible causes under each heading, then decides which are plausible given the evidence. It is a way to make sure you do not tunnel on the first explanation.

### Step 3: confirm the cause

A root cause is a **hypothesis** until tested. Good confirmation tests:

- **Reproduce the failure** deliberately under the suspected conditions. If the screw-in-plastic theory is right, a fresh assembly should loosen after a similar amount of vibration.
- **Apply the fix and repeat** the same test. If the failure stops, you have good evidence.
- **Check the alternatives.** If the screw does not loosen when vibrated, your root cause is wrong; go back to the fishbone.

### Recap

- Preserve evidence and observe carefully before fixing anything.
- Distinguish the symptom, the physical failure mechanism and the root cause.
- The 5 whys digs down one chain of causes; aim for a cause you can act on, not a person to blame.
- A fishbone diagram spreads out many possible causes by category so you do not fixate on one.
- Treat a root cause as a hypothesis and confirm it by reproducing the failure and testing the fix.

> **Breaking things on purpose.** Reproducing a failure can mean loading a part until it breaks. Broken plastic can fly off with sharp edges, and springs or stretched bands release their energy suddenly. Wear eye protection, keep your face and hands out of the line of the break, load parts gradually and from a distance where possible, and have an adult supervise any destructive test.

#### Project: Paper project: investigate a failure

Think of something that failed in your own life: a broken bag strap, a phone charger cable that stopped working, a chair that wobbles, a model that fell apart. (If you have a failed object, look at it; do not take apart anything electrical or mains-powered.)

1. Describe the symptom and the conditions when it happened.
2. Describe what you can observe about the failure (where it broke, what it looks like).
3. Run a 5 whys chain and identify a root cause you could act on. Make sure it is not "someone was careless".
4. Draw a fishbone diagram with the six categories and at least one possible cause in four of them.
5. Describe a test that would confirm or rule out your root cause, and the design change that would fix it.

**Deliverables**

- A symptom and conditions description
- A written 5 whys chain ending in an actionable root cause
- A fishbone diagram
- A confirmation test and a proposed fix

**Safety (adult supervision required):** Do this as an observation and paper exercise. Never open or take apart anything that plugs into mains electricity, chargers, power banks or batteries. If you examine a broken object, watch for sharp edges and splinters, and ask an adult before using any tools on it.

#### Check your understanding

1. A printed bracket cracks. Which of these is the root cause rather than a symptom or mechanism?
   A) The bracket is cracked
   B) The crack grew from a sharp inside corner
   C) The bracket was designed with a sharp inside corner at the point of highest stress, and no load test was planned
   D) The robot stopped working

2. A 5 whys chain ends with "because the technician was careless". What is the best response?
   A) Accept it and retrain the technician
   B) Ask why the design or process allowed a small human slip to cause a failure
   C) Stop the analysis there
   D) Remove the technician from the project

3. What is the main advantage of a fishbone diagram over a single 5 whys chain?
   A) It considers many possible causes across categories, reducing the risk of fixating on one
   B) It always finds the answer in five steps
   C) It does not require any evidence
   D) It replaces the need for testing

4. You believe a screw loosened because of vibration. What is the strongest way to confirm this?
   A) Ask the team whether they agree
   B) Replace the screw and hope
   C) Search for a photo of a similar failure online
   D) Reproduce the failure with vibration on a fresh assembly, then show the fix prevents it under the same test

**Go further:**

- Five whys (Wikipedia): https://en.wikipedia.org/wiki/Five_whys — The origins of the technique and a discussion of its limitations.
- Ishikawa diagram (Wikipedia): https://en.wikipedia.org/wiki/Ishikawa_diagram — How fishbone diagrams are structured and the common cause categories used in different industries.
- Root cause analysis (Wikipedia): https://en.wikipedia.org/wiki/Root_cause_analysis — An overview of root cause analysis methods more broadly.


## 4.6 Documenting iterations

*How to keep a design log and decision records so that every change, and the reason behind it, can be found and revisited later by you or by someone else.* (about 25 min)

### The question nobody can answer

Three months into a robot project, a new team member asks: "Why is the gripper finger 4 mm thick? It would be lighter at 3 mm." Silence. Someone remembers there was a reason. Maybe it broke at 3 mm? Or was that the old design with the different hinge? Nobody is sure, so they either leave it alone forever (and never get the lighter design) or change it and risk repeating a failure that was solved months ago.

This happens on almost every project that does not document its iterations. The design itself is visible: you can measure the finger. What disappears is the **reasoning**: the alternatives considered, the tests that ruled them out and the assumptions the decision depended on. Documenting iterations is about keeping that reasoning, so that decisions can be revisited sensibly instead of guessed at.

### What to record

Through this module you have met the pieces that make up a design iteration: a question, a prototype, a test, a result, a failure analysis and a decision. Good documentation simply captures each one at the time it happens. The core records are:

1. **A design log.** A dated, running record of what you did, what happened and what you think it means. It can be a paper notebook or a digital document. The key is that entries are written *at the time*, not reconstructed later from memory.
2. **Versioned designs.** Each significant version of a part or assembly gets a name or number, and the log says which version each test used.
3. **Decision records.** Short, structured notes for important decisions, explained below.
4. **Evidence.** Photos, measurements, test records and sketches, linked to the log entry they belong to.

### Version names that work

A version name should tell you, at a glance, which design is which. A simple scheme:

```
gripper-finger_v1.step     first printed version
gripper-finger_v2.step     thicker base after v1 cracked
gripper-finger_v2.1.step   v2 with hole moved 1 mm (minor change)
gripper-finger_v3.step     new hinge design
```

A major number for significant changes, a minor number for small tweaks, and never names like *final*, *final2* or *final-REAL*. Mark physical prototypes too: a marker pen "v2" on the part, or a label on the bag it lives in, saves confusion when three similar prints sit on a desk. The Engineering documentation module covers version control software, which does this automatically for files.

### Decision records

For any decision that someone might later want to question, write a short **decision record**. Engineers sometimes call the reasoning behind a design its *design rationale*. A useful structure:

- **Date and version**
- **Context:** what problem or result prompted the decision
- **Options considered:** including the ones you rejected
- **Decision:** what you chose
- **Reasons and evidence:** tests, calculations or constraints that support it
- **Assumptions:** what must stay true for the decision to remain right
- **Revisit if:** the specific change that should reopen the question

Here is the gripper finger decision written up properly. **The test numbers are hypothetical, made up for illustration.**

```
Decision record DR-07          Date: 14 March     Part: finger v2
Context:    v1 finger (3 mm base) cracked at the base in 3 of 5
            squeeze tests at 10 N.
Options:    (a) 4 mm base, same material
            (b) 3 mm base with a 2 mm fillet at the inside corner
            (c) switch to a tougher filament
Decision:   (a) 4 mm base, plus a 1 mm fillet.
Reasons:    Bending stress at the base scales with 1/thickness^2:
            (3/4)^2 = 0.56, so about 44% lower stress for the same
            load. 0 cracks in 5 tests at 10 N.
            Option (c) not available to the team this term.
Assumptions: Max squeeze force stays at or below 10 N.
            Same printing material and orientation.
Revisit if: A force limit is added in software, OR a tougher
            material becomes available -> retest a 3 mm base.
```

Now the new team member's question has an answer: the 4 mm base was chosen because the 3 mm one cracked at 10 N, and it is worth trying 3 mm again if the squeeze force is limited. The record does not forbid change; it tells you *when* change makes sense.

### Writing a good log entry

A design log is not a diary of feelings, and it is not a polished report. It is a working record. Good entries are:

- **Dated and specific.** "Tuesday 14 March, finger v2, squeeze test at 10 N" rather than "tested the finger".
- **Honest about failures.** Failed tests are often the most valuable entries, because they stop the same idea being tried again.
- **Clear about what is measured and what is guessed.** "Cracked at the base (photo 12)" is an observation. "Probably due to layer adhesion" is an interpretation; label it as such.
- **Linked.** "See test record T-14, photos 12–15, decision DR-07."
- **Never rewritten.** If an entry was wrong, add a new dated entry correcting it. Do not erase the old one.

### How much is enough?

Documentation takes time, and over-documenting can slow a project as much as under-documenting can confuse it. A practical rule: **record anything that cost you more than ten minutes to find out, and every decision someone might reasonably question.** Routine actions ("printed another copy of v2") need a line at most. Surprising results and important choices need a proper entry.

### Recap

- Designs are visible, but the reasoning behind them disappears unless written down.
- Keep a dated design log, clear version names, decision records and linked evidence.
- A decision record captures context, options, decision, reasons, assumptions and a "revisit if" trigger.
- Log entries should be written at the time, specific, honest about failures, and never silently rewritten.
- Record what was expensive to learn and what others might question.

> **Records you can trust.** A design log is only useful if it is honest. Recording only the tests that went well, or quietly editing old entries to match what you now believe, makes the log worse than useless: it will mislead the next person. Correct mistakes with new dated entries, and keep failed results alongside successful ones.

#### Project: Paper project: reconstruct and document a decision

Pick any design you have worked on in this module (or an everyday object whose design you can reason about, such as a ruler or a clothes peg).

1. Choose one feature of the design (a thickness, a material, a shape) and write a full decision record for it using the structure in this lesson. Include at least two rejected options and a "revisit if" trigger.
2. Write three design log entries covering a test, a surprising result and a correction to an earlier entry, in the dated, specific style shown above. Any numbers must be labelled as hypothetical.
3. Propose a version naming scheme for the design and list the first four versions.
4. Swap with a friend or family member: can they explain, from your records alone, why the feature is the way it is?

**Deliverables**

- One complete decision record
- Three dated design log entries, including one correction
- A version naming scheme with four example versions
- A note on what your reader could and could not understand

#### Check your understanding

1. What is usually lost when a project does not document its iterations?
   A) The final dimensions of the parts
   B) The reasoning: the options considered, tests that ruled them out and assumptions made
   C) The colour of the prototypes
   D) The names of the files

2. What is the purpose of the "revisit if" line in a decision record?
   A) To prevent the decision ever being changed
   B) To list who made the decision
   C) To state the specific change in circumstances that should reopen the decision
   D) To record the date

3. You realise yesterday's log entry contains a wrong measurement. What should you do?
   A) Add a new dated entry that corrects it and refers back to the original
   B) Erase the old entry so the log looks tidy
   C) Leave it and say nothing
   D) Tear out the page

4. Which version naming scheme is most useful?
   A) part_final, part_final2, part_final_REAL
   B) part_new, part_newer, part_newest
   C) Random names chosen each time
   D) part_v1, part_v2, part_v2.1, with major and minor numbers

**Go further:**

- Design rationale (Wikipedia): https://en.wikipedia.org/wiki/Design_rationale — Approaches to recording the reasons behind design decisions.


---

# Module 5: Prototyping principles

Choosing the right kind of prototype for the question you need to answer, from paper sketches to functional models.

**Objectives**

- Distinguish looks-like, works-like and proof-of-concept prototypes.
- Match a prototyping method to the question being asked and the resources available.
- Explain the strengths and limits of 3D printing, laser cutting and hand fabrication.
- Plan a prototype build that includes safety precautions and adult supervision where required.


## 5.1 Choosing prototype fidelity

*Prototypes range from a sketch to a near-finished product. How to choose the lowest fidelity that still answers your question, and the difference between looks-like, works-like and proof-of-concept prototypes.* (about 25 min)

### How real does it need to be?

You are designing a handle for a robot's carrying case and want to know whether it is comfortable to hold. You could spend a day modelling it in CAD and hours 3D printing it. Or you could roll up a piece of card, tape it to a shoebox, and try carrying the box around the room. Both are prototypes. For the question "is this handle shape comfortable to grip?", the cardboard version may tell you nearly everything the printed one would, in ten minutes instead of ten hours.

How closely a prototype resembles the final product is called its **fidelity**. A low-fidelity prototype is rough, fast and cheap. A high-fidelity prototype is close to the real thing in materials, appearance and behaviour, and correspondingly slower and more expensive. Choosing fidelity well is one of the most practical skills in design, because it decides how quickly you can go round the design cycle.

### Fidelity has several dimensions

A prototype is not simply "rough" or "polished". It can be faithful in some ways and not others:

- **Appearance:** does it look like the final product (shape, colour, finish)?
- **Function:** does it actually do the job (move, grip, carry load)?
- **Material:** is it made of the real material, with the real stiffness, weight and friction?
- **Scale:** is it full size, or a scaled model?
- **Interaction:** can a person use it the way they would use the real thing?

The trick is to be high-fidelity *only in the dimensions your question depends on*. The handle test needs realistic shape and size (interaction and scale) but not realistic material or colour.

### Kinds of prototype

Designers use a few common names for prototypes with different purposes:

- **Proof-of-concept:** answers "does the underlying principle work at all?" It may look nothing like the final design. Example: holding two magnets near each other to see if they could hold a lid shut.
- **Works-like:** behaves like the final product but may look nothing like it. Example: a gripper mechanism built from wood and rubber bands that grips correctly, with no casing.
- **Looks-like:** has the final appearance and size but no working parts. Example: a painted foam model of the robot to check its proportions and how it fits on a desk.
- **Feels-like (ergonomic):** focuses on how it feels in the hand or how it is used. The cardboard handle is one.
- **Integrated:** combines looks-like and works-like into something close to the final product, usually late in the project.

Professional teams often build separate looks-like and works-like prototypes in parallel and only combine them at the end, because each answers different questions and they evolve at different speeds.

### Matching fidelity to the question

The guiding rule is: **use the lowest fidelity that can still answer your question reliably.** Here is a set of example questions with a sensible prototype for each. The times are rough, hypothetical estimates to show the scale of the difference:

- *Will the robot fit under a standard desk?* → a cardboard box cut to the outer dimensions (minutes).
- *Can a person reach the power switch easily?* → the same box with a marked switch position; ask three people to try (minutes).
- *Does a four-bar linkage give the motion we want?* → card strips joined with paper fasteners, or a free online linkage simulator (under an hour).
- *Will the printed finger survive a 10 N squeeze?* → a 3D print in the real material and orientation (a few hours), because strength depends on exactly those things.
- *Does the complete gripper pick up soft fruit reliably?* → a works-like prototype with the real actuator (days).

Notice how the fidelity rises with the question. Strength and reliability questions usually need real materials; fit, reach and motion questions usually do not.

### Two ways to get fidelity wrong

**Too high, too early.** Building a beautiful, detailed prototype at the start feels productive, but it is slow, it makes you reluctant to throw it away, and it answers questions you have not reached yet. Teams that start with high fidelity iterate fewer times.

**Too low for the question.** A cardboard prototype can give misleading answers when the question depends on a property cardboard does not have. A cardboard robot arm may look as if it reaches the target, but cardboard is far lighter and floppier than aluminium or plastic, so it tells you nothing about whether the real motor can lift the real arm. Before trusting a low-fidelity result, ask: *does my answer depend on anything this prototype gets wrong?*

### Do not forget the zero-cost prototypes

Some questions can be answered before building anything at all:

- **A calculation.** The cantilever scaling laws from the Engineering constraints module can tell you whether a bracket is roughly thick enough.
- **A simulation.** Free software can simulate mechanisms or check that parts do not collide in a CAD assembly.
- **A sketch to scale.** Drawing the robot and the desk on squared paper at 1:10 can answer the fit question in minutes.

These are prototypes too, in the sense that matters: they answer a design question cheaply.

### Recap

- Fidelity is how closely a prototype resembles the final product, and it has several dimensions: appearance, function, material, scale and interaction.
- Proof-of-concept, works-like, looks-like and feels-like prototypes answer different questions.
- Use the lowest fidelity that still answers your question reliably, and be faithful only where the question depends on it.
- Too-high fidelity early slows iteration; too-low fidelity can mislead when the answer depends on a missing property.
- Calculations, simulations and scale sketches are prototypes with almost no cost.

> **Name the question on the prototype.** A simple habit: write the question a prototype is meant to answer on the prototype itself, or on a label next to it. "Q: does the handle fit a large hand?" It keeps the build focused, and it stops anyone later mistaking a rough mock-up for a design that was tested for strength.

#### Project: Paper project: a prototype plan for a desk robot

Imagine a small desk robot that carries pens from one side of a desk to the other.

1. Write five questions you would need answered before finalising the design, covering fit, use, motion, strength and reliability.
2. For each question, choose a prototype type (proof-of-concept, works-like, looks-like, feels-like, or a calculation or sketch) and describe the lowest-fidelity version that could answer it reliably.
3. For each, name one property the prototype gets wrong and explain why that does not matter for this question (or, if it does matter, raise the fidelity).
4. Put the five prototypes in the order you would build them, and explain the order.

This is a planning exercise on paper.

**Deliverables**

- Five design questions
- A matching low-fidelity prototype for each, with its type
- For each prototype, one property it gets wrong and why that is acceptable
- An ordered build plan with a short justification

#### Check your understanding

1. Which prototype is a looks-like prototype?
   A) A wooden linkage that moves exactly like the final gripper but has no casing
   B) Two magnets held near each other to check they attract strongly enough
   C) A painted foam model at full size with no moving parts
   D) A spreadsheet calculating battery life

2. You want to know whether a printed bracket will survive its working load. Which prototype is most appropriate?
   A) A cardboard copy of the bracket
   B) A print in the real material and orientation, tested under the load
   C) A sketch of the bracket
   D) A looks-like model painted the final colour

3. A cardboard model of a robot arm reaches its target. Why might this be misleading?
   A) Cardboard is much lighter and floppier than the real material, so it says nothing about whether the motor can lift the real arm
   B) Cardboard models are always the wrong size
   C) Reach cannot be tested with any prototype
   D) Cardboard is too expensive

4. What is the main risk of building high-fidelity prototypes very early?
   A) They are always unsafe
   B) They answer every question at once
   C) They cannot be tested
   D) They are slow and costly, so you iterate fewer times and become reluctant to discard them

**Go further:**

- Prototype (Wikipedia): https://en.wikipedia.org/wiki/Prototype — An overview of prototype types and how they are used across engineering and design.


## 5.2 Paper and cardboard prototyping

*How to build fast, useful prototypes from paper, card and corrugated cardboard: choosing the material, folding, slotting and joining, and using a craft knife safely under adult supervision.* (about 30 min)

### The engineer's fastest material

Cardboard is cheap, everywhere, and quick to shape. You can go from an idea to a full-size model in the time it takes a 3D printer to warm up. That speed means more design cycles, and more cycles usually means a better design. Professional design studios use cardboard and foam board constantly for exactly this reason, especially in the early stages, to check size, fit, reach and how people use a product.

This lesson covers how to get good results from paper and card, and how to cut it safely.

### Choosing the material

- **Paper and thin card** (like cereal boxes): easy to cut with scissors, folds cleanly. Good for templates, small mechanisms and quick shape studies.
- **Corrugated cardboard** (shipping boxes): two flat sheets with a wavy layer (the flutes) between them. Surprisingly stiff for its weight. Good for full-size models, enclosures and chassis mock-ups.
- **Foam board:** a foam core between two paper faces. Flat, clean and easy to cut, but dents easily. Good for looks-like models.

Corrugated cardboard has a **grain**. It is much stiffer when bent across the flutes than along them. Try it: take a strip cut with the flutes running along its length and another with them running across. One will bend easily, the other will resist. For a part that must carry load, like a shelf or an arm, orient the flutes so the part resists bending in the direction it is loaded.

### Making clean folds

Card folds neatly only if you **score** it first: press a line into the surface without cutting through. Use the back of a butter knife, an empty ballpoint pen or a blunt scoring tool, guided by a ruler. Then fold along the line, usually away from the scored side. For corrugated board, folding along the flutes is easy; folding across them benefits from crushing the line flat first.

Folds also add stiffness. A flat strip of card is floppy, but fold it into an L, U or triangle shape and it becomes much stiffer. This is the same idea as the cantilever lesson: moving material away from the centre of bending makes a section far more rigid. A triangular tube of card can support a surprising load.

### Joining parts

- **Tabs and slots:** cut a slot in one piece and a tab on another and push them together. For a snug fit, make the slot width equal to the card thickness. Measure it: if your corrugated board is 4 mm thick, cut a 4 mm slot. Slots slightly narrower give a tight press fit; slightly wider let parts rotate.
- **Masking tape:** easy to remove and reposition, ideal for early models you will change.
- **PVA (white) glue:** strong once dry, but slow. Hold or clamp parts while it sets.
- **Hot glue:** fast and strong enough for most models, but the glue and the nozzle are hot enough to burn skin. Use only with adult supervision.
- **Paper fasteners (split pins):** make simple pivots for linkages and moving parts.

For mechanisms, a pivot made with a paper fastener through two strips of card gives you a working joint in seconds. Four strips and four fasteners make a four-bar linkage you can test by hand.

### Templates and measuring

For anything more than a quick sketch model, draw the parts on paper first, either by hand or printed from free CAD software at full scale. Check the printed scale with a ruler (printers sometimes scale pages slightly), then glue or trace the template onto card. This makes parts accurate and lets you cut several identical copies.

### Cutting safely

Scissors handle most paper and thin card. For corrugated board and foam board you may need a **craft knife**, and craft knives are one of the most common causes of workshop cuts. The blade is very sharp and the most dangerous moment is when it slips. Follow these rules every time, with an adult supervising:

- **Use a cutting mat** or a thick piece of scrap board underneath, never a table or your lap.
- **Use a metal ruler** as a guide, not a plastic one the blade can ride over.
- **Keep your other hand behind the blade**, holding the ruler firmly with fingers well away from the edge, ideally on a ruler with a raised finger guard.
- **Cut away from your body** and away from the hand holding the work.
- **Make several light passes** rather than one hard push. Pressing hard is what makes blades slip.
- **Use a sharp blade.** A blunt blade needs more force and is more likely to skid. Changing blades must be done carefully, with an adult, and old blades go into a sealed container for disposal, not loose in a bin.
- **Retract or cap the blade** every time you put the knife down, even for a moment.
- **Stand or sit steadily**, with good light and no one jogging your elbow.

If a cut happens, stop, apply firm pressure with a clean cloth, and get an adult immediately.

### Recap

- Paper and cardboard give fast, cheap, full-size prototypes, which means more design cycles.
- Corrugated cardboard is much stiffer across the flutes; orient the grain to resist the load.
- Score before folding; folded sections (L, U, triangle) are far stiffer than flat ones.
- Join with tab-and-slot (slot width = card thickness), tape, PVA, hot glue (supervised) or paper fastener pivots.
- Craft knives need a mat, a metal ruler, light passes away from your body, a sharp blade, a retracted blade when idle, and adult supervision.

> **Scissors first.** If scissors can do the cut, use scissors. Reach for a craft knife only when you genuinely need it, such as for thick corrugated board or an inside cut, and only with an adult present. Hot-glue guns also need supervision: the nozzle and fresh glue can cause burns, so rest the gun on its stand and let glue cool before touching it.

#### Project: Build project: a cardboard phone stand prototype

Build a full-size cardboard prototype of a phone stand to answer one question: *at what angle is the screen most comfortable to read from a desk?*

1. Draw a paper template for a stand with an adjustable angle, using tab-and-slot joints so the back support can sit in three different slots (for example roughly 60°, 70° and 80°). Measure your card thickness and size the slots to match.
2. Transfer the template to corrugated cardboard, with the flutes oriented so the back support resists bending.
3. Cut the parts out. Use scissors where possible; any craft-knife cuts must be done with an adult supervising, following every rule in this lesson.
4. Assemble without glue so the angle can change. Ask at least three people to read a page of text at each angle and say which they prefer.
5. Record the results (label them as your own small, informal test) and note one thing the cardboard prototype cannot tell you about a final plastic stand.

**Deliverables**

- A paper template with the measured card thickness and slot sizes
- A working cardboard stand with three angle positions
- A short list of preferences from at least three people
- One limitation of the cardboard prototype for this question

**Safety (adult supervision required):** Adult supervision is required for any craft-knife use. Cut on a cutting mat with a metal ruler, make light passes away from your body, keep the hand holding the ruler behind the blade, and retract the blade whenever you put the knife down. Prefer scissors where they can do the job. If you use a hot-glue gun, an adult must supervise; rest it on its stand and let glue cool before touching. Dispose of used blades in a sealed container.

#### Check your understanding

1. A cardboard shelf sags under a load. What is the first thing to check?
   A) Whether the flutes run in the direction that resists bending under that load
   B) The colour of the cardboard
   C) Whether you used PVA or masking tape on the label
   D) Whether the shelf was cut with scissors or a knife

2. Your corrugated board is 3 mm thick. What slot width gives a snug tab-and-slot joint?
   A) 1 mm
   B) 6 mm
   C) 10 mm
   D) About 3 mm

3. Which practice makes a craft knife most likely to slip?
   A) Using a metal ruler as a guide
   B) Pressing hard to cut through in a single pass
   C) Cutting on a cutting mat
   D) Retracting the blade between cuts

4. Why does folding a strip of card into a U shape make it much stiffer?
   A) Folding makes the card thicker everywhere
   B) The fold adds glue
   C) It moves material away from the centre of bending, which greatly increases resistance to bending
   D) Folded card is a different material

5. You need to make a quick working pivot for a cardboard linkage. What is the simplest option?
   A) A paper fastener (split pin) through both strips
   B) Hot glue
   C) A tab-and-slot joint
   D) Masking tape wrapped tightly


## 5.3 3D printing fundamentals

*How filament (FDM) 3D printers build parts layer by layer, and what that means for strength, orientation, overhangs, supports and tolerances, together with the heat, fume and moving-part hazards of using one safely.* (about 35 min)

### Why 3D printing changed prototyping

A 3D printer can turn a CAD model into a physical part overnight, with no special tooling and no workshop skills. For prototyping, that is transformative: you can design a bracket after school, print it while you sleep and test it the next morning. But printed parts have their own rules. A design that ignores them prints badly, fits badly or breaks in surprising places. This lesson explains the rules for the most common kind of printer.

### How FDM works

The most common hobby and school printers use **fused deposition modelling (FDM)**, also called fused filament fabrication. A spool of plastic **filament** is pushed into a heated **nozzle**, where it melts. The nozzle moves in a horizontal plane and draws the shape of one thin slice of the part, laying down a thin line of molten plastic that cools and solidifies. Then the nozzle rises (or the bed drops) by one **layer height**, typically a fraction of a millimetre, and the next slice is drawn on top.

Before printing, a program called a **slicer** cuts the CAD model (usually exported as an STL or similar mesh file) into layers and works out the nozzle path. In the slicer you choose settings such as layer height, how many solid outer walls to print, and how densely to fill the inside (the **infill**, often a honeycomb or grid pattern rather than solid plastic, to save time and material).

### Layers make parts anisotropic

Because a print is built from stacked layers, it is not equally strong in all directions. Within a layer, plastic is one continuous extruded line. Between layers, the bond depends on how well the hot new layer fused to the cooler one below. As a general rule, **printed parts are weakest when pulled or bent in a way that separates the layers.** Engineers call a material whose properties depend on direction **anisotropic**.

Picture a hook printed standing upright. Its layers stack up the hook's length, so a load on the hook tries to peel layers apart and it may snap cleanly along a layer line. Print the same hook lying flat, and each layer contains the whole hook shape; the load now runs along the extruded lines, and the part is usually much stronger.

### Orientation: the big decision

Choosing how the part sits on the print bed affects:

- **Strength:** orient so that the main loads run *along* the layers, not across them.
- **Overhangs and supports:** features that hang out over empty space need support (see below).
- **Surface finish:** the bottom face against the bed is usually flat and smooth; curved surfaces show visible "steps" between layers.
- **Accuracy:** holes printed with their axis vertical (drilled down into the bed) are usually rounder than holes printed on their side.
- **Print time:** tall parts with many layers take longer than flat ones.

These often conflict. A good design is often shaped so that one orientation satisfies most of them, for example by giving the part a large flat face to sit on.

### Overhangs, bridges and supports

Each layer must be printed on top of something. A wall that leans outwards gradually is fine, because each layer overlaps the one below. A common rule of thumb is that overhangs steeper than about **45° from vertical** start to droop and need **supports**: temporary scaffolding the slicer adds and you break off afterwards. Supports cost material and time, and leave rough marks where they are removed.

A **bridge** is a horizontal span between two supports, like the top of a rectangular hole. Printers can usually bridge short gaps by stretching filament across, but long bridges sag.

Designers reduce supports by:

- choosing an orientation with fewer overhangs;
- replacing horizontal overhangs with 45° chamfers;
- making horizontal holes teardrop or diamond shaped at the top so they print without support;
- splitting a complex part into two simpler ones that join together.

### Tolerances: why parts do not fit first time

A part printed to exactly the dimensions in CAD will often not fit its mating part. Molten plastic spreads slightly, so outer dimensions tend to come out a little large and **holes come out a little small**. If you design a peg exactly 10 mm wide and a hole exactly 10 mm wide, they probably will not go together.

The fix is to design a **clearance**, a deliberate gap. For FDM parts that must slide together, a clearance of a few tenths of a millimetre per side is a common starting point, but the right value depends on the printer, material and settings. Treat any published number as approximate, and find your own with a **tolerance test print**: a small part with a row of holes or slots at slightly different sizes (say 0.1 mm steps), and a matching peg. Print it once, see which sizes fit snugly, slide freely or are too loose, and record the result in your design log for that printer.

### Materials, in general terms

Two of the most common filaments are:

- **PLA:** generally the easiest to print, stiff and with a good surface finish. Its main weakness is low heat resistance: it softens at temperatures only modestly above a warm day, so a PLA part left in a hot car or near a motor may deform. It is also relatively brittle.
- **PETG:** generally tougher and more heat-resistant than PLA, and less likely to shatter, but often a little harder to print cleanly (it tends to string).

Exact properties vary a lot between brands and settings, so these are approximate comparisons, not specifications. Check the manufacturer's data for any material you use.

### Recap

- FDM printers melt filament and build parts layer by layer from a sliced CAD model.
- Printed parts are anisotropic and usually weakest when loads pull layers apart; orient so loads run along the layers.
- Overhangs steeper than about 45° from vertical generally need supports; chamfers, teardrop holes and smart orientation reduce them.
- Holes print slightly small; design in clearance and calibrate it with a tolerance test print.
- PLA is generally easy and stiff but heat-sensitive; PETG is generally tougher and more heat-resistant.

> **3D printers are hot, moving machines.** Use a 3D printer only with adult supervision and following the printer's own safety instructions.
> 
> - **Heat:** the nozzle typically runs at roughly 190–250 °C, far hotter than boiling water, and the heated bed can also be hot enough to burn. Never touch them while printing or just after; let them cool.
> - **Moving parts:** the print head and bed move suddenly and with force. Keep fingers, hair, sleeves and jewellery away, and pause or stop the printer before reaching in.
> - **Fumes and particles:** melting plastic releases fumes and very fine particles. Print in a well-ventilated room, not a small closed bedroom, and do not sit with your face near a running printer.
> - **Fire:** never leave a printer running unattended for long periods without an adult's agreement and a working smoke alarm nearby.
> - **Removing parts:** prints can be stuck firmly to the bed. Let the bed cool, use the proper removal tool, and push the scraper away from your body and hands.

#### Project: Design project: a tolerance test print

Design, in free CAD software, a tolerance test piece for a 3D printer:

1. A flat plate about 60 mm × 15 mm × 4 mm with five round holes nominally 5.0, 5.1, 5.2, 5.3 and 5.4 mm in diameter, each labelled (a small engraved number or a printed key on paper).
2. A separate peg exactly 5.0 mm in diameter and 10 mm long.
3. Write down, before printing, which hole you predict the peg will fit snugly, and why.
4. Decide which way up to print the plate and the peg, and explain your choice in terms of hole accuracy and strength.
5. Export the files as STL, ready to print.

**Printing is optional** and must only be done with an adult supervising, following the safety callout. If you print it, record which holes give a press fit, a sliding fit and a loose fit, and add the result to your design log as the clearance for that printer and material.

**Deliverables**

- A CAD model of the test plate and peg, exported as STL
- A written prediction of the snug-fit hole
- A short justification of the print orientation
- If printed under supervision: a log entry recording the measured clearances

**Safety (adult supervision required):** Designing in CAD needs no special precautions. If you print the parts, an adult must supervise. Do not touch the nozzle or heated bed during or just after printing, keep hands, hair and loose clothing away from moving parts, print in a well-ventilated room, do not leave the printer running unattended, and let the bed cool before removing the print with the proper tool, pushing away from your body.

#### Check your understanding

1. A printed hook keeps snapping cleanly along a layer line. What is the most likely fix?
   A) Print it in a different colour
   B) Reorient it so the load runs along the layers instead of pulling them apart
   C) Use more supports
   D) Make the holes smaller

2. A 6 mm peg will not fit into a 6 mm printed hole. Why?
   A) CAD software always rounds dimensions
   B) The peg is too long
   C) Printed holes tend to come out slightly small and outer dimensions slightly large, so a designed clearance is needed
   D) Pegs must always be printed in PETG

3. Which feature is most likely to need support material?
   A) A vertical wall
   B) A wall leaning outwards at about 20° from vertical
   C) The flat bottom face resting on the bed
   D) A horizontal shelf sticking straight out from a vertical wall

4. A PLA bracket is mounted next to a warm motor and slowly bends out of shape. What is the most likely reason?
   A) PLA generally has low heat resistance and softens at fairly modest temperatures
   B) The bracket was printed with too many walls
   C) PLA absorbs light
   D) The motor is magnetic

5. Which is the safest way to remove a print stuck to the bed?
   A) Pull it off immediately while the bed is hot
   B) Let the bed cool, then use the removal tool, pushing away from your hands and body
   C) Pry it with a craft knife towards yourself
   D) Reach in while the printer is still moving

**Go further:**

- Fused filament fabrication (Wikipedia): https://en.wikipedia.org/wiki/Fused_filament_fabrication — A detailed overview of how FDM printers work, including the process and common materials.


## 5.4 Fasteners and joining methods

*How parts are held together: screws, bolts and nuts, inserts, pins, snap-fits, adhesives and more. How to choose between permanent and removable joints, stop fasteners loosening, and use hand tools safely.* (about 30 min)

### Most failures happen at the joints

When a robot comes apart in testing, it is rarely because a solid part snapped in the middle. Far more often, a screw has loosened, a glued joint has peeled, or a thread has stripped out of soft plastic. Joints are where parts meet, where forces are concentrated, and where assembly mistakes hide. Choosing the right joining method, and designing the joint properly, is a large part of making a prototype that survives testing.

### Removable or permanent?

The first question for any joint is: **will it ever need to come apart?** For prototypes, the answer is usually yes, because you will change parts, replace broken ones and get at things inside.

- **Removable:** screws, bolts and nuts, pins, clips, cable ties (cut and replace), hook-and-loop strips.
- **Semi-permanent:** snap-fits (can sometimes be released), press fits.
- **Permanent:** adhesives, rivets, welding.

A good rule for prototypes: make joints removable unless there is a clear reason not to. Gluing a part you later need to change means breaking it.

### Threaded fasteners

**Machine screws and bolts** have a uniform thread and go into a **nut** or a **threaded hole**. Metric screws are named by diameter: an M3 screw has a nominal outside diameter of 3 mm, an M4 screw 4 mm. For a screw to pass through a part, the hole (a **clearance hole**) must be slightly larger than the screw, typically a few tenths of a millimetre for small screws; for printed parts, use the clearance you found with your tolerance test.

**Washers** spread the clamping force over a larger area. Under a screw head on plastic or wood, they stop the head digging in and help the joint stay tight.

**Self-tapping screws** cut their own thread as they go into plastic or wood. They are quick, but every time you remove and replace one, it wears the thread a little. After a few cycles, or under vibration, the thread can strip, as in the failure-analysis example earlier in this pathway.

For printed parts that will be assembled many times, better options are:

- a **captive nut**: a hexagonal pocket in the print that holds a nut so it cannot turn;
- a **threaded insert**: a small metal sleeve with a thread inside, set into the plastic. Some are pressed in and some are installed with heat, which needs a soldering iron and adult supervision.

### Stopping things working loose

Vibration is the enemy of threaded joints. Each tiny vibration can let a screw rotate a fraction backwards. Common defences:

- **Tighten properly**, but not so hard that you strip the thread or crack plastic. Plastic parts need far less force than metal.
- **Nylon-insert lock nuts**, which have a plastic ring that grips the thread.
- **Thread-locking compound**, a liquid applied to the thread that sets and resists loosening. Some grades are designed to be removable with hand tools; others are much harder to undo. Use it with adult supervision and avoid skin contact.
- **Two nuts tightened against each other** (a lock-nut arrangement).

### Other joining methods

- **Pins and dowels:** a pin through two parts locates them precisely and can form a pivot. Simple and strong in shear.
- **Snap-fits:** a flexible hook on one part clicks over a lip on another. They are common in plastic products such as battery covers and need no extra parts, but the flexing arm must be designed carefully or it cracks. They work best with tougher materials.
- **Press fits:** a part slightly larger than its hole is pushed in and held by friction. Easy to get wrong in printed parts, because tiny tolerance changes make the difference between "will not go in" and "falls out".
- **Adhesives:** spread the load over a large area and need no holes. Weaknesses: they are permanent, some do not bond to certain plastics, and many fail when peeled rather than sheared. Instant (cyanoacrylate) glue bonds skin in seconds; hot glue can burn. Both need care and supervision.
- **Cable ties and hook-and-loop strips:** fast, adjustable and very common for holding wires and batteries in place on prototype robots.

### Matching the joint to the load

Think about how a joint will be loaded:

- **Tension** pulls parts apart along the fastener: screws and bolts are good at this.
- **Shear** slides parts across each other: pins, bolts and well-designed glued laps are good.
- **Peel** pries one edge up: most adhesives and tapes are weak in peel; add a screw at the edge or redesign.
- **Vibration**: avoid self-tapping screws in plastic; use lock nuts, inserts or thread locker.

### Using hand tools safely

- **Use the right size of screwdriver or hex key.** A tool that is too small slips out of the screw head ("cams out"), damaging the screw and often the hand holding the part.
- **Never hold a part in your palm** while pushing a screwdriver towards it. Rest it on a bench or hold it in a vice or clamp.
- **Wear eye protection** when cutting cable ties, snipping wire or working with springs; small pieces can fly.
- **Ask an adult** before using power tools, heat-set inserts or thread locker.

### Recap

- Joints are where most prototype failures happen; design them deliberately.
- Prefer removable joints in prototypes.
- Use clearance holes, washers, captive nuts or inserts in plastic; avoid repeatedly reusing self-tapping threads.
- Defend against vibration with correct tightening, lock nuts or thread locker.
- Match the joint to its load: fasteners for tension, pins for shear, and avoid relying on adhesives in peel.
- Use correctly sized tools, never point a tool at your hand, and wear eye protection.

> **Tools and adhesives.** Hand tools cause most minor workshop injuries. Use the correctly sized driver, clamp or rest the work rather than holding it in your hand, and wear eye protection when cutting or when springs are involved. Instant glue, hot glue, thread-locking compounds and heat-set inserts all need adult supervision: instant glue bonds skin, hot glue and soldering irons burn, and chemical compounds should not touch skin or eyes.

#### Project: Paper project: a joint plan for a small robot

Imagine a small wheeled robot with a printed plastic chassis, two motor brackets, a battery holder, a circuit board on standoffs and a hinged lid.

1. List every joint in the robot (aim for at least six).
2. For each, state whether it needs to come apart during prototyping, the main load (tension, shear, peel or vibration), and the joining method you would choose.
3. Justify any joint where you chose glue or a self-tapping screw.
4. Pick the joint you think is most likely to fail, and write a short test plan (question, prediction, decision rule) to check it.

This is a planning exercise on paper. If you later assemble a real robot, follow the safety note.

**Deliverables**

- A list of at least six joints
- For each, the load type, whether it must come apart, and the chosen method
- Justifications for any glued or self-tapping joints
- A test plan for the most at-risk joint

**Safety (adult supervision required):** This plan is done on paper. If you assemble a real robot or prototype, an adult must supervise: use correctly sized screwdrivers and hex keys, rest or clamp parts instead of holding them in your hand, wear eye protection when cutting cable ties or wire, and ask an adult before using instant glue, hot glue, thread locker, heat-set inserts or any power tool.

#### Check your understanding

1. A self-tapping screw into a printed part keeps working loose on a vibrating robot. Which change best addresses the root cause?
   A) Tighten it harder each time
   B) Use a longer self-tapping screw
   C) Replace it with a machine screw into a captive nut or threaded insert, with a lock nut or thread locker if needed
   D) Paint over the screw head

2. Why are adhesives often a poor choice for a joint loaded in peel?
   A) Adhesives are always too weak to hold anything
   B) Peel concentrates the load along a thin line at the edge of the bond, where many adhesives fail
   C) Peel loads only happen in metal parts
   D) Adhesives cannot be used on plastic

3. What does M4 mean for a metric screw?
   A) It is 4 mm long
   B) It has 4 threads
   C) It needs a 4 mm screwdriver
   D) It has a nominal outside diameter of 4 mm

4. Why is it unsafe to hold a part in your palm while pushing a screwdriver into it?
   A) If the driver slips or cams out, it can go straight into your hand
   B) Your hand makes the screw tighten too much
   C) The part will become magnetised
   D) It makes the screw thread wear out

**Go further:**

- Fastener (Wikipedia): https://en.wikipedia.org/wiki/Fastener — An overview of the main families of fasteners and how they are used.


## 5.5 Electronics prototyping safely on a breadboard

*How a solderless breadboard is connected inside, how to build and check a low-voltage battery-powered circuit on one, and the habits that keep you, your batteries and your components safe.* (about 30 min)

### Circuits you can change in seconds

Most robots have electronics: a battery, a controller, sensors, lights and motors. When you are designing that electronics, you want to try ideas quickly and change them easily, just as you do with cardboard for mechanical parts. A **solderless breadboard** lets you do exactly that. Components and wires push into holes and are held by spring clips inside, so a circuit can be built, rearranged and taken apart without soldering.

This lesson explains how a breadboard is connected, how to build a simple circuit methodically, and the safety habits that matter. Everything here uses **small batteries at low voltage only**. Never connect a breadboard to mains electricity, wall sockets or anything that plugs into the wall.

### How a breadboard is connected

The holes on a breadboard are not all separate. Under the plastic are strips of metal that connect groups of holes together. On a typical breadboard:

- The main area is in two halves with a groove down the middle. In each half, every short **row of five holes** across is connected together. Rows are not connected to each other, and the two halves are not connected across the groove.
- Along the long edges are **power rails**, usually marked with red (+) and blue or black (−) lines. All the holes along one rail are connected. On some breadboards, the rails are split halfway along, so check before relying on them.
- The central groove is sized so that a chip with two rows of legs can straddle it, with each leg in its own row.

The most common breadboard mistake is putting both legs of a component in the **same connected row**, which shorts the component out so it does nothing. If a part does not work, check this first.

### A worked example: an LED with a resistor

A light-emitting diode (LED) must always have a resistor in series to limit the current; connected straight across a battery, it may draw too much current and fail. Suppose you use a holder with three AA cells in series, which gives about 4.5 V when the cells are fresh, and a red LED that needs about 2 V across it and about 10 mA (0.010 A) of current. These are typical values; check the data for your own LED.

The resistor must drop the remaining voltage:

```
voltage across resistor = 4.5 V - 2.0 V = 2.5 V
R = V / I = 2.5 V / 0.010 A = 250 ohms
```

Resistors come in standard values, and 250 Ω is not usually one of them. Choose the next standard value *up*, 270 Ω, which gives slightly less current and so is the safe direction:

```
I = 2.5 V / 270 ohms = 0.0093 A, about 9.3 mA
power in resistor = 2.5 V x 0.0093 A = 0.023 W
```

0.023 W is far below the 0.25 W rating of a common small resistor, so it will barely get warm.

### Building it methodically

1. **Disconnect the battery** before placing or moving anything. Build with the power off, every time.
2. **Plan on paper** first: draw the circuit and decide which breadboard row each leg goes in.
3. Connect the battery holder's red lead to the + rail and the black lead to the − rail, but do not insert the batteries yet (or leave the holder switched off).
4. Place the resistor from the + rail to an empty row. Place the LED with its longer leg (the anode, usually) in that same row and its shorter leg in a different row. Connect that second row to the − rail with a wire.
5. **Check before powering:** trace every connection with your finger against your drawing. Is the LED the right way round? Is there any direct path from + to − with no component in it?
6. Power up. If the LED does not light, disconnect, then check orientation and the same-row mistake.

**Colour-code your wires**: red for positive, black for negative, other colours for signals. It makes mistakes much easier to spot.

### Short circuits and battery safety

A **short circuit** is a path from + to − with almost no resistance. Even small batteries can then deliver a large current: wires get hot, the battery heats up and, in the worst case, it can leak, swell or catch fire. Rechargeable lithium cells and packs can deliver especially large currents and need extra care.

- **Feel for heat.** If any wire, component or battery gets warm unexpectedly, disconnect immediately and find out why.
- **Never connect a wire directly across a battery's terminals.**
- **Keep loose batteries away from coins, keys and metal tools**, which can short them in a pocket or drawer.
- **Do not mix old and new cells, or different types, in one holder.** Remove batteries when you have finished.
- **Never use damaged, swollen or leaking batteries**, and never try to open, puncture or recharge non-rechargeable ones.
- **Coin and button cells are very dangerous if swallowed**, especially for young children and pets. Keep them stored securely out of reach.
- **Motors are different from LEDs.** They draw much more current, especially when starting, and should not be driven directly from a controller pin. That needs a driver circuit and is a topic for the Embedded Systems pathway.

### Recap

- A breadboard connects rows of five holes in each half, plus long power rails; never put both legs of a part in the same row.
- Always use an LED with a series resistor: R = (supply voltage − LED voltage) / current, rounded up to a standard value.
- Build with the power disconnected, plan on paper, colour-code wires and check every connection before powering.
- Short circuits make wires and batteries dangerously hot; disconnect at once if anything warms up.
- Low-voltage battery power only, never mains; store and dispose of batteries safely, and keep coin cells away from children.

> **Low voltage, batteries only.** Electronics activities in Tactiverge Academy use small batteries at low voltage only, such as a holder of two to four AA cells. Never connect a breadboard to mains electricity, a wall socket, a mains adapter you have modified, or a car battery. Do breadboard work with an adult supervising, disconnect power before changing the circuit, and stop immediately if anything gets hot, smells or smokes.

#### Project: Build project: two LEDs and a switch on a breadboard

Build a battery-powered circuit in which a push button lights two LEDs.

1. On paper, draw a circuit with a 3 × AA battery holder, a push button and two LEDs, each with its own series resistor, connected in parallel so both light when the button is pressed.
2. Calculate each resistor value for your LEDs, using the method in this lesson, and choose the next standard value up. Show your working.
3. Plan the breadboard layout on paper, row by row.
4. With an adult supervising and the battery disconnected, build the circuit. Check every connection against your drawing before connecting power.
5. Test it. Then deliberately predict, on paper only, what would happen if you placed one LED's legs in the same row, and check your prediction by moving it (power off while you move it).

If you do not have components, the same circuit can be built in a free online circuit simulator.

**Deliverables**

- A circuit diagram and a row-by-row breadboard plan
- Resistor calculations with chosen standard values
- A working circuit (or simulation), with a note of anything that went wrong and how you found it
- Your prediction and result for the same-row mistake

**Safety (adult supervision required):** Adult supervision is required. Use only a small battery holder of AA or AAA cells (no more than four cells); never use mains electricity, mains adapters or car batteries. Disconnect the battery before building or changing the circuit. Always use a series resistor with each LED. If any wire, component or battery gets hot, smells or smokes, disconnect immediately and tell the supervising adult. Do not use damaged or swollen batteries, do not mix old and new cells, remove the batteries when finished, and keep coin cells out of reach of young children.

#### Check your understanding

1. You put both legs of a resistor into the same row of five holes. What happens?
   A) The resistor works normally
   B) The resistor's legs are connected together, so it is shorted out and does nothing in the circuit
   C) The resistor doubles in value
   D) The breadboard will not accept it

2. A 6 V battery pack powers a red LED needing about 2 V at 10 mA. What resistance is needed?
   A) 200 Ω
   B) 600 Ω
   C) 40 Ω
   D) 400 Ω

3. You calculate 250 Ω for an LED resistor. Which standard value should you use?
   A) 270 Ω, the next value up, which slightly reduces the current
   B) 220 Ω, the next value down
   C) No resistor; 250 Ω is too small to matter
   D) Any value at all

4. A wire in your circuit becomes warm a few seconds after you connect the battery. What should you do first?
   A) Leave it running to see if it cools down
   B) Add another battery
   C) Disconnect the battery immediately, then look for a short circuit
   D) Wrap the wire in tape

5. Why must coin and button cells be stored securely?
   A) They lose charge in the light
   B) They are seriously dangerous if swallowed, especially by young children and pets
   C) They are magnetic
   D) They only work in breadboards

**Go further:**

- Breadboard (Wikipedia): https://en.wikipedia.org/wiki/Breadboard — How solderless breadboards are constructed and connected internally, with diagrams.


## 5.6 From prototype to reproducible design

*How to turn a prototype that works on your desk into a documented design that someone else can build, check and improve: capturing dimensions, a bill of materials, build instructions, tests and versions.* (about 30 min)

### It works... but could anyone else build it?

After several design cycles, your gripper finally works. But look closely at how it was made. One finger was sanded by hand until it fitted. A screw hole was redrilled in a slightly different place. The pad was cut to "about this size" with scissors. The wiring was changed twice and is now only in your head. If the gripper broke tomorrow, could you build an identical one? Could a friend, working only from your files?

A prototype answers questions. A **reproducible design** is one that can be built again, by someone else, and behave the same way. That matters whenever more than one copy is needed, when a design is shared, when a team member leaves, or when results from tests on the design must be trusted. In research, it is the engineering equivalent of a method section: if nobody can rebuild what you tested, nobody can check your results.

### What changes between a prototype and a design

Prototypes are allowed to contain **hidden knowledge**: adjustments made by hand, parts that happen to fit, settings chosen on the day. Turning a prototype into a reproducible design means finding every piece of that hidden knowledge and either writing it down or designing it out.

- **Hand-fitting becomes designed clearance.** If you sanded a part until it fitted, measure the final size and update the CAD model, using the clearance values from your tolerance tests.
- **"About this size" becomes a dimension.** Measure, and record the dimension and a tolerance.
- **"The screws I had" becomes a specification.** Record type, size and length, for example M3 × 10 machine screw.
- **Undocumented wiring becomes a diagram.** Draw the circuit and the connections.
- **"It just works" becomes a test.** Write down how to check that a newly built copy works.

### The reproducible design package

A complete package for a small project usually contains:

1. **Source CAD files**, in the format of the software you used, so the design can be edited.
2. **Neutral exports.** STEP files keep exact geometry and can be opened by most CAD programs; STL files are meshes for 3D printing. Including both lets people edit and print without your software.
3. **Drawings or key dimensions**, especially for anything critical: hole positions, fits, clearances.
4. **A bill of materials (BOM):** every part, with quantity, a clear description and where it comes from.
5. **Build instructions:** the steps in order, with photos or sketches and notes on traps.
6. **Manufacturing settings:** print orientation, material, layer height, infill and supports for printed parts; card thickness and grain direction for cardboard parts.
7. **Wiring diagram**, if there is any electronics.
8. **Test procedure:** how to check a finished build, with pass criteria.
9. **Version and change log:** which version this is and what changed since the last one.
10. **A licence** if you are sharing it publicly, saying what others may do with it (covered in the Research and Engineering Methodology pathway).

### A bill of materials

A BOM should let someone order or gather everything without asking you. Here is an example for a simple gripper. **Part counts and descriptions are illustrative**, not a recommended design:

```
ID   Qty  Description                          Source / notes
P1    2   Finger, printed, v3                  finger_v3.stl, PETG,
                                               printed flat, 3 walls
P2    1   Base plate, printed, v2              base_v2.stl, PETG
F1    4   M3 x 10 machine screw                any hardware supplier
F2    4   M3 nylon-insert lock nut             any hardware supplier
F3    2   M3 x 16 machine screw (finger pivot)
M1    1   Hobby servo, generic, 9 g class      any; check horn fits
A1    2   Foam pad, 20 x 10 x 5 mm             craft foam, cut from sheet
```

Notice that each line says exactly what is needed, and printed parts point to their file and settings. Generic descriptions are fine, and often better than brand names, as long as they are specific enough to buy the right thing.

### The stranger test

The best check of a design package is simple: **give it to someone who has never seen the prototype, and ask them to build it.** Watch without helping. Every time they get stuck, ask a question or make a guess, you have found a gap in the documentation. Fix it and, ideally, repeat with someone else.

If you cannot find a volunteer, rebuild it yourself strictly from the documents a week later, refusing to use anything that is not written down. You will be surprised how much you had kept in your head.

### Design out the fiddly bits

Sometimes the best way to document a tricky step is to remove it. If assembly instructions say "carefully hold the spring in place while inserting the pin", consider redesigning so the spring sits in a pocket. If two nearly identical parts could be confused, make them different enough to tell apart, or make them interchangeable. Features that make wrong assembly impossible are sometimes called mistake-proofing. Each removed fiddly step makes the design more reproducible and every future build faster.

### Recap

- A prototype answers questions; a reproducible design can be rebuilt by someone else and behave the same.
- Find and remove hidden knowledge: hand-fitting, guessed sizes, unrecorded parts and undocumented wiring.
- A design package includes source CAD, STEP and STL exports, key dimensions, a BOM, build instructions, settings, a wiring diagram, a test procedure, version history and, if shared, a licence.
- The stranger test reveals gaps in documentation; fix each one.
- Redesigning to remove fiddly steps improves reproducibility more than documenting them.

> **Document what you actually built.** A design package must describe the design that was really built and tested, not the one you intended. If a test result came from a version with a hand-sanded finger, say so. Reporting the tidier, idealised version alongside results from the messy real one would mislead anyone trying to reproduce your work.

#### Project: Paper project: a build package and the stranger test

Take any prototype you made or planned in this module (for example the cardboard phone stand or the tolerance test print) and turn it into a reproducible design package.

1. List every piece of hidden knowledge in the prototype (hand adjustments, guessed sizes, unrecorded materials).
2. Write a BOM with IDs, quantities and clear descriptions.
3. Write numbered build instructions with simple sketches.
4. Write a test procedure that checks a finished build, with pass criteria.
5. Give the package to someone who has never seen your prototype and watch them build it (or, if it involves tools, let them talk through how they would build it). Note every question they ask and update the package.

If your volunteer actually builds anything using a craft knife, hot glue, a 3D printer or batteries, follow the safety note.

**Deliverables**

- A list of hidden knowledge found in the prototype
- A bill of materials
- Numbered build instructions and a test procedure
- Notes from the stranger test and the changes you made as a result

**Safety (adult supervision required):** Writing and reviewing the package needs no precautions. If anyone builds the design, an adult must supervise any use of craft knives, hot-glue guns, 3D printers, hand tools or batteries, following the safety guidance in the earlier lessons of this module: cutting mat and metal ruler for knives, no touching hot nozzles or glue, ventilation for printing, and low-voltage battery power only for electronics.

#### Check your understanding

1. A finger part only fits because you sanded it by hand. What should happen before the design is shared?
   A) Add 'sand until it fits' to the instructions and nothing else
   B) Nothing; others can work it out
   C) Remove the part from the BOM
   D) Measure the fitted size and update the CAD model with a designed clearance

2. Why include both STEP and STL files in a design package?
   A) STEP keeps exact editable geometry for most CAD programs, while STL is a mesh ready for 3D printing
   B) They are the same file with different names
   C) STL files contain the bill of materials
   D) STEP files can only be opened by one program

3. During a stranger test, the builder asks which screws to use for the pivot. What does this tell you?
   A) The builder is not skilled enough
   B) The BOM or instructions are missing a specification, so the package needs updating
   C) The pivot should be glued instead
   D) The stranger test has failed and should be abandoned

4. An assembly step says "hold the spring in place while inserting the pin, carefully". What is often the best improvement?
   A) Underline the word carefully
   B) Remove the spring
   C) Redesign the part so the spring sits in a pocket and cannot fall out
   D) Leave the step out of the instructions

**Go further:**

- Bill of materials (Wikipedia): https://en.wikipedia.org/wiki/Bill_of_materials — What a bill of materials contains and how it is used in engineering and manufacturing.
