Introduction: Run a Stepper Motor With an Arduino

Picture of 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

Picture of 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.

Comments

niebz (author)2017-06-13

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

arrow faster (author)2016-02-18

thanx bro....

tlazarov (author)2015-11-01

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!

nemeen (author)2015-05-31

what if I use
L293DNE ic

CircuitMagic (author)nemeen2015-06-04

yes you can use this IC with same circuit diagram.

nemeen (author)CircuitMagic2015-06-04

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

FtForger (author)2015-06-04

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

CircuitMagic (author)FtForger2015-06-04

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

seamster (author)2015-05-31

Nicely done. Thanks for sharing this!

About This Instructable

6,084views

90favorites

License:

More by CircuitMagic:DIY Digital RPM Tachometer | RPM Counter With ArduinoArduino Project : Gyro/Accelerometer MPU-6050 and Adafruit Motor Driver ShieldLaser Security System for Home
Add instructable to: