Run a Stepper Motor With an Arduino





Introduction: Run a Stepper Motor With an Arduino

Hi Guys,

This article about How to Run a Stepper Motor with an Arduino. These days stepper motor used in many electronics device like, Camera auto-focus system, CD-ROM for lens movement, 3D printer and CNCs. Stepper motor is available in many different size and types in the market, you can find a stepper motor according to your requirement.

To run a Stepper motor you can program a Arduino to move a motor in precise & defined steps in clockwise and counter-clockwise direction.

So here’s the stuff I have used for this demo.

  1. Arduino UNO
  2. Bipolor stepper motor
  3. Jumper wire
  4. Breadboard
  5. Breadboard jumper
  6. L293D IC
  7. 5-12 volt adapter

Step 1: Watch the Below Video for a Descriptive Step-by-step Guide

Step 2: Circuit Diagram and Arduino Code

Here is the circuit diagram for make connect between the Arduino, L293d IC and Stepper motor. Before you connect with the power source, just make sure all connection as per the circuit diagram.



    • Epilog Challenge 9

      Epilog Challenge 9
    • Paper Contest 2018

      Paper Contest 2018
    • Science of Cooking

      Science of Cooking

    We have a be nice policy.
    Please be positive and constructive.





    Sure most people have spotted this, but the power input for motor would be a dead short on the rail with regard to the circuit diagram.

    Ever the pessimist, circuit worked fine otherwise!


    Thanks for sharing this! I used a L293DNE, with a 12V 0.75A Stepper. It worked fine with a 9V battery power source, but the H-Bridge burned when I tried to run the stepper with a 12V 2A wall wart. Do you know what might be the problem? Do I need to use clamp diodes in case there are backwards voltage spikes from the motor? Thanks again!

    what if I use
    L293DNE ic

    yes you can use this IC with same circuit diagram.

    I have l293d motor driver board I replaced this ic with l293dne but didn't worked

    In step two I see an error in your circuit. The power leads for the motor power are shorted together...

    oops! thanks to inform me, I will update the image.

    Nicely done. Thanks for sharing this!