Microprocesor control of stepping motor in pulse width modulated scheme