I need your help to create a special command.
In effect, i know how to control my stepper motor for one revolution clockwise and unclockwise.
But i don't know how to control it just with a push button and just one position....
Example :
I push the button
The stepper goes to the 1 of the clock
i push another time and the stepper will go to the 2 of the clock
Same action for 8 times
That's same speed and same distance between each stop.
I don't know if i need to do just one line or many lines of codes???????
Many thanks for your help
Sorry for my English, i'm french
Be aware that a 200 step motor cannot move exactly 30 deg. You would need to move 17 steps for some moves and 16 steps for some others to ensure you do exactly 200 steps by the time you get back to 0.