Stepper Motor not Stepping Properly I have an Arduino Uno connected to the Adafruit Motorshield v2. I have it hooked up to a stepper motor(27BYJ-48). I am trying to make the motor do one complete revolution. However, the number of steps I specify to the stepper motor(200 in the code) doesn't affect the motor steps. For example, the 2200 step in this code, is roughly one rotation and is completely unaffected by change the steps/revolution specified when instantiating the motor. How do I get the motor to do one exact revolution?

Here is the code on the arduino: 

#include &lt;Wire.h&gt;
#include &lt;Adafruit_MotorShield.h&gt;
#include "utility/Adafruit_MS_PWMServoDriver.h"

Adafruit_MotorShield AFMS = Adafruit_MotorShield(); 
Adafruit_StepperMotor *myMotor = AFMS.getStepper(200, 2);

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Stepper test!");

  AFMS.begin();  // create with the default frequency 1.6KHz

  myMotor-&gt;setSpeed(2000);  // 10 rpm   
}

void loop() {
  Serial.println("Single coil steps");
  myMotor-&gt;step(2200, FORWARD, DOUBLE); 
  myMotor-&gt;step(2200, BACKWARD, DOUBLE); 
}


Edit:
Wiring:
Ok so I'm not familiar with the sheild or API (or motor lol) but going off the spec sheets etc 

Leave the red wire disconnected [see 1] and try this code and report back what happens:

  #include &lt;Wire.h&gt;
  #include &lt;Adafruit_MotorShield.h&gt;
  #include "utility/Adafruit_MS_PWMServoDriver.h"

  Adafruit_MotorShield AFMS = Adafruit_MotorShield(); 
  Adafruit_StepperMotor *myMotor = AFMS.getStepper(64, 2); // 64 steps pr revolution
                                                           // Using M3 and M4 of shield

  void setup() 
  {
    AFMS.begin();  // create with the default frequency 1.6KHz
    myMotor-&gt;setSpeed(30);  // 30 rpm, so 1 full turn every 2sec  
  }

  void loop() 
  {  
    // 64 steps per motor shaft revolution,
    // 64 revolutions of motor per output shaft revolution
    myMotor-&gt;step(4096, FORWARD, DOUBLE);    // Should be 1 rev in one direction
    myMotor-&gt;step(4096, BACKWARD, DOUBLE);   // and 1 rev in other direction
  }


[1] : your motor is unipolar (wikipedia on unipolar and bipolar motors), according to its documentation. The red wire is the central tap, and useless in this context.