Go Down

Topic: Stepper Motor Not Turning with EasyDriver and Arduino, Only Vibrating (Read 6506 times) previous topic - next topic

leejasper851

I am trying to turn a stepper motor (https://www.pololu.com/product/1204) with an EasyDriver and an Arduino Uno. I am doing my wiring and code based off the first example on this website: http://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html
However, the stepper motor is not turning. If I remove any one stepper motor wire from the breadboard, the shaft vibrates, but doesn't turn. If all wires are plugged in, then the motor vibrates slightly, but the shaft doesn't. I am using power from the Arduino 5V port. This setup has worked for me before, but it has stopped working. I am new to Arduinos, EasyDrivers, stepper motors, and electronics in general. I have checked the forum, but can't find a solution. Any help is appreciated.

Update: I just found out how to use the Arduino to drive a stepper motor without a stepper motor driver. If it's possible to do that, what's the whole point of a stepper motor driver anyways? Are there any advantages of a stepper motor driver over just the Arduino by itself?

However, I still need the EasyDriver because I want to drive 4 stepper motors and there aren't enough pins on the Arduino for just using the Arduino method. Using an EasyDriver only requires 2 digital pins while using only an Arduino requires 4.

Another Update: I just found out that you can use analog pins as digital. Do you just make A0 pin 14 and A1 pin 15, etc.? If it's that simple, then I won't have to use an EasyDriver.

Update #3: I just tested it and figured out about the pin numbering. Now my only questions are those asked in my first update.

knut_ny

Arduino can NOT drive stepper directly. It requires more current
Ny

PaulS

Quote
Update: I just found out how to use the Arduino to drive a stepper motor without a stepper motor driver. If it's possible to do that, what's the whole point of a stepper motor driver anyways?
The Arduino can turn the appropriate pins on and off. That is NOT going to make any decent sized stepper motor move, since useful sized steppers need about 1000 times the current that an Arduino can supply.

Quote
If it's that simple, then I won't have to use an EasyDriver.
Yes, it is, and yes, you will.
The art of getting good answers lies in asking good questions.

leejasper851

Thank you all for the replies! My Arduino is driving the stepper motor, but my stepper motor is relatively small. Here is the link: https://www.pololu.com/product/1204. However, I'm planning to get https://www.pololu.com/product/1205 or https://www.pololu.com/product/1206. Will the Arduino be able to drive these too? If not, may you please answer my original question about the EasyDriver?

jremington

Quote
My Arduino is driving the stepper motor, but my stepper motor is relatively small. Here is the link: https://www.pololu.com/product/1204
That stepper will draw approximately 40 times more current from the Arduino pins than they can safely tolerate.

You CANNOT use a bare Arduino to drive a motor like that, if you expect your Arduino to last more than a few seconds. In fact it is an extremely bad idea to use the Arduino to directly drive ANY motor or coil, and always use a separate power supply for motors or coils.

If it did not work with the EasyDriver, then you wired it incorrectly.

leejasper851

I followed all the wiring directions on the website. Also, it works with the same wiring with just the Arduino. Also, if we shouldn't use the stepper motor directly with the Arduino, why does Arduino have a Stepper library, just wondering?

jremington

Quote
I followed all the wiring directions on the website.
Do you believe everything you read on the web?

Quote
Also, it works with the same wiring with just the Arduino.
Not for long! When you see the smoke curling up from your project, pull the plug quickly.

Quote
why does Arduino have a Stepper library, just wondering?
For use with stepping motors together with suitable stepping motor drivers.

leejasper851

For use with stepping motors together with suitable stepping motor drivers.
In that case, is there any code I can use using the Stepper library that can be used with an EasyDriver?

PaulS

Quote
In that case, is there any code I can use using the Stepper library that can be used with an EasyDriver?
All the examples in the Stepper library will work.
The art of getting good answers lies in asking good questions.

leejasper851

Thanks for answering! What should I use as a power source for my EasyDriver? I've read on the web that 9V batteries don't work. I want my power source to be portable (so it can't be a power cord) and not too heavy. I'll test out the EasyDriver with the Stepper library and post the results soon.
Not for long! When you see the smoke curling up from your project, pull the plug quickly.
Also, the point I was trying to make was that the Arduino was able to successfully make the stepper motor turn with that order of wires, so it would make sense if I used the same order of wires with my EasyDriver.

leejasper851

The stepper motor doesn't turn with the EasyDriver when using the Stepper library. Do you think the problem is using the Arduino as a power source?

jremington

Use a separate power supply for the easydriver and motor and connect the grounds together.

PaulS

Quote
The stepper motor doesn't turn with the EasyDriver when using the Stepper library. Do you think the problem is using the Arduino as a power source?
Personally, I think the problem is with the stepper motor owner.

The stepper motor's owner failed to:
1) Show how the stepper is connected to the EasyDriver
2) Show how the EasyDriver is connected to the Arduino
3) Show how the EasyDriver/stepper is powered
4) Post the latest any code

I think you should try to find a new stepper motor owner.
The art of getting good answers lies in asking good questions.

leejasper851

Currently, I'm trying a new setup. I will post all the info once I found out of it failed or succeeded.

leejasper851

I used this setup and code: https://learn.sparkfun.com/tutorials/easy-driver-hook-up-guide. I connected the M+ on the EasyDriver to the 5V on the Arduino. The motor vibrates and makes a sound, but doesn't turn.

Go Up