Re: How to move multi stepper motors with constant speed to different positions?

396 views
Skip to first unread message
Message has been deleted

gregor

unread,
Aug 2, 2018, 10:57:49 AM8/2/18
to accelstepper
Hi,

take a look at the MultipleSteppers (not MultiStepper) example. For constant speed, use runSpeed() or runSpeedToPosition() (check out the ConstantSpeed example).

On Tuesday, July 31, 2018 at 3:25:23 AM UTC+2, aymane dakil wrote:
Hi, i have 4 stepper motors driving by DRV8825, and i want to make them run to a specific position and stop them when they reach it but with constant speed, and not necessarily the all motors stop in the same time but they start all in one time
exp target position of four motors : M1:62 steps, M2 :0 steps, M3: 259 steps, M4: 9 steps, When each one reaches its desired position, it stops And others complete the way to their target position.  i had worked by the multistepper.h library but it works just for the motors that stop in the same time so is not working for me .
I haven't found the right code to solve this problem !


Message has been deleted

gregor

unread,
Aug 9, 2018, 8:59:25 AM8/9/18
to accelstepper
you don't need to use the MultiStepper class to use multiple stepper motors. You need to use only MultiStepper if you want to synchonize movements of multiple steppers.
The MultiStepper example uses the MultiStepper class. You should check out the MultipleSteppers example instead, which moves multiple steppers independently of each other.

On Saturday, August 4, 2018 at 12:53:02 AM UTC+2, aymane dakil wrote:
From multistepper class documentation :
This class can manage multiple AccelSteppers (up to MULTISTEPPER_MAX_STEPPERS = 10), and cause them all to move to selected positions at such a (constant) speed that they all arrive at their target position at the same time.  
So its not working for me because my motors don't reach their target position in the same time
Reply all
Reply to author
Forward
0 new messages