Controlling degree of multiple Stepper motors using one push button as a counter Answered
I am having 3x 28BYJ48 stepper motors and ULN2003 driver equally.
I want to control the stepper motors to a pre-defined degree based on the number of pushbutton has been pressed.
For an example,
i have motor x, y and z.
1) When the button is pressed zero time, all the motors need to be in zero degree.
2) when the button is pressed for the first time, motor x need to move to 90 degree, motor y to 120 degree and motor z to 180 degree.
3) when the button is pressed for the second time, motor x need to move to 110 degree, motor y to 150 degree and motor z move to 210 degree.
4) when the button is pressed for the third and last time, all the motors need to move back to zero degrees.
Can anyone guide me on this control?
Advance thanks to all