Run stepper continuously at constant speed #75
Replies: 4 comments
-
currently you could use the VACTUAL register of the tmc2209 for getting continous constant speed movement. With Vactual only needed to be set once via UART the RPi4 does not have to do any calculations during movement. But i will look into how AccelStepper has this implemented (This library does not only share similarity, it is partly based on AccelStepper). |
Beta Was this translation helpful? Give feedback.
-
I have added the function set_speed and set_speed_fullstep on the dev branch, so you can use the run_speed function like in your example. |
Beta Was this translation helpful? Give feedback.
-
Thank you! I'll test it as soon as I can |
Beta Was this translation helpful? Give feedback.
-
Works as expected! Good to be merged to main branch, IMO. |
Beta Was this translation helpful? Give feedback.
-
For my project, I need to use both position based movement (accelerate, move for one revolution, decelerate, stop), and also continuous, constant speed movement (move indefinitely until told to stop, ideally with acceleration at the start and deceleration at stop, but it's fine without).
As this project shares similarity with AccelStepper, here's an example: https://www.airspayce.com/mikem/arduino/AccelStepper/ConstantSpeed_8pde-example.html
Would be great to have this functionality, or am I missing something and this is already possible?
Beta Was this translation helpful? Give feedback.
All reactions