Question: Part C: You are required to control a stepper motor 28-BYJ-48 [1,2] using your microcontroller board through direct port access. 1. Identify the functions of

Part C: You are required to control a stepper motor 28-BYJ-48 [1,2] using your microcontroller board through direct port access. 1. Identify the functions of all pins, and the step sequence of the stepper motor 2. Connect your motor to a port of your choice 3. Write the necessary code to make the motor rotate anticlockwise. 4. Modify the code to make the motor rotate clockwise. 5. Combine both codes in 3 and 4 to make it one single function. Make the direction controlled through 1 or 2 switches. 6. How would you control the speed of the motor? 7. Write a function to change the speed of the motor, and add a parameter to control the speed. Part C: You are required to control a stepper motor 28-BYJ-48 [1,2] using your microcontroller board through direct port access. 1. Identify the functions of all pins, and the step sequence of the stepper motor 2. Connect your motor to a port of your choice 3. Write the necessary code to make the motor rotate anticlockwise. 4. Modify the code to make the motor rotate clockwise. 5. Combine both codes in 3 and 4 to make it one single function. Make the direction controlled through 1 or 2 switches. 6. How would you control the speed of the motor? 7. Write a function to change the speed of the motor, and add a parameter to control the speed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
