Microcontroller Basics with Arduino Program Project Hi, Actually, I need someone to do coding ARDUINO. There are two tasks, I did the first one, I need som

Microcontroller Basics with Arduino Program Project Hi, Actually, I need someone to do coding ARDUINO. There are two tasks, I did the first one, I need someone to do task 2. I have task1, I will send it to you to complete the assignment. Read the instructions carefully and there are a details about the assignment. LAB 1: MICROCONTROLLER BASICS WITH ARDUINO
Objective:
Interacting with Arduino by using the Serial Monitor through serial communications
Procedure:
Task 1. Using the Serial Monitor to control alternating lights:
1.
Control the alternating lights code by sending commands through serial monitor. When the final program starts, both
lights will be off. When the “l” key is hit, the program will start and run until “Okey is pressed. The program gives an
error message when any other key is pressed.
Task 2. (On your own)
o
o
o
o
1. Create a code, by using the concepts you have learned, that alternates between an external LED that is attached at pin 5
(OUT2) and the internal LED at pin 13 on Arduino (OUT1). The code should do the following:
Immediately when the code is started, the LED at pin 13 (OUT1) should be ON for 4 sec.
After 4 sec, OUTI should turn off at the same time as LED at pin 5 (OUT2) should turn ON.
OUT2 should remain on for 500 msec and then off for 500 msec, which should repeat a total of 3 times.
Immediately after OUT2 goes off for the last time, OUT1 should turn ON again and the cycle repeats.
2. Now wrap your code inside a virtual control panel by independently learning about operating on strings. In the end,
your program should:
Start looping the outcome of the code you wrote in Step 1 until the user sends one of the following commands
on the Serial Monitor:
OUT{X}:{duration}: {number of cycles}
Here:
o
o
o
{X} takes the value 1 for the on board LED and the value 2 for the external LED
{duration} specifies the blink interval value of the ON and OFF time in miliseconds (should be ON and OFF
for the same amount of time) of the specified LED. The other LED settings remain the same. Immediately after
the specified LED completes its cycles and turns off, the other LED should start its cycle.
{number of cycles} specifies how many times the specified LED should blink as set under duration.
o
Below are two examples of how the command is utilized:
Current status: Original cycle of Step 1. OUT1 blinks for 5 sec. then turns off, OUT2 blinks 3 times in 500
msec intervals. Cycle repeats.
Goal: Change the blink interval time of 2nd LED to 1000 msec and make it blink 4 times:
Command to send to Arduino:OUT2:1000:4
Current status: OUT1 blinks for 1 sec. turns off, OUT2 blinks four times in 1 sec intervals. Cycle repeats
Goal: Change the blink interval time to 500 msec for 1st LED and make it blink 2 times:
Command to send to Arduino: OUT1:500:2
Current status: OUTI blinks twice in 500 sec.intervals, turns off, OUT2 blinks four times in 1 sec intervals.
Cycle repeats
3. If any other command is entered Arduino will ignore it and do nothing.

Purchase answer to see full
attachment

Don't use plagiarized sources. Get Your Custom Essay on
Microcontroller Basics with Arduino Program Project Hi, Actually, I need someone to do coding ARDUINO. There are two tasks, I did the first one, I need som
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT! Just from $10/Page
Order Essay
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.