I have 2 stepper motors in my micromouse. Every so often one of the stepper motors will turn back one step. My set up is a PICAXE and a ULN2803A and to clock the pulses i just turn the outputs on or off on the picaxe. The stepper motors are back to back so if one is rotating clockwise the other must be going anticlockwise to make it go forwards. This leads me to powering my outputs using the following:
; Coil 1 of one stepper motor is output 0
; Coil 4 of one stepper motor is output 3
; Coil 1 of the other stepper motor is output 4
; Coil 4 of the other stepper motor is output 7
let pins = %10000001
wait 1 ;wait 1 second
let pins = %01000010
wait 1 ;wait 1 second
let pins = %00100100
wait 1 ;wait 1 second
let pins = %00011000
So why is it rotating backwards after 2 puleses? Have I got the coils the wrong way?
UPDATE:
I've just again checked that i have the correct coil numbers and this is correct. So the coils are the correct.