bipolar stepper motor control through stepstick a4988 with arduino uno


hello
i building sphere bot , life of me can't stepper motors turn stepstick

i using test
https://www.youtube.com/watch?v=xd-atapnpxo
code: [select]
/*
stepper test sketch pololu stepper driver board.

connect enable pin arduino pin 10
connect step pin arduino pin 9
connect direction pin arduino pin 8

the sketch lights led13 , runs stepper 400 steps in 1 direction
then waits on second, turns off led13 , runs stepper 400 steps in other direction
it waits second repeats 400 1 way 400 other way.
*/

int ledpin =  13;    // led connected digital pin 13
int enx = 10;
int stepx = 9;
int dirx = 8;

// setup() method runs once, when sketch starts

void setup()   {               
  // initialize digital pin output:
  pinmode(ledpin, output);   
  pinmode(enx, output);   
  pinmode(stepx, output);   
  pinmode(dirx, output); 
  digitalwrite(enx, high);
  digitalwrite(stepx, low);
  digitalwrite(dirx, low);

}

// loop() method runs on , on again,
// long arduino has power

void loop()                   
{
  digitalwrite(enx, low);
  digitalwrite(dirx, high);
  digitalwrite(ledpin, high);   // set led on
for (int x = 0; x<400; x++){
  digitalwrite(stepx, high);
  delay(1);
  digitalwrite(stepx, low);
//  delay(1);
}

  delay(1000);     // wait second
  digitalwrite(ledpin, low);    // set 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 second
}


so setup tony's in video except mine arduino uno
i getting 12 volts , 5 volts respectively. have set 16x microsteps ( have tried every combination of jumper )

i know stepper driver works because runs motor on ramps board.

i tried 20 volt 4.5amp power supply instead of 12 volt 2.5 amp had on it. nothing

i stumped on this
any thoughts

thanks
bryan

draw schematic pen , paper of how have driver wired , take photo cell phone , post it.

where did code ?
also, read pages 1, 6, & 7 of datasheet in entirety .


Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > bipolar stepper motor control through stepstick a4988 with arduino uno


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support