Project 5: 4-bit Calculator

You are not logged in.

Please Log In for full access to this page.

Congratulations! You have reached the final project of Module 5.

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:

  1. 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 11110 for 30).

  2. Translate to Decimal (The Converter): We cannot read raw binary easily. The 74185 chip translates that binary result into two separate digits: a "Tens" digit and a "Ones" digit.

  3. Show the Result (The Display): Finally, the 7447 chips take those digits and turn on the correct LEDs on the 7-segment displays so we can read the number (like "30").

2) Step-by-Step Build

Step 1: The Arithmetic Unit

First, we need to perform the math.

  1. Place the 74LS283 Adder on your breadboard.
  2. Connect Inputs A_1-A_4 and B_1-B_4 to your DIP switches.
  3. Important: Ground the Carry In (C_0) pin.
  4. 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.

What is the maximum possible number we can calculate? (Input A = 15, Input B = 15)

Step 2: The Translation Unit

Now we convert the Binary result (which can be up to 5 bits wide) into Decimal format.

  1. Place the 74185 Converter on the board.
  2. Connect the Sum outputs (S_1-S_4) from the Adder to the Binary Inputs (A-D) of the 74185.
  3. Connect the Carry Out (C_4) from the Adder to the next Binary Input (E) of the 74185.
  4. Ground the unused inputs (Enable, etc.) according to the datasheet.
  5. This chip will now output two sets of BCD data: one for the "Ones" place and one for the "Tens" place.

Step 3: The Display Unit

Finally, we show the result to the user.

  1. Place two 7447 Decoder chips.
  2. Connect the "Ones" BCD output from the 74185 to the first 7447.
  3. Connect the "Tens" BCD output from the 74185 to the second 7447.
  4. Wire the 7447 outputs (a-g) to your two 7-Segment Displays.
Figure 1: The Completed 4-Bit Calculator. Note the DIP switches on the left, the processing chips in the center, and the dual displays on the right.

3) Final Testing

Power up your circuit! If all connections are correct, the displays should show "00".

Test Cases:

  1. Simple Addition: Set A=1, B=2. Display should read 03.
  2. Crossing 9: Set A=5, B=5. Display should read 10. (This proves the Tens digit logic works).
  3. Maximum Value: Set A=15 (all on), B=15 (all on). Display should read 30.

Troubleshooting: You set A=5 and B=5, but the display reads '0A' (or a weird symbol) instead of '10'. What is likely missing?

4) Final Project Submission

This is the big one! Show us your fully operational calculator.

Upload a video demonstration (20-30 seconds). Start with the display at 00. Perform the calculation 7 + 8 = 15. Then perform 15 + 15 = 30. Ensure the digits are readable.
 No file selected