Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SOLVE USING TINKERCAD (CODE) Circuit building with an Arduino Note: Please use Tinkercad Assessment Build a 4-bit binary adder O is represented as led Off

SOLVE USING TINKERCAD (CODE)image text in transcribedimage text in transcribed

Circuit building with an Arduino Note: Please use Tinkercad Assessment Build a 4-bit binary adder "O" is represented as led "Off" "1" is represented as led "On" Decimal Hex Decimal Hex Binary 0 0 6 6 3 1 1 ADD 3 0110 0011 1001 2 2 9 9 3 3 4 4 8 8 1000 5 5 ADD 2 2 0010 6 10 A 1010 6 7 Binary B3 B2 B1 BO 0000 0001 0010 0 0 1 1 0 1 0 0 0101 0 1 1 0 0 1 1 1 1000 1001 1010 1 0 1 1 1100 1 1 0 1 1 1 1 0 1 1 1 1 7 8 8 10 1010 9 9 ADD 12 1100 10 A 22 16 1 0110 11 B C F 12 13 15 15 D ADD F 1111 1111 1 1110 14 E 30 1E 15 F Binary weighting: B3 = 8, B2 = 4, B1 = 2, BO = 1 eg. 1001 = (8 x 1) + (4 x 0) + (2x0) + (1x1) 8 + 0 + 0 + 1 = 9 1010 = (8 x 1) + (4 x0) + (2 x 1) + (1 x 0) = 8 + 0 + 2 + 0 = 10 DIGITAL (PWM) O UNO ARDUINO B3 B2 B1 BD: Co. B3 B2 B1 BO Enter/Add abcde POWER ANALOG IN TY Part 1. Start your 4-bit binary adder by using 4 buttons as the binary inputs and 4 LEDs to indicate the input bits. Note the 5th led is the carry output. (Co) The buttons toggle the LEDs on and off. When the first binary number is displayed on the LEDs the Enter/Add button is pressed, the LEDs return to 0000 ready for the next binary number to be entered. The first number is stored. The second binary number is entered (same as the first) and the Enter/Add button is pressed. The LEDs should now show the result of the addition. The Enter/Add button is pressed a third time and the LEDs are cleared showing 0000. Ready to add two new binary numbers. Part 2. Add an LCD. 1. The top line of the LCD should display the addition in Decimal. 6+5 = 11 2. The bottom line of the LCD should display the addition in Hexadecimal. 6 + 5 = B 11 B Circuit building with an Arduino Note: Please use Tinkercad Assessment Build a 4-bit binary adder "O" is represented as led "Off" "1" is represented as led "On" Decimal Hex Decimal Hex Binary 0 0 6 6 3 1 1 ADD 3 0110 0011 1001 2 2 9 9 3 3 4 4 8 8 1000 5 5 ADD 2 2 0010 6 10 A 1010 6 7 Binary B3 B2 B1 BO 0000 0001 0010 0 0 1 1 0 1 0 0 0101 0 1 1 0 0 1 1 1 1000 1001 1010 1 0 1 1 1100 1 1 0 1 1 1 1 0 1 1 1 1 7 8 8 10 1010 9 9 ADD 12 1100 10 A 22 16 1 0110 11 B C F 12 13 15 15 D ADD F 1111 1111 1 1110 14 E 30 1E 15 F Binary weighting: B3 = 8, B2 = 4, B1 = 2, BO = 1 eg. 1001 = (8 x 1) + (4 x 0) + (2x0) + (1x1) 8 + 0 + 0 + 1 = 9 1010 = (8 x 1) + (4 x0) + (2 x 1) + (1 x 0) = 8 + 0 + 2 + 0 = 10 DIGITAL (PWM) O UNO ARDUINO B3 B2 B1 BD: Co. B3 B2 B1 BO Enter/Add abcde POWER ANALOG IN TY Part 1. Start your 4-bit binary adder by using 4 buttons as the binary inputs and 4 LEDs to indicate the input bits. Note the 5th led is the carry output. (Co) The buttons toggle the LEDs on and off. When the first binary number is displayed on the LEDs the Enter/Add button is pressed, the LEDs return to 0000 ready for the next binary number to be entered. The first number is stored. The second binary number is entered (same as the first) and the Enter/Add button is pressed. The LEDs should now show the result of the addition. The Enter/Add button is pressed a third time and the LEDs are cleared showing 0000. Ready to add two new binary numbers. Part 2. Add an LCD. 1. The top line of the LCD should display the addition in Decimal. 6+5 = 11 2. The bottom line of the LCD should display the addition in Hexadecimal. 6 + 5 = B 11 B

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Forensic Accounting

Authors: Greg Shields

1st Edition

1727480988, 978-1727480986

More Books

Students also viewed these Accounting questions