Introduction: 4 Bit Adder Conversion
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
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.
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.)
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.
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.