TactivergeLite

Lite / Discovering How the World Works / Week 29

Requirements you can test

A robot gripper must lift an egg and a bolt. How do you write that down so that a computer can check whether your design passes?

About 25 min · 3 goals · Reviewed by the founders' mentors · Full interactive version

Why should I care?

Requirements turn your problem into a checklist your design must pass. At the showcase, every claim you make ('it works') should point to a requirement and a test. Testable requirements also tell you when to stop improving.

Predict

Which requirement could a test say pass or fail to?

  1. The feeder should be good for the cat
  2. The feeder drops 40 g of food (± 5 g) at 6 pm every day
  3. The feeder should be modern
Guess first, then reveal

Only the second has a quantity, a tolerance and a time. You can weigh the food at 6 pm and say pass or fail. 'Good' and 'modern' mean different things to different people.

Discover

Before changing anything, read what the level checks for each object: reached, held while lifting, never crushed, motors under their limit. Each check is a testable requirement. Try one design and see which checks fail.

What the interactive shows (text version)

The gripper level lists the checks a design must pass. For each of four objects (a raw egg, a steel bolt, a tomato and a paper cup) the fingers must reach it, hold it while lifting and never crush it, with the motors under their torque limit. Each check is a testable requirement with a clear pass or fail.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Listen for 'criteria': the things a solution must do to count as a success. Those are requirements.

Walks through the steps engineers repeat (define, plan, build, test, improve), the same loop you use in the term design challenge.

“The Engineering Process: Crash Course Kids #12.2” by Crash Course Kids (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

A requirement is something you can check

A requirement says what the design must do, clearly enough for a test to give a yes or no. A good one has a quantity (40 g), often a tolerance (± 5 g) and a condition (at 6 pm, every day). If two people could test it and disagree, it isn't finished.

From problem to requirements

Each requirement should trace back to the problem. 'Soil stays moist for 4 days' comes straight from the problem statement. 'Holds at least 2 litres' comes from working out how much six pots need in 4 days. If a requirement doesn't trace back to anything, ask why it's there.

What, not how

Requirements say what the machine must achieve, not how. 'Uses a pump' is a design choice; 'delivers 50 mL to each pot per day' is a requirement. Keeping the 'how' out leaves room for better ideas, perhaps one with no pump at all.

Explain it another way

Intuitive

A requirement is like a rule in a sport. 'Play nicely' starts arguments; 'the ball must land inside the white line' doesn't.

Technical

Good requirements are testable, unambiguous, necessary and free of solutions. Each gets a verification method: an inspection, a measurement, a calculation or a simulation run.

Mathematical

A tolerance turns a target into a band. 50 mL ± 10 mL means any result from 40 to 60 mL passes. The band is 2 × 10 = 20 mL wide.

Applied

The gripper Build's server checks every object against several requirements and reports each one separately. That's how real requirements work: each is a test the design passes or fails.

Worked example 1

Rewrite 'the lunchbox should stay cool' as a testable requirement.

'The inside of the lunchbox stays below 8 °C from 8 am to 12:30 pm in a 25 °C classroom.' It has a quantity (8 °C), a condition (a 25 °C room) and a duration (4.5 hours).

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which is a requirement, not a design choice?

g

Practice 3. Two classmates test 'the alarm is loud enough'. One says pass, one says fail. What should you do?

L

Practice 5. Where should the requirement 'holds at least 2 litres' come from?

Apply it

Write four to six requirements for your capstone machine. For each, write the test you'd use and where it comes from in your problem statement. Put them in the 'What it must do' section of your Design Studio project.

Reflect

Pick your vaguest requirement. What number or condition did you add to make it testable?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Choosing a problem worth solvingMust, should, could →