BeginnerTimers & Logic

Four-Input XOR Parity Panel

Build a four-switch trainer that lights when an odd number of inputs are high, demonstrating XOR parity.

Estimated time: 30–45 minutes · Skills: XOR gates, pull-downs, truth tables

Parts from the database

Other supplies

Amazon links may be affiliate links. As an Amazon Associate, Electronics Hobby Hub earns from qualifying purchases.

Connections

  1. DIP-14 pin 14 +5 V and pin 7 ground; add bypass capacitor. Each switch connects an input to +5 V, with 10 kΩ from input to ground.
  2. Cascade XOR gate 1 pins 1/2→3, gate 2 pins 4/5→6; feed pins 3 and 6 into gate 3 pins 9/10, output pin 8.
  3. Connect output pin 8 through 1 kΩ and an LED to ground. Tie unused input pins 12/13 low; leave output pin 11 open.

Build steps

  1. With all switches low, verify output low.
  2. Flip switches one by one; output is high for one or three high inputs.
  3. Test all 16 combinations and record the parity table.
  4. Two or four highs produce an even-parity low.

Software and firmware setup

This is a hardware-only circuit; no firmware is required.

Test your build

The LED indicates odd parity: on for an odd count of high switches, off for an even count.

Troubleshooting

  • Output changes while idle: repair pull-downs and unused input ties.
  • Wrong table: trace the cascade and gate pins.
  • Erratic behavior: shorten wires and bypass the IC.

Safety and limitations

Use 5 V and a series LED resistor; stay within HC gate input/output limits.

Manufacturer and platform documentation

Community Notes for This Project

These are unverified visitor contributions, separate from the build guide and manufacturer specifications. Verify technical advice against the linked datasheets before relying on it.

Set up the comments service to load community notes.

Share a tip or question about this build

← Browse all projects