Page 289 - ARM Based Microcontroller Projects Using MBED
P. 289
9.5 PROJECT 4—SIMPLE STEPPER MOTOR CONTROL 275
FIG. 9.21 Program PDL.
of the ULN2003 module, respectively. A 5V supply is applied from the development board
pin 18 of connector CN7. The stepper motor is connected to the ULN2003 module as shown in
the figure.
9.5.5 The PDL
The PDL of the program is shown in Fig. 9.21.
9.5.6 Program Listing
In this project the stepper moor is operated in two-phase full-step mode. The 28BYJ-48
stepper motor has four steps per cycle and 11.25degrees/step (4 11.25¼45degrees/cycle).