Question: Help needed with Arduino question: Write the algorithm then the Arduino code to do the following... Morse Code Your program will accept a number from
Help needed with Arduino question:

Write the algorithm then the Arduino code to do the following... Morse Code 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 2._- 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 Hrz 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 3-- 4 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 Write the algorithm then the Arduino code to do the following... Morse Code 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 2._- 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 Hrz 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 3-- 4 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
Get step-by-step solutions from verified subject matter experts
