controlling two stepper motors?
ouconvert
Posts: 17
ive got my uln2803, and my two stepper motors. I see how to run one stepper. but how do i run the other one? in the example code it shows a
DIRB = %1111
·which sets the P4, P5, P6, and P7 to outputs. so with two steppers would i add four more 1's?
DIRB = %11111111
· and in the code how do i drive them seperatly. how does the stamp know which motor to turn at one time and the other at another time?
DIRB = %1111
·which sets the P4, P5, P6, and P7 to outputs. so with two steppers would i add four more 1's?
DIRB = %11111111
· and in the code how do i drive them seperatly. how does the stamp know which motor to turn at one time and the other at another time?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
DIRL = %11111111
Would be the same as:
DIRA = %1111
DIRB = %1111
But in one line instead.· But now you can either use OUTL to control both motors at the same time, or use OUTA and OUTB for individual control.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com