Skip to content
Tactiverge

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.

DOORWINDOWARMEDANDORsiren + lightgate 1gate 2
Gate 1 joins door and window
Gate 2 joins armed and gate 1

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.