Hi everyone! π
Recently, Iβve built a 4-bit binary adder using full adders implemented with basic logic gates.
This project demonstrates how binary addition works at the hardware level using XOR, AND, and OR gates β the core building blocks of digital electronics.
The adder takes two 4-bit binary inputs through DIP switches and displays the sum and carry outputs using LEDs.
Itβs a simple yet powerful way to visualize how computers perform arithmetic operations at the logic gate level.
| Component | Quantity | Description |
|---|---|---|
| 7486 IC | 2 | Quad XOR Gate (used for Sum bits) |
| 7432 IC | 2 | Quad OR Gate (used for Carry generation) |
| 7408 IC | 1 | Quad AND Gate (used for Carry propagation) |
| DIP Switch (4-bit) | 2 | For binary inputs (A and B) |
| LEDs | 5 | For displaying Sum (4 bits) and Carry |
| Resistors | 5 | 220Ξ© or 330Ξ© (current limiting for LEDs) |
| Breadboard | 1 | Circuit prototyping |
| Jumper Wires | As needed | For connections |
| 5V Power Supply | 1 | Logic-level power source |
Each full adder is formed using basic gates as follows:
Sum = A β B β Cin
Carry = (A β
B) + (Cin β
(A β B))
By cascading four full adders, we obtain a 4-bit binary adder.
The DIP switches act as inputs (A3βA0 and B3βB0), and LEDs display the output sum bits (S3βS0) along with the final carry bit (Cout).
| A | B | Cin | Sum | Cout |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
- Set input bits A3βA0 and B3βB0 using the DIP switches.
- Observe the LED outputs β they represent the binary sum and carry.
- Changing switch combinations dynamically updates the results, demonstrating live binary addition.
Hereβs the actual circuit implementation on a breadboard:
- Understanding binary addition and carry propagation
- Practical use of logic gate ICs (74xx series)
- Cascading multiple full adders to create multi-bit arithmetic circuits
- Breadboard circuit wiring and debugging
- Add a 7-segment display for showing decimal equivalents of inputs and outputs
- Implement subtraction mode using 2βs complement
- Design a PCB version for permanent setup
- Interface with a microcontroller (Arduino/ESP32) for automated input control and output display
Mohammad Sharique Arshad
B.Tech in Electronics and Communication Engineering (ECE)
Lovely Professional University
π« GitHub Profile
π¬ βBuilding circuits that bring logic to life.β
#DigitalElectronics #LogicGates #4BitAdder #ElectronicsProject #ECE #HardwareLearning
