Hi.
I have controller like you (Драйвер шагового двигателя SMD-4.2. Купить. ООО Электропривод. ) and bipolar motor stepper(Импортные шаговые двигатели AD-200 NEMA 24. Характеристики шаговых двигателей AD-200.).
Controller and arduino mega connecting :
Digital Pin 2 -> PUL+ (driver 1)
Digital Pin 3 -> DIR+ (driver 1)
And the PUL-, DIR- to the Arduino GND and ENA- unconnected.
Motoro hums, but does not move(
Use Sketch:
int stepM1pin = 22;
int dirM1pin = 24;
int enM1pin = 26;
int Steps = 10;
int Delay = 3;
int i;
void setup() {
pinMode(stepM1pin, OUTPUT);
pinMode(dirM1pin, OUTPUT);
pinMode(enM1pin,OUTPUT);
digitalWrite(enM1pin,LOW);
digitalWrite(dirM1pin,LOW);
}
void loop() {
digitalWrite(stepM1pin, HIGH);
delayMicroseconds(3);
digitalWrite(stepM1pin, LOW);
delayMicroseconds(3);
}
what I'm doing wrong?
ps: sorry for my english )