http://www.instructables.com/id/Arduino-Motor-Shield-Tutorial/step6/Stepper-Motor/ Function Channel A Channel B Direction Digital 12 Digital 13 Speed (PWM) Digital 3 Digital 11 Brake Digital 9 Digital 8 Current Sensing Analog 0 Analog 1 http://arduino.cc/en/Main/ArduinoMotorShieldR3 Use an external power supply. Don't power with more than 12V. /************************************************************* Motor Shield Stepper Demo by Randy Sarafan For more information see: http://www.instructables.com/id/Arduino-Motor-Shield-Tutorial/ *************************************************************/ int delaylegnth = 30; void setup() { //establish motor direction toggle pins pinMode(12, OUTPUT); //CH A -- HIGH = forwards and LOW = backwards??? pinMode(13, OUTPUT); //CH B -- HIGH = forwards and LOW = backwards??? //establish motor brake pins pinMode(9, OUTPUT); //brake (disable) CH A pinMode(8, OUTPUT); //brake (disable) CH B } void loop(){ digitalWrite(9, LOW); //ENABLE CH A digitalWrite(8, HIGH); //DISABLE CH B digitalWrite(12, HIGH); //Sets direction of CH A analogWrite(3, 1023); //Moves CH A delay(delaylegnth); digitalWrite(9, HIGH); //DISABLE CH A digitalWrite(8, LOW); //ENABLE CH B digitalWrite(13, LOW); //Sets direction of CH B analogWrite(11, 1023); //Moves CH B delay(delaylegnth); digitalWrite(9, LOW); //ENABLE CH A digitalWrite(8, HIGH); //DISABLE CH B digitalWrite(12, LOW); //Sets direction of CH A analogWrite(3, 1023); //Moves CH A delay(delaylegnth); digitalWrite(9, HIGH); //DISABLE CH A digitalWrite(8, LOW); //ENABLE CH B digitalWrite(13, HIGH); //Sets direction of CH B analogWrite(11, 1023); //Moves CH B delay(delaylegnth); }