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 · Checked by automated tests; not yet reviewed by an educator
1.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.
- ◇ Explain what a requirement is and how it differs from a wish.
- ◇ Rewrite vague requirements so a test can say pass or fail.
- ◇ Trace each requirement back to the problem statement.
2.Predict
Which requirement could a test say pass or fail to?
Guess first. Being wrong here is how the surprise works.
3.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.
Can't use the interactive? Read a description instead
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.
4.Watch
→ 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.
5 min 17 s · captions on YouTube · source
Nothing loads from YouTube until you press play.
5.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
A requirement is like a rule in a sport. 'Play nicely' starts arguments; 'the ball must land inside the white line' doesn't.
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.
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.
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
- Requirements say how the machine works.
✓ They say what it must achieve. How is your design's job. - Any requirement with a number in it is testable.
✓ It also needs a clear condition: 40 g when, how often, measured how?
6.Practice
Practice, not a test. Wrong answers get a hint and another try.
Practice 1
Which is a requirement, not a design choice?
Practice 2
A requirement says 30 g of food, ± 4 g. What is the largest amount that still passes?
Practice 3
Two classmates test 'the alarm is loud enough'. One says pass, one says fail. What should you do?
Practice 4 · a fresh version every time
A requirement says the tank must hold at least 2 L. Your design holds 2.8 L. What is the margin (how much spare, in litres)? A negative answer means it misses the requirement.
Practice 5
Where should the requirement 'holds at least 2 litres' come from?
7.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.
8.Reflect
Concepts: Constraints, budgets and trade-offs