Projects / Ideas / Three-switch majority voter

Three-switch majority voter

BeginnerDigital LogicIdeaReviewed
In short

How do you build a three-switch majority voter?

A light turns on when at least two of three switches are on, built from AND and OR gates, with a truth table you check by hand. You need 74HC08 quad AND gate, 74HC32 quad OR gate, Slide switch SPDT (SS12D00) × 3, LED 5 mm red, Resistor 1 kΩ, 5 V 2 A USB adapter and Breadboard 830 Tie Points.

Level
Beginner
Time
About 120 min
Parts
7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Build a majority function from gates.

Parts list

How to build it

  1. Write the truth table
  2. Wire three AND gates for the pairs
  3. Combine them with OR gates
  4. Check all eight switch combinations
  5. Compare with the formula

Related projects

Common questions

What parts do I need for the three-switch majority voter?

74HC08 quad AND gate, 74HC32 quad OR gate, Slide switch SPDT (SS12D00) × 3, LED 5 mm red, Resistor 1 kΩ, 5 V 2 A USB adapter and Breadboard 830 Tie Points.

How long does the three-switch majority voter take to build?

About 120 minutes for a beginner maker.