The profile algorithm transforms the travel command (steps) into three vector quantities:
Vector A Acceleration from rest to fixed speed (vector slope defined by ramp)
Vector B travel at fixed speed from end of vector A to begining of vector C
Vector C Deceleration from fixed speed to rest at target point (Vector A inverted)
This technique is known as "TRAPEZOIDAL PROFILE".
When the travel command is equal or less than vector A + vector B
the algorithm convert the trapezoidal profile into "TRIANGULAR PROFILE"
calculating new vectors A & B with different slopes as function of the given travel command
For small travel command (few steps) the algorithm was yielding incorrect sharp slopes that
could stall the motor if requested to turn at high speed.
The bug has been found and removed!
Now the motor turns smootly also with few steps travel command at high speed setting.
The new version software (IO_Expander_new) is attached, as a zipped file, to this post.




Bookmarks