Hi,
If you want acceleration, use moveTo() and run(). The stepper will accelerate to the speed defined by setMaxSpeed() at the rate defined by setAcceleration().
If you want constant speed, use setSpeed() and runSpeed(). mixing these two forms of movement is not officially supported.
I think 40k steps per second is just too much for an arduino. try setting a lower speed (1000 steps/second) and test it.
--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
AccelStepper accelerates to the top speed and decelerates as it approaches the target position.