Pages: [1]   Go Down
Author Topic: control 2 stepper motor  (Read 545 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
Karma: 0
Posts: 96
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm making a project using 2 stepper motor.
With the Stepper librairy, it's works very well for one motor.
But how to control 2 motors together?
With this instruction:

The motor 1 move and after, the motor 2 move.
I have also tried this:
for(int i = 1; i <= 48; i++)

But it don't works very well: the motors are slow and make bad noise.

Thanks for your help and sorry for my english smiley-wink

N'attendez pas de savoir pour entreprendre.
Drawall, le robot qui dessine :

Dubuque, Iowa, USA
Offline Offline
Faraday Member
Karma: 49
Posts: 2544
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When you motor.step(1) you lose the delay between steps that motor.setSpeed() provides. Try adding a delay() in your loop.

Just a guess, but it sounds intelligent ... so I'm sticking with it.

Pages: [1]   Go Up
Jump to: