I am a complete novice at writing my own sketches, although I have modified some in the past. I am simply wanting to start a stepper motor with a push button, have it run at a designated speed until it reaches an optical end stop, and then run at a slower designated speed until it reaches a second optical end stop. at which point the program stops/resets, until I pushed the button again. this is for a balance beam scale.
Thanks in advance for anyone who can help me, or point me in the right direction for something to reference.