Question: You are to create a new application that will execute on your Arduino platform based upon the Blink example that is available in the Arduino

 You are to create a new application that will execute on

You are to create a new application that will execute on your Arduino platform based upon the Blink example that is available in the Arduino Examples folder that you downloaded as part of the IDE. Your application will use the serial monitor to interact with the user. The application will begin by printing a prompt to the screen asking for user input. Your prompt should be informative. Until the user provides their first input, all the LEDs are always off. At the first prompt, if the user provides a 'g', your application will continuously blink the LEDs according to the stated pattern until new user input is provided. If the user enters an 's' at the prompt, the application should stop blinking all the LEDs (i.e. turn off all LEDS) until new user input is provided. Your application must blink the onboard LED connected to PIN 13 such that the LED is on for 1 second and off for 2 seconds. Also, you will construct a circuit on your breadboard that blinks an external (off-board) LED exactly out-of-phase with the onboard LED. That is, the LED on your breadboard should be off for 1 second (while the onboard LED is on) and on for 2 seconds (while the onboard LED is off). You are free to use any of the I/O pins available to you for your circuit. Your program should continue to operate in its previous mode until new user input is provided. You are welcome to use the "delay" function to provide a close approximation of the timing required for this lab. More precise timing using the on-board timers is not necessary for Lab 1. You are to create a new application that will execute on your Arduino platform based upon the Blink example that is available in the Arduino Examples folder that you downloaded as part of the IDE. Your application will use the serial monitor to interact with the user. The application will begin by printing a prompt to the screen asking for user input. Your prompt should be informative. Until the user provides their first input, all the LEDs are always off. At the first prompt, if the user provides a 'g', your application will continuously blink the LEDs according to the stated pattern until new user input is provided. If the user enters an 's' at the prompt, the application should stop blinking all the LEDs (i.e. turn off all LEDS) until new user input is provided. Your application must blink the onboard LED connected to PIN 13 such that the LED is on for 1 second and off for 2 seconds. Also, you will construct a circuit on your breadboard that blinks an external (off-board) LED exactly out-of-phase with the onboard LED. That is, the LED on your breadboard should be off for 1 second (while the onboard LED is on) and on for 2 seconds (while the onboard LED is off). You are free to use any of the I/O pins available to you for your circuit. Your program should continue to operate in its previous mode until new user input is provided. You are welcome to use the "delay" function to provide a close approximation of the timing required for this lab. More precise timing using the on-board timers is not necessary for Lab 1

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!