bipolar stepper motor control through stepstick a4988 with arduino uno

hello
I am building a sphere bot and for the life of me can't get the any stepper motors to turn with a stepstick

I am using this to test

/*
stepper test sketch for pololu stepper driver board.
 
connect enable pin to arduino pin 10
connect step pin to arduino pin 9
connect direction pin to arduino pin 8
 
The sketch lights led13 and runs the stepper 400 steps in one direction
then it waits on second, then turns off the led13 and runs the stepper 400 steps in the other direction
It waits another second then repeats the 400 one way 400 the other way.
 */
 
int ledPin =  13;    // LED connected to digital pin 13
int enx = 10;
int stepx = 9;
int dirx = 8;
 
// The setup() method runs once, when the sketch starts
 
void setup()   {                
  // initialize the digital pin as an output:
  pinMode(ledPin, OUTPUT);    
  pinMode(enx, OUTPUT);    
  pinMode(stepx, OUTPUT);    
  pinMode(dirx, OUTPUT);  
  digitalWrite(enx, HIGH);
  digitalWrite(stepx, LOW);
  digitalWrite(dirx, LOW);
 
}
 
// the loop() method runs over and over again,
// as long as the Arduino has power
 
void loop()                    
{
  digitalWrite(enx, LOW);
  digitalWrite(dirx, HIGH);
  digitalWrite(ledPin, HIGH);   // set the LED on
for (int x = 0; x<400; x++){
  digitalWrite(stepx, HIGH);
  delay(1);
  digitalWrite(stepx, LOW);
//  delay(1);
}
 
  delay(1000);     // wait for a second
  digitalWrite(ledPin, LOW);    // set the LED off
  digitalWrite(dirx, LOW);
for (int x = 0; x<400; x++){
  digitalWrite(stepx, HIGH);
  delay(1);
  digitalWrite(stepx, LOW);
//  delay(1);
}
  digitalWrite(enx, HIGH);
  delay(1000);                  // wait for a second
}

So my setup is exactly like tony's in the video except mine is an arduino uno
I am getting 12 volts and 5 volts respectively. have it set to 16x microsteps ( I as well have tried every combination of jumper )

I know the stepper driver works because it runs a motor on my ramps board.

I tried a 20 volt 4.5amp power supply instead of the 12 volt 2.5 amp that I originally had on it. nothing

I am stumped on this
any thoughts

thanks
bryan

Draw a schematic with pen and paper of how you have the driver wired and take a photo with a cell phone and post it.

Where did you get your code ?
Also, read pages 1, 6, & 7 of the datasheet in their entirety .

http://postimg.org/image/t4j72wdk5/

I as well have a wire connecting the ground of the arduino with the ground of the 12 volt power supply

Are RESET & SLEEP floating (not connected) or are they pulled up with resistors on the driver ?
Did you read those pages of the datasheet ?

http://fritzing.org/projects/a4988-single-stepper-test
its pretty much wired like this. OR I should say at one time it was exactly wired this way. now the jumpers are different. I read through those pages of the a4988 data sheet .
sleep and reset are connected to each other. I have also tried pulling them high and low. I have looked at all the wiring diagrams I could find for connecting this board and it seems super straight forward. 12 volt in 5 volt in stepper coils in. enable step and direction for the arduino. there are just a few variants for the microstepping but overall they are pretty much all wired the same.

the code and wiring was from the youtube video from tony buser.
I know it has to be something simple as to not having something high or low

Did you try this ?

int x;
#define Enable 10
#define Step 9
#define Dir 8

void setup() 
{ 
pinMode(Enable,OUTPUT); // Enable 
pinMode(Step,OUTPUT); //Step 
pinMode(Dir,OUTPUT); //Dir 
digitalWrite(10,LOW); // Set Enable low 
}
void loop() 
{
digitalWrite(Dir,HIGH); // Set Dir high
for(x = 0; x < 200; x++) // Loop 200 times 
{ 
digitalWrite(Step,HIGH); // Step Output high 
delayMicroseconds(500); // Wait 1/2 a ms 
digitalWrite(Step,LOW); // Step Output low 
delayMicroseconds(500); // Wait 1/2 a ms 
} 
delay(1000); // pause one second
digitalWrite(Dir,LOW); // Set Dir low
for(x = 0; x < 200; x++) // Loop 2000 times 
{ 
digitalWrite(Step,HIGH); // Step Output high 
delayMicroseconds(500); // Wait 1/2 a ms 
digitalWrite(Step,LOW); // Step Output low 
delayMicroseconds(500); // Wait 1/2 a ms
} 
delay(1000); // pause one second 
}

yep tried it nothing

Do you have a meter to take measurements ?

Change the pin numbers and try this

 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(50);      // 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(50);      // This delay time is close to top speed for this
  }                              // particular motor. Any faster the motor stalls.

}

I need to know the wire colors for your motor and how you knew which wire to connect where on the controller.
Tell me why you connected each wire where you did and how you knew that was correct.

I changed breadboards and everything is working now. guess I had a current issue.
What worked for me was the original code.
thanks for your help

Did you try the other examples ?
FYI- Don't ever connect 20V to a circuit designed for a 12v motor. You'll fry something. If your circuit had been working the driver would have gone into current limit mode and maybe started heating up.

Did you find any documentation for your stepper motor that shows the wire identification ?