I am using the motor shield and the PF35T-48L4 stepper motor that i got from adafruit.
I determined that the 2nd and 5th wires are the center taps and connected them to ground on the shield.
I connect coil 1 to M1 and coil 2 to M2. Power up the shield with a 5V power supply, the green LED glows. Loaded the following sketch onto Arduino UNO.
#include <AFMotor.h>
AF_Stepper motor(48, 2);
void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Stepper test!");
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);
}
Nothing happens
I got the servo and dc motors to run like a charm.
What am i doing wrong?
Thanks
Sam

