Multiple Steppers at the Same Time
hello,
i have 4 unipolar stepper motors connected arduino. using motorknob control them, can 1 motor activate @ given time. there way have 2 or more motors moving @ same time? thanks
the following code moves 2 motors. moves 1 , other- not both @ same time.
i have 4 unipolar stepper motors connected arduino. using motorknob control them, can 1 motor activate @ given time. there way have 2 or more motors moving @ same time? thanks
the following code moves 2 motors. moves 1 , other- not both @ same time.
code: [select]
void loop() {
// step forward 200 steps:
serial.println("forward");
mystepper.step(200);
mystepper2.step(200);
delay(500);
// step backward 200 steps:
serial.println("backward");
mystepper.step(-200);
mystepper2.step(-200);
delay(500);
you can't move them @ same time, can alternate single steps make moving together.
Arduino Forum > Using Arduino > Project Guidance > Multiple Steppers at the Same Time
arduino
Comments
Post a Comment