Here is a PIC based motor controller i designed about 5 years ago. I know it will work i partly tested it, but i have lost the software i wrote. Since then the PIC cpu's are more advanced and i would replace it with a newer one. Lets see it i can post the pics. :-)