Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1- Binary HEX Decimal conversions (5 pts) Write a snippet of code that will run on the Arduino and print the binary value of 10100011
1- Binary HEX Decimal conversions (5 pts) Write a snippet of code that will run on the Arduino and print the binary value of 10100011 as a HEX number to the serial monitor a. b. (5 pts) Write a snippet of code that will run on the Arduino and print the binary value of the HEX number 0xC3 c. (5 pts) What would the following C statement evaluate to? 0x17 17 Write a snippet of code that will run on the Arduino to validate your answer 2. (10 pts) Write a program to run on the Arduino with your PotMaster shield that will execute the following behavior If neither of switches SW10 or SW11 are pressed, all the LED segments are off. If switch SW11 is pressed and held pressed, then LED segments 7, 6, 5, and 4 are on. If switch SW10 is pressed and held pressed, then LED segments 3, 2, 1, and 0 are on. a. b. c. You must comment your code to have any hope of getting full credit 3. (10 pts) Write a program to run on the Arduino with your PotMaster shield that will execute the following behavior a) Read the state of the switches SW10 and SW11 b) If neither switch is pressed, then all the LEDs are off c) If SW10 only is pressed and held pressed, then the LED segment 0 will blink at 2 Hz. d) If SW11 only is pressed and held pressed, then the LED segment 9 will blink at 2 Hz. e) If both SW10 and SW11 are pressed and held pressed, then both LEDs (segments 0 and 9) will blink at 2 Hz. 1- Binary HEX Decimal conversions (5 pts) Write a snippet of code that will run on the Arduino and print the binary value of 10100011 as a HEX number to the serial monitor a. b. (5 pts) Write a snippet of code that will run on the Arduino and print the binary value of the HEX number 0xC3 c. (5 pts) What would the following C statement evaluate to? 0x17 17 Write a snippet of code that will run on the Arduino to validate your answer 2. (10 pts) Write a program to run on the Arduino with your PotMaster shield that will execute the following behavior If neither of switches SW10 or SW11 are pressed, all the LED segments are off. If switch SW11 is pressed and held pressed, then LED segments 7, 6, 5, and 4 are on. If switch SW10 is pressed and held pressed, then LED segments 3, 2, 1, and 0 are on. a. b. c. You must comment your code to have any hope of getting full credit 3. (10 pts) Write a program to run on the Arduino with your PotMaster shield that will execute the following behavior a) Read the state of the switches SW10 and SW11 b) If neither switch is pressed, then all the LEDs are off c) If SW10 only is pressed and held pressed, then the LED segment 0 will blink at 2 Hz. d) If SW11 only is pressed and held pressed, then the LED segment 9 will blink at 2 Hz. e) If both SW10 and SW11 are pressed and held pressed, then both LEDs (segments 0 and 9) will blink at 2 Hz
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started