Idea
In short
How do you build a half adder from two gates?
An XOR gate and an AND gate wired to the same two switches add two single bits, with one LED for the sum and one for the carry. It is the first step to building an adder, and a table of all four cases shows the pattern clearly. You need 74HC86 quad XOR gate, 74HC08 quad AND gate, Tactile push button 6 mm × 2, LED 5 mm red × 2, Resistor 220 Ω × 2, Resistor 10 kΩ × 2, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
- Level
- Beginner
- Time
- About 60 min
- Parts
- 8
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
Add two bits with two logic gates.
Parts list
- Integrated Circuits
- Integrated Circuits
- Switches
- SemiconductorsLED 5 mm red × 2
- PassivesResistor 220 Ω × 2
- PassivesResistor 10 kΩ × 2
- Prototyping
- Prototyping
How to build it
- Wire the two input switches with pull-down resistors
- Feed both gates from the switches
- Show the sum on one LED
- Show the carry on the other
- Fill in the truth table for all four cases
Related projects
Common questions
What parts do I need for the half adder from two gates?
74HC86 quad XOR gate, 74HC08 quad AND gate, Tactile push button 6 mm × 2, LED 5 mm red × 2, Resistor 220 Ω × 2, Resistor 10 kΩ × 2, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the half adder from two gates take to build?
About 60 minutes for a beginner maker.
