LearnTronics
Statements Become Switches
Now connect the words to hardware
This is the bridge that is easy to skip:
Series switches behave like AND
The lamp has one path. Switch A must be closed AND switch B must be closed before current can reach the lamp.
| A | B | Lamp = A AND B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Try the AND circuit
Lamp OFFParallel switches behave like OR
The lamp has two possible paths. Closing A OR closing B can complete a path. If both close, the lamp is still on.
| A | B | Lamp = A OR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Try the OR circuit
Lamp OFFNegation — NOT reverses the condition
Negation simply means reversing a logical statement. If A means “the switch is actuated,” then NOT A means “the switch is not actuated.”
A normally closed contact gives us a very visible physical example. In its resting state it conducts. Actuating it opens the path.
| A | Lamp = NOT A |
|---|---|
| 0 | 1 |
| 1 | 0 |
Try the NOT circuit
Lamp ONExclusive OR — XOR
Now we can build the other kind of “or.” XOR means A or B, but not both.
A simple relay/contact version uses two parallel paths. One path says A AND NOT B. The other says NOT A AND B. Either path can light the lamp, but both conditions being the same leaves the lamp off.
What does “ganged” mean?
One input has to operate two contacts at the same time: one normally open (NO) and one normally closed (NC). Those contacts are ganged — mechanically linked so they change state together.
A dashed line on a schematic is commonly used to show that mechanical linkage. It is not an electrical wire.
So when A changes from 0 to 1, its A-NO contact closes while its A-NC contact opens. The two B contacts behave the same way when B changes.
| A | B | Lamp = A XOR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
This is also a good example of why negation matters. XOR can be built from AND, OR, and NOT relationships:
Read in words: A AND NOT B, OR NOT A AND B.
Try the XOR relationship
Lamp OFFThe mapping is a choice
A physical switch is simply open or closed. The designer decides which physical state represents logical True or False. For these beginning examples we are using closed = 1/True for normally open contacts because it makes the bridge easy to see.
The important historical bridge
Claude Shannon showed in his MIT master's work that Boolean algebra could be applied systematically to relay switching circuits. That connection between symbolic logic and physical switches became foundational to modern digital circuit design.
Try these yourself
A little deeper
Relay control and ladder logic still make this bridge especially visible. Series contacts express AND conditions, parallel branches express OR conditions, and normally closed contacts can express negated conditions. Combining those simple relationships lets us build XOR and many other functions. The same logic can then be implemented electronically instead of mechanically.