Hello,
I am trying to use an Arduino Uno to control a closed looper stepper motor via a stepper motor driver, but am just getting vibration from the motor instead of turning. I am using the following setup:
Stepper Driver: https://www.omc-stepperonline.com/download/CL57T_V4.0.pdf
- I have the rotating switch set to 4 (5.6A peak current, 4A RMS), but I've tried multiple values to no effect
- My dip switches are set to 1600 pulses/rev, and otherwise all off (but have played around with other combinations here to no effect)
My power supply is 36V/10A.
Here is a picture of my setup:
For arduino code, I've tried using analogWrite for PWM on the PUL pin, and just rapidly setting it to HIGH and LOW with small delays in between. For example:
void setup() {
pinMode(9,OUTPUT); // set Pin9 as PUL
pinMode(8,OUTPUT); // set Pin8 as DIR
digitalWrite(8,HIGH); // set high level direction
}
void loop() {
analogWrite(9,127);
}
or
void setup() {
pinMode(9,OUTPUT); // set Pin9 as PUL
pinMode(8,OUTPUT); // set Pin8 as DIR
}
void loop() {
digitalWrite(8,HIGH); // set high level direction
digitalWrite(9,HIGH);
delayMicroseconds(10);
digitalWrite(9,LOW);
delayMicroseconds(10);
}
The faster the modulation (be it PWM or manually writing high and low with lower delay times) leads to faster vibration in the motor and a higher pitches noise from the motor, but still no movement.
Additional notes: I actually got the motor rotating successfully yesterday morning using this same setup and code -- however, I then tried to run it through python using pyfirmata/pymata4, which didn't work. After that, it would no longer run properly via Arduino IDE either. There are no flashing red lights on the stepper driver to indicate an error, however.
Please let me know any other information I can provide that would be helpful. Thank you!
