Driving stepper motor with LB1656M
Hi Eric,
Thanks for replying. Please refer to attached pdf file for diagram for LB1656m.
The whole assembly is from an old 5.25" floppy disk drive. The motor, PCB with driver IC etc. I disconnected it's micro controller and connect a PIC16f84 in it.
I connected RB1 (from PIC) to D1, RB2 to D2 and RB3 to PS. The rest of wiring was untouched.
With reference to the timing chart, the programming code I wrote was:
RB3 = 0;
RB1 = 1;
RB2 = 0; delayMs(2); //Delay 2 mS
RB1 = 1;
RB2 = 1; delayMS(2);
RB1 = 0;
RB2 = 1; delayMs(2);
//Up to this point, I can hear the motor tries to spin and I
//can feel the shaft is vibrating, but nothing happens. If I continue
RB1 = 0;
RB2 = 0;
//Now the motor will continuously spinning. I can't stop it.
The delay time has to be more than 1 mS otherwise motor just won't turn.
Thanks for listening and please advise what I did wrong.