Skip to content

This project implements a 4-bit binary to hexadecimal decoder using basic logic gates, driving a common anode 7-segment display. Designed for simulation in CircuitVerse, it demonstrates practical digital logic design skills for use in embedded systems, control circuits, and digital displays.

License

Notifications You must be signed in to change notification settings

Yasteer/7-Segment-Hexadecimal-Decoder

Repository files navigation

🔢 7-Segment Hexadecimal Decoder

This project implements a 4-bit binary to hexadecimal decoder using basic logic gates to drive a common anode 7-segment display. It was designed, built, and simulated using CircuitVerse.org.


✨ Features

  • 🔌 Fully functional 4-bit binary to hexadecimal decoder.

  • 🔥 Designed for a common anode 7-segment display (LOW = segment ON).

  • 🧠 Optimized logic design to reduce unnecessary gate usage.

  • 🖥️ Fully tested and simulated using CircuitVerse.

Circuit Demo


⚡ How It Works

  • Inputs: Four binary inputs (D0-D3).

  • Logic gates: Combination of AND, OR, and NOT gates.

  • Outputs: Seven control signals (segments A–G) to display the correct hexadecimal value.

Each input combination displays the corresponding hexadecimal value (0–F) on the 7-segment display.


🧮 4-Bit Binary to Hexadecimal Table

D3 D2 D1 D0 Hexadecimal Output
0 0 0 0 0
0 0 0 1 1
0 0 1 0 2
0 0 1 1 3
0 1 0 0 4
0 1 0 1 5
0 1 1 0 6
0 1 1 1 7
1 0 0 0 8
1 0 0 1 9
1 0 1 0 A
1 0 1 1 B
1 1 0 0 C
1 1 0 1 D
1 1 1 0 E
1 1 1 1 F

🧩 Truth Table for 7-Segment Outputs

Hex A B C D E F G
0 0 0 0 0 0 0 1
1 1 0 0 1 1 1 1
2 0 0 1 0 0 1 0
3 0 0 0 0 1 1 0
4 1 0 0 1 1 0 0
5 0 1 0 0 1 0 0
6 0 1 0 0 0 0 0
7 0 0 0 1 1 1 1
8 0 0 0 0 0 0 0
9 0 0 0 0 1 0 0
A 0 0 0 1 0 0 0
B 1 1 0 0 0 0 0
C 0 1 1 0 0 0 1
D 1 0 0 0 0 1 0
E 0 1 1 0 0 0 0
F 0 1 1 1 0 0 0

Note:

  • 0 = Segment ON
  • 1 = Segment OFF (for common anode displays)
  • Circuits designed using the Sum of Products (SOP) method of Boolean algebra where each term is a product of input variables or their complements & the final output is the sum of all these terms.

🖼️ Screenshot of the Circuit

Circuit Diagram


🛠️ Technologies Used

  • CircuitVerse.org — for digital circuit design and simulation.

  • GitHub — for project hosting and version control.

  • Logic design based on electronic engineering principles.


🚀 How to Use


🔮 Future Improvements

Build a common cathode version.

Further optimize logic gates using Karnaugh Maps.

Simulate circuit in Tinkercad.

Construct and test the design on a physical breadboard with ICs.


📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


👤 Author

  • Created by Yasteer Sewpersad
  • Electronic Engineering Portfolio of Evidence

About

This project implements a 4-bit binary to hexadecimal decoder using basic logic gates, driving a common anode 7-segment display. Designed for simulation in CircuitVerse, it demonstrates practical digital logic design skills for use in embedded systems, control circuits, and digital displays.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published