Explain the working of an OR gate with the help of two switches.
Digital Electronics - Logic Gates · Question 33 of 56
Explain the working of an OR gate with the help of two switches.
Solution:
Concept: In a switch circuit an open switch stands for logic 0 and a closed switch for logic 1; a glowing bulb stands for output 1.
Step 1 — Describe the circuit. Two switches and are connected in parallel, and this pair is joined in series with a battery and a bulb, as in the figure.

Step 2 — Explain the working. Current reaches the bulb through either branch. So the bulb glows when is closed, or is closed, or both are closed. It does not glow only when both switches are open.
Step 3 — Match it with the OR gate. Writing closed = 1, open = 0, glow = 1 and no glow = 0 gives exactly the OR truth table:
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Therefore, two switches in parallel act as an OR gate: the bulb glows () when either or or both are closed, and not when both are open.
