Skip to content
the grown-up commonsPlay togetherTogetherBack to room

← Things That Run · Lesson 3 of 6

A logic gate

Read or listen

About it

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.

The figure

AND and OR

ANDABoutoffoffoffoffonoffonoffoffonononORABoutoffoffoffoffonononoffonononon
Two small tables. AND: the output is on only when both inputs are on, one row in four. OR: the output is on when either input is on, three rows in four.

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

A lesson is kept once you've answered the question and written at least 8 words. Nobody grades it; it stays on this device.