help with coding for a stepper motor

Photo-Tom:
Currently when I power it up the stepper motor turns clockwise, and doesn’t stop. I'm too use where im going wrong?

Every time loop() repeats you are increasing the number of steps you want the motor to move.

A simple fix is to move the line

stepper.moveTo(stepper.currentPosition()-10);

to the setup() function and delete the other similar line.

The longer term solution is only to change the moveTo() value when the stepper has reached its destination - something like

if (stepper.distanceToGo() == 0) {
   stepper.moveTo( nnnnn );
}

...R
Stepper Motor Basics
Simple Stepper Code