1. Orange
2. Yellow
3. N/C
4. Green
5. Brown
A 12v power supply connects to the motor external power connector. Make sure you do not enable the Arduino power jumper just to the right of the motor external power connector.
Video can be seen at http://youtu.be/ccX92HHZ5Vg
Discuss this project at http://tech.groups.yahoo.com/group/arduinohome/message/1888
Code:
#include<AFMotor.h > AF_Stepper motor(48, 1); void setup() { motor.setSpeed(10); // 10 rpm motor.step(100, FORWARD, SINGLE); motor.release(); delay(1000); } void loop() { motor.step(100, FORWARD, SINGLE); motor.step(100, BACKWARD, SINGLE); motor.step(100, FORWARD, DOUBLE); motor.step(100, BACKWARD, DOUBLE); motor.step(100, FORWARD, INTERLEAVE); motor.step(100, BACKWARD, INTERLEAVE); motor.step(100, FORWARD, MICROSTEP); motor.step(100, BACKWARD, MICROSTEP); }
Learn more by reading:
Arduino Internals , by Dale Wheat