4-bit Calculator
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://accounts.google.com) to authenticate, and then you will be redirected back to this page.
Congratulations! You have reached the final project of Module 4.
In previous exercises, you built an Adder (which speaks Binary) and a Decoder System (which speaks Human/Decimal). Now, you will combine these separate subsystems into a complete 4-Bit Calculator.
Project Objective: Build a circuit that accepts two 4-bit binary numbers via switches, adds them together, and displays the decimal result (0-30) on two 7-segment displays.
1) System Architecture
Our calculator works in three simple steps:
-
Add the Numbers (The Adder): We use the 74LS283 chip to add the binary numbers from your switches. It outputs the result in binary (like
11110for 30). -
Translate to Decimal (The Converter): We cannot read raw binary easily. Use the circuit that you have created in Exercise 3 for converting binary to BCD and then to a seven segment display output.
2) Step-by-Step Build
First, we need to perform the math.
- Place the 74LS283 Adder on your breadboard.
- Connect Inputs A_1-A_4 and B_1-B_4 to your DIP switches. Remember to include pull-down resistors.
- Important: Ground the Carry In (C_0) pin.
- Test: Connect temporary LEDs to the Sum outputs (S_1-S_4) and Carry Out (C_4). Verify that 1+1=2 (binary 0010). Once verified, remove the LEDs but keep the wires ready.
Next, we connect the outputs to the display unit we built in the previous exercise.
- Remove the DIP switch and pull-down resistors from the input of the display module.
- Connect the S_1-S_4 outputs to the B_0-B_3 inputs of the display module.
- Connect the C_4 output of the adder to the B_4 input of the display module.
- Connect the B_5 input of the display module to GND.
- Finally, connect the two circuits' power lines together.
3) Final Testing
Power up your circuit! If all connections are correct, the displays should show "00".
Test Cases:
- Simple Addition: Set A=1, B=2. Display should read 03.
- Crossing 9: Set A=5, B=5. Display should read 10. (This proves the Tens digit logic works).
- Maximum Value: Set A=15 (all on), B=15 (all on). Display should read 30.
4) Final Project Submission
This is the big one! Show us your fully operational calculator.
In the next module, you will dive deeper in to binary arithmetics, and learn about advanced binary arithmetics including accumulation and binary subtraction!