Hello,
I am attempting to use an arduino to drive two steppers at the same time. The setup is relatively simple: each stepper is connected to an ULN2003(one ULN2003 for each stepper) and then to the Arduino. Each motor runs fine. The problem is that they don't work at the same time.
The first stepper moves, it stops, and then the second one starts to move and so on.
How can I get the steppers to move at the same time ?
I tried modifying the code from the examples, OneRevolution (included with Arduino IDE v1.0)
Depending on your call to Motor1 the motor will step Clockwise, stay in place, or step counter clocwise (1, 0, -1)
Repeat the function as motor2 with the correct outputs and StepCt2.
The rate at which you call them controls the speed.
There are some ways of making the process a little faster, but this is a good place to start.
It can also be programmed to do half stepping or wave stepping with minor changes.
having the same problem with the adafruit afmotor shield and the af library and the accel library and the my stepper library with the shield have not helped
It would appear that the libraries are designed for moving one motor at a time. You will probably have to write your own code to move 2 motors at the same time.