Project 7.20—Stepper Motor Control Projects—Complex Control Of A Unipolar Motor

In this project, a unipolar stepper motor is controlled in the following order:
• Turn 200 revolutions clockwise,
• Wait 5 s,
• Turn 50 revolutions anticlockwise,
• Wait 3 s,
• Turn 100 revolutions clockwise,
• Wait 1 s,
• Stop.

Project Hardware

The circuit diagram of the project is shown in Figure 7.165. In this project, a UCN5804B type stepper motor controller chip is used. This chip can drive small unipolar stepper motors up to +35 V and 1.25 A. The chip is connected to the microcontroller via its Step (pin 11) and Direction (pin 14) pins. The chip also has half-step (pin 10) and phase (pin 9) selection inputs. Depending upon the connection of pins 9 and 10, the chip can ...

Get PIC Microcontroller Projects in C, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.