Thanks again, Once the power is off it doesn't know where it's at, so we do a homing routine when powered up to establish it's position. After that it keeps track of where it is.
Greg
Thanks again, Once the power is off it doesn't know where it's at, so we do a homing routine when powered up to establish it's position. After that it keeps track of where it is.
Greg
You the MAN! Took me a little bit to code that because I'm still learning, but it works good after a couple tries at the step number of steps needed.
.This is what I added
for (int i=0; i<7; i++){
digitalWrite(dirPin, LOW);
digitalWrite(stepPin, HIGH);
delayMicroseconds(pd);
digitalWrite(stepPin, LOW);
delayMicroseconds(pd);
}
Thanks
Greg
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.