Tactiverge · Classroom-in-a-Box programme · Offline copy: this file works without an internet connection.
Twelve-week computational engineering
Turn formulas, sensor logs and machine rules into small Python programs, then test them against simulations the way engineers do.
Full editionLevel 2 · Builder12 weeks24 sessions × 60 minAbout 24 teaching hours
- Free to use for education: teach from it, print it and copy it for your own learners.
- A licence for redistribution has not yet been decided by the founders. Until it is, please share the link to this page rather than re-hosting or republishing copies.
- Tactiverge is not an accredited school, and completing a pack is not a qualification.
- Tactiverge has no institutional partners. Using a pack does not make your organisation a partner.
- Content status: technically-checked (automated checks only). Written with AI assistance. No educator has reviewed these programmes yet, and none has been run with learners.
- Teacher solutions are not in this page, the printout or the offline file. Signed-in educators, instructors and administrators can open them on a protected page.
Online page: https://tactiverge.win/classroom-in-a-box/programmes/twelve-week-computational-engineering/
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
- Nothing electrical: no batteries, bulbs, wires, motors or mains devices in any activity. Circuits are role-played or drawn.
- Learners use only the Tactiverge pages linked in each session; the adult agrees in advance which sites are open and follows the organisation's own internet-use policy.
- No learner creates an account, shares personal information or contacts anyone online during the programme.
- Take a screen break of a few minutes every 20–25 minutes of device use: stand up, stretch, look at something far away.
- Keep device cables out of walkways and keep drinks away from devices.
- Materials for the whole programme: Paper, Pencils, Coins (or paper counters), Cardboard (from packaging), String.
Educator guide
Twenty-four one-hour sessions over twelve weeks. Fourteen sessions teach Python through engineering problems (battery runtime, sensor logs, thresholds, traffic lights, a heater controller), using the browser-based Code Lab. Ten sessions reuse paper-first pack sessions from The maths behind machines, Machines that sense and decide and Signals in a noisy world, so learners have the maths and the ideas before they code them. Three Mission Labs and a Nexus project give learners a simulated system to improve and defend with evidence.
Who it is for: Learners who can already use simple formulas, read a graph and follow a flowchart (Builder level). No coding experience is needed. Suits a school elective, a library code club or a community programme with access to devices.
Group size: 6–24 learners, working in pairs at a device. One adult can run it for up to 24 if a second adult or a confident helper can circulate during coding time.
Before this programme: Learners should be comfortable with units, multiplying and dividing decimals, and reading a simple table. The Maths behind machines sessions in this programme revise the maths they need.
By the end, learners can
- Write short Python programs with variables, arithmetic, decisions, loops and functions.
- Turn an engineering formula into code, choose sensible units and check the result by estimation.
- Summarise a sensor log with a loop and explain how noise and rounding affect it.
- Describe a controller as a state machine or as a rule that reacts to an error, and test it in a simulation.
- Find and fix bugs by reproducing them, forming a hypothesis and testing one change at a time.
- Present a small engineering project with evidence: what was tested, what passed and what is still unknown.
Why this order
Each coding skill arrives just after learners have met the idea on paper: units before formulas in code, thresholds before if-statements, noisy readings before loops over logs, closed loops before controller models. The last two weeks join the skills in one project, so nothing in the project is brand new.
Before you start
- Check that the Code Lab, the Simulation OS pages and the Mission Labs open on your devices and network. They run in the browser; nothing is installed.
- Plan one device per pair for the fourteen coding sessions. If you have fewer, see the shared-device and no-computer notes before each session.
- Print the worksheets for the next week. They hold questions only; the teacher solutions are on the protected educator page.
- Try each week's coding task yourself first (about 15 minutes). The lessons linked in each session include worked examples.
- Agree a simple rule for help: ask your partner, check the lesson, then ask an adult.
- Learners do not need accounts. If your organisation uses accounts, follow its own rules for learner data.
Every session
- Start with a two-minute recap question on paper.
- Show the idea on one screen, then pairs try it: one types, one checks, and they swap halfway.
- Finish with the worksheet and one exit question; collect work rather than ranking it.
Honest time estimate
24 hours of teaching (24 × 60 minutes). Plan about 25 minutes of preparation per session, more for the first coding sessions and the project weeks: roughly 10–12 hours of preparation across the programme. Timings assume pairs at devices and a group of up to 24; first-time coders often need longer for the first three coding sessions.
Preparation: about 25 minutes per session.
Staffing
One adult who is willing to learn the Python alongside the group; no programming background is assumed, but trying each task first matters. A second adult or helper is strongly recommended for groups over 16 during coding time.
Adapting it
- School timetable of 50-minute lessons: drop the warm-up and run the worksheet as homework, or split the two project sessions across three lessons.
- Library or code club meeting once a week: run it over 24 weeks, one session per meeting; every session starts with a recap so gaps between meetings are fine.
- Community group with no devices for some weeks: swap the order so paper sessions fall in device-free weeks, and use the trace-table alternatives described in each coding session.
- Summer school: two sessions a day with a long break in between makes a six-day course; keep the project for the last two days.
Curriculum map
| Week | Theme | Sessions | By the end of the week |
|---|---|---|---|
| 1 | Why engineers compute | 1. Why engineers compute 2. A number without a unit is a mystery | Describe a calculation as a sequence of steps and say why units matter in every one. |
| 2 | First programs | 3. Your first program: battery runtime 4. Variables that track a changing machine | Write and run a program that stores values in variables and prints a battery runtime. |
| 3 | Formulas into code | 5. Translate a formula into Python 6. Levers: small push, big lift | Translate a formula, including a lever, into Python and check it by estimation. Evidence: First self-checked calculation program. |
| 4 | Ratios and decisions | 7. Gear ratios: speed or strength 8. Decisions from measurements | Use if, elif and else to act on a measurement, and connect gear ratios to code. |
| 5 | Thresholds and testing edges | 9. Thresholds: when is it 'too cold'? 10. Test the edges: a heater that behaves | Choose a threshold, test the boundary values and improve a heater controller in a Mission Lab. |
| 6 | Loops over readings | 11. Loops over readings 12. Rounding and jitter | Summarise a sensor log with a loop and explain jitter and rounding. |
| 7 | Filters and functions | 13. Filters: smooth but late 14. Functions: package a calculation | Package a calculation as a function and explain why a moving average is smooth but late. |
| 8 | Debugging and coordinates | 15. Hunting bugs like an engineer 16. Robots on a grid | Read a traceback, hunt a logic bug and place a robot on a grid. Evidence: Bug-hunt log with one fixed bug. |
| 9 | Triangles and state machines | 17. Triangles that reach 18. A state machine in code | Use trigonometry for reach and write a state machine for a traffic signal. |
| 10 | Closing the loop in code | 19. Closing the loop 20. Models are functions: a controller you can test | Model a controller as a function and compare gains in a simulation. |
| 11 | Evidence from many runs | 21. Did it pass? Averages and spread 22. Evidence from many runs: the Noisy Factory | Use averages and spread to judge a design, and defend a choice in the Noisy Factory. |
| 12 | Project: the smart junction | 23. Project: build the smart junction 24. Project: test, document and present | Build, test and present a junction controller with evidence and honest limits. Evidence: Project presentation and README. |
Lesson plans
Session 1: Why engineers compute Week 160 minOne shared screen
Objectives
- Describe a calculation as an ordered list of steps.
- Draw a flowchart with one decision and one loop.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | How long will a torch run on a full charge? Pairs list everything they would need to know. |
| 20 | Flowchart the calculation | Pairs turn their list into a flowchart with boxes, a decision diamond and a loop. |
| 10 | Look at the Code Lab | Show one tiny program on a single screen and point out that each line is one step of a flowchart. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | Name one calculation you would rather a computer did, and why. |
Activity: Flowchart a battery check 20 minunplugged
Materials: Paper, Pencils
- Pairs write the steps for working out how many hours a battery lasts, one step per line.
- Redraw the steps as a flowchart: rectangles for actions, a diamond for a yes/no question.
- Add a loop: keep checking the charge every hour until it is below 10 %.
- Swap with another pair, who follows the flowchart exactly and marks any step that is unclear.
- Paper and pencils stay on the desks; hand sheets out rather than sliding them.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Give a partly drawn flowchart with the shapes in place and let learners fill in the words.
- Stretch: Add a second decision: what should the torch do when the charge is below 20 % but above 10 %?
- Language: Put the key words (step, decision, loop, flowchart) on the board with a small sketch of each shape.
Discussion prompts
- Why must every step in a flowchart be exact?
- What goes wrong if one step uses hours and another uses minutes?
Online lessons (optional)
- Flowcharts: drawing decisions and loops: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Show a three-line program on one screen and run it. Offline: Write the three lines on the board and walk through them as a class, one line at a time.
Other editions
- No computer: Skip the Code Lab demonstration and write the three-line program on the board instead; everything else is already on paper.
- No kit: Already paper and pencils only; nothing else is needed.
Worksheet: see “Worksheet 1” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 2: A number without a unit is a mystery Week 160 minComputer optional
From the pack “The maths behind machines”, session 1. Units come first: every program in this course carries units in its variable names, so learners need the habit before they start coding next week.
Objectives
- Attach units to every measurement.
- Make a sensible estimate and check it.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | Write '12' on the board. Ask: is that big? Only a unit can tell us. |
| 20 | Estimation stations | Run the estimation stations activity. |
| 15 | Check and compare | Measure with paper rulers and compare with estimates. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Exit question | Name one unit and something it measures. |
Activity: Estimation stations 20 minunplugged
Materials: Paper, Coins (or paper counters), Pencils
- Set up four stations: length of a desk, mass of a pile of coins (compare with a known coin), number of sheets in a pile, time for ten slow claps.
- Pairs estimate each quantity and write it with a unit.
- Then measure or count where possible, and record the difference.
- Coins stay at their station and are counted back in. Learners walk between stations.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Offer a unit word bank (cm, m, g, kg, s) and a benchmark card (a door is about 2 m).
- Stretch: Ask learners to improve one estimate by using a known benchmark and say how much closer it got.
- Language: Key words: estimate, measure, unit, difference. Show each unit next to a familiar object.
Discussion prompts
- Which estimate was closest? What strategy helped?
- When is a rough estimate good enough for an engineer?
- What could go wrong if two engineers used different units?
Online lessons (optional)
- A number without a unit is a mystery: Lite version · full lesson
- Good-enough numbers: the art of estimation: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Equation Lab: Equation Lab: Functions and graphs. Optional: see how a quantity changes with another. Offline: Draw a quick graph of estimate versus measured value on the board.
- Video: A clever way to estimate enormous numbers - Michael Mitchell (TED-Ed). Notice how a big estimate is broken into small, easier ones. Offline: Estimate how many sheets of paper would cover the classroom floor by first estimating one row.
Other editions
- No computer: Skip the Equation Lab link; stations and the class discussion are the whole session.
- No kit: Replace the coin station with a paper-strip station (how many strips to cover a book) and measure with hand spans.
Worksheet: see “Worksheet 2” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 3: Your first program: battery runtime Week 260 minNeeds a computer
Objectives
- Write and run a program that prints a result.
- Explain that Python runs lines from top to bottom.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | Why does a number need a unit? |
| 10 | Demo | Type a two-line program that prints a battery runtime; run it; change one number and run it again. |
| 25 | Pairs code | Pairs write the runtime program in the Code Lab, then change capacity and current to answer three what-if questions. |
| 15 | Worksheet | Questions 1–3, including a trace table. |
| 5 | Exit question | What happens if you swap two lines? |
Activity: Battery runtime in Python 25 minonline-optional
- Open the Code Lab and create variables for capacity (mAh) and current (mA), with the unit in each name.
- Divide capacity by current and print the runtime in hours.
- Change the current to double its value and predict the new runtime before running.
- Swap roles: the checker now types and the typist checks.
Differentiation
- More support: Provide the program with blanks for the numbers; the learner fills them in and runs it.
- Stretch: Print the runtime in hours and minutes, using whole hours and the remaining minutes.
- Language: Sentence starter: 'The program first ..., then ..., so it prints ...'.
Discussion prompts
- Why do we predict before we run?
- What did the computer do that a calculator could not?
Online lessons (optional)
- Your first Python program: battery runtime: Lite version · full lesson
- How the interpreter reads your program: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs write and run the runtime program. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 3” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 4: Variables that track a changing machine Week 260 minNeeds a computer
Objectives
- Update a variable as a machine changes.
- Tell an integer, a float, a string and a list apart.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | Trace a two-line program on the board. |
| 15 | Human variables | Run the labelled-box activity: each variable is a sheet of paper that can hold one value at a time. |
| 20 | Pairs code | Pairs write a program that tracks a water tank level over four updates and prints each level. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | Which type would you use for a temperature, and why? |
Activity: Labelled boxes 15 minunplugged
Materials: Paper, Pencils
- Three volunteers hold a sheet labelled level, inflow and outflow.
- The teacher reads lines such as level = level + inflow; the holder rubs out and writes the new value.
- The class predicts each new value before the holder writes it.
- Discuss what happened to the old value each time.
- Paper and pencils stay on the desks; hand sheets out rather than sliding them.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Activity: Tank tracker 20 minonline-optional
- Set level_litres to 50 and inflow and outflow rates in litres per minute.
- Update the level four times, printing it after each update.
- Change the outflow so the tank empties and spot when the level goes below zero.
Differentiation
- More support: Use only whole numbers in the tank tracker and give the update line ready-made.
- Stretch: Store the four levels in a list and print the largest with max().
- Language: Word wall: variable, value, assign, update, type; show each with a labelled-box picture.
Discussion prompts
- Why does the old value disappear when we assign a new one?
- What should a real tank program do if the level would go below zero?
Online lessons (optional)
- Variables that track a changing machine: Lite version · full lesson
- int, float, str and list: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs write the tank tracker. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 4” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 5: Translate a formula into Python Week 360 minNeeds a computer
Objectives
- Turn a written formula into a line of Python.
- Check a computed answer by estimating first.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | Which type is a measured length? |
| 10 | Estimate first | Estimate the time to travel 120 m at 1.5 m/s, then compute it. |
| 25 | Pairs code | Pairs code three formulas (speed, power, area of a circle with math.pi) and compare each with their estimate. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | One sign that a computed answer is wrong. |
Activity: Formula translator 25 minonline-optional
- Write each formula on paper first, with units, then estimate the answer.
- Code it in the Code Lab with descriptive variable names.
- Compare the printed result with the estimate; if they differ by more than double, look for the bug.
- Use import math for the circle area and print the result rounded to two decimal places.
Differentiation
- More support: Give the formula already written with Python symbols beside the maths symbols (× becomes *, squared becomes ** 2).
- Stretch: Rearrange the speed formula to find the distance for a given time and code both directions.
- Language: Show a two-column table: maths sign and its Python symbol, with a worked example in each row.
Discussion prompts
- Why estimate before you run?
- What does the computer not know about your units?
Online lessons (optional)
- Translate a formula into Python: Lite version · full lesson
- The math module: roots, angles and radians: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs code and check three formulas. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
- Equation Lab: Equation Lab: Functions and graphs. Optional: drag a slider to see how the output of a formula changes with its input. Offline: Fill in a table of five inputs and outputs for the same formula and sketch the graph by hand.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 5” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 6: Levers: small push, big lift Week 360 minComputer optional
From the pack “The maths behind machines”, session 2. The lever rule is a formula learners can code next: after the paper lift, ask pairs to write the lever balance as one line of Python for homework or the next coding session.
Objectives
- Balance a lever using distance and load.
- Explain the trade between force and distance.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Hook | How can a small child balance a big adult on a see-saw? |
| 25 | Coin lever | Run the coin-lever activity. |
| 15 | Find the pattern | Groups compare results and look for a rule. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Wrap-up | Where are levers in the room? |
Activity: Coin lever 25 minpaper-build
Materials: Cardboard (from packaging), Coins (or paper counters), Pencils
- Use a pre-cut cardboard strip about 30 cm long with marks every 2 cm, and a folded cardboard triangle as the pivot.
- Balance the strip on the pivot at its middle.
- Put 2 coins at one mark on the left. Find where 1 coin must go on the right to balance.
- Try other combinations and record coins × distance on each side.
- The pivot is folded cardboard (no pencils as pivots). Coins are counted back in at the end.
- An adult pre-cuts any cardboard before the session. Learners fold, slot and stack only; no blades or scissors in learners' hands.
- Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Use marks numbered on the lever and start with equal coins on each side.
- Stretch: Ask for three different balanced arrangements for the same left side and a rule that predicts them all.
- Language: Key words: pivot, lever, balance, distance. Starter: 'coins times distance on the left equals …'.
Discussion prompts
- What do you notice about coins × distance on each side?
- Why is a long spanner easier to turn?
- What do you give up when a lever makes lifting easier?
Online lessons (optional)
- Levers: how a small push lifts a big load: Lite version · full lesson
- Levers and gears: small push, big result: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Build: Engineer an Elevator. Level 1: how a lift trades force for distance. Offline: Lift a book with a string over a desk edge and compare the effort with lifting it directly.
- Video: The Three Classes of Levers: An Explanation (Step by Step Science). Which class of lever was our coin lever? Offline: Find three levers in the room and sort them into the three classes.
Other editions
- No computer: Skip the elevator build demo; the coin lever is the whole session.
- No kit: Draw the lever on paper and use pencil tally marks as coins; check balance by the coins-times-distance rule instead of by tilting.
Worksheet: see “Worksheet 6” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 7: Gear ratios: speed or strength Week 460 minComputer optional
From the pack “The maths behind machines”, session 3. Gear ratios are the second formula of the week; they also give the first decision in code (is the output faster or stronger?), which the next session builds on.
Objectives
- Calculate a simple gear ratio.
- Predict how fast a driven gear turns.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | Why does a bicycle have different gears? |
| 25 | Paper gears | Run the paper gears activity. |
| 10 | Ratio talk | Write each result as a ratio. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Exit question | Big gear driving small gear: faster or slower? |
Activity: Paper gears (string and circles) 25 minpaper-build
Materials: Cardboard (from packaging), String, Pencils
- Use two pre-cut cardboard circles, one twice the diameter of the other, each with a mark on its edge.
- Wrap a loop of string around both like a belt, laid flat on the desk.
- Turn the big circle once and count turns of the small one.
- Swap which one you turn and repeat.
- The string loop lies flat on the desk and is never wrapped round fingers. Circles are pre-cut by an adult.
- An adult pre-cuts any cardboard before the session. Learners fold, slot and stack only; no blades or scissors in learners' hands.
- String stays below shoulder height and is never looped around necks, wrists or fingers. Use lengths under 1 metre unless an adult holds the ends.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Use circles with sizes in a simple ratio (one twice the other) and mark a start dot on each.
- Stretch: Ask for a three-gear train and the overall ratio from first to last gear.
- Language: Key words: gear, ratio, teeth, turn. Show 2 : 1 as two turns for one with a drawing.
Discussion prompts
- Why does the small circle turn more?
- What does a cyclist want on a steep hill?
- Where do machines trade speed for strength?
Online lessons (optional)
- What a ratio says: Lite version · full lesson
- Gear ratios: speed or strength, pick one: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Playground lab: Robotic kinematics lab. Optional: see rotation and speed in a moving arm. Offline: Turn the circles at a steady count and time the small one.
- Video: Gears Explained - mechanical engineering (The Engineering Mindset). Watch how gear ratios are calculated from teeth. Offline: Count the teeth drawn on two paper gears and compare with your string results.
Other editions
- No computer: Skip the kinematics playground; finish with a drawn bicycle and its gears on the board.
- No kit: Draw two touching circles and count turns by rolling a pencil-marked paper circle along a ruled line instead of using string.
Worksheet: see “Worksheet 7” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 8: Decisions from measurements Week 460 minNeeds a computer
Objectives
- Use if, elif and else to act on a reading.
- Combine conditions with and, or and not for a safety interlock.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | Is a gear ratio of 3 faster or stronger at the output? |
| 10 | Demo | A fan that turns on above 28 °C; trace it for three temperatures. |
| 25 | Pairs code | Pairs write a machine guard: the motor may run only if the door is closed and the temperature is safe. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | Which is safer as a default: run or stop? |
Activity: Interlock in code 25 minonline-optional
- Create door_closed (True or False) and temp_c.
- Write an if statement that prints RUN only when the door is closed and temp_c is below 60.
- Add elif and else branches that print why the machine stopped.
- Test four cases, one for each combination of door and temperature, and record the results in a table.
Differentiation
- More support: Start with a single if and else; add elif only when that works.
- Stretch: Add a third condition (an emergency stop) and explain the order the checks should go in.
- Language: Read and, or and not aloud with hand signals; give example sentences such as 'run only if the door is closed AND it is cool'.
Discussion prompts
- Why should a machine stop when it is unsure?
- Why test every combination, not just the expected one?
Online lessons (optional)
- Decisions from measurements: if, elif, else: Lite version · full lesson
- and, or, not: safety interlocks in code: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs write and test the interlock. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 8” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 9: Thresholds: when is it 'too cold'? Week 560 minComputer optional
From the pack “Machines that sense and decide”, session 4. Learners have just written if-statements; this paper session asks the harder question of where the threshold should go, which they test in code in the next session.
Objectives
- Write an IF–THEN–ELSE rule with a threshold.
- Explain the trade-off between a threshold that is too high and one that is too low.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | Ask: at what temperature should a heater switch on? Collect numbers and reasons. |
| 20 | Threshold line-up | Run the threshold line-up role-play. |
| 15 | Rule writing | Pairs write rule cards for three machines. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Share | Two pairs read a rule aloud; the class tries to break it. |
Activity: Threshold line-up 20 minrole-play
Materials: Paper
- Give each learner a paper card with a 'temperature' written on it (the teacher prepares cards from 5 to 30).
- The Controller chooses a threshold and calls: 'IF below my number THEN heater on ELSE heater off.'
- Learners holding a number below the threshold step forward ('heater on').
- Try three thresholds. For each, ask: who is too cold? Who wastes energy?
- Learners step forward one pace only, in a straight line, with space between them.
- Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Provide a rule template with blanks: IF ___ is below ___ (unit) THEN ___ ELSE ___.
- Stretch: Ask for a rule with two thresholds (switch on below one, off above another) and why the gap stops flicker.
- Language: Show a number line with a threshold flag on it. Key words: threshold, above, below, unit.
Discussion prompts
- What goes wrong if the threshold is too low? Too high?
- Is there one 'right' threshold?
- Who should decide: the engineer or the person using the machine?
Online lessons (optional)
- Choosing a good threshold: Lite version · full lesson
- IF this, THEN that, ELSE the other: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Simulation OS: Greenhouse through a cold night. Change the setpoint and watch energy use and plant temperature trade off. Offline: Repeat the line-up with a 'gap': heater on below 15, off above 18. What changes?
- Video: Thermostats: Cooler than you think! (Technology Connections). Watch the first ten minutes: how a thermostat chooses when to switch. Offline: Draw a thermometer on the board and mark where the class's chosen threshold sits.
Other editions
- No computer: Instead of the greenhouse simulation, read out a list of night temperatures and let the class act out the heater rule for each one.
- No kit: Already paper only. The line-up can be done with numbers written on scrap paper.
Worksheet: see “Worksheet 9” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 10: Test the edges: a heater that behaves Week 560 minOne shared screen
Objectives
- Choose test values at and around a threshold.
- Improve a simulated heater controller and justify the change with evidence.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | Where would you put the frost threshold, and why? |
| 15 | Boundary hunt | Pairs list the values they would test for 'heater on below 5 °C' and explain each. |
| 25 | Mission Lab | On one screen or in pairs, run the Unstable Greenhouse Level 1: try one change at a time and record what happens. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Exit question | What did the heater do that surprised you? |
Activity: Boundary hunt 15 minunplugged
Materials: Paper, Pencils
- Write the rule on paper: heater on when temperature is below 5 °C.
- List test temperatures just below, exactly at and just above 5, plus one far away on each side.
- For each, write what the heater should do before anyone checks.
- Compare lists between pairs and agree which test is most likely to find a bug.
- Paper and pencils stay on the desks; hand sheets out rather than sliding them.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Activity: Unstable Greenhouse, one change at a time 25 minonline-optional
- Open the Mission Lab and read the briefing aloud.
- Run the starting controller once and note the coldest temperature and how often the heater switches.
- Change only one setting, run again and record both numbers.
- Decide which change is better and write one sentence of evidence.
Differentiation
- More support: Give three of the four test values and ask for the missing one; pair with a confident reader for the briefing.
- Stretch: Try Level 2 of the Mission Lab and explain the trade-off between warmth and heater switching.
- Language: Teach just below, exactly at and just above with a number line drawn on the board.
Discussion prompts
- Why test exactly at the threshold?
- Why change only one thing at a time?
Online lessons (optional)
- Test the edges: boundary values: Lite version · full lesson
- On/off control and hysteresis: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Mission Lab: Mission Lab: The Unstable Greenhouse. Run Level 1 and record the effect of one change at a time. Offline: Give pairs a printed table of night temperatures; they apply the heater rule hour by hour on paper and count how often it switches.
- Simulation OS: Greenhouse through a cold night. Optional: compare the same controller on a colder night. Offline: Repeat the paper table with every temperature lowered by 3 °C and compare.
Other editions
- No computer: Use the printed night-temperature table instead of the Mission Lab: pairs apply the heater rule hour by hour and count switches. The evidence is real but slower to gather and covers one night only.
- No kit: Already paper and pencils only; the temperature table is printed or copied onto the board.
Worksheet: see “Worksheet 10” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 11: Loops over readings Week 660 minNeeds a computer
Objectives
- Use a for loop to summarise a list of sensor readings.
- Use a while loop that stops when a condition is met.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | What does a boundary test check? |
| 10 | Demo | Loop over five temperatures and print each; then add a running total. |
| 25 | Pairs code | Pairs compute the average, minimum and maximum of a twelve-reading log, then write a while loop that counts how many minutes a tank takes to fill. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | When would a while loop never stop? |
Activity: Sensor log summary 25 minonline-optional
- Paste the twelve readings into a list.
- Use a for loop with a running total to find the average; check it against a calculator.
- Track the smallest and largest values inside the same loop.
- Write a while loop that adds 4 litres a minute until a 30-litre tank is full and prints the minutes taken.
Differentiation
- More support: Give the loop with the running total already written; learners add the print and the average line.
- Stretch: Count how many readings are above the average in a second loop.
- Language: Act out a loop: one learner reads each value aloud while another keeps the running total on a sheet.
Discussion prompts
- Why is a loop better than twelve separate lines?
- How would you make sure a while loop always ends?
Online lessons (optional)
- for loops: summarise a sensor log: Lite version · full lesson
- while loops: repeat until it's done: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs summarise the log and fill the tank. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 11” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 12: Rounding and jitter Week 660 minComputer optional
From the pack “Signals in a noisy world”, session 3. Learners have just summarised a log; now they see why its readings jitter and round. Point back to last session's minimum and maximum: how much of that spread is noise?
Objectives
- Describe quantisation as rounding to steps.
- Tell quantisation from random noise.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Hook | A ruler marked only every 5 cm: how tall is your pencil? |
| 25 | Coarse rulers | Run the coarse-ruler activity. |
| 15 | Noise or steps? | Compare jitter between learners with rounding from the ruler. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Wrap-up | Which would a finer ruler fix: noise or steps? |
Activity: Coarse rulers 25 minunplugged
Materials: Paper, Pencils
- Make three paper rulers: marks every 5 cm, every 1 cm, and every 'half-fold' of a strip.
- Measure five objects with each ruler, rounding to the nearest mark.
- Five learners measure the same object with the 1 cm ruler; compare readings.
- Measure objects on desks only; pencils for marking only.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Give rulers with only whole-centimetre marks and a worked example of half a mark.
- Stretch: Ask how a ruler with marks every 2 cm changes the biggest rounding error.
- Language: Key words: quantisation, rounding, noise, resolution. Starter: 'It is the same every time because …'.
Discussion prompts
- Which ruler gave the most repeatable readings? The most precise?
- Why do five people get different readings with the same ruler?
- How does a digital sensor 'round' its readings?
Online lessons (optional)
- ADC counts, quantisation and noise: Lite version · full lesson
- Where noise comes from: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Equation Lab: Equation Lab: Probability distributions and sampling. Optional: see the spread of noisy readings. Offline: Make a tally chart of the five learners' readings.
- Video: Why Do Cameras Do This? | Rolling Shutter Explained - Smarter Every Day 172 (SmarterEveryDay). Another way sampling changes what a camera records. Offline: Draw a smooth curve and its 'staircase' version with steps of 1 unit.
Other editions
- No computer: Skip the distributions explorer; the coarse rulers are the whole session.
- No kit: Already paper and pencils only.
Worksheet: see “Worksheet 12” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 13: Filters: smooth but late Week 760 minComputer optional
From the pack “Signals in a noisy world”, session 4. A moving average is a loop over readings: after the paper filter, show that it is the same running total from session 11 applied to a sliding window.
Objectives
- Apply a moving average by hand.
- Explain the trade-off between smoothness and lag.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | A jittery thermometer: how do you see the real trend? |
| 25 | Paper filter | Run the paper moving-average activity. |
| 10 | Bigger window | Repeat with a window of 5 and compare. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Reflect | When is a late answer worse than a noisy one? |
Activity: Paper moving average 25 minunplugged
Materials: Paper, Pencils
- The teacher writes a noisy temperature series on the board (12 values with one sudden jump halfway).
- Make a window: fold a paper strip so that it shows three values at a time.
- Slide the window along; for each position write the average of the three values.
- Plot the raw and filtered values. Mark where each first 'notices' the jump.
- Desk activity; paper strips are folded, not cut.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Give a strip with a three-box window cut-out drawn on it to slide along the readings.
- Stretch: Ask learners to count how many samples late each filter is after a sudden jump.
- Language: Key words: filter, window, smooth, lag. Starter: 'It is smoother but …'.
Discussion prompts
- Which is smoother: raw or filtered?
- Which noticed the jump first?
- When would a robot prefer a small window?
Online lessons (optional)
- The moving average and the noise–lag trade-off: Lite version · full lesson
- Sensors aren't perfect: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Playground lab: Sensor fusion lab. Optional: compare filters live on a projected screen. Offline: The paper moving average is the lab.
- Simulation OS: Two-sensor fusion. Optional: blend two sensors and see the error drop. Offline: Average pairs of learners' readings.
- Build Night kit: Build Night: Understanding Sensor Noise. Facilitator kit for a longer noise session. Offline: Run the paper filter on a second series.
- Video: Drone Control and the Complementary Filter (Brian Douglas). Watch how two imperfect sensors are blended. Offline: Average two learners' readings in the coarse-ruler data and see if it beats either alone.
- Video: Why Use Kalman Filters? | Understanding Kalman Filters, Part 1 (MATLAB). Optional stretch: estimating what you cannot measure directly. Offline: Skip; it is an Innovator-level extension.
Other editions
- No computer: Skip the fusion playground, simulation and Build Night; the paper moving average is the whole session.
- No kit: Already paper and pencils only.
Worksheet: see “Worksheet 13” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 14: Functions: package a calculation Week 760 minNeeds a computer
Objectives
- Define a function with parameters that returns a value.
- Break a program into small functions with clear names.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | Why is a moving average late? |
| 10 | Demo | Turn the runtime calculation from session 3 into a function and call it three times. |
| 25 | Pairs code | Pairs write average(readings) and in_range(value, low, high), then use both to check a log. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | What makes a good function name? |
Activity: A tidy log checker 25 minonline-optional
- Write average(readings) that returns the mean of a list.
- Write in_range(value, low, high) that returns True or False.
- Use both to print how many readings are out of range in the session 11 log.
- Test each function on its own with a case you can check in your head.
Differentiation
- More support: Write the def line and the return keyword for them; learners fill in the calculation.
- Stretch: Give in_range a default for low and high, and explain when a default is risky.
- Language: Use the machine picture: inputs go in (parameters), a result comes out (return value).
Discussion prompts
- Why test a function on its own before using it?
- What is the difference between printing a value and returning it?
Online lessons (optional)
- Package a calculation as a function: Lite version · full lesson
- Decompose a program into functions: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs write and test two functions. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 14” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 15: Hunting bugs like an engineer Week 860 minNeeds a computer
Objectives
- Read a traceback to find the line and type of an error.
- Find a logic bug by reproducing, hypothesising and testing one change.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | What does return do? |
| 10 | Read the traceback | Show three error messages; pairs find the line number and the error type in each. |
| 25 | Bug hunt | Pairs get four short programs, each with one bug, and keep a bug log: symptom, hypothesis, test, fix. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | Which bug was hardest, and why? |
Activity: Bug log 25 minonline-optional
- Run each buggy program and write the symptom in the bug log.
- Write a hypothesis: which line, and what is wrong with it.
- Change one thing only and run again; record whether the symptom changed.
- When it is fixed, add a test case that would catch the bug next time.
Differentiation
- More support: Start with the two programs that give error messages; do the silent logic bugs together.
- Stretch: Write a buggy program of your own for another pair to fix, with a bug that gives no error message.
- Language: Teach symptom, cause and fix with a doctor analogy and example sentences.
Discussion prompts
- Why change only one thing at a time when debugging?
- Is a program with no error message always correct?
Online lessons (optional)
- Read the traceback: Lite version · full lesson
- Reproduce, hypothesise, test: hunting logic bugs: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs run and fix the four buggy programs. Offline: Print the four programs with their error messages; pairs mark the faulty line and write the fix, then trace it to check.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 15” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 16: Robots on a grid Week 860 minComputer optional
From the pack “The maths behind machines”, session 4. Coordinates prepare the robot-arm and traffic work ahead; pairs who finish can store a list of grid points and print them with a loop.
Objectives
- Plot points with ordered pairs in four quadrants.
- Write a route for a robot as coordinates.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | How would you tell a robot exactly where to go? |
| 25 | Floor grid robot | Run the floor grid robot role-play. |
| 10 | Below zero | Extend the grid to negative coordinates. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Wrap-up | Why does the order of (x, y) matter? |
Activity: Floor grid robot 25 minrole-play
Materials: Paper
- Lay paper sheets on the floor as a 5 × 5 grid, labelled with x along one side and y along the other.
- One learner is the Robot, starting at (0, 0).
- The Navigator reads coordinates from a route card; the Robot walks to each point.
- Extend the grid with sheets marked −1 and −2 and try a route that crosses zero.
- Weigh the paper sheets down at the corners with books so they don't slide. The Robot walks slowly, one learner on the grid at a time.
- Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Use a grid from 0 to 3 in one quadrant first, then extend to negative numbers.
- Stretch: Ask for the shortest route through four given points and how to prove it is shortest.
- Language: Key words: axis, coordinate, quadrant, origin. Rhyme: 'along the corridor, then up the stairs'.
Discussion prompts
- What happened if the Robot read (y, x) instead of (x, y)?
- Why do robot arms need negative coordinates?
- How could the Robot find the shortest route?
Online lessons (optional)
- Grids and ordered pairs: giving every point an address: Lite version · full lesson
- Four quadrants: below zero and behind the robot: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Simulation OS: Two-link robot arm reach. Optional: an arm reaching coordinates on a projected screen. Offline: Use the floor grid and a string arm (next session).
- Video: Coordinate plane: graphing points | Geometry | 5th grade | Khan Academy (Khan Academy). Watch how points are plotted in order. Offline: Play 'grid battleships' in pairs with two paper grids.
Other editions
- No computer: Skip the two-link arm simulation; the floor grid role-play and paper plots are the whole session.
- No kit: Already paper only. A floor grid can be drawn on large paper sheets laid together.
Worksheet: see “Worksheet 16” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 17: Triangles that reach Week 960 minComputer optional
From the pack “The maths behind machines”, session 5. Trigonometry gives the reach of an arm; connect it to the math module from session 5 (math.sin and math.cos use radians).
Objectives
- Measure an arm's reach with a right-angled triangle.
- Use sin, cos and tan as ratios (Builder stretch).
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | A robot arm is a triangle in disguise. Where is the triangle? |
| 25 | String arm | Run the string arm activity. |
| 10 | Ratios of sides | Compare across/along and up/along for different angles. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Exit question | Longer arm, same angle: what changes? |
Activity: String arm 25 minunplugged
Materials: Paper, String, Pencils
- Hold one end of a 20 cm string on a paper grid at (0, 0) with a finger.
- Pull the string straight at a chosen angle (use a drawn paper protractor fan) and mark where the end lands.
- Measure how far across and how far up the end is.
- Divide 'up' by the string length, and 'across' by the string length, for three angles.
- Use short string (20 cm). Hold it with fingers flat on the paper; never loop it round fingers.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- String stays below shoulder height and is never looped around necks, wrists or fingers. Use lengths under 1 metre unless an adult holds the ends.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Use only two angles (30° and 60°) and allow calculators for the ratios.
- Stretch: Ask learners to predict the reach at an angle they did not measure and check it.
- Language: Key words: angle, across, up, ratio, length. A labelled triangle drawing stays on the board.
Discussion prompts
- Did the ratios change when you used a longer string at the same angle?
- Why would an engineer want these ratios in a table?
- What does a robot need to know to reach a point?
Online lessons (optional)
- sin, cos and tan are just ratios: Lite version · full lesson
- Joints and arms: placing a robot hand: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Nexus project: Virtual Robotic Arm. Optional: a full arm system with reach limits. Offline: Draw the reach circle of the string arm on the grid.
- Equation Lab: Equation Lab: Vectors: addition and the dot product. Optional: add arrows to see where an arm ends up. Offline: Draw the arm as two arrows tip to tail.
- Video: How Robots Use Maths to Move (James Bruton). Watch for where trigonometry turns a target into joint angles. Offline: Two learners act as a two-joint arm with their forearms on the paper grid.
Other editions
- No computer: Skip the virtual arm and Equation Lab; the string-arm table is the whole evidence.
- No kit: Use a strip of paper as the arm and a drawn protractor template; measure across and up with a ruler on squared paper.
Worksheet: see “Worksheet 17” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 18: A state machine in code Week 960 minNeeds a computer
Objectives
- Describe a traffic signal as states, events and transitions.
- Write a small state machine in Python and step it through time.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | What does a robot arm need to know to reach a point? |
| 15 | Role-play the signal | Three learners are the red, green and amber states; a caller announces events and the class says which state comes next. |
| 20 | Pairs code | Pairs code the signal with a state variable and if/elif branches, stepping it for 12 ticks. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | Which transition must never happen at a real junction? |
Activity: Human traffic signal 15 minrole-play
Materials: Paper
- Three volunteers hold a sheet marked RED, GREEN or AMBER; only the current state stands.
- The caller announces 'timer done'; the class says which state is next and that learner stands.
- Try an illegal event, such as green straight to red, and discuss why the design forbids it.
- Draw the state diagram on the board from what happened.
- Volunteers stand and sit in place; nobody moves around the room.
- Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Activity: Signal in Python 20 minonline-optional
- Create state = 'RED' and a tick counter.
- Use if/elif to move to the next state when the time in the current state reaches its limit.
- Loop for 12 ticks and print the state each tick.
- Check the printed sequence against the state diagram from the role-play.
Differentiation
- More support: Give the state diagram printed; learners only code one transition and test it.
- Stretch: Add a pedestrian button event that shortens the wait, and explain how you stop it being abused.
- Language: Label the states with colours and words; use the sentence 'When ... happens in state ..., go to ...'.
Discussion prompts
- Why is a state machine easier to check than a tangle of if-statements?
- What should the signal do if its timer fails?
Online lessons (optional)
- A state machine in twelve lines: Lite version · full lesson
- Set up once, loop forever: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs code and step the signal. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
- Simulation OS: Traffic-light junction timing. Optional: see how green times change queues at a junction. Offline: Give pairs a printed list of car arrivals per minute and let them count the queue by hand for two different green times.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 18” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 19: Closing the loop Week 1060 minComputer optional
From the pack “Machines that sense and decide”, session 5. The closed loop on paper is the idea the next session turns into a function: the controller reads an error and returns an action.
Objectives
- Tell open-loop from closed-loop control.
- Describe on/off (bang-bang) control and its weakness.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Hook | Toaster versus thermostat: which one checks its own work? |
| 20 | The human thermostat | Run the human thermostat role-play. |
| 15 | Open or closed? | Groups sort machine cards into open loop and closed loop. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Exit question | Name one closed-loop machine at home. |
Activity: The human thermostat 20 minrole-play
Materials: Paper, Coins (or paper counters)
- The 'room' is a paper sheet. Coins on it are 'heat'. One coin is removed every ten seconds by the Weather (the teacher).
- Open loop: the Heater adds one coin every ten seconds no matter what. After two minutes, count the coins.
- Closed loop: a Thermometer counts the coins and tells the Heater 'add' below 5 coins and 'stop' at 5 or more.
- Compare the two runs. Which kept the room steadier?
- Count coins out and back in. Only the Heater, Thermometer and Weather touch the coins.
- Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Give a loop diagram with empty boxes and the arrows already drawn; learners write the role names in.
- Stretch: Ask learners to predict, then record, how the coin count changes if the thermostat checks only every other round.
- Language: Key words with gestures: measure (look), compare (weigh in hands), act (push). Starter: 'The information goes back to …'.
Discussion prompts
- Why did the open-loop room get too hot or too cold?
- What does the thermometer add to the system?
- Where could a closed-loop machine still go wrong?
Online lessons (optional)
- Open loop or closed loop?: Lite version · full lesson
- On/off control: the bang-bang thermostat: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Playground lab: Feedback control lab. Compare on/off and proportional control on a projected screen. Offline: Use the human thermostat with 'add two coins when far below, one when close'.
- Build Night kit: Build Night: Design a Simulated Control System. Facilitator kit for a longer control session. Offline: Run the human thermostat with three different targets.
- Video: Cheese, Catastrophes, & Process Control: Crash Course Engineering #25 (CrashCourse). Find one example of a feedback loop failing and why. Offline: Re-run the human thermostat with the Thermometer checking only every 30 seconds and compare.
Other editions
- No computer: Skip the feedback lab; draw the coin-count graph from the role-play on the board and discuss the wobble around the target.
- No kit: Replace coins with tally marks: one learner adds or rubs out marks on a sheet as the 'heat'.
Worksheet: see “Worksheet 19” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 20: Models are functions: a controller you can test Week 1060 minNeeds a computer
Objectives
- Write a proportional controller as a function of the error.
- Compare gains in a simulation and describe the trade-off.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | What makes a loop 'closed'? |
| 10 | Demo | Write action(error, gain) that returns gain × error, and step a heated room for five ticks. |
| 25 | Pairs code and simulate | Pairs try three gains in code, then the same three in the PID step-response simulation, and record overshoot and time to settle. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | What does the model leave out about a real room? |
Activity: Gain experiment 25 minonline-optional
- Write a function action(error, gain) and a loop that updates the temperature by the action each tick.
- Run gains of 0.2, 0.5 and 1.2 and record the temperature after ten ticks.
- Open the PID step-response simulation and set the same proportional gains.
- Write which gain you would choose and one thing the simple model cannot show.
Differentiation
- More support: Provide the loop and the function signature; learners change only the gain and record results.
- Stretch: Add a steady heat loss each tick and see whether the room ever reaches the target; link to integral action.
- Language: Key words with a picture: target, error, gain, overshoot, settle.
Discussion prompts
- Why might a very high gain be a bad idea in a real machine?
- Is a simulation evidence? What would make it stronger?
Online lessons (optional)
- Models are functions: input in, output out: Lite version · full lesson
- Proportional control: push harder when further away: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Studio: Code Lab. Pairs code the controller and run the gain experiment. Offline: Print the session's programs and trace them by hand in a table: one row per line run, one column per variable, then write what is printed.
- Simulation OS: PID step response. Compare the same gains in a simplified response model. Offline: Give pairs a printed set of three response curves labelled only A, B and C; they decide which gain made each and why.
Other editions
- No computer: This session needs a computer for its core activity: writing and running Python in the Code Lab. With no computer, learners trace the printed programs by hand in a table (one row per line, one column per variable) and predict the output. They still learn to read code precisely, but they lose the most important part: running their own code, seeing errors and fixing them. Plan a device session later to catch up.
- No kit: Already paper and pencils only: the trace tables and the worksheet need nothing else.
Worksheet: see “Worksheet 20” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 21: Did it pass? Averages and spread Week 1160 minComputer optional
From the pack “The maths behind machines”, session 6. Averages and spread are what learners need to judge the Noisy Factory in the next session: one lucky run is not evidence.
Objectives
- Use average and range to describe repeated tests.
- Decide whether a design meets a requirement.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Hook | A paper plane flew 4 m once. Is it a 4 m plane? |
| 25 | Coin slide test | Run the coin slide test. |
| 15 | Decide | Groups decide whether their ramp meets the requirement. |
| 10 | Worksheet | Questions 1–3. |
| 5 | Wrap-up | How many tests are enough? |
Activity: Coin slide test 25 minunplugged
Materials: Cardboard (from packaging), Coins (or paper counters), Paper
- Lean a pre-cut cardboard ramp on a book on the desk.
- Release a coin from the top line; mark where it stops on a paper strip.
- Repeat ten times and record each distance.
- Requirement: the coin must stop within 20 cm of the ramp's foot at least 8 times out of 10.
- Ramps stay on the desk; coins that fall are picked up at the end, not during the test. Count coins back in.
- An adult pre-cuts any cardboard before the session. Learners fold, slot and stack only; no blades or scissors in learners' hands.
- Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Give a working frame for the average and range, and order the ten results first.
- Stretch: Ask whether one unusual slide should be removed, and what that would do to the decision.
- Language: Key words: average, range, trial, requirement. Show range as the gap between the shortest and longest.
Discussion prompts
- Why not just test once?
- Which tells you more: the average or the range?
- What would you change to make the coin stop more consistently?
Online lessons (optional)
- Repeat, average, spread: Lite version · full lesson
- How often does it fail?: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Equation Lab: Equation Lab: Probability distributions and sampling. Optional: see how spread changes with more trials. Offline: Combine every group's results into one class dot plot.
- Video: Measures of Spread: Crash Course Statistics #4 (CrashCourse). Watch the first part on range and spread. Offline: Draw a dot plot of all groups' results on the board.
Other editions
- No computer: Skip the distributions explorer; draw a class dot plot of slide distances on the board.
- No kit: Replace the coin ramp with flicking a folded paper wedge along a desk and measuring with a ruler.
Worksheet: see “Worksheet 21” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 22: Evidence from many runs: the Noisy Factory Week 1160 minOne shared screen
Objectives
- Judge a design from several runs, not one.
- Defend a design choice with numbers and an honest limitation.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 5 | Recap | Why is the average of five runs better than one run? |
| 10 | Briefing | Read the Noisy Factory briefing together; agree what 'better' means before trying anything. |
| 25 | Mission Lab runs | Pairs or the whole group try two designs, record five runs each and compare averages and spread. |
| 15 | Worksheet | Questions 1–3. |
| 5 | Exit question | What would change your mind about your chosen design? |
Activity: Five runs each 25 minonline-optional
- Write the success measure on paper before running anything.
- Run design A five times and record each result in a table.
- Run design B five times and record each result.
- Work out the average and the range of each and decide which design is better.
Activity: Trade-off table 10 minunplugged
Materials: Paper, Pencils
- Draw a table with the two designs as rows and three criteria as columns.
- Fill each cell with a number or a word from your runs.
- Circle the criterion that matters most for the factory and explain why.
- Paper and pencils stay on the desks; hand sheets out rather than sliding them.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Give a table with the runs already written; learners compute the averages with a calculator.
- Stretch: Try a third design and decide whether five runs are enough to tell it apart.
- Language: Teach average and range with one worked example on the board; give the starter 'I chose ... because the evidence shows ...'.
Discussion prompts
- When are two averages too close to call?
- Who might disagree with your choice of 'better'?
Online lessons (optional)
- A test plan that could prove you wrong: Lite version · full lesson
- How fragile is your decision?: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Mission Lab: Mission Lab: The Noisy Factory. Compare two designs over five runs each. Offline: Hand out printed results for five runs of two designs (made up in class by rolling-number cards or written by the teacher beforehand and labelled as invented); pairs compute averages and ranges and choose.
- Simulation OS: Sorting conveyor sensors. Optional: see how a conveyor's sorting accuracy changes with speed. Offline: Discuss with a sketch: if the belt runs twice as fast, what happens to the time a sensor has to decide?
- Simulation OS: Design constraints and trade-offs. Optional: weigh criteria and watch the ranking change. Offline: Change the weights in the paper trade-off table and see whether the winner changes.
Other editions
- No computer: Use the printed run results instead of the Mission Lab. Learners practise the same reasoning, but they cannot try a design of their own and see new results.
- No kit: Already paper and pencils only; print or copy the result tables.
Worksheet: see “Worksheet 22” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 23: Project: build the smart junction Week 1260 minOne shared screen
Objectives
- Plan and build a junction controller from the skills of the course.
- Write a test plan before testing.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Brief | Introduce the project and the rubric; teams choose their success measures. |
| 10 | Test plan | Teams write three tests that could prove their design wrong. |
| 30 | Build | Teams adjust the junction in the Nexus project or the Overloaded City Mission Lab and record each change in a log. |
| 10 | Save evidence | Teams record their best settings and the numbers that support them. |
Activity: Junction build 30 minonline-optional
- Open the smart junction project and run the starting design.
- Change one setting at a time and write each change and its result in the log.
- Run your three planned tests on your best design.
- Note any test that failed and what you changed because of it.
Activity: Test plan on paper 10 minunplugged
Materials: Paper, Pencils
- Write three tests: what you will do, what result would pass and what would fail.
- Include one test of a safety rule, such as never two greens at once.
- Swap with another team and ask them to find a gap in your plan.
- Paper and pencils stay on the desks; hand sheets out rather than sliding them.
- Paper edges can cut: hand sheets out rather than sliding them across desks.
- Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
- A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.
Differentiation
- More support: Offer three ready-made tests to choose from; the team adds the pass condition.
- Stretch: Make the design cope with both the morning and the evening rush and explain the compromise.
- Language: Give a test-plan template with one row filled in as an example.
Discussion prompts
- Which of your tests is most likely to fail, and why include it?
- What did you choose not to optimise?
Online lessons (optional)
- Requirements two strangers would agree on: Lite version · full lesson
- A test plan that could prove you wrong: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Nexus project: Smart Transportation Junction. Teams build and test their junction design. Offline: Teams design the signal plan on paper with a state diagram and green times, then count queues by hand from a printed arrival list for two rush hours.
- Mission Lab: Mission Lab: The Overloaded City. Optional: compare plans for a junction that jams in different directions. Offline: Use two printed arrival lists (morning and evening) and test the same paper signal plan on both.
Other editions
- No computer: Run the project fully on paper with a state diagram, green times and hand-counted queues from printed arrival lists. It is a fair test of reasoning but slower, and teams try fewer designs.
- No kit: Already paper and pencils only.
Worksheet: see “Worksheet 23” at the end. Teacher solutions are on the protected educator page, not in this document.
Session 24: Project: test, document and present Week 1260 minComputer optional
Objectives
- Present a design with evidence and an honest limit.
- Write a README another team could follow.
Timing
| Minutes | Part | What happens |
|---|---|---|
| 10 | Final tests | Teams rerun their tests on the final design and update the results. |
| 15 | README | Teams write a one-page README: what it does, how to run it, what was tested, what is unknown. |
| 25 | Presentations | Each team has three minutes plus questions; listeners use the feedback card. |
| 10 | Reflection | Worksheet and a whole-group look back at the twelve weeks. |
Activity: Three-minute presentation 25 mindiscussion
- State the problem and your success measure in one sentence.
- Show your best evidence: a number from your tests and how you got it.
- Say one thing that did not work and one thing you still do not know.
- Answer one question from the audience.
Differentiation
- More support: Teams may present with a partner speaking and the other pointing to the evidence; offer a README template.
- Stretch: Add a section to the README on how the design would need to change for a busier junction.
- Language: Allow presentations in any language the group shares, with key numbers written up; give a sentence frame for each part.
Discussion prompts
- Which team's evidence convinced you most, and why?
- Where in your life could a small program save time or catch a mistake?
Online lessons (optional)
- A README a stranger can follow: Lite version · full lesson
- Project: test it, show the evidence: Lite version · full lesson
Interactive laboratories and their offline alternatives
- Nexus project: Smart Transportation Junction. Optional: show the final design live during the presentation. Offline: Present the state diagram and results table on a large sheet of paper instead.
Other editions
- No computer: Everything is presented on paper; the optional live demo is simply skipped.
- No kit: Already paper and pencils only; a large sheet of paper replaces any poster board.
Worksheet: see “Worksheet 24” at the end. Teacher solutions are on the protected educator page, not in this document.
Project: The smart junction
A crossroads jams every rush hour. Design a signal plan that moves more traffic while never breaking the safety rule, test it with a plan written in advance, and present the evidence and its limits.
Offline: Design the signal plan on paper as a state diagram with green times, then count queues by hand from printed arrival lists for a morning and an evening rush. Present with a results table on a large sheet.
Assessment rubrics
Rubrics describe evidence of competency, not age. Use them for feedback, never for grades, rankings or public lists of learners.
Coding sessions
Use for feedback on worksheets and coding work in sessions 3–20. Look at what a learner can do, never at speed or age.
| Criterion | Beginning | Developing | Secure | Excellent |
|---|---|---|---|---|
| Reading code | Can say what one line does with help. | Traces a short program with some slips. | Traces programs with variables, decisions and loops correctly. | Predicts output before running and explains surprises. |
| Writing code | Copies a given program and runs it. | Changes a given program to answer a what-if question. | Writes a short program from a description, with clear names and units. | Breaks a problem into functions and tests each one. |
| Testing | Runs the program once. | Tries a few values, mostly typical ones. | Chooses boundary and unusual values on purpose. | Writes tests before the code and explains what each would catch. |
| Debugging | Notices that something is wrong. | Finds the line from a traceback. | Fixes logic bugs by changing one thing at a time. | Keeps a bug log and adds a test so the bug cannot return. |
Smart junction project
Use in sessions 23 and 24 for the project and presentation.
| Criterion | Beginning | Developing | Secure | Excellent |
|---|---|---|---|---|
| Problem and measures | Describes the junction problem in general terms. | Names a success measure. | States clear success measures and a safety rule before building. | Explains trade-offs between the measures and who they affect. |
| Test plan and evidence | Shows one result. | Has tests, but some cannot fail. | Runs planned tests that could fail and records results honestly. | Uses several runs and spread to support the choice. |
| Iteration | Keeps the first design. | Changes several things at once. | Changes one setting at a time and logs each result. | Explains why each change was tried and what it taught. |
| Communication | Shows the design without explanation. | Explains what the design does. | Presents evidence and one honest limitation; README can be followed. | Answers questions with evidence and suggests next tests. |
Accessibility guidance
- Low vision: The Code Lab follows the browser's zoom; increase it to 150–200 % and use a high-contrast theme if your system offers one. Print worksheets at A3 or in a large font, and read code aloud line by line during demos.
- Hearing: Write every instruction and every demo step on the board as well as saying it. Use captions on any video, and agree a visual signal to stop and look at the front.
- Movement and fine motor: Pair learners so one can dictate while the other types; keyboard-only use works in the Code Lab. Allow extra time for typing, and accept spoken or dictated worksheet answers.
- Reading: Programs are short and use plain names. Give printed code with line numbers and enough space; read worksheet questions aloud on request; accept answers as diagrams or tables.
- Language: Python keywords are English words: put if, else, while, for, def and return on a word wall with a picture and an example. Learners can comment their code in any language.
- No internet: Coding sessions need the Code Lab, which needs a connection to load. Without internet, use the trace-table alternative in each session and the printed run results for the Mission Labs; say honestly that running code is the part that is lost.
- One shared device: With one device for the group, project the Code Lab and let pairs take turns as the typist for two minutes each while the rest predict on paper. It is slower; drop one what-if question per session.
Student worksheets
One worksheet per session. Questions only.
Worksheet 1: Why engineers compute
Twelve-week computational engineering · Week 1 · Questions only. Your teacher checks your answers.
Name: Date:
1. Draw a flowchart for making a cup of tea that includes one decision diamond.
2. A step says 'wait a bit'. Rewrite it so a machine could follow it exactly.
3. Which shape shows a yes/no question in a flowchart?
- Rectangle
- Diamond
- Circle
- Arrow
From the online lesson “Flowcharts: drawing decisions and loops”
4. A tank starts with 55 L of water. The controller runs: while level < 100: level = level + 10 (one pump pass adds 10 L). How many times does the pump run before the loop stops?
Answer: passes
5. In a flowchart, what does a diamond mean?
- An action, such as 'pump on'
- A decision with a yes exit and a no exit
- The end of the algorithm
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w01-algorithms-and-flowcharts/
Worksheet 2: A number without a unit is a mystery
Twelve-week computational engineering · Week 1 · Questions only. Your teacher checks your answers.
Name: Date:
1. Record your estimates and measurements.
| Station | Estimate (with unit) | Measured (with unit) | Difference |
|---|---|---|---|
2. Explain one strategy you used to make a better estimate.
3. Someone says a door is '2 tall'. Write two different things they might mean.
From the online lesson “A number without a unit is a mystery”
4. Which of these is a complete measurement?
- 42
- 42 cm
- Quite long
- Forty-two
5. What does 'kilo' mean in kilometre and kilogram?
- One hundredth
- One thousand times
- Ten times
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w03-why-units-matter/
From the online lesson “Good-enough numbers: the art of estimation”
6. A tree is really 12 m tall. Which guess is within a factor of 2?
- 3 m
- 8 m
- 40 m
7. A classmate calculates that a school backpack holds 2,000 litres. What's the most likely problem?
- Backpacks really are that big
- A units or arithmetic mistake: a backpack holds about 20–30 litres
- Litres can't measure volume
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w03-good-enough-numbers/
Worksheet 3: Your first program: battery runtime
Twelve-week computational engineering · Week 2 · Questions only. Your teacher checks your answers.
Name: Date:
1. A battery holds 3000 mAh and a torch draws 600 mA. Write the two Python lines that store these values and one line that prints the runtime.
2. Trace this program: a = 4, then b = a * 3, then a = b - 2, then print(a). Fill in each variable after each line.
| Line | a | b | Printed |
|---|---|---|---|
3. Explain why the order of the lines matters in a program.
From the online lesson “Your first Python program: battery runtime”
4. A sensor node runs from a 2500 mAh battery and draws a steady 50 mA. A program computes hours = 2500 / 50 and then minutes = hours * 60. What value does minutes hold, in minutes? (Ignore the battery ageing or the voltage dropping.)
Answer: min
5. What does print("3 + 4") show?
- 7
- 3 + 4
- An error
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w02-first-program/
From the online lesson “How the interpreter reads your program”
6. Trace this Python by hand: x = 8; x = x + 1; x = x * 4; x = x - 20; print(x). What number is printed?
Answer:
7. a = 5; b = a * 2; a = 100; print(b). What is printed?
- 10
- 200
- An error
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w02-top-to-bottom/
Worksheet 4: Variables that track a changing machine
Twelve-week computational engineering · Week 2 · Questions only. Your teacher checks your answers.
Name: Date:
1. level = 20, then level = level + 5, then level = level * 2, then level = level - 12. Write the value of level after each line.
| After line | level |
|---|---|
2. Which type is "23.5 °C" (with the quote marks) in Python?
- int
- float
- str
- list
3. Give one value from a robot that should be stored as an int and one that should be a float. Explain each choice.
From the online lesson “Variables that track a changing machine”
4. A robot starts with distance_m = 0.0 and its loop runs distance_m = distance_m + speed_m_per_s * dt_s exactly 7 times, with speed_m_per_s = 2 and dt_s = 0.1. What is distance_m at the end, in metres?
Answer: m
5. Which lines correctly swap a and b?
- a = b then b = a
- a, b = b, a
- b = a then a = b
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w03-names-and-updates/
From the online lesson “int, float, str and list”
6. A machine makes 26 parts and packs them in boxes of 12. What does Python give for 26 // 12 (full boxes)?
Answer: parts
7. What is the type of 7 // 2?
- int
- float
- str
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w03-types/
Worksheet 5: Translate a formula into Python
Twelve-week computational engineering · Week 3 · Questions only. Your teacher checks your answers.
Name: Date:
1. Write one line of Python that computes power_w from voltage_v and current_a (power equals voltage times current).
2. A program prints 7200 for the time in seconds to walk 120 m at 1.5 m/s. Estimate the real answer and say what bug might cause 7200.
3. Which line computes the area of a circle with radius r?
- area = math.pi * r * 2
- area = math.pi * r ** 2
- area = (math.pi * r) ** 2
- area = math.pi + r ** 2
From the online lesson “Translate a formula into Python”
4. Which Python line correctly computes V_out = V_in·R2/(R1 + R2)?
- v_out = v_in * r2 / r1 + r2
- v_out = v_in * r2 / (r1 + r2)
- v_out = (v_in * r2 / r1) + r2
5. What does Python give for -3 ** 2?
- 9
- -9
- An error
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w04-formulas-to-code/
From the online lesson “The math module: roots, angles and radians”
6. A loading ramp is 2.7 m long and rises at 5° to the floor. Python computes height_m = 2.7 * math.sin(math.radians(5)). What is the height, in metres?
Answer: m
7. Which line correctly computes cos of 60°?
- math.cos(60)
- math.cos(math.radians(60))
- math.radians(math.cos(60))
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w04-math-module/
Worksheet 6: Levers: small push, big lift
Twelve-week computational engineering · Week 3 · Questions only. Your teacher checks your answers.
Name: Date:
1. Record your balanced levers.
| Left coins | Left distance | Right coins | Right distance |
|---|---|---|---|
2. Describe the pattern you found in your own words.
3. 3 coins sit 4 marks left of the pivot. Where could 2 coins go to balance them? Explain how you know.
From the online lesson “Levers: how a small push lifts a big load”
4. A 50 N load is 1 m from the pivot. You push 5 m from the pivot. What push balances it, in newtons?
Answer: N
5. Why is a door handle put on the side far from the hinges?
- It looks better
- A push far from the pivot has a bigger turning effect
- The door is lighter on that side
- So the door closes by itself
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w10-levers-and-pivots/
From the online lesson “Levers and gears: small push, big result”
6. Where should you push a door to open it most easily?
- Right next to the hinges
- In the middle
- At the edge furthest from the hinges
7. A long crowbar lets you lift a heavy rock with a small push. What do you give up?
- Nothing: it's free force
- Your end of the bar moves much further than the rock does
- The rock gets lighter
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w05-levers-and-gears/
Worksheet 7: Gear ratios: speed or strength
Twelve-week computational engineering · Week 4 · Questions only. Your teacher checks your answers.
Name: Date:
1. Your big circle turned once. How many times did the small one turn? Write it as a ratio.
2. A gear with 30 teeth drives a gear with 10 teeth. Explain how you would work out which turns faster and by how much.
3. Explain why a low gear helps a cyclist climb a hill.
From the online lesson “What a ratio says”
4. A gear pair has 25 teeth on the driven gear and 5 teeth on the driver. Write the ratio 25 : 5 in its simplest form. What is the FIRST number?
Answer:
5. A mixing machine uses 6 cups of flour for every 2 eggs. Keeping the same ratio, how many cups of flour go with 4 eggs?
Answer:
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w12-what-a-ratio-says/
From the online lesson “Gear ratios: speed or strength, pick one”
6. A driver gear with 15 teeth turns a driven gear with 30 teeth. What is the gear ratio (driven teeth ÷ driver teeth)?
Answer:
7. A 10-tooth driver gear meshes with a 30-tooth driven gear. The driver turns 12 times. How many times does the driven gear turn?
Answer: turns
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w12-gear-ratios/
Worksheet 8: Decisions from measurements
Twelve-week computational engineering · Week 4 · Questions only. Your teacher checks your answers.
Name: Date:
1. temp = 31. The program says: if temp > 30 print HOT, elif temp > 20 print WARM, else print COOL. What is printed, and why only one line?
2. Fill in the table for: run = door_closed and not overheated.
| door_closed | overheated | run |
|---|---|---|
3. Write an if statement that prints STOP when a distance reading is below 15 cm or the stop button is pressed.
From the online lesson “Decisions from measurements: if, elif, else”
4. A cooling fan is set by: if temp_c >= 45: fan = 100, elif temp_c >= 35: fan = 50, else: fan = 0. What is fan, in %, when temp_c = 44.5?
Answer: %
5. A rule is written: if temp_c >= 35: fan = 50, elif temp_c >= 50: fan = 100. What is wrong?
- Nothing
- The fan can never reach 100 %: any temperature ≥ 50 already matches the first test
- It raises a SyntaxError
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w05-if-elif-else/
From the online lesson “and, or, not: safety interlocks in code”
6. guard, operator and fault are each True or False (8 combinations). For how many of the 8 combinations is this Python condition True: guard or operator?
Answer: rows
7. Which condition is True exactly when temp_c is from 0 to 45 inclusive?
- 0 < temp_c < 45
- 0 <= temp_c <= 45
- temp_c >= 0 or temp_c <= 45
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w05-combining-conditions/
Worksheet 9: Thresholds: when is it 'too cold'?
Twelve-week computational engineering · Week 5 · Questions only. Your teacher checks your answers.
Name: Date:
1. Write an IF–THEN–ELSE rule for a night light. Include a threshold.
2. Your night light switches on and off again and again at dusk. Explain why this might happen.
3. A greenhouse heater rule uses a threshold that is far too high. What is most likely?
- Plants freeze
- Energy is wasted
- The sensor breaks
- Nothing changes
From the online lesson “Choosing a good threshold”
4. Rule: IF temperature > 40 °C THEN switch the fan on. The sensor reads 41 °C, 55 °C, 40 °C, 33 °C, 43 °C, 47 °C. For how many of these readings does the THEN branch run?
Answer:
5. A doorbell camera alerts you when motion is above a threshold. Leaves blowing keep triggering it. What should you do?
- Lower the threshold
- Raise the threshold
- Remove the threshold
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w22-thresholds/
From the online lesson “IF this, THEN that, ELSE the other”
6. IF light level < 30 THEN lamp on ELSE lamp off. The sensor reads 45. What happens?
- Lamp on
- Lamp off
- Both
7. IF speed > 50 THEN beep. The speed is exactly 50. Does it beep?
- Yes
- No
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w22-if-then-else/
Worksheet 10: Test the edges: a heater that behaves
Twelve-week computational engineering · Week 5 · Questions only. Your teacher checks your answers.
Name: Date:
1. A heater turns on when the temperature is below 5 °C. List four temperatures you would test and say why each one.
2. The heater switches on and off every minute. Suggest one change to the rule and one downside of that change.
3. You changed two settings at once and the result improved. What do you know?
- Both changes helped
- The first change helped
- Something helped, but you cannot tell which
- Nothing, the test was unfair
From the online lesson “Test the edges: boundary values”
4. A thermometer reports in steps of 0.5 °C. The alarm rule is if temp_c >= 30: alarm(). As the temperature rises from 28 °C one step at a time, what is the first reading that sets off the alarm, in °C?
Answer: °C
5. A rule should pass readings from 10 to 60 inclusive, in steps of 1. Which set of tests is best?
- 20, 30, 40
- 9, 10, 11, 59, 60, 61
- 0, 100
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w05-boundary-testing/
From the online lesson “On/off control and hysteresis”
6. A thermostat uses a setpoint of 20 °C and a total hysteresis band of 3 °C, centred on the setpoint. Below what temperature does the heater switch on, in °C?
Answer: °C
7. With 'on below 17, off above 19', the heater is ON and the temperature is 18.2 °C. What does the controller do?
- Switch off
- Keep the heater on
- Switch on
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w26-on-off-and-hysteresis/
Worksheet 11: Loops over readings
Twelve-week computational engineering · Week 6 · Questions only. Your teacher checks your answers.
Name: Date:
1. Trace: total = 0, then for r in [3, 5, 4]: total = total + r. Write r and total after each pass of the loop.
| Pass | r | total |
|---|---|---|
2. level = 0; while level < 10: level = level + 3. How many times does the loop body run, and what is level at the end?
3. Describe in words how you would find the largest reading in a list using a loop.
From the online lesson “for loops: summarise a sensor log”
4. A loop totals and counts these temperature readings (°C): [18.0, 25.4, 31.8, 31.6, 21.9, 26.6]. What is total / count, in °C?
Answer: °C
5. How many times does the body of for r in readings: run if readings has 7 items?
- 6
- 7
- 8
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w06-loop-over-readings/
From the online lesson “while loops: repeat until it's done”
6. A motor is 75 °C hotter than the room. Each minute of cooling multiplies the difference by 0.5. The program runs: while excess > 5: excess = excess * 0.5; minutes = minutes + 1 (starting from excess = 75, minutes = 0). What is minutes when the loop ends?
Answer: min
7. Which while loop never ends?
- n = 0; while n < 5: n += 1
- n = 10; while n > 0: n -= 2
- n = 1; while n != 10: n += 2
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w06-while-loops/
Worksheet 12: Rounding and jitter
Twelve-week computational engineering · Week 6 · Questions only. Your teacher checks your answers.
Name: Date:
1. Record one object with all three rulers.
| Ruler | Reading | Biggest possible rounding error |
|---|---|---|
2. Explain the difference between quantisation and noise using today's results.
3. A sensor reports whole degrees only. What is the biggest rounding error it can make? Explain.
From the online lesson “ADC counts, quantisation and noise”
4. What voltage does one step (1 LSB) of a 10-bit ADC with a 3.3 V reference represent, in millivolts?
Answer: mV
5. A 8-bit ADC with a 5 V reference reads 53. Using volts = count × Vref ÷ 2^n, what voltage is that, in volts?
Answer: V
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w22-adc-quantisation-noise/
From the online lesson “Where noise comes from”
6. A light sensor's readings jump every time a nearby motor starts. The most likely source is…
- thermal noise
- electrical interference
- quantisation
- bias
7. Noise is 2.0 at 0.5 m/s. If noise scales with √speed, what is it at 2.0 m/s?
Answer:
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l3-w21-where-noise-comes-from/
Worksheet 13: Filters: smooth but late
Twelve-week computational engineering · Week 7 · Questions only. Your teacher checks your answers.
Name: Date:
1. Explain how a 3-value moving average is calculated, with one example from today.
2. Compare the 3-value and 5-value filters: which is smoother, which is quicker to react?
3. A robot must stop quickly when an obstacle appears. Would you choose a big or small window? Explain the trade-off.
From the online lesson “The moving average and the noise–lag trade-off”
4. Readings 4, 8, 6, 10. What does a k = 2 moving average output now?
Answer:
5. A filter keeps the mean of the last k = 5 readings. The readings so far, oldest first, are: 35, 16, 15, 35, 38, 10. What does the filter output now?
Answer:
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l3-w23-moving-average/
From the online lesson “Sensors aren't perfect”
6. A thermometer reads 18, 19, 17 and 18 °C. What is the average, in °C?
Answer: °C
7. A robot drives at 10 cm/s and checks its distance sensor 10 times a second. How far does it travel between one check and the next, in cm?
Answer: cm
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w24-noisy-readings/
Worksheet 14: Functions: package a calculation
Twelve-week computational engineering · Week 7 · Questions only. Your teacher checks your answers.
Name: Date:
1. def double_plus_one(x): return 2 * x + 1. What does double_plus_one(4) give? What does double_plus_one(double_plus_one(1)) give?
2. Write a function c_to_f(c) that converts Celsius to Fahrenheit (multiply by 9/5, then add 32).
3. A program is 80 lines long with no functions. Name three functions you might split it into for a greenhouse controller.
From the online lesson “Package a calculation as a function”
4. def wheel_speed_m_per_s(rpm, diameter_m): return rpm / 60 * math.pi * diameter_m. What does wheel_speed_m_per_s(150, 0.05) return, in m/s?
Answer: m/s
5. Why is return better than print inside a calculation function?
- return is faster to type
- The returned value can be used in further calculations and tests
- print does not work inside functions
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w07-define-and-return/
From the online lesson “Decompose a program into functions”
6. A 10-bit ADC reads raw = 307. to_volts(raw) returns raw * 3.3 / 1023, and to_celsius(v) returns (v - 0.5) * 100 (a TMP36-style sensor: 10 mV per °C with a 0.5 V offset). What is to_celsius(to_volts(307)), in °C?
Answer: °C
7. Which function does one job?
- read_convert_check_and_print(path)
- to_volts(raw)
- do_everything()
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w07-decompose-into-functions/
Worksheet 15: Hunting bugs like an engineer
Twelve-week computational engineering · Week 8 · Questions only. Your teacher checks your answers.
Name: Date:
1. A traceback ends with: line 4, NameError: name 'temprature' is not defined. What is the likely bug and how would you fix it?
2. average = total / 3 is used for a list of 4 readings. The program runs without errors. What kind of bug is this and what test would catch it?
3. Fill in a bug log for a bug you met today.
| Symptom | Hypothesis | Test | Result |
|---|---|---|---|
From the online lesson “Read the traceback”
4. Which part of a traceback tells you the kind of error?
- The first line, 'Traceback (most recent call last)'
- The last line
- The middle line
5. Which is a logic error?
- if x = 5:
- print(10 / 0)
- A mean computed as total / (count + 1)
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w08-read-a-traceback/
From the online lesson “Reproduce, hypothesise, test: hunting logic bugs”
6. readings = [15.0, 22.9, 29.8, 29.6, 19.2]. The buggy code sets total = 0, runs for i in range(1, len(readings)): total = total + readings[i], then calls print(total / len(readings)). What does it print (to 2 decimal places)?
Answer:
7. A program gives a wrong total. What is the best first step?
- Rewrite the whole program
- Find a small input that always shows the wrong total
- Change the < signs to <= and see
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w08-hunt-logic-bugs/
Worksheet 16: Robots on a grid
Twelve-week computational engineering · Week 8 · Questions only. Your teacher checks your answers.
Name: Date:
1. Draw a grid from −3 to 3 on both axes. Plot (2, 1), (−1, 3) and (−2, −2).
2. Write a route of four points that visits all four quadrants.
3. Explain what goes wrong if a robot swaps x and y.
From the online lesson “Grids and ordered pairs: giving every point an address”
4. A point is 4 squares across and 1 square up from the origin. How is it written?
- (1, 4)
- (4, 1)
- (4 1)
- 4 : 1
5. What is the y coordinate of the point (6, 3)?
Answer:
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w13-grids-and-ordered-pairs/
From the online lesson “Four quadrants: below zero and behind the robot”
6. In which quadrant is (−2, −5)?
- Top right
- Top left
- Bottom left
- Bottom right
7. How many squares apart, across, are x = −3 and x = 4?
Answer:
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w13-four-quadrants-and-robot-arms/
Worksheet 17: Triangles that reach
Twelve-week computational engineering · Week 9 · Questions only. Your teacher checks your answers.
Name: Date:
1. Record your string-arm results.
| Angle | Across | Up | Up ÷ length | Across ÷ length |
|---|---|---|---|---|
2. What did you notice about the ratios for the same angle with different string lengths?
3. Explain how you would find how high a 30 cm arm reaches at your steepest angle, using your table.
From the online lesson “sin, cos and tan are just ratios”
4. A robot link is tilted at angle θ above the horizontal. Relative to θ, which side is the vertical drop from the tip down to the horizontal line?
- The hypotenuse
- The opposite side
- The adjacent side
5. sin 30° = 0.5. A 12 cm link points 30° above horizontal. How high is its tip above the joint, in cm?
Answer: cm
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w29-trig-ratios/
From the online lesson “Joints and arms: placing a robot hand”
6. A robot arm has an upper arm 9 cm long and a forearm 2 cm long. What is the closest distance from the shoulder that the hand can reach, in cm?
Answer: cm
7. Our arm has links of 5 and 3 units. Which point can its hand NOT reach?
- A point 4 units from the shoulder
- A point 7 units from the shoulder
- A point 9 units from the shoulder
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w26-joints-and-arms/
Worksheet 18: A state machine in code
Twelve-week computational engineering · Week 9 · Questions only. Your teacher checks your answers.
Name: Date:
1. Draw a state diagram for a pedestrian crossing with the states WAIT, WALK and FLASHING, and label each arrow with its event.
2. A signal is GREEN for 3 ticks, AMBER for 1 and RED for 4, starting at GREEN. Which state is it in at tick 6 (counting the first tick as 1)?
3. Why must a junction never go from GREEN in one direction to GREEN in the crossing direction without a RED in between?
From the online lesson “A state machine in twelve lines”
4. state is CLOSING and the event is 'person'. Which value does `step` return?
- CLOSING
- OPENING
- CLOSED
5. An automatic door has states 0 = closed, 1 = opening, 2 = open, 3 = closing. Its events are 0 = person detected, 1 = fully open, 2 = timer ended, 3 = fully closed. Rules: closed + person → opening; opening + fully open → open; open + timer ended → closing; closing + fully closed → closed; closing + person → opening. Any other event leaves the state unchanged. The door is in state 0 and event 3 happens. What state number comes next?
Answer: state
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w23-state-machines-in-code/
From the online lesson “Set up once, loop forever”
6. Where should 'set pin 3 as an output' go?
- In setup, once
- Inside the loop, every pass
- After the loop ends
7. In the heater loop (heater on if temp < 18, otherwise off), the readings on three passes are 17.5, 18.0 and 18.4. What does the heater do on each pass?
- on, on, off
- on, off, off
- off, off, on
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w19-the-super-loop/
Worksheet 19: Closing the loop
Twelve-week computational engineering · Week 10 · Questions only. Your teacher checks your answers.
Name: Date:
1. Which of these is a closed-loop system?
- A toaster with a timer
- An oven that keeps itself at 180 °C
- A hand-cranked music box
- A sand timer
2. Draw the human thermostat as a loop. Add an arrow showing where information goes back.
3. On/off control made the coin count go up and down around the target. Suggest one change that would make it steadier.
From the online lesson “Open loop or closed loop?”
4. Which of these is closed-loop?
- A washing machine that always fills for 90 seconds
- A washing machine that fills until a level sensor says full
- A fan that runs for 10 minutes
5. A heater wants the room at 21 °C. The thermometer reads 17.5 °C. What is the gap (target − measured), in °C?
Answer: °C
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w25-open-and-closed-loop/
From the online lesson “On/off control: the bang-bang thermostat”
6. Why does a bang-bang thermostat never hold the temperature exactly on target?
- The thermometer is broken
- The heater can only be fully on or fully off, so it overshoots and undershoots
- The target is set wrong
7. A thermostat targets 22 °C with a 3 °C gap split evenly. Below what temperature does the heater switch on, in °C?
Answer: °C
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w25-on-off-control/
Worksheet 20: Models are functions: a controller you can test
Twelve-week computational engineering · Week 10 · Questions only. Your teacher checks your answers.
Name: Date:
1. A room starts at 10 °C with a target of 20 °C. Each tick, temperature goes up by gain × (target − temperature). With gain 0.5, fill in three ticks.
| Tick | Error | Change | Temperature |
|---|---|---|---|
2. Describe what you would expect with a gain of 1.5 in the same model.
3. Name two things a real heated room has that this model leaves out.
From the online lesson “Models are functions: input in, output out”
4. A spring's extension is e(F) = 2.5·F mm, with F in newtons. What is the extension for a 12 N load, in mm?
Answer: mm
5. Tests show a spring's extension follows f(x) = 5·x, where x is load in N and f(x) is in mm. What input x gives an output of exactly 90 mm?
Answer: N
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w33-models-as-functions/
From the online lesson “Proportional control: push harder when further away”
6. A proportional heater controller uses effort = gain × error, where error = setpoint − temperature. The gain is 40% per °C and the effort is limited to the range 0 to 100%. The setpoint is 18 °C and the temperature is 16 °C. What heater effort does it command, in %?
Answer: %
7. A proportional heater controller uses effort = gain × error, where error = setpoint − temperature. The gain is 10% per °C and the effort is limited to the range 0 to 100%. The setpoint is 22 °C and the temperature is 17.5 °C. What heater effort does it command, in %?
Answer: %
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w26-proportional-control/
Worksheet 21: Did it pass? Averages and spread
Twelve-week computational engineering · Week 11 · Questions only. Your teacher checks your answers.
Name: Date:
1. Record ten slides.
| Trial | Distance (cm) |
|---|---|
2. Work out the average and the range of your results. Show your working.
3. Did your ramp meet the requirement? Use your numbers to explain.
From the online lesson “Repeat, average, spread”
4. A drip outlet is tested 5 times. It delivers 30, 38, 38, 26, 32 mL. What is the mean (average) amount delivered, to one decimal place?
Answer: mL
5. Your prototype is tested 5 times, measuring centimetres the cart rolled: 30, 28, 61, 66, 20. What is the range of the results?
Answer: cm
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w32-repeat-and-average/
From the online lesson “How often does it fail?”
6. A simulated door draught stopper is run 10 times and fails 2 times. What is its failure rate, as a percentage?
Answer: %
7. Before your improvement, the design failed 5 of 10 trials. After it, the same test failed 0 of 10. By how many percentage points did the failure rate drop?
Answer: percentage points
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w33-how-often/
Worksheet 22: Evidence from many runs: the Noisy Factory
Twelve-week computational engineering · Week 11 · Questions only. Your teacher checks your answers.
Name: Date:
1. Record five runs for each design and compute the average and range.
| Design | Runs | Average | Range |
|---|---|---|---|
2. Design A averaged 91 with a range of 20. Design B averaged 89 with a range of 4. Which would you choose for a factory, and why?
3. Write one honest limitation of your evidence.
From the online lesson “A test plan that could prove you wrong”
4. A test matrix covers 4 objects, 2 pad materials and 2 lift accelerations. How many test cases are there?
Answer:
5. A simulation test plan runs every combination of 2 loads and 4 speeds. 1 of the runs fail a requirement. What percentage of runs pass?
Answer: %
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w33-test-plans/
From the online lesson “How fragile is your decision?”
6. Concept A scores 31 + 2w and concept B scores 26 + 5w, where w is the weight of one criterion. At what value of w are they equal?
Answer:
7. Sweeping 'cost' from 0 to 5 never changes the winner. What does that mean?
- Cost doesn't matter
- The decision is robust to how much you value cost
- The matrix is broken
- Cost should be removed
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w32-sensitivity/
Worksheet 23: Project: build the smart junction
Twelve-week computational engineering · Week 12 · Questions only. Your teacher checks your answers.
Name: Date:
1. Write your test plan.
| Test | How | Pass if | Result |
|---|---|---|---|
2. Write the one rule your junction must never break, and how you tested it.
From the online lesson “Requirements two strangers would agree on”
3. Which statement is testable?
- The arm must be precise
- The arm must place its tip within 2 mm of the target in 9 out of 10 trials
- The arm should be good quality
- The arm must use a stepper motor
4. 'The greenhouse must use a fan.' What kind of statement is this?
- A testable requirement
- A preference
- A solution in disguise
- A constraint on cost
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w31-testable-requirements/
From the online lesson “A test plan that could prove you wrong”
5. A test matrix covers 4 objects, 2 pad materials and 2 lift accelerations. How many test cases are there?
Answer:
6. A simulation test plan runs every combination of 2 loads and 4 speeds. 1 of the runs fail a requirement. What percentage of runs pass?
Answer: %
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w33-test-plans/
Worksheet 24: Project: test, document and present
Twelve-week computational engineering · Week 12 · Questions only. Your teacher checks your answers.
Name: Date:
1. Write the first three lines of your README: what the design does, who it is for, and how to try it.
2. Which skill from this course did your project use most? Give one example from your project.
3. What is one thing your evidence cannot show? How could you find out?
From the online lesson “A README a stranger can follow”
4. Which instruction is best?
- Set it up properly
- Set the red threshold to 60 (slider under 'Colour')
- Use the usual settings
- Configure as needed
5. Why include a 'limits' section in a README?
- To look modest
- So readers don't trust the project for something it was never tested or modelled for
- Because it's required by law
- To make it longer
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w35-readme/
From the online lesson “Project: test it, show the evidence”
6. Which plan tests whether the outside temperature affects energy use fairly?
- Change outside temperature only; keep the controller settings and noise the same
- Change outside temperature and the band together to save time
- Run once at −5 °C and guess
7. A PWM output switches between 0 V and 3.3 V with a duty cycle of 85%. What is the average voltage, in volts?
Answer: V
Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w27-test-and-evidence/
A licence for redistribution has not yet been decided by the founders. Until it is, please share the link to this page rather than re-hosting or republishing copies. Tactiverge is not an accredited school, and completing a pack is not a qualification. Tactiverge has no institutional partners. Using a pack does not make your organisation a partner.