Hi. I have the same problem, but I'm using Arduino Uno. I'm trying to make a camera slider, so I just need X axis. Days and days googling and can make the motor run. Any ideas. Thank you very much in advance.
@darocha:
Instead of hi-jacking an old thread; could you pls open a new one and describe exactly what your problem is? Thank you.
darocha:
Hi. I have the same problem, but I'm using Arduino Uno.
You have joined a 12 months dead Thread. I am suggesting to the Moderator to move it to its own Thread.
And you have provided no details about the program you are using or the stepper motors or stepper motor drivers. Full details please.
Have you studied the links I included in Reply #1?
Are they relevant to your project?
If not, please explain why so that we understand the problem you are facing.
...R
Thank you Robin, and very sorry to forum for re-open an old post.
I didn't mention any details because except the Arduino ( I have Uno) I'm using all the same like the post.
Arduino Uno + CNC Shield v3 + A4988 + Nema 17 | I just want to use X axis.
This is my first project ( 2 weeks ), and I did't saw any movement on Nema
PS: I insert the 12 DC in the Arduino (only), should I insert in Bridge instead ?
I tried the code that I saw in the thread:
int stepPin = 2;
int dirPin = 5;
int enable = 8;
void setup() {
// Sets the two pins as Outputs
pinMode(stepPin,OUTPUT);
pinMode(dirPin,OUTPUT);
pinMode(enable,OUTPUT);
digitalWrite(enable,LOW);
}
void loop() {
digitalWrite(dirPin,HIGH); // rotazione oraria
digitalWrite(stepPin,HIGH);
delay(1);
digitalWrite(stepPin,LOW);
delay(1);
}
The Pololu A4988 webpage has a good wiring diagram and lots of other useful info.
You CANNOT power a motor THROUGH an Arduino - the Arduino cannot provide enough current. Or enough volts for a stepper motor.
If, after following the Pololu diagram you still have a problem please make a simple pencil drawing showing how YOU have everything connected and post a photo of the drawing. Please do NOT use Fritzing.
For the benefit of others that did not see the older Thread these are my links
Stepper Motor Basics
Simple Stepper Code
...R
SOLVED.
By instruction of the seller I just powered the Arduino, and make me spend a week...
Thank you very much Robin.
Darocha,
I see your problem has been solved.
A camera slider has been covered before on this forum, see here
http://forum.arduino.cc/index.php?topic=357131.0
This may give you some more options.
Ken