Simple Arduino + EasyDriver + Stepper Motor (All Sparkfun)

I followed this extremely simple Stepper Motor tutorial:

https://www.sparkfun.com/tutorials/400

But it’s not working!

All my parts are genuine and from Sparkfun. Are my components broken?

I am using the code providied in the tutorial as well

Here are some pictures:

https://scontent-lhr3-1.xx.fbcdn.net/hp … e=572B8544

https://scontent-lhr3-1.xx.fbcdn.net/hp … e=572BD987

I am really out of ideas :neutral: I hope you guys can help

Please describe “not working” in detail.

Did you use exactly the same motor?

Post the code, using code tags.

Yes the exact same motor

here is my code:

/*************************
Joel Bartlett
SparkFun Electronics
December 27, 2012

This code controls a stepper motor with the 
EasyDriver board. It spins forwards and backwards
***************************/
int dirpin = 2;
int steppin = 3;

void setup() 
{
pinMode(dirpin, OUTPUT);
pinMode(steppin, OUTPUT);
}
void loop()
{

  int i;

  digitalWrite(dirpin, LOW);     // Set the direction.
  delay(100);


  for (i = 0; i<4000; i++)       // Iterate for 4000 microsteps.
  {
    digitalWrite(steppin, LOW);  // This LOW to HIGH change is what creates the
    digitalWrite(steppin, HIGH); // "Rising Edge" so the easydriver knows to when to step.
    delayMicroseconds(500);      // This delay time is close to top speed for this
  }                              // particular motor. Any faster the motor stalls.

  digitalWrite(dirpin, HIGH);    // Change direction.
  delay(100);


  for (i = 0; i<4000; i++)       // Iterate for 4000 microsteps
  {
    digitalWrite(steppin, LOW);  // This LOW to HIGH change is what creates the
    digitalWrite(steppin, HIGH); // "Rising Edge" so the easydriver knows to when to step.
    delayMicroseconds(500);      // This delay time is close to top speed for this
  }                              // particular motor. Any faster the motor stalls.

}

Not sure if you allready solved your problem.

But start with a delay between writing the step pin low and high.

    digitalWrite(steppin, LOW);  // This LOW to HIGH change is what creates the
    delayMicroseconds(500);
    digitalWrite(steppin, HIGH); // "Rising Edge" so the easydriver knows to when to step.
    delayMicroseconds(500);