#include //Library for Stepper motors #define STEPS 100 //no. of steps //define an instance of Stepper class with the pin nos. and no. of steps Stepper stepper(STEPS, 8, 9, 10, 11); void setup() { stepper.setSpeed(30); // setting speed of the motor in RPMs delay(33000); stepper.step(24); //moving 43.2 degrees delay(28000); stepper.step(15); //moving an additional 27 degrees delay(15000); stepper.step(-39); //returning to the origin stepper.step(-24); //moving 43.2 degrees in the negative direction delay(28000); stepper.step(-15); //moving additional 27 degrees in the negative direction delay(15000); stepper.step(39); //returning to the origin } void loop() { }