Run a Stepper Motor With an Arduino

Intro: 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.

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest
    • Audio Contest 2018

      Audio Contest 2018

    9 Discussions

    0
    None
    niebz

    1 year ago

    Hi

    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

    0
    None
    tlazarov

    2 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!

    0
    None
    nemeenCircuitMagic

    Reply 3 years ago

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

    0
    None
    FtForger

    3 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