#include <Stepper.h>
const int stepsPerRevolution = 200;
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
// put your setup code here, to run once:
myStepper.setSpeed(60);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Clockwise");
myStepper.step(400);
delay(500);
Serial.println("Anticlockwise");
myStepper.step(-400);
delay(500);
}