mutta
January 8, 2017, 2:04pm
1
Hello to everyvone,
i have a stepper motor driver. That is model CWD556. The problem is I don't know how to use it with arduino codes.
My purpose is i wanna motor spin to fast. I looked CWD556 datasheet but i did'nt anything.
could you tell me how can i use arduino codes?
int pulPin = 10; //
int dirPin = 11; //
int enblPin = 12;
void setup() {
pinMode(pulPin, OUTPUT);
pinMode(dirPin, OUTPUT);
pinMode(enblPin, OUTPUT);
digitalWrite(pulPin, LOW);
digitalWrite(enblPin, LOW);
digitalWrite(dirPin, LOW);
}
void loop() {
digitalWrite(dirPin, LOW );
digitalWrite(pulPin, HIGH);
digitalWrite(pulPin, LOW);
delayMicroseconds(1);
}
Robin2
January 8, 2017, 2:36pm
2
Without the datasheet it is hard to help.
Where did you get the stepper driver?
Can you post a photo (or photos) of it so we can see its connections and any writing that may be on it.
Also, post a link to the datasheet for your stepper motor.
...R
mutta
January 8, 2017, 2:56pm
3
Hello Robin2
you can see driver pciture below
i bought local area
driver manual
stepper motor
Robin2
January 8, 2017, 5:39pm
4
Your first (and major) problem is that the motor can take a max of 0.4 amps and the driver cannot limit the current below 2.1 amps. If you use that driver the smoke is likely to escape from your motor.
For that motor you could use a Sparkfun Easydriver, BigEasydriver or a Pololu A4988 or DRV8825. They can all be adjusted to limit the current to 0.4 amps.
...R
Stepper Motor Basics
Simple Stepper Code
mutta
January 9, 2017, 5:51pm
5
Thanks Robin2 i gonna change my stepper motor