Bipolar stepper motor driving by Micro-controller Xmega

atxmegadriverstepper motor

I am using Bipolar stepper motor Haydon Kerk 25343-05. My driver IC is DRV8833.
The micro controller I am using is ATXMEGA16A4U.

The bipolar stepper motor has 4 wires. 4 PWM output pins of Microcontroller go to the driver chip which in-turn drives the stepper motor.

The step angle of the motor is 7.5 degree. If I name the wires as A,B,C,D; what kind of input pattern should be given to drive the motor forward. Should I give delay after each step, If so, how much delay should I give?

Best Answer

I'd call these signals A1-A2-B1-B2 (as in the datasheets).

For the pattern:
0101->1001->1010->0110->0101... the motor will rotate one direction and for
0101->0110->1010->1001->0101... it will go the other way.

If you add a delay between steps it will just rotate slower.