So I got everything connected and used the software that I found on the web to test it and the stepper motor won't turn. I put a voltage meter to all my connections and the stp and dir both showed voltage. The 4 stepper outputs on the easy driver (A and B) all register 0 so it appears that nothing is going to the stepper motor.
Any ideas?
/********************************************************
** More info about the project at: **
** http://lusorobotica.com/viewtopic.php?t=103&f=106 **
** by TigPT at [url=http://www.LusoRobotica.com]www.LusoRobotica.com[/url] **
*********************************************************/
int dirPin = 2;
int stepperPin = 3;
void setup() {
pinMode(dirPin, OUTPUT);
pinMode(stepperPin, OUTPUT);
}
void step(boolean dir,int steps){
digitalWrite(dirPin,dir);
delay(50);
for(int i=0;i<steps;i++){
digitalWrite(stepperPin, HIGH);
delayMicroseconds(100);
digitalWrite(stepperPin, LOW);
delayMicroseconds(100);
}
}
void loop(){
step(true,1600);
delay(500);
step(false,1600*5);
delay(500);
}