//// Example 1, plug in the test. //#include //const int stepsPerRevolution = 2038; // the number of steps in one revolution of your motor (28BYJ-48) //// initialize the stepper library on pins 8 through 11: //Stepper myStepper(stepsPerRevolution, 8, 10, 9, 11); //void setup() { // // set the speed // myStepper.setSpeed(5); // // initialize the serial port: // Serial.begin(9600); //} //void loop() { // // step one revolution in one direction: // Serial.println("clockwise"); // myStepper.step(stepsPerRevolution); // delay(500); // // step one revolution in the other direction: // Serial.println("counterclockwise"); // myStepper.step(-stepsPerRevolution); // delay(500); //}