-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow speed seem not to work: Step Frequency lower than 32 Hz not supported #17
Comments
are you using microstepping on your stepper driver? |
I somehow solved the problem by enabling microsteps so that I do not need the very low frequency. The motor has lost torque due to the microsteps but it still works. So, from my side all OK but I just wanted to report this issue as it is a quit unexpected behaviour (I would assume that high frequency’s are more challenging than very slow ones ...) In also made the experienced that setting the steps per second to zero does not stop the motor in all cases - it sometimes continues to rotate very slow. Only setting the relative target position to zero as well will stop the motor (it actually turns a bit backward after deceleration which is actually helpful for my application (dosing pump, this feature prevents dropping) Is there a simple command to stop the motor immediately? Again, my application now works perfect - just for you to know that it had some surprises in the package. thank you very much for creating this library, Thomas |
I guess what you are experiencing with the motor still spinning is either a problem of combining blocking and non blocking functions (see doc) or the deceleration algorithm has issues with the low speeds and overshoot. Did you check if the stepper eventually stops after some time of spinning slowly? There is an emergency stop function with Should rapidly stop the motor. |
After a long time I digged out the Oscilloscope and verified your observations. It seems that around 32 hz is the lowest step frequency that is working. Values below that will always result in at least 32 hz stepping frequency. Values above seem to be fine. |
Hello, all together, I think it happens due to |
If you need such low step speeds, why not simply use a timer interrupt function at 1 hz to get a precise slow step speed. I assume you do not need acceleration feature at such low speeds |
I've been experiencing a similar issue. I need to be able to change the speed, acceleration, deceleration while running. I can hit higher speeds (>800rpm) using any acceleration / deceleration. I can only hit slow speeds (~ <80 rpm) by dropping the acceleration and deceleration under 200. So I just modify the accel / decel when the speed slows under a given amount. Many thanks for publishing this library!!! |
I am working on a project where I need speed of 1 to 100 steps per second. I use the following code in a test:
There is no difference at speed 10, 20 and even with 30 I saw no increase. Only with 50 I saw a slightly fester movement.
Is there a problem with slow speeds?
The text was updated successfully, but these errors were encountered: