title: stepper motor nema 17 controlled by l298n driver
body: <p>I am having problem with my Nema 17 drive by L298N(WB291111). I cant make it work. I already tried multiple example and tutorials in instructibles but still it will just move 1 step i also used accel libaries but still the same.</p>
  
  <p><a href="http://i.stack.imgur.com/JDrEW.jpg" rel="nofollow">i used this schematic wirings</a></p>
  
  <pre><code>#include &lt;Stepper.h&gt;
  
  const int stepsPerRevolution = 200;  
  
  Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
  
  void setup() {
    // set the speed at 60 rpm:
    myStepper.setSpeed(60);
    // 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);
  }
  </code></pre>