Page 285 - ARM Based Microcontroller Projects Using MBED
P. 285

9.5 PROJECT 4—SIMPLE STEPPER MOTOR CONTROL            271








































            FIG. 9.15  Program PDL.

            9.4.7 Suggestions for Additional Work

              Modify this project by connecting a potentiometer to one of the analog input ports of the
            development board. Then, write a program to turn the servo motor shaft as the potentiometer
            arm is rotated left and right.


                     9.5 PROJECT 4—SIMPLE STEPPER MOTOR CONTROL

            9.5.1 Description

              In this project a small stepper motor is connected to the Nucleo-F411RE development
            board through a driver module. The motor shaft is rotated as follows:
            • three complete revolutions in one direction
            • stop for 3s
            • three complete revolutions in the reverse direction
   280   281   282   283   284   285   286   287   288   289   290