I am using a ULN2003 to control a unipolar stepper motor from my PIC18F45K20. When I only connect one 12 V power cable (Red), the stepper motor works in full step, however, when I connect the other 12 V cable the motor stops and emits a high pitch noise and the outputs on all the PIC ports go low.
So, in conclusion, when I connect this one specific red cable, nothing works. I tried another stepper motor (same model), and the same happened. Any suggestions on what it could be?
My motor is similar to this one I found on the web: