Hello everyone!
I recently scavenged some DVD readers for their steppers. It's somewhat ike this:

I soldered some wires directly to them and tested with a LiPo cell because I don't have a multimeter. The stepper moves forward with these sequence:
-1 to positive and 2 to negative.
-3 to positive and 4 to negative.
-1 to negative and 2 to positive.
-3 to negative and 4 to positive.
-REPEAT
Next I made this circuit (yes, with actual LEDs) using a TD62783AP as driver.
void setup() {
// put your setup code here, to run once:
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
//
digitalWrite(10,LOW);
digitalWrite(11,LOW);
digitalWrite(12,LOW);
digitalWrite(13,LOW);
}
void loop() {
//1000
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
digitalWrite(13, LOW);
//
delay(500);
//0010
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(12, HIGH);
digitalWrite(13, LOW);
//
delay(500);
//0100
digitalWrite(10, LOW);
digitalWrite(11, HIGH);
digitalWrite(12, LOW);
digitalWrite(13, LOW);
//
delay(500);
//0001
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
digitalWrite(13, HIGH);
delay(500);
}
With this code the LEDs light in the correct order: LED1, LED3, LED3, LED4. Now if I replace the LEDs with the stepper windings, it doesn't work (or if I connect the LEDs to the IC outputs as if they were windings) so I know I'm doing something wrong, most likely because I don't understand how the IC works. Any help?
