Lite / Discovering How the World Works / Week 22
Week 22: Conditional behaviour
This week you will
- Read and write IF–THEN–ELSE rules that depend on a sensor.
- Choose a sensible threshold and test readings at its edge.
- Combine conditions with AND, OR and NOT.
Lessons
- IF this, THEN that, ELSE the other · about 25 min
One sentence beginning with 'if' stops a robot vacuum falling down the stairs. What is that sentence? - Choosing a good threshold · about 25 min
A sorting machine calls a part 'large' if it's over 65 mm. A part measures 64.9 mm. Is it large? - AND, OR, NOT: combining conditions · about 30 min
A lift should move only if the doors are closed AND someone pressed a button. What happens if an engineer types OR by mistake?