Hi there !
I'm a newbie in this domain but I've built a CNC mahine that should be able to work. But I've got wiring problems.

I've got an arduino UNO v3
2 steppers motors with enough couple.
2 "easydrivers" v4
And here is the issue :




The first motor :
x-axis
M49SP-2K 24V DC that I'm powering with an old computer power.
Attachment 243284 ( http://img4.hostingpics.net/pics/854248IMG0216.jpg )
Attachment 243286 ( http://img4.hostingpics.net/pics/422580IMG0299.jpg )
4 wires as you can see.
Green wire 8ohms with yellow one. infinite with two other
Same with violet and brown.
But I don't get how to make it turning.

I'm using this shematic :
Attachment 243288

And this arduino sample :

Code:
#define DIR1_PIN (12)
#define STEP1_PIN (13)
#define DELAY (1600/10)
#define BAUD (9600)

void setup() {
Serial.begin(BAUD);
pinMode(DIR1_PIN,OUTPUT);
pinMode(STEP1_PIN,OUTPUT);
}


void loop() {
int i,j=DELAY;

digitalWrite(DIR1_PIN, LOW); // Set the direction.
delayMicroseconds(DELAY);
Serial.println(">>");

for (i = 0; i<4000; i++) // Iterate for 4000 microsteps.
{
digitalWrite(STEP1_PIN, LOW); // This LOW to HIGH change is what creates the
digitalWrite(STEP1_PIN, HIGH); // "Rising Edge" so the easydriver knows to when to step.
delayMicroseconds(j); // This delay time is close to top speed for this
j+=1;
} // particular motor. Any faster the motor stalls.

digitalWrite(DIR1_PIN, HIGH); // Change direction.
delayMicroseconds(DELAY);
Serial.println("<<");

for (i = 0; i<4000; i++) // Iterate for 4000 microsteps
{
digitalWrite(STEP1_PIN, LOW); // This LOW to HIGH change is what creates the
digitalWrite(STEP1_PIN, HIGH); // "Rising Edge" so the easydriver knows to when to step.
delayMicroseconds(j); // This delay time is close to top speed for this
j-=1;
} // particular motor. Any faster the motor stalls.
}
And it only vibrates. Maybe too fast for torque required.
( I tried most of all combinason of wiring orders )


Here is the second one :
Y-axis
C5870-60004
24V DC

http://img4.hostingpics.net/pics/942358IMG0218.jpg

http://img4.hostingpics.net/pics/928740IMG0290.jpg

And there is 5 wires !!! :-O

After some researches, I though that it was an 5wire unipolar stepper and organised that way :
Attachment 243290

So I connected from left to right on the 928740IMG0290.jpg picture:

Coil A Coil A Coil B Coil B
+ - + -
1 2 4 5
1 4 2 5
not worked

Please help, I don't know what to do :c





Thank you for futur answers and sorry for bad english