how i can run it wit arduino mega 2560?
i trying that
int pinA = 2;
int pinB = 3;
int pinC = 4;
int steppingDelay = 100;
void setup() {
pinMode(pinA, OUTPUT);
pinMode(pinB, OUTPUT);
pinMode(pinC, OUTPUT);
digitalWrite(pinA, HIGH);
digitalWrite(pinB, HIGH);
digitalWrite(pinC, HIGH);
}
void loop() {
stepping(1);
delay(steppingDelay);
stepping(2);
delay(steppingDelay);
stepping(3);
delay(steppingDelay);
stepping(4);
delay(steppingDelay);
stepping(5);
delay(steppingDelay);
stepping(6);
delay(steppingDelay);
if(steppingDelay > 10)
{
steppingDelay--;
}
}
void stepping(int stage)
{
switch(stage)
{
case 1:
digitalWrite(pinA, LOW);
digitalWrite(pinC, HIGH);
digitalWrite(pinB, HIGH);
break;
case 2:
digitalWrite(pinA, HIGH);
digitalWrite(pinB, HIGH);
digitalWrite(pinC, LOW);
break;
case 3:
digitalWrite(pinA, HIGH);
digitalWrite(pinB, LOW);
digitalWrite(pinC, HIGH);
break;
case 4:
digitalWrite(pinA, LOW);
digitalWrite(pinB, HIGH);
digitalWrite(pinC, HIGH);
break;
case 5:
digitalWrite(pinB, HIGH);
digitalWrite(pinA, HIGH);
digitalWrite(pinC, LOW);
break;
case 6:
digitalWrite(pinC, HIGH);
digitalWrite(pinA, HIGH);
digitalWrite(pinB, LOW);
break;
}
}
but notor only vibrates
tryinhg with uln2003 5v and arduino without driver 5v
cant find a pinwire of this motor . is shis unipolar 2 phase motor or it is a 3 phase motor?
in this sketch i want to run it as a 3 phase unipolar motor