Go Down

Topic: Newbie questions (Read 1 time) previous topic - next topic


Just getting started with arduino but haven't quite got that far yet.
i'm sure it's probably been asked before but I'm trying to control a stepper motor throught arduino.
Specfically, this stepper motor : http://uk.farnell.com/astrosyn/129/stepper-motor-1-8deg-12v/dp/9598642

But before I can do this, I'm trying to build a stepper motor driver circuit. I have next to no electronics experience which is why it's proving difficult.

I have a L6219 (http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000092.pdf)
and a breadboard. I have been reading vague tutorials all night but can't get my head around it. Does anyone know any basic tutorials for getting started that I could look into? Or does anyone have any useful circuit diagrams or anything?

Any help appreciated.


Have you read about the stepper library.

Arduino site home page - Reference - Library - Stepper.  There are 3 links on that page, Tom Igoes page is a good read.


Something like this:

Might make things a *lot* easier!


I agree 100% with Keith!  Buy an assembled stepper-motor driver board ans save yourself a lot of frustration.

After you've learned a bit more, you can start building things from scratch.  (But even then, it's not always worthwhile.)   Or when you need something that you can't buy pre-made,  That's a good time to design & build something yourself.


I have a L6219 (http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000092.pdf)
and a breadboard. I have been reading vague tutorials all night but can't get my head around it. Does anyone know any basic tutorials for getting started that I could look into? Or does anyone have any useful circuit diagrams or anything?
Page 12 of the data sheet shows a schematic for a "typical application circuit".  But you'll have a lot more fun, a lot sooner, if you just buy an assembled board.


The controller you show is for a bi-polar motor.  The motor you show is a uni-polar motor.  They won't work together.

Pick up a motor shield pf some kind and load up the appropriate library.  Adafruit has a good open-source one and there are lots of cheap clones of it that work quite well.
Facts just don't care if you ignore them.


It really is a pain when you type in this long reply and then the forum blanks out when you go to review it.

So I will try to shorten this version:

There are a few things that will make learning the Arduino easier for you:

1) Borrow a book on Arduino from a library to use before you buy one. The book will provide projects for you to do and allow you to become familiar with Arduino and electronics and can often be the shortest route to success compared to learning everything from the Web. Once you finish one book, there are more complicated books available.
2) There are lots of Arduino kits available and many of them have instruction manuals with them. You can build one large project and often, when done you can take it apart and use the components for future projects.
3) Hopefully you have a digital multimeter (dmm). It is the most important tool anybody working with electronics can have. You should not need anything costing more than $60 at this time.

Check out these two pdf's for information on stepper motors:

The first document has information on how to determine which is your power supply connection on pages 154 and 155. The second document has information on how to wire up your unipolar stepper motor using a ULN2003 (a ULN2803 works as well) and example programs. The Javelin Stamp program might be of particular interest to you as it is in Java which is based Java. Java is based on C. Arduino is based on Processing which is based on Java.

As you gain experience with electronics you will become better at reading the specification sheets which provide the important information on the parts you have. Not reading the sheets makes things harder for you. They often have example schematics and programs to show you how to use the part.

The important information about your stepper motor is whether it is unipolar or bipolar, the range of operating voltage, the operating current per coil, and the wiring for each phase. You will need to compare this information to the information provided on the spec sheet for the driver part you buy. The L293D shown in the first pdf works well but, in my opinion, the ULN2x03 looks like it is easier to use.


Hi, Some Stepper Motor info on the ArduinoInfo.Info WIKI:


Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131