Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help with this coding problem? It's C code based on microcontroller. (The figure below is the keypad I am using.) Key A-D Meaning

image text in transcribedimage text in transcribedCan someone help with this coding problem? It's C code based on microcontroller. (The figure below is the keypad I am using.)image text in transcribed

Key A-D Meaning Angle of LED flash Clockwise rotation of motor direction | Counter-clockwise rotation of motor direction Speed of motor steps / rotation (Start) Stop and reset logic 1-9 0 Milestone 8.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 flash an LED (different LED from status) at specified 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 counter- clockwise. */# = 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. DEF 3

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

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions

Question

Discuss how to handle marginal and disgruntled employees.

Answered: 1 week ago

Question

Did you pick a topic that you know all about?

Answered: 1 week ago