#include <Stepper.h>
const int stepsPerRevolution = 200;
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
int degree=90;
void setup() {
myStepper.setSpeed(60);
Serial.begin(9600);
delay(2000);
Serial.println("Start");
}
void loop() {
Serial.println("clockwise");
myStepper.step(stepsPerRevolution*90/360);
delay(500);
myStepper.step(stepsPerRevolution*3/4);
delay(2000);
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution*90/360);
delay(500);
myStepper.step(-stepsPerRevolution*3/4);
delay(2000);
}