Accelstepper moveTO

If i understood right the moveTo command rotates the stepper motor one step for the value 1, 100 steps for the value 100 etc... Altough my stepper motor needs 2048 steps for a 360 deegres rotation it doesnt acutally do a full 360 degrees rotation. Is it my stepper motor which skips steps or did i understand something wrong about the command?

The moveTo() function will run the stepper till it reaches the commanded absolute position. So if your code says stepper.moveTo(1000); the stepper should run to position 1000 (as long as the run() function, or equivalent, is issued enough times. Since moveTo() is for absolute positioning if you again say stepper.moveTo(1000); nothing will happen because the stepper is already at position 1000. To do relative movement use the move() function.

Please post your test code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.