4-bit binary adder with display
Build it step by step
0 of 7 doneBuild one full adder
Test all eight input combinations.
Chain four stages
Join the carries.
Add the switches
Eight inputs with pull-downs.
Show the sum on LEDs
Check some sums.
Add the decoder
CD4511 and the display.
Test the carry
Try 15 plus 1.
Plan the BCD correction
For sums above 9.
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
Wiring
| From | To | Why |
|---|---|---|
| Switches A3..A0 and B3..B0 | 74HC86 and 74HC08 inputs, with 10 kΩ pull-downs | Inputs |
| Each full adder | Two XORs for sum, two ANDs and an OR for carry | Sum and carry |
| Carry out of each stage | Carry in of the next | Ripple carry |
| Sum outputs | CD4511 A to D inputs | BCD input |
| CD4511 outputs a to g | 330 Ω each to display segments | Decimal display |
| Supply 5 V | All chip VCC pins | Power |
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.
| Check | Expected |
|---|---|
| 3 plus 4 | Display 7 |
| 9 plus 0 | Display 9 |
| 15 plus 1 | Sum bits 0000 with carry out |
| Above 9 | Not 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 →
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.
