waspinator / AccelStepper

Fork of AccelStepper
http://www.airspayce.com/mikem/arduino/AccelStepper/
Other
149 stars 87 forks source link

Motion in Opposite Direction During Acceleration and Deceleration #20

Open ryancasler opened 1 year ago

ryancasler commented 1 year ago

I am using a NEMA 17, bi-polar stepper motor with a DRV8825 stepper driver. When I attempt to use any acceleration and deceleration on the motor at all, the motor will momentarily "stutter" and travel in the opposite direction briefly while the motor is speeding up or slowing down. It is not a very large amount of travel but it is significant enough to cause the motor to be out of position after a couple of moves of the motor, since it happens during both the acceleration and deceleration parts of the movement. Since steppers get the most torque when they are moving slowly, I was hoping to be able to use this library to also get the most speed out of the motors as possible. I have checked the direction pin and that is not changing at all. I have to think it's something with the timing of the steps that are being sent to the controller. Any idea what might be causing this?