HI Trying to get a small simple project to go using AccelStepper. (a bit quiet on AccelStepper group at the moment)
Have sketch with 5 positions for the stepper to go to, all equal distance apart and all at the same speed.
Change will occur with a button press to select a position (code all done for setting new position and the variaqble new_pos will hold this, changes each time a button pressed. In the meantime I want to change the number in the variable on the monitor each time and rerun the code.
The current position will always be the position at which it is at the moment. (not 0 as some commands state)
What are the minimum commands I can use to achieve this. The only command is when the button pressed it sends data of which button and it goes to that pos.
Stepper in position 4 and then
If button 3 pressed goes to position 3 from pos 4
then if button 5 pressed goes to pos 5 from pos3 etc
AccelMoveTest.ino (795 Bytes)