Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need an arduino code to do the following Your program will accept a number from the user over the serial port. If the number sent

Need an arduino code to do the following

Your program will accept a number from the user over the serial port. If the number sent is between 1 and 5, you are to have the Morse Code signal for that number displayed on the LED.

You should represent your Morse Code signals in a 2-D array. You should declare a 2-D array by using: e.g. int myArray[5][5]; - this is like a matrix with the first index indicating the number being represented and the second index indicating for each element in the code whether it is 25% of the duty cycle (dot) or 75% of the duty cycle (dash). The rate of transmission of an element in a code is 5 Hz.

YOU SHOULD GENERATE THIS 2-D ARRAY USING AN ALGORITHM IN A LOOP

NOTING THE PATTERN OF THE SIGNALS BETWEEN 1 AND 5. YOU SHOULD NOT

EXPLICITLY ASSIGN THE ELEMENTS FOR EACH NUMBER SEPARATELY.

You should display the number on the LED only once.

You should show the calculations needed to determine your resistor value for the circuit. The specs for your LEDs are: 15 mA forward current, 2.2 V forward voltage

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

Step: 3

blur-text-image

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

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

1. Divide the class into teams of three to four students.

Answered: 1 week ago