// Include the AccelStepper library:
#include <AccelStepper.h>

// Define stepper motor connections and motor interface type. Motor interface type must be set to 1 when using a driver:
#define dirPin 9
#define stepPin 8
#define motorInterfaceType 1

#define ACCELERATION 500 // steps/s^2

// Create a new instance of the AccelStepper class:
AccelStepper motorSar;


void setup() {
  // Seri iletişimi başlat
  Serial.begin(9600);
  
	  motorSar.setMaxSpeed(1600 );
	  motorSar.setSpeed(1600 );
    
}

void loop() {

  motorSar.runSpeed();


}