How to determine bipolar stepper motor wiring (came from a 3.5 inch floppy drive)

arduinostepper motorwiring

I have extracted a small stepper motor from a 3.5 inch floppy drive, that I intend to use with an Arduino or Raspberry Pi. The problem is: initially a thin ribbon cable was attached to it, with no labels.

I couldn't use them, so I soldered wires to it. how can I determine which cable is what? I don't have a multimeter at hand, are there any other ways?

enter image description here

Best Answer

4 wires indicates bipolar windings. There are only 3 different ways the coils could be wired (1-2 + 3-4, 1-4 + 2-3, 1-3 + 2-4) so just try each combination until it steps. If it doesn't step continuously in the same direction then reverse the polarity of one winding. If it goes backwards then reverse both windings.

enter image description here