← Things That Run · Lesson 3 of 6
A logic gate
Read or listen
A logic gate is a tiny decision made with electricity. An AND gate turns its output on only if both its inputs are on. An OR gate turns its output on if either input is on.
You use them every day. A doorbell with buttons at the front and back door works like OR: either button rings it. A machine that needs both hands on two buttons before it starts, so a hand cannot be in the way, works like AND.
Where this comes from George Boole set out an algebra of true and false in The Laws of Thought (1854); Claude Shannon showed in 1938 that switch circuits can do it.
AND and OR
One question
A light should come on if either of two switches is on. Which gate is that?
The hints are lighter by now: one nudge, then “Show me”.
Say it back