Projects / Half and full adder

Half and full adder

Beginner1.5 hGuided buildReviewed

Build it step by step

0 of 6 done
  1. 74HC08

    Power the three chips

    Place the chips on the breadboard, +5 V to pin 14 and GND to pin 7 of each.

  2. 74HC08

    Make the inputs

    Three DIP switch sections to A, B and Cin, each with a 10 kΩ pull-down to GND.

  3. 74HC8674HC0874HC32

    Build the half adder

    A and B into XOR gate 1 for the sum, and into AND gate 1 for the carry.

  4. 74HC08

    Test the half adder

    Check the four combinations of A and B against the truth table before adding more.

  5. 74HC8674HC0874HC32

    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.

  6. 74HC8674HC0874HC32

    Combine carries

    OR gate 1 combines the two carries into COUT. Test all eight input combinations.

In short

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

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

Wiring

FromToWhy
DIP switch 1, 2, 3Each one side to +5 V, other side to an input node with 10 kΩ to GNDInputs A, B and Cin
74HC86 gate 1 (pins 1, 2 → 3)A and B in, S1 outFirst half adder sum
74HC08 gate 1 (pins 1, 2 → 3)A and B in, C1 outFirst half adder carry
74HC86 gate 2 (pins 4, 5 → 6)S1 and Cin in, SUM outFinal sum
74HC08 gate 2 (pins 4, 5 → 6)S1 and Cin in, C2 outSecond carry
74HC32 gate 1 (pins 1, 2 → 3)C1 and C2 in, COUT outFinal carry
SUM and COUT outputs330 Ω each, then a red LED to GNDSum and carry LEDs
All unused gate inputsGNDNever 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.

CheckExpected
0 + 0 + 0Both LEDs off
1 + 1 + 0SUM off, COUT on (binary 10)
1 + 1 + 1SUM on, COUT on (binary 11)
All eight combinationsMatch 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 →

Ask Lark AI

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.