Introduction: Controlling Bipolar Stepper Motors With Arduino [without Library]

Tools:

- Arduino UNO

- Breadboard

- L293D

- Stepper motor

- 12v adapter [or any power source that is suitable for your motor according to the datasheet]

- Jumper wires

Step 1: Understand How Bipolar Stepper Motor Works.

Please watch the first 14 minutes of the following video to understand the three excitation modes of the bipolar stepper motor:

Step 2: Recognize the Names of Your Stepper Motor Wires.

Step 3: Complete Your Wiring

Most of stepper motors draws very large amount of current that the arduino can't handle, so I'm using L293D dc motor driver [controlled by the Arduino] to provide the motor with the sufficient current. If you choose another DC motor driver, you should refer to its datasheet to know its proper wiring and whether you should wire flyback diodes or not.

Note that the L293D has its internal flyback diodes, so there is no need to put them.

Step 4: Decide Which Mode You'll Use

The most common excitation modes are:

# Two phase mode

# One phase mode, which draws the least current, and provides less torque than the two phase mode.

# Half stepping mode, which gives you more steps per revolution, but provides less torque.

Note that there is also the microstepping mode which I'll demonstrate in another instructable soon.

Using those tables, you'll be able to write a simple Arduino code to run your stepper (or jump to the next step).

Step 5: The Arduino Code

Comments

author
karthicksmart42 (author)2017-05-01

what happen when stepper motor winding excited more than 5000 microseconds and tell me about how to choose time delay between winding excitation

author
haroon_mechno made it! (author)2016-03-12

The voltage provided is only 9V which was not sufficient for the smooth movement of the stepper but it was moving a little hence it is alive

20160311_151631.jpg20160311_151710.jpg

About This Instructable

21,389views

38favorites

License:

Bio: Maker, Mechatronics Student, and amateur Graphic Designer.
More by ahmadsaeed:Simple Arm made with DC motorsControlling Bipolar Stepper Motors with Arduino [without library]Simple Arduino POV Wand
Add instructable to: