Lite / Building Machines That Respond / Week 31
Requirements two strangers would agree on
The client says the gripper must be 'strong and easy to use'. You build it, they say it fails. Who was wrong?
Why should I care?
Most failed projects don't fail because the maths was wrong; they fail because nobody agreed what 'working' meant. A testable requirement turns an argument about opinions into a measurement anyone can repeat.
- Write requirements that state what, how much (with a unit) and under what conditions.
- Separate requirements from preferences and from solutions in disguise.
- Rewrite a vague statement into one with a clear pass or fail test.
Predict
Which of these is a testable requirement for a recycling-line gripper?
- The gripper should be really strong
- The gripper must use rubber pads
- The gripper must lift a 250 g bottle without slipping while accelerating up at 2 m/s²
- A blue gripper would look nice
Guess first, then reveal
Only the third names a quantity, a unit and a condition, so two people testing it would agree. 'Strong' is vague, 'rubber pads' picks a solution before stating the need, and 'blue' is a preference.
Discover
Sort every statement in the recycling-gripper brief as testable, vague, preference or solution in disguise, then check. For each vague one, write a testable rewrite on paper before moving on.
What the interactive shows (text version)
The requirements checker lists statements from a client brief. For each one you choose testable requirement, vague, preference or solution in disguise, then press check: each answer is marked with an explanation, for example 'The gripper should be really strong' is vague because it gives no load or test.
Watch (optional)
Watch for: Notice where criteria and constraints appear in the loop: before any idea is chosen.
A short overview of the design loop, from defining the problem and its criteria to testing and improving.
“Engineering Design Process” by IEEE TryEngineering (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
Three parts of a testable requirement
A good requirement says what the system must do, how much (a number with a unit) and under what conditions (load, speed, temperature, number of trials). 'The gripper must close within 0.5 s of the command, in each of 10 trials' has all three. Use must for non-negotiables and should for strong wishes.
Preferences and disguised solutions
A preference ('blue would be nice') is worth recording but nobody fails if it is missed. A solution in disguise ('must use rubber pads') jumps to a design before stating the need. Ask 'why?': the answer ('must not slip on a wet bottle') is the real requirement, and rubber becomes one option among several.
Fixing a vague requirement
Words like strong, fast, easy, safe and reliable need numbers. Ask: strong enough for what load? Fast compared with what time? Easy for whom, doing what, in how long? 'Easy to use' might become 'a new operator sets it up in under 5 minutes using only the README'.
Explain it another way
Intuitive
A good requirement is like the rules of a race: everyone knows where the finish line is before they start running.
Technical
Requirements should be necessary, unambiguous, verifiable, feasible and traceable. Each states a measurable criterion and its acceptance condition, independent of the design that meets it.
Applied
Space agencies and car makers keep thousands of numbered requirements, each with a planned test. Changing one means re-checking everything that depends on it.
Worked example 1
Rewrite: 'The robot must be fast.'
'The robot must cross the 2 m test track in under 8 s, averaged over 5 runs, on the standard floor.' Now there is a number, a unit and a condition.
Worked example 2
Rewrite: 'The sorter must use a colour camera.'
Ask why: to tell red parts from blue. Requirement: 'The sorter must place at least 95% of 200 mixed red and blue parts in the correct bin.' A camera, a colour sensor or something cleverer could meet it.
Common mix-ups
Requirements should describe the design so the builder knows what to make.
✓ Requirements describe what the design must achieve. Naming the design too early throws away better ideas.Adding 'very' or 'highly' makes a requirement clearer.
✓ Only a number, a unit and a condition make it clearer.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Write five requirements for your capstone machine: at least three testable musts, one should and one could. For each must, write the test you will run in simulation to check it.
Reflect
Pick one requirement you wrote. Could someone meet it in a way you'd hate? If so, what is missing?
Write your answer on paper or in your own notes. Lite never stores what you write.