-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi, I've been encountering an issue regarding acceleration in a recent project. I've checked other issues (open/closed) and none have this specific acceleration problem and I've racked my brain enough that I'm looking for some help. Relevant info:
Arduino Nano hardware, 16MHz. Stepper pulses are at maximum 600, so being sub-kHz I figure the clock speed should not be relevant here. ContinuousStepper makes use of TimerOne for the ticker.
Attached here is a video of the issue, with acceleration at a value of 100.0 to emphasise the problem:
https://github.com/user-attachments/assets/259490be-2ff3-4047-a9c1-4e64fc289d79
During the period of acceleration, the motor is set to a speed above that of the target speed, only to decelerate to the target speed after 'acceleration' is finished. This results in a halting, jerking starts and stops.
Now, I'm not sure if this is the library's issue or mine, but I'm at my wit's end here - would be happy to show you the codebase if you're at all interested.
Thank you!