This is about using mobatools to control two step motors.
I have two questions and need some help.
if I need drive two motors , start and end at same time (say total 30 seconds) with different speed, but each motor also change speed at time 0-10, 10-20, 20-30, how to do this? will mobatools give smooth change from one speed to another?
if i also need to define acceleration/deceleration for each time region, can mobatools do that? if not, which library is best to go with?
To end the rotations at the same time the two speeds have to be calculated precisely and the speed of the second motor depends on the speed of the first motor.
Anyway: You should describe your project. What is the final puprose of two stepper-motors start and stop at the same time but using different speeds.
It might well be that is not really important to stop the two motors at the exact same millisecond. But this highly depends on the details of your project.
A different approach to achieve perfect synchronisiation is to use the bresenham-algorithm.
Here is a WOKWI-Simulation using real Arduino C++-Code to demonstrate the bresenham-algorithm in combination with a G-Code-Parser