Projects / 4-bit binary adder with display

4-bit binary adder with display

Intermediate4 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. Build one full adder

    Test all eight input combinations.

  2. Chain four stages

    Join the carries.

  3. Add the switches

    Eight inputs with pull-downs.

  4. Show the sum on LEDs

    Check some sums.

  5. 74HC0812:45

    Add the decoder

    CD4511 and the display.

  6. Test the carry

    Try 15 plus 1.

  7. 12:45

    Plan the BCD correction

    For sums above 9.

In short

How do you build a 4-bit binary adder with display?

Chain four full adders to add two 4-bit numbers, and show the result in decimal on a 7-segment display. You need 74HC86 quad XOR gate × 2, 74HC08 quad AND gate × 2, 74HC32 quad OR gate, DIP switch 8-position, Resistor 10 kΩ × 8, CD4511 BCD to 7-segment decoder, 7-segment display 1 digit (common cathode), Resistor 330 Ω × 7, Breadboard 1660 points (with base) and Jumper wires male to male (40 pcs, 20 cm). It takes 7 steps and about 240 minutes.

Level
Intermediate
Time
About 240 min
Parts
10

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Switches A3..A0 and B3..B074HC86 and 74HC08 inputs, with 10 kΩ pull-downsInputs
Each full adderTwo XORs for sum, two ANDs and an OR for carrySum and carry
Carry out of each stageCarry in of the nextRipple carry
Sum outputsCD4511 A to D inputsBCD input
CD4511 outputs a to g330 Ω each to display segmentsDecimal display
Supply 5 VAll chip VCC pinsPower

No code needed

A full adder takes bits A and B and a carry in, and gives a sum and a carry out: the sum is A XOR B XOR carry in, and the carry is A AND B, OR carry in AND (A XOR B). Four in a row add two numbers from 0 to 15, with the carry passing from one stage to the next like a ripple, which is why this is called a ripple-carry adder. The display driver reads the four sum bits as one hex digit, so it shows correctly up to 9 only; a result above 9 shows a blank or odd symbol on the CD4511, which is the next thing to fix with a BCD correction. Use a 5 V supply from a USB adapter, check every chip's power pins before powering, and keep an eye out for floating inputs, which make a logic circuit behave randomly.

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
3 plus 4Display 7
9 plus 0Display 9
15 plus 1Sum bits 0000 with carry out
Above 9Not decimal yet, as expected

If it does not work

Random answers

Check for floating inputs.

Wrong sums

Check the carry wiring between stages.

Display dim

Check the segment resistors.

Chips hot

Check supply polarity and shorts.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the 4-bit binary adder with display?

74HC86 quad XOR gate × 2, 74HC08 quad AND gate × 2, 74HC32 quad OR gate, DIP switch 8-position, Resistor 10 kΩ × 8, CD4511 BCD to 7-segment decoder, 7-segment display 1 digit (common cathode), Resistor 330 Ω × 7, Breadboard 1660 points (with base) and Jumper wires male to male (40 pcs, 20 cm).

How long does the 4-bit binary adder with display take to build?

About 240 minutes for a intermediate maker, in 7 steps.

How do I know the 4-bit binary adder with display works?

3 plus 4: Display 7. 9 plus 0: Display 9. 15 plus 1: Sum bits 0000 with carry out.

Random answers: what should I check?

Check for floating inputs.

Wrong sums: what should I check?

Check the carry wiring between stages.

Display dim: what should I check?

Check the segment resistors.

Chips hot: what should I check?

Check supply polarity and shorts.