Question: Creat the a code that will do the following using arduino. Make use of if, if else, and else if statements. Create a code by

Creat the a code that will do the following using arduino. Make use of if, if else, and else if statements.
 Creat the a code that will do the following using arduino.
Make use of if, if else, and else if statements. Create a

Create a code by using the concepts you have learned that creates a countdown sequence. Here's how it should work: Immediately when the program is started, the LED at pin 13 is blinking in 1 second on, 1 second off intervals. User enters a random sequence of 8 numbers between 1 to 20 on the Serial Monitor with a space as a separator and sends the data to Arduino - - Arduino, upon receiving these numbers, sorts them from smallest to largest and starts blinking as many times as the numbers are listed with a 250 msec on and off time and a 1 second delay between each number. After the sequence is completed, the LED goes back to blinking on and off with I sec interval. - - If the user enters any integer greater than 20, a non-integer number, nothing happens and Arduino sends an error message about the invalid entry and alerting the user to enter numbers between 1 and 20. If the user enters less or more than 8 integers between 1 and 20 nothing happens and Arduino sends an error message about the invalid entry and alerting the user to enter the correct number of integers. Below are two examples of how the command is utilized: Current status: LED at pin 13 is blinking in 1 second on, 1 second off intervals - Data sent: 5 123579 191 -Output: o LED blinks once for 250 msec o LED stops blinking for 1 second o LED starts rapidly blinking in 250 msec interval (both on and off) 3 times O LED stops blinking for 1 second o LED starts rapidly blinking in 250 msec interval (both on and off) 5 times o LED stops blinking for I second o LED starts rapidly blinking in 250 msec interval (both on and ofl) 5 times o LED stops blinking for 1 second o LED starts rapidly blinking in 250 msec interval (both on and off) 7 times o LED stops blinking for 1 second o LED starts rapidly blinking in 250 msec interval (both on and off) 9 times o LED stops blinking for 1 second o LED starts rapidly blinking in 250 msec interval (both on and off) 12 times o LED stops blinking for I second

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!