4 Bit Adder Conversion

by Max Shi in Circuits > Arduino

1197 Views, 0 Favorites, 0 Comments

4 Bit Adder Conversion

download (1).jpg

This project is designed to use an Ardunio to convert a 4 bit adder to a seven segment display for this project you will need the following:

- An Arduino - Wires

- 5x leds

- 2x Seven Segment displays

- 2x DIP Switches SPST x4

- 2x XOR gates

- 2x AND gates

- 1x OR gates

- 1x 100 ohm resistor

- 1x 1k ohm resistor

download (2).png

To start off you would want to build a four bit adder. This four bit adder will be using 2 XOR gates, 2 AND gates, and 1 OR gate. As well 5 leds for the output and 2 DIP switches for the input. You would want to follow the diagram above.

suffering part 2.PNG

When you finished it should look something like this. (note that this device is powered by an Arduino, which is being regulated by 100 ohm resistor.)

Capture.PNG

Now you want to connect, your arduino so that it is able to measure when voltage is being passed though your leds, and connecting the remaining output to your seven segment display. This so that we can get the value of out and display it using our arduino and the seven segment displays. Now because of the arduino's limited pins you are going to have to connect pin b for the second digit to power. This because a 4 bit adder will only have the second digit as 0,1,2, and 3. Which means that pin b will always be on, this way we can control the rest of the pins.

download (2).jpg

Now it's time to code your arduino, remember to record now which pin of the arduino is attached to each pin of the seven segment display. And change the code accordingly.