I'm designing a small apparatus that has a single stepper motor and an arduino that read signals from external source and them makes the stepper motor to point to a specific direction. Last night I figured out how to calculate the shortest way and direction from any segment of the circle to another and that part works great. The arduino also homes the motor upon startup so the start point is always known. The soul of the project is alive, great.
Problem: the motor skips steps sometimes when changing direction or when moving after being still.
After losing steps it obviously doesn't point to where it thinks it points to anymore.
How could I prevent this?
Overall design needs to be light and simplicity is a bonus.
In the end the motor will be spinning a disk instead of a hand.
I'm now using an arduino nano clone and cheap 24BYJ-48 stepper motor with its provided driver.