Hi Sandy,
First thing, my goal it is to do all this without the need of any external computer or preloaded "G code". And users can input (for example with a LCD) what the motors have to do, so we don't know previously what movements will the motors do.
Having that in mind, I can't use software like GRBL, because it is a G-code interpreter, however I can have a look at the software to see how do they do it, although I think it will not be easy...
Based on your answer, without having test it deep enough, then I think I can simulate acceleration regulating the call to "run". For example: If I set a target position for "X" and "Y" axis, then I can call "run" first at 0,1 s. interval and then more often until I reach the desired speed.
Thing is this software must balance the call to "X" and "Y" axis to do the desired movement.
The idea is to use the accelstepper facility to control the motors, and implement a software layer, so I can say to the software when programming the Arduino:
moveArc(1000,60,20,X,Y);
Where: moveArc is move in an arc shape, 1000 is the arc radious in mm, 60 is the amount of degrees to move from the 360º possible of a complete Arc, 20 is the start angle, and X Y the axis to interpolate.
El divendres 24 de maig de 2013 22:59:39 UTC+2, Sandy Noble va escriure: