Question

Looking for help to create the arduino program for this in C.

dont need the breadboard information just the arduino code to run it all,

and as an expection to handle a case where a letter not 'g' or 's' to send output invalid response and not stop the exection of the blinking

based You are to create a new application that will execute on your Arduino platform 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 print a prompt to the screen asking for user input. If the user provides a g, your application will continuously blink the LEDs until new user input is provided. If the user enters an s, the application should stop blinking the LEDs (i.e. turn off both 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 2 seconds and off for 1 second. 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 2 seconds (while the onboard LED is on) and on for 1 second (while the onboard LED is off). You are free to use any of the L/O pins available to you for your circuit Your program should continue to operate until new user input is provided.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Looking for help to create the arduino program for this in C. dont need the breadboard...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • You are to create a new application that will execute on your Arduino platform based upon...

    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 a toggle switch to interface with the user. The application will operate by controlling the LEDs based upon the position of the toggle switch. If the user moves the LEDs until new user input is provided. When the user moves the...

  • Lab 1-Lab Portion Part I Copy the Blink program from Figure 1-13 (page 17) in the textbook and run it on your Arduino. After verifying that the Blink program works, modify the program to make the...

    Lab 1-Lab Portion Part I Copy the Blink program from Figure 1-13 (page 17) in the textbook and run it on your Arduino. After verifying that the Blink program works, modify the program to make the on-board LED attached to pin #13 blink out "SOS" in Morse code. Use a 2 750 millisecond for long pulses. 50 millisecond for short pulses and a Part 2, Write a program that uses two pushbuttons to increase or decrease the brightness of the...

  • Your task is to create a program that normally blinks the Red LED at 20 Hz...

    Your task is to create a program that normally blinks the Red LED at 20 Hz and the green LED at 10 Hz. However, when the button P1.2 is pressed, the Green LED should blink 20 Hz and the red LED should blink at 10 Hz. Make a flowchart, and break this down into chunks you can manage.

  • SOS morse code in C programming 3. Objective The first lab is intended to familiarize the...

    SOS morse code in C programming 3. Objective The first lab is intended to familiarize the student with the software development steps and to learn simple programming structure in C. In this lab you will write a program to blink an LED to send out an SOS Morse code. 4. System Requirements The designed system will blink an SOS Morse code message when a switch input is pressed. The Morse code message should be implemented as follows: .Blinking Morse code...

  • Step 1. Build an Arduino circuit that has a piezo buzzer. Step 2. Create you very own function. T...

    using C++ Step 1. Build an Arduino circuit that has a piezo buzzer. Step 2. Create you very own function. The function should a sound (C musical note at 523 H2) consisting of N short bursts (around 200 milliseconds) followed by one long pause (2 seconds). N is an input to the function and can be any integer, 1,2, 3...). Name this function sound Alert. Step 3. Write a complete Arduino sketch (program). The program should ask for N from...

  • In this lab, you will exercise 2 things: programming interrupts and configuring/using the timers. It's assumed...

    In this lab, you will exercise 2 things: programming interrupts and configuring/using the timers. It's assumed you are already well versed in I/O This assignment will be worth 10 points 2 point Configuring timer(s) correctly l point- Configuring interrupts correctly 3 point-Implementing ISRs correctly 1 point- All other required configurations 3 points-Correct program behavior Create a new project in Keil, named "Lab5". In this project, you should: 1 - Disable the Watchdog timer! 2- Configure the LEDs (P1.0 and P2.0,...

  • Write a program in C++. You need everything everythihng given You will create a function that...

    Write a program in C++. You need everything everythihng given You will create a function that validates input. It should accept only non-negative integers. If the input is incorrect the function should throw an exception. The exception will not be caught in the function. You will create a function that reads in 2 integer values. One is a number that will be raised to the power of the second. So if 5 and 6 are entered the result would be...

  • Write a Java program that will create an array of Strings with 25 elements. Input Strings...

    Write a Java program that will create an array of Strings with 25 elements. Input Strings from the user and store them in the array until either the user enters “quit” or the array is full. HINT: the sentinel value is “quit” all lowercase. “Quit” or “QUIT” should not stop the loop. HINT: you have to use the equals method (not ==) when you are comparing two Strings. After the input is complete, print the Strings that the user entered...

  • Create a java program which will prompt a user to input a product and its cost....

    Create a java program which will prompt a user to input a product and its cost. Using a while loop that will run until the sentinel value of “stop” (any case) is entered, the program will look for items with a cost greater than or equal to $100.00. The program will find the average cost of those items. Note: immediately after your statement containing input.nextDouble() you will need to add the following input.nextLine() statement. This will cause the input scanner...

  • Can someone help me with a c++ program Create a program that displays a measurement in...

    Can someone help me with a c++ program Create a program that displays a measurement in either inches or centimeters. If necessary, create a new project named Introductory 18 Project, and save it in the Cpp8\Chap09 folder. The program should allow the user the choice of converting a measurement from inches to centimeters or vice versa. Use two program-defined functions: one for each different conversion type. Enter your C++ instructions into a source file named Introductory 18.cpp Also enter appropriate...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT