Just for interest i came across this great site with a wealth of information all about wiring motors, encoders calculations and a lot more. Just make sure you click through the 'next' buttons to see it all.

http://www.patchn.com/index.php?opti...d=49&Itemid=74