MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you build a three-person voting circuit with logic gates?
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How do you build a three-person voting circuit with logic gates?

A three-input voter passes when at least two of three votes agree; it is the classic majority-decision combinational problem. This page builds it from plain AND OR gates: truth table, expression, simplification and gate pick, ending with a wireable circuit.

1. How it works

The requirement is simple: inputs A, B, C are votes of 1 for yes; output Y is 1 when at least two are yes. Of the eight input rows, Y equals 1 for 011, 101, 110 and 111. Those four rows are the minterms we must cover. Small as it is, the voter is the key to understanding multi-input majority judgement.

2. Numbers and practice

Sum the four minterms: Y equals not A and B and C, or A and not B and C, or A and B and not C, or A and B and C. Pair and absorb complementary variables to reach the minimal Y equals A and B, or A and C, or B and C. So any two yes votes pass; three two-input ANDs feeding an OR gives the fewest gates and the clearest reading.

3. Pitfalls and fixes

Implement with three 2-input ANDs (74LS08) for A and B, A and C, B and C, then one 3-input OR (74LS4075) or two 2-input ORs (74LS32) to OR the three products. All positive logic, no inverter needed. A NAND-only version takes Y double-negated into a NAND-NAND form, saving a chip but harder to read.

4. Three-person voter minterm and implementation table

Input ABCOutput YNote
0000All no
0010One only
0100One only
0111Two pass
1000One only
1011Two pass
1101Two pass
1111Three pass

5. Notes

The voter is a template for majority decisions, extendable to five or seven inputs. Before soldering, toggle switches through all eight inputs and check Y each time, not just 111 and 000.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Combinational logic per GB/T 4728 and IEC 60748. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Testing only 111 and 000:Misses 011 etc, hides a wiring or simplification error
② One AND term left unconnected:e.g. missing B and C, a B-C yes pair wrongly fails
③ NAND form without double negation:Logic level wrong, result inverted

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL