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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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.

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    9 Discussions


    2 years ago


    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!



    3 years ago

    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!


    Reply 4 years ago

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


    4 years ago on Introduction

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

    1 reply