You need to take the stepper motor apart so that you can separate wiring for the two phases. But before you do that, check the voltage and current requirement of the stepper motor. It's very likely that it requires too much voltage to work well with any electronics that uses constant current stepper drivers.
Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod
Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].