Wire a door alarm from two gates
Two gates, three switches, one siren. Can you make it ring only when it should?
The rule: ring when the system is armed and the door or the window is open.
Flip the switches
Siren: ringing, light flashing
What’s going on? (try it first!)
OR then AND: the siren needs the system armed AND (the door OR the window) open. XOR looks right until a burglar opens both. The truth table is how engineers prove a design, row by row, instead of hoping.
Honest about the model
Ideal gates: instant, no glitches, no noisy switches. Real alarms debounce their sensors and log every trigger. Nothing you do here is saved.
Where next?
Build it for real
Learn the idea
Play with it more
Take it on a Campaign
More discoveries
Next: discovery 3 →- Discovery 1 · 2 minSpin it faster. Why does it calm down?Turn one dial on a washing machine. Where does it shake hardest?Resonance: one variable, a very different machine.
- Discovery 3 · 3 minTwo joints, one hand. Reach the cupTurn a robot's shoulder and elbow. Can you touch every cup?Kinematics: angles in, hand position out.
- Discovery 4 · 3 minTrust one reading, or ten?A greenhouse fan follows a noisy thermometer. How do you stop it flapping?Measurement: noise makes decisions unreliable; averaging trades noise for delay.
- Discovery 5 · 4 minWhich rover would you send?Two rover designs, one battery, one deadline. Which one wins?Trade-offs: the best design depends on the requirement.