In recent years, with the continuous development of electronic semiconductor devices, the cost of microcontrollers and digital signal processor is decreasing continuously, various of control chip are widely used in industrial automation and other various kinds of high-tech fields. Now the manufacturing of high performance permanent magnet synchronous motor which permanent magnet materials was made up of Nd Fe B material and control technology develop quickly, with the rapid development of power semiconductor materials, permanent magnet synchronous motor preliminarily replaced the stepper motor, has become the new trend of the development of motor servo control. Drive servo system made of permanent magnet synchronous motor as a real-time embedded system with high performance, inevitably using high-performance microcontroller or digital signal processor to control. The embedded operating system not only can improve the efficiency and stability of the embedded system, also can reduce the difficulty of the software development, it has been widely used in the field of embedded system.This paper established the mathematical model of permanent magnet synchronous motor in the three-phase static coordinate system, according to the theory of vector control, got its mathematical model of two phase rotating coordinate system after the coordinate transformation, and then reached the effect of the three phase current decoupling. Selects the field oriented control strategy, this method is simple to control, small computational amount and has no problem of direct axis armature reaction of demagnetization. PI controller was optimized by using chaotic particle swarm optimization method was used to optimize PI controller, solved the problem that its control parameters was difficult to adjust. This algorithm used chaos theory to optimize the initial position of the particle swarm algorithm, so reached the aim that evenly distributed within the solution space, speed up the convergence of particle swarm optimization(PSO).Built speed ring as outer ring in the Matlab, the inner current loop of the double closed loop control system for optimization to verify the correctness of the PI controller.Design the hardware of control system based on the model of the control system. Based on the reliability of the factors, μCOS operating system is chosen as the control system of the operating system in this paper, the operating system has been approved by the federal aviation administration. Based on the task scheduling principle and interrupt management principle of μCOS operating system, designed the software part of the permanent magnet synchronous motor control system, and gave the flow chart of software design.Finally, Set the double closed loop control system in Matlab to validate the correctness of the optimization PI controller. Than provided the hardware design of vector control based on the Matlab simulation model, bult up the experimental platform, verified the control theory and the effectiveness of the algorithm. |