Search the Community
Showing results for tags 'sonestepattime'.
Hey guys, I´m using a stepper motor in half step mode. In half step my motor has 400 steps. I wanna make it move one step at time with short pauses between each movement (2,5s). Also, after it completes the 400 steps it should start moving on the opposite direction. I´m using the library stepper.h but I´m having some doubts about it, this is my code at the moment: #include <Stepper.h> int x = 1; // step int z = 0; int w = -1; const int stepsPerRevolution = 400; // number of steps in half step mode Stepper myStepper(stepsPerRevolution, 8,9,10,11); void setu