As cr0sh suggested and there are several links there to use http://www.piclist.com/techref/io/stepper/wires.htm