The Application of Microcontroller and PID Technology on the Control of Motor Drive