Reference no: EM132396767
Lab : Stepper Motor
Description:
A 4-pole stepper motor has 4 inputs and can rotate clockwise and counterclockwise in either 90 degrees (full step mode) or 45 degrees (half step mode) per step. The diagram of a 4-pole stepper motor is shown in Figure 10.8. As long the user applies the sequence given in Table 10.1, the stepper motor will rotate a cycle in full-step mode. If the user applies the sequence given in Table i0.2, the stepper motor will rotate a cycle in half-step mode.



A button is connected to the PC13 pin in your demo kit. This button allows you to generate an interrupt to the microcontroller. The user press this button to start the rotation in the following manner forever:
When the user presses the button for the first time, the stepper motor rotatesin the following manner:
1.1 The motor rotatesclockwise in full-step mode for 5 seconds.
1.2 The motor rotator counterclockwise in full-step mode for 5 seconds.
1.3 The motor rotator clockwise in half-step mode for 5 seconds.
1.4 The motor rotator counterclockwise in half-step mode for 5 seconds.
When the user presses the button for the second time, the stepper motor rotates in the following manner:
2.1 The motor rotates counterclockwise in half-step mode for 5 seconds.
2.2 The motor rotates clockwise in half-step mode for 5 seconds.
2.3 The motor rotates counterclockwise in full-step mode for 5 seconds.
2.4 The motor rotates clockwise in full-step mode for 5 seconds.