#include #define STEPS 200 //360° divided by step angleStepper stepper(STEPS, 9, 10, 11, 12);int inc=100;void setup(){stepper.setSpeed(30); //RPMs}void loop(){stepper.step(inc);delay(100);stepper.step(-1*inc);delay(100);}
#include
ReplyDelete#define STEPS 200 //360° divided by step angle
Stepper stepper(STEPS, 9, 10, 11, 12);
int inc=100;
void setup(){
stepper.setSpeed(30); //RPMs
}
void loop(){
stepper.step(inc);
delay(100);
stepper.step(-1*inc);
delay(100);
}