28BYJ-48 stepper

Forgive me , Gentlemen. On significant point I left out is that the arm overshoots it's original stop point and I think it's safe to say that that overshoot occurs in every revolution. As suggested, I decreased the speed to 50; it didn't seem to make any difference as would be expected since you were thinking that the arm was falling short of the start point. I modified the code as follows to get a clear idea of what was going on . The truth table in the image below shows the results of the indicator leds A,B,C & D. Also in the image is the circuit wiring.

Here is the code:

//Small Stepper Motor and Driver


/*-----( Import needed libraries )-----*/
#include <Stepper.h>

/*-----( Declare Constants, Pin Numbers )-----*/
#define STEPS  100   //Number of steps per revolution


/*-----( Declare objects )-----*/
/* create an instance of the stepper class, specifying
 the number of steps of the motor and the pins it's
 attached to. The pin connections need to be 4 pins connected
 to Motor Driver In1, In2, In3, In4  and then the pins entered
 here in the sequence 1-3-2-4 for proper sequencing*/

Stepper small_stepper(STEPS, 8, 10, 9, 11);

int  Steps2Take = 0;

void setup(){   
}
void loop()   
{
  small_stepper.setSpeed(2);
  Steps2Take  = 4;  // Rotate CW steps = 2058
  small_stepper.step(Steps2Take);
  delay(1000);
  
  //small_stepper.setSpeed(50);
  //Steps2Take  = 2038;  // Rotate CW steps = 2058
  //small_stepper.step(Steps2Take);
  //delay(200);
}
/* --(end main loop )-- */

Did you see my code in this forum?

I have seen some of your code using this stepper motor and a camera mount. Is that the code you refer to?

I see some other posts in that thread somenthing about the improved torque of this motor when using your code. From the data sheet I concluded a torque of about 4 in oz. Is that what can be expected?

Thanks for your replies Gentlemen. - Scotty