Motor Shield Driving Stepper?

Hello,
I've been searching tirelessly to find, and/or figure out how to use a stepper with my newly assembled MotorShield. I believe I am using a unipolar stepper, but I'm not to sure.

Here is the stepper motor I have:

http://www.adafruit.com/index.php?main_page=product_info&cPath=34&products_id=168

Here is my setup from the top:

Here is my setup from the side:

Here is the code I am using:

#include <AFMotor.h>

AF_Stepper motor(48, 1);

void setup() {
  Serial.begin(9600);    
  motor.setSpeed(10);  
}

void loop() {
  motor.step(100, FORWARD, SINGLE); 
  motor.step(100, BACKWARD, SINGLE); 
}

Every time i try to run it, nothing happens. Only the power LED dims, then returns to normal every seconds or so. I cannot figure out what I did wrong, do you see anything wrong?

Thanks in advance

  • RaidTheW00D

It is one thing presenting photos of the motor and posting the code but you don't say what happens when you run it.

Oh sorry..... Here, i will revise it.

:-[

Only the power LED dims, then returns to normal every seconds or so.

So that's the clue. It sounds like the motor is taking far too much power than your supply can give it. How are you powering the bridge?

separate your orange and yellow into the TWO contacts of M1 and do the same for your brown and black in M2. Its only the red and green that should be connected TOGETHER.

OH! MY GOODNESS! THANK YOU SO VERY MUCH! ITS.... ITS SPINNING!... YES! Thanks guys! :smiley: ;D :smiley: :slight_smile: