Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework 2 Arduino Serial Input and Output Modify the code provided in class to achieve the followings. You can choose either option to complete. Students

Homework 2

Arduino Serial Input and Output

Modify the code provided in class to achieve the followings. You can choose either option to complete. Students who choose option 2 can have 1 bonus point on the total grade of this class. For example, if your accumulated final grade is 89, having this point will make it 90.

Option 1:

In the Serial Monitor, the user should see the question. What is the first digit of your age? Then the Serial Monitor waits the user to enter one number. Lets use m to refer to this number. After that, the user should see the question. What is the second digit of your age? Then the Serial Monitor waits the user to enter one number. Lets use n to refer to this number. After the numbers are entered. The red LED should blink m times and the yellow LED should blink n times. The serial monitor should produce something like the following.

image text in transcribed

Please print out your unique serial output here as my example and paste your code in this document. Then turn in the word file through blackboard link.

Option 2: Make your invention to be a holiday gift.

Step 1. Instead of printing What is the first digit of your age, the monitor prints What is the digit representing the month of your birthday?. Instead of printing What is the second digit of your age, the monitor prints What is the digit representing the day of your birthday?. For example, if a birthday is Feb, 7th. These two digits should be 2 and 7. Make the system work for this situation. After the blinking, the serial monitor shows, Happy Holidays! You are very special and I love you.

Print out your unique serial monitor output here and paste your code in this document.

Step 2. Show the system to one of your friend. Record his or her name, and record what he or she says. Type them here. Students must complete this part to get the bonus point.

Then turn in the word file through the blackboard link.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago