The default setting of a big easy is 1/16 step. I was hoping inorder to change from 1/16 to 1/8, all I would have to do was ground the MS3 to arduino. However that did not work. What went wrong? Do i have to write a code for it?
Microstep, MS1, MS2, MS3
Full step, low, low, low
1/2 step, high, low high
1/4 step, low, high, low
1/8 step, high, high, low
1/16 step, high, high, high (default)
long Distance = 0; // Record the number of steps we have taken
void setup() {
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
digitalWrite(8, LOW);
digitalWrite(9, LOW);
}
void loop() {
digitalWrite(9, HIGH);
delayMicroseconds(1000);
digitalWrite(9, LOW);
delayMicroseconds(1000);
Distance = Distance + 1; //record the step
// Check to see if we are at the end of our move
if (Distance == 256000)
{
// We are! Reverse direction (invert DIR signal)
if (digitalRead(8) == LOW)
{
digitalWrite(8, HIGH);
}
else
{
digitalWrite(8, LOW);
}
Distance = 0;
delay(2000);
}
}