#include const int stepsPerRevolution = 32; // the number of steps per revolution // for your motor const int GEAR_RED = 64; //Gear reduction const int stepsPerRevolutionOut = stepsPerRevolution * GEAR_RED; // initialize the stepper library on pins 13 to 16 of the DXCore by Spence Konde: Stepper myStepper(stepsPerRevolutionOut, 13, 15, 14, 16); void setup() { myStepper.setSpeed(15); } void loop() { // Serial.println("clockwise"); myStepper.step(stepsPerRevolutionOut/4); delay(500); // step one quarter of a revolution in the other direction: myStepper.step(-stepsPerRevolutionOut/4); delay(500); }