Open vovagorodok opened 2 years ago
This is a limitation of this simple library. This library precalculates the expensive acceleration parameters before the move. To change speed on-the-fly it would have to do so between steps, it might take too long for slower chips.
You could try the AccelStepper library
If the movement is complex and the project can afford an additional 328, you could load GRBL (the CNC control language that 3D printers also use) and send G-code commands to it over serial from your main processor. It's designed for multi-axis control so you can easily drive even 3 or 4 motors with it.
There no posibility to make movemebts where starting/ending RPM is not zero. For example moves like: Proposed in
BasicStepperDriver
to have method like:For more motors:
It will open possibility to make constructions/chains like:
Or there is another idea how to make that moves?