#include <Stepper.h>
int stepsPerRev = 2038;
Stepper St1 = Stepper(stepsPerRev, 8, 10, 9, 11);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Rotating clk-wise at 5 rpm");
St1.setSpeed(5);
St1.step(stepsPerRev);
delay(1000);
Serial.println("Rotating anti-clk-wise at 10 rpm");
St1.setSpeed(10);
St1.step(-stepsPerRev);
delay(1000);
}