Hi. Can someone give me some simple language for a program in Arduino (a “sketch”) to have a stepper move X revolutions back and forth, waiting for a button push between each move?
It would do this: after the Arduino is turned on and power provided to the stepper, one button push moves 10 revolutions forward, the next push moves the stepper back -10 revolutions, and so on.
I tried using pinMode(2, INPUT_PULLUP) to activate the Arduino’s pullup resistor to make the button work, and it did work for a while, then stopped.
Thank you so much if anyone can do this!