Question: HEHELP PLEASE!!! Milestone 2: Write a C program that decodes a sequence of keypad entries. The sequence is: 1) Angle, 2) Direction, 3) Speed. Once

HEHELP PLEASE!!! Milestone 2: Write a C program that decodes a sequenceHEHELP PLEASE!!!

Milestone 2:

Write a C program that decodes a sequence of keypad entries. The sequence is: 1) Angle, 2) Direction, 3) Speed. Once Speed is selected the stepper motor should begin its rotation and continue until 0 is pressed. The 0 key will also be used to reset the sequence entry if a mistake has been made. An LED should be used to provide status/state information about the motor. A state-machine design approach is recommended. Angle Throughout the rotation of the stepper motor it must ash an LED (different LED from status) at specied angles from its starting point (Setting/determining a home position is not required for this lab). You should use Wave Drive or Full Step mode for the motor. A/B/C/D = 11.25/45/90/360 degrees, respectively. Direction Looking at the keyed motor shaft, the motor should turn clockwise or counterclockwise. */# = clockwise/counter-clockwise, respectively. Speed The speed selection will set the time delay between motor steps and also start motor rotation. The button value (1-9) shall be multiplied by 10ms for the delay between motor steps. For example, 1 = 10ms, 2 = 20ms, 3 = 30ms, etc.

All laboratories require a prelab to be submitted at the beginning of the lab. In order to obtain credit for the prelab it must be submitted within the first 15-minutes of lab time. 1. If a stepper motor were to have 36 steps per rotation, how fast would the motor turn with a 10ms delay per step? Show calculations and answer in RPM. You may assume memory access time etc. are negligible. [5 marks] 2. If a stepper motor were to have 200 steps per rotation, calculate the delay per step for the motor to spin at 60 RPM. You may assume memory access time etc. are negligible. [5 marks] 3. Draw the flowchart for milestone 2. You may assume the keypad decoding is done by a separate function that returns the key code. [15 marks] All laboratories require a prelab to be submitted at the beginning of the lab. In order to obtain credit for the prelab it must be submitted within the first 15-minutes of lab time. 1. If a stepper motor were to have 36 steps per rotation, how fast would the motor turn with a 10ms delay per step? Show calculations and answer in RPM. You may assume memory access time etc. are negligible. [5 marks] 2. If a stepper motor were to have 200 steps per rotation, calculate the delay per step for the motor to spin at 60 RPM. You may assume memory access time etc. are negligible. [5 marks] 3. Draw the flowchart for milestone 2. You may assume the keypad decoding is done by a separate function that returns the key code. [15 marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!