Build it step by step
0 of 6 donePower the three chips
Place the chips on the breadboard, +5 V to pin 14 and GND to pin 7 of each.
Make the inputs
Three DIP switch sections to A, B and Cin, each with a 10 kΩ pull-down to GND.
Build the half adder
A and B into XOR gate 1 for the sum, and into AND gate 1 for the carry.
Test the half adder
Check the four combinations of A and B against the truth table before adding more.
Add the second half adder
Feed S1 and Cin into XOR gate 2 for the final sum and into AND gate 2 for a second carry.
Combine carries
OR gate 1 combines the two carries into COUT. Test all eight input combinations.
How do you build a half and full adder?
XOR and AND gates add two bits, then a full adder adds three, with LEDs for sum and carry. You need 74HC86 quad XOR gate, 74HC08 quad AND gate, 74HC32 quad OR gate, DIP switch 8-position, Resistor 10 kΩ × 3, LED 5 mm red × 2, Resistor 330 Ω × 2, Breadboard 830 Tie Points, Jumper wires male to male (40 pcs, 20 cm), Breadboard power supply module (MB102) and 12 V 2 A DC adapter. It takes 6 steps and about 90 minutes.
- Level
- Beginner
- Time
- About 90 min
- Parts
- 11
Parts list
- Integrated CircuitsBuy
- Integrated CircuitsBuy
- Integrated CircuitsBuy
- SwitchesBuy
- PassivesBuyResistor 10 kΩ × 3
- SemiconductorsBuyLED 5 mm red × 2
- PassivesBuyResistor 330 Ω × 2
- PrototypingBuy
- PrototypingBuy
- PowerBuy
- PowerBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| DIP switch 1, 2, 3 | Each one side to +5 V, other side to an input node with 10 kΩ to GND | Inputs A, B and Cin |
| 74HC86 gate 1 (pins 1, 2 → 3) | A and B in, S1 out | First half adder sum |
| 74HC08 gate 1 (pins 1, 2 → 3) | A and B in, C1 out | First half adder carry |
| 74HC86 gate 2 (pins 4, 5 → 6) | S1 and Cin in, SUM out | Final sum |
| 74HC08 gate 2 (pins 4, 5 → 6) | S1 and Cin in, C2 out | Second carry |
| 74HC32 gate 1 (pins 1, 2 → 3) | C1 and C2 in, COUT out | Final carry |
| SUM and COUT outputs | 330 Ω each, then a red LED to GND | Sum and carry LEDs |
| All unused gate inputs | GND | Never float |
No code needed
No code. Power: a breadboard power supply module (MB102) from the 12 V adapter, with its jumper set to 5 V. 74HC86, 74HC08 and 74HC32 are all 14-pin chips with the same pinout: VCC on pin 14 and GND on pin 7, gate 1 on pins 1, 2 and 3 and gate 2 on pins 4, 5 and 6.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| 0 + 0 + 0 | Both LEDs off |
| 1 + 1 + 0 | SUM off, COUT on (binary 10) |
| 1 + 1 + 1 | SUM on, COUT on (binary 11) |
| All eight combinations | Match a written full-adder truth table |
If it does not work
LEDs show wrong values
Check each gate's input and output pin numbers carefully. It is easy to shift by one.
LEDs flicker
An unused input is floating. Tie it to GND.
One input has no effect
The DIP switch contact is bad or its pull-down is missing.
Chips get warm
A pin 14 and pin 7 are swapped or an output is shorted to another.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the half and full adder?
74HC86 quad XOR gate, 74HC08 quad AND gate, 74HC32 quad OR gate, DIP switch 8-position, Resistor 10 kΩ × 3, LED 5 mm red × 2, Resistor 330 Ω × 2, Breadboard 830 Tie Points, Jumper wires male to male (40 pcs, 20 cm), Breadboard power supply module (MB102) and 12 V 2 A DC adapter.
How long does the half and full adder take to build?
About 90 minutes for a beginner maker, in 6 steps.
How do I know the half and full adder works?
0 + 0 + 0: Both LEDs off. 1 + 1 + 0: SUM off, COUT on (binary 10). 1 + 1 + 1: SUM on, COUT on (binary 11).
LEDs show wrong values: what should I check?
Check each gate's input and output pin numbers carefully. It is easy to shift by one.
LEDs flicker: what should I check?
An unused input is floating. Tie it to GND.
One input has no effect: what should I check?
The DIP switch contact is bad or its pull-down is missing.
Chips get warm: what should I check?
A pin 14 and pin 7 are swapped or an output is shorted to another.
