Permanent magnet driving motor parameter identification method based on double extended Kalman filtering
Through the parallel operation of the double extended Kalman filter method, combined with the state observer and the parameter observer, the impact of the inverter nonlinearity on the permanent magnet drive motor parameter identification is solved, and high-precision online parameter identification and current distortion elimination are achieved. It meets the demand for high-precision control of permanent magnet drive motors.
Patent Information
- Application Number
- CN202410720145.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing motor parameter identification methods cannot meet the demand for high-precision online parameter identification of permanent magnet drive motors. In particular, they cannot effectively consider the impact of inverter nonlinearity on identification accuracy, resulting in current distortion and reduced parameter identification accuracy.
The double extended Kalman filter method is used to obtain the real-time flux resistance and inductance value of the permanent magnet drive motor and the disturbance voltage caused by the inverter nonlinearity through the parallel operation of the state observer EKFx and the system parameter observer EKFθ. The extended Kalman filter parameter identification method can identify and feedback compensate the nonlinear disturbance voltage of the inverter in real time.
It achieves high-precision online parameter identification, reduces the impact of inverter nonlinearity on motor parameter identification accuracy, improves identification accuracy and calculation efficiency, and eliminates current distortion caused by inverter nonlinearity.
Smart Images

Figure CN118659696A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of online motor parameter identification, and in particular to a permanent magnet drive motor parameter identification method based on double extended Kalman filtering. Background Art
[0002] Permanent magnet drive motors have been widely used in the five major systems of steering, braking, shifting, throttle, and suspension of the new generation of wire-controlled chassis due to their high power density, high dynamic response capability, compactness, lightness, and direct drive characteristics. The wire-controlled system drives sensors and drive motors with electrical signals. Compared with traditional pneumatic, hydraulic, and mechanical connections, it has the advantages of compact structure, good controllability, and fast response speed. However, due to the high integration of permanent magnet drive motors, the motors are easily affected by factors such as temperature rise and magnetic circuit saturation during operation, resulting in parameter changes, which in turn affects the current regulation capability, reduces dynamic performance, and may even cause serious failures in the vehicle's wire-controlled chassis. Therefore, achieving high-precision online parameter identification of permanent magnet drive motors is crucial to ensure high-performance control and status monitoring of the motors.
[0003] At present, there are two main methods for motor parameter identification: offline identification and online identification. Although offline identification has high accuracy, it has high requirements for experimental equipment, a complex implementation process, and cannot track changes in the environment and operating conditions in real time. Therefore, online parameter identification is more suitable for high-performance motor control and state monitoring. However, commonly used online parameter identification algorithms, such as recursive least squares method, model reference adaptive method, Kalman filter method and neural network, all have various problems, such as large amount of calculation, poor anti-interference ability, accuracy affected by other parameters, and sensitivity to training data. Another important challenge is that current parameter identification algorithms rarely consider the impact of inverter nonlinearity on identification accuracy. In practical applications, the nonlinear characteristics of the inverter will cause the fundamental waves of the input and output voltages to be inconsistent, resulting in voltage errors, which will further affect the current, causing current distortion and reducing the accuracy of parameter identification.
[0004] In summary, the existing motor parameter identification methods have their own limitations and cannot meet the needs of high-precision online parameter identification of permanent magnet drive motors. Therefore, there is an urgent need for a high-precision online parameter identification method that can simultaneously consider motor parameter changes and inverter nonlinearity. Summary of the invention
[0005] In view of the shortcomings in the prior art, the present invention provides a permanent magnet drive motor parameter identification method based on double extended Kalman filtering.
[0006] The present invention achieves the above technical objectives through the following technical means.
[0007] A permanent magnet drive motor parameter identification method based on double extended Kalman filter:
[0008] Considering the nonlinear factors of the inverter, a mathematical model of the permanent magnet drive motor in the dq two-phase rotating coordinate system is established;
[0009] Using state observer EKF x and system parameter observer EKF θ Parallel computing to obtain the real-time flux linkage of the permanent magnet drive motor resistance Inductance And the disturbance voltage caused by the nonlinearity of the inverter Used to control permanent magnet drive motors;
[0010] When the two observers run in parallel, the parameter observer EKF θ The predicted value of EKF x To calculate its predicted value Then the predicted value of the state observer EKF θ Used to calculate parameter update values The system measurement input u at time k k Only the state observer EKF x For calculation, the system measurement output y at time k+1 k+1 is used by both observers for calculation during the update phase.
[0011] In a further technical solution, the state observer EKF x The system state space equation is:
[0012]
[0013] Where: The state quantity x at time k k =[i d,k i q,k R s,k V dead,k ] T ,i d 、i q is the current value in the dq two-phase rotating coordinate system at time k, x k+1 is the state quantity at time k+1, θ k is the parameter value at time k, u k is the d-axis and q-axis voltage measured at time k, and y k are the d-axis and q-axis currents measured at time k, F(·) is the state space transfer function of the system state space equation, and G(·) is the measurement function of the system state space equation; is the system noise of the state observer, is the measurement noise of the state observer.
[0014] In a further technical solution, the parameter observer EKF θ The system spatial state equation is:
[0015]
[0016] Where: parameter value θ at time k k =[L s,k ψ f,k ] T , L s is the motor inductance at time k, ψ s is the rotor flux at time k, y k To measure the output d and q axis current, is the system noise of the parameter observer, is the measurement noise of the parameter observer.
[0017] In a further technical solution, the operation process of the two observers is as follows:
[0018] Parameter Observer EKF θ predict:
[0019]
[0020] State Observer EKF x predict:
[0021]
[0022] State Observer EKF x renew:
[0023]
[0024] Parameter Observer EKF θ renew:
[0025]
[0026] in:
[0027] in: is the parameter estimate at time k, is the parameter prediction value at time k+1, is the estimated value of the state at time k, is the state prediction value at time k+1, is the Kalman gain of the state observer, is the Kalman gain of the parameter observer, A k is the Jacobian matrix of the function F(·), Indicates A k The transpose of is the state Jacobian matrix of the function G(·), is the parameter Jacobian matrix of the function G(·), is the estimated value of the measured output at time k, Q θ and Q x They are parameter observer EKF θ EKF with state observer x The system noise covariance matrix is is the parameter estimation error covariance matrix at time k, is the parameter estimation prediction error covariance matrix at time k+1, is the parameter estimation error covariance matrix at time k+1, is the state estimation error covariance matrix at time k, is the state estimation prediction error covariance matrix at time k+1, is the state estimation error covariance matrix at time k+1, R x Represents the state observer EKF x The measurement noise covariance matrix, R θ Denotes the parameter observer EKF θ The measurement noise covariance matrix of is, and I is the third-order identity matrix.
[0028] A further technical solution is to identify the disturbance voltage caused by the nonlinearity of the inverter in real time. Feedback compensation in the control system is expressed as:
[0029]
[0030] in, are the compensation disturbance voltage components on the α and β axes respectively, sign is the sign function, i a 、i b 、i c It is the current value in the abc three-phase natural coordinate system.
[0031] In a further technical solution, the mathematical model is:
[0032]
[0033] Where: u d * 、u q * is the reference value of the inverter output voltage, V deadD is the disturbance voltage considering the nonlinear factors of the inverter. d , D q is the angle θ of the motor rotor e The periodic function, R s Motor stator resistance, i d 、i q is the current value in the dq two-phase rotating coordinate system, L s is the motor inductance, ψ s is the rotor flux.
[0034] A further technical solution, the i d 、i q The Clark and Park transformation is used to transform i a 、i b 、i c and the motor rotor angle θ e Calculated by coordinate transformation.
[0035] The beneficial effects of the present invention are as follows:
[0036] 1. The present invention adopts a double extended Kalman filter parameter identification method with parallel operation, which can complete the identification of multiple parameters online, and has the advantages of fast convergence speed, small calculation amount and high identification accuracy.
[0037] 2. The present invention utilizes double extended Kalman filter parameter identification to obtain the disturbance voltage caused by the nonlinearity of the inverter, and feeds back the disturbance voltage to compensate in the control system, thereby eliminating the influence of the nonlinearity of the inverter on the accuracy of the motor parameter identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is the vector control block diagram and the principle diagram of the double extended Kalman filter algorithm of the present invention;
[0039] FIG2( a ) is a stator current waveform diagram of the algorithm experiment of the present invention;
[0040] FIG2( b ) is a frequency domain analysis diagram of the a-phase current of the algorithm experiment of the present invention;
[0041] FIG2( c ) is a frequency domain analysis diagram of the dq axis current of the algorithm experiment of the present invention;
[0042] FIG3( a ) is a diagram showing the stator resistance identification result of the algorithm experiment of the present invention;
[0043] FIG3( b ) is a diagram showing the inductance identification result of the algorithm experiment of the present invention;
[0044] FIG3( c ) is a diagram showing the permanent magnet flux identification results of the algorithm experiment described in the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are protected by the present invention.
[0046] like Figure 1 As shown, the present invention provides an embodiment of a permanent magnet drive motor parameter identification method based on double extended Kalman filtering. The operating basis of the method of the present invention is: according to the initial parameters of the permanent magnet drive motor, a PI controller is used to complete the speed and current closed-loop control, and the space vector pulse width modulation control (Space Vector Pulse Width Modulation, SVPWM) strategy is used to improve the voltage utilization rate.
[0047] The permanent magnet drive motor parameter identification method based on double extended Kalman filtering specifically includes the following steps:
[0048] Step (1), the calculation input value of the method of the present invention is to collect the current (i a 、i b 、i c ), motor bus voltage U dc 、Motor rotor angular velocity ω e The angle θ of the motor rotor e .
[0049] Step (2) uses equal-amplitude Clark and Park transformation to transform the real-time collected current (i a 、i b 、i c ), motor rotor angle θ e The coordinate transformation calculation results in the real-time two-phase rotating coordinate system of the AC and DC axes current (i d 、i q ), and then use the current loop PI controller to calculate the AC and DC axis target voltage (u d 、u q ).in:
[0050] The constant amplitude Clark transform is:
[0051] Park transform is:
[0052] Where: i a 、i b 、ic is the current value in the abc three-phase natural coordinate system, i α 、i β is the current value of the αβ two-phase stationary coordinate system, i 0 is 0, i d 、i q is the current value in the dq two-phase rotating coordinate system.
[0053] Step (3), considering the nonlinear factors of the inverter, establish a simplified mathematical model of the permanent magnet drive motor in the dq two-phase rotating coordinate system, which is as follows:
[0054] Dead time and nonlinear characteristics of the switch device such as turn-on and turn-off delay and tube voltage drop will cause an error between the actual output voltage of the inverter and the reference voltage. The error voltage u in the abc three-phase natural coordinate system is abc,err for:
[0055]
[0056] The error voltage u in the abc three-phase natural coordinate system abc,err By using coordinate transformation to the dq two-phase rotating coordinate system, the error voltage u in the dq two-phase rotating coordinate system is dq,err for:
[0057]
[0058] Without considering magnetic saturation and iron loss, the stator voltage equation of the permanent magnet drive motor in the dq two-phase rotating coordinate system can be expressed as:
[0059]
[0060] Substituting the error voltage model in the dq two-phase rotating coordinate system into the above formula, the stator voltage equation of the permanent magnet drive motor considering the nonlinear factors of the inverter can be obtained as follows:
[0061]
[0062] Where: u d * 、u q * is the reference value of the inverter output voltage, V dead D is the disturbance voltage considering the nonlinear factors of the inverter. d , D q is the angle θ of the motor rotor e The periodic function, R s Motor stator resistance, i d 、i q is the current value in the dq two-phase rotating coordinate system, L sis the motor inductance, ψ s is the rotor flux.
[0063] Based on the stator voltage equation of the permanent magnet drive motor, the motor mathematical model considering the inverter nonlinearity can be regarded as a high-order system:
[0064]
[0065] The state vector x describes the motor current and unmeasured state variables. is the converted state vector, u describes the reference value of the inverter output voltage as the measurement input, and y describes the AC and DC axis current as the measurement output. f(x,u) is the state space conversion function, and g(x) is the measurement function. Substituting the corresponding motor parameters into the high-order system, the formula is as follows:
[0066]
[0067] In the formula, I 2×2 represents the 2×2 identity matrix, O 2×4 Represents a 2×4 zero matrix.
[0068] Step (4), a permanent magnet drive motor parameter identification method based on double extended Kalman filter, using state observer EKF x and system parameter observer EKF θ Parallel computing to obtain the real-time flux linkage of the permanent magnet drive motor resistance Inductance And the disturbance voltage caused by the nonlinearity of the inverter Used to control permanent magnet drive motors and eliminate the influence of disturbance voltage on the accuracy of motor parameter identification.
[0069] When the two observers run in parallel, the parameter observer EKF θ The predicted value of Will be the state observer EKF x To calculate its predicted value Then the predicted value of the state observer Will be parameterized by the EKF filter θ Used to calculate parameter update values The system measurement input u at time k k Only the state observer EKF x For calculation, the system measurement output y at time k+1 k+1 It will be used by the two observers for calculation in the update phase. In this way, the two observers run alternately and provide each other with parameters that guarantee their full rank, which can ensure the observability of the parameters.
[0070] State Observer EKFx The system state space equations and parameter observer EKF θ The system state space equation is designed as follows:
[0071] State Observer EKF x The system state space equation is:
[0072]
[0073] Where: The state quantity x at time k k =[i d,k i q,k R s,k V dead,k ] T , x k+1 is the state quantity at time k+1, θ k is the parameter value at time k, u k is the d-axis and q-axis voltage measured at time k, and y k are the d-axis and q-axis currents measured at time k, F(·) is the state space transfer function of the system state space equation, and G(·) is the measurement function of the system state space equation; and Both are random zero-mean Gaussian white noise introduced by the discretization of the system state space equation of the state observer. The former represents the system noise of the state observer and is related to the system accuracy of the state observer. The latter represents the measurement noise of the state observer and is related to the measurement data accuracy of the PI controller.
[0074] Parameter Observer EKF θ The system spatial state equation is:
[0075]
[0076] Where: parameter value θ at time k k =[L s,k ψ f,k ] T ,y k To measure the output d and q axis current, and The random zero-mean Gaussian white noise is introduced by discretizing the system state space equations of the parameter observer.
[0077] Step (6), the operation process of the double extended Kalman filter observer is as follows:
[0078] Parameter Observer EKF θ predict:
[0079]
[0080] State Observer EKF x predict:
[0081]
[0082] State Observer EKF x renew:
[0083]
[0084] Parameter Observer EKF θ renew:
[0085]
[0086] in:
[0087] In the above formula: is the parameter estimate at time k, is the parameter prediction value at time k+1, is the estimated value of the state at time k, is the state prediction value at time k+1, is the Kalman gain of the state observer, is the Kalman gain of the parameter observer, A k is the Jacobian matrix of the function F(·), Indicates A k The transpose of is the state Jacobian matrix of the function G(·), is the parameter Jacobian matrix of the function G(·), is the estimated value of the measured output at time k, Q θ and Q x They are parameter observer EKF θ EKF with state observer x The system noise covariance matrix, and Q θ is a second-order diagonal matrix, Q x is a fourth-order diagonal matrix; is the parameter estimation error covariance matrix at time k, is the parameter estimation prediction error covariance matrix at time k+1, is the parameter estimation error covariance matrix at time k+1, is the state estimation error covariance matrix at time k, is the state estimation prediction error covariance matrix at time k+1, is the state estimation error covariance matrix at time k+1, R x Represents the state observer EKF xThe measurement noise covariance matrix of R is of order two; θ Denotes the parameter observer EKF θ The measurement noise covariance matrix of is of order two; I is the third-order identity matrix.
[0088] After continuous iterative calculation, the output x k With θ k The motor parameters in the output include: permanent magnet drive motor resistance inductance Magnet Link And the disturbance voltage
[0089] Step (7), the disturbance voltage caused by the inverter nonlinearity identified in real time Feedback compensation in the control system is expressed as follows:
[0090]
[0091] in are the compensation disturbance voltage components on the α and β axes respectively, and sign is the sign function.
[0092] The algorithm of the present invention is used to perform the experiment of permanent magnet drive motor parameter identification, and the current and its frequency domain analysis diagrams are shown in Figures 2(a), (b), and (c), and the parameter identification result diagrams are shown in Figures 3(a), (b), and (c). As shown in Figure 2(a), the noise burrs in the dq axis current are reduced, the steady-state waveform is smoother, the sinusoidality of the a phase current wave is better, and the current distortion caused by the nonlinear disturbance of the inverter is eliminated. As shown in Figures 2(b) and 2(c), the a phase current has a 5 th Harmonics and 7th th The amplitude of harmonics decreases, and the q-axis current is 6 th The amplitude of harmonics is reduced, indicating that the algorithm of the present invention reduces the amplitude of harmonics caused by the dead zone. As shown in Figures 3(a), (b), and (c), the algorithm of the present invention can converge to the reference value well in identifying the three parameters of stator resistance, inductance, and permanent magnet flux, and the maximum estimated error is about 5%, and the identification accuracy is relatively superior.
[0093] The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.
Claims
1. A method for identifying parameters of a permanent magnet drive motor based on double extended Kalman filtering, characterized in that: Considering the nonlinear factors of the inverter, a mathematical model of the permanent magnet drive motor in the dq two-phase rotating coordinate system is established; Using state observer EKF x and system parameter observer EKF θ Parallel computing to obtain the real-time flux linkage of the permanent magnet drive motor resistance Inductance And the disturbance voltage caused by the nonlinearity of the inverter Used to control permanent magnet drive motors; When the two observers run in parallel, the parameter observer EKF θ The predicted value of EKF x To calculate its predicted value Then the predicted value of the state observer EKF θ Used to calculate parameter update values The system measurement input u at time k k Only the state observer EKF x For calculation, the system measurement output y at time k+1 k+1 is used by both observers for calculation during the update phase.
2. The method for identifying parameters of a permanent magnet drive motor based on double extended Kalman filtering according to claim 1 is characterized in that: The state observer EKF x The system state space equation is: Where: The state quantity x at time k k =[i d,k i q,k R s,k V dead,k ] T ,i d 、i q is the current value in the dq two-phase rotating coordinate system at time k, x k+1 is the state quantity at time k+1, θ k is the parameter value at time k, u k is the d-axis and q-axis voltage measured at time k, and y k are the d-axis and q-axis currents measured at time k, F(·) is the state space transfer function of the system state space equation, and G(·) is the measurement function of the system state space equation; is the system noise of the state observer, is the measurement noise of the state observer.
3. The method for identifying parameters of a permanent magnet drive motor based on double extended Kalman filtering according to claim 2 is characterized in that: The parameter observer EKF θ The system spatial state equation is: Where: parameter value θ at time k k =[L s,k ψ f,k ] T , L s is the motor inductance at time k, ψ s is the rotor flux at time k, y k To measure the output d and q axis current, is the system noise of the parameter observer, is the measurement noise of the parameter observer.
4. The method for identifying parameters of a permanent magnet drive motor based on double extended Kalman filtering according to claim 3 is characterized in that: The operation process of the two observers is: Parameter Observer EKF θ predict: State Observer EKF x predict: State Observer EKF x renew: Parameter Observer EKF θ renew: in: in: is the parameter estimate at time k, is the parameter prediction value at time k+1, is the estimated value of the state at time k, is the state prediction value at time k+1, is the Kalman gain of the state observer, is the Kalman gain of the parameter observer, A k is the Jacobian matrix of the function F(·), Indicates A k The transpose of is the state Jacobian matrix of the function G(·), is the parameter Jacobian matrix of the function G(·), is the estimated value of the measured output at time k, Q θ and Q x They are parameter observer EKF θ EKF with state observer x The system noise covariance matrix is is the parameter estimation error covariance matrix at time k, is the parameter estimation prediction error covariance matrix at time k+1, is the parameter estimation error covariance matrix at time k+1, is the state estimation error covariance matrix at time k, is the state estimation prediction error covariance matrix at time k+1, is the state estimation error covariance matrix at time k+1, R x Represents the state observer EKF x The measurement noise covariance matrix, R θ Denotes the parameter observer EKF θ The measurement noise covariance matrix of , I is the third-order identity matrix.
5. The method for identifying parameters of a permanent magnet drive motor based on double extended Kalman filtering according to claim 1, characterized in that: The disturbance voltage caused by the inverter nonlinearity is identified in real time. Feedback compensation in the control system is expressed as: in, are the compensation disturbance voltage components on the α and β axes respectively, sign is the sign function, i a 、i b 、i c It is the current value in the abc three-phase natural coordinate system.
6. The method for identifying parameters of a permanent magnet drive motor based on double extended Kalman filtering according to claim 5 is characterized in that: The mathematical model is: Where: u d * 、u q * is the reference value of the inverter output voltage, V dead D is the disturbance voltage considering the nonlinear factors of the inverter. d , D q is the angle θ of the motor rotor e The periodic function, R s Motor stator resistance, i d 、i q is the current value in the dq two-phase rotating coordinate system, L s is the motor inductance, ψ s is the rotor flux.
7. The method for identifying parameters of a permanent magnet drive motor based on double extended Kalman filtering according to claim 2 or 6, characterized in that: The i d 、i q The Clark and Park transformation is used to transform i a 、i b 、i c and the motor rotor angle θ e Calculated by coordinate transformation.
Citation Information
Patent Citations
Rotation speed and parameter simultaneous identification method of induction machine
CN102055402A
Method for identifying electrical parameters of permanent magnet motor
CN114499315A
All-parameter observer based on Kalman filtering and all-parameter identification method
CN114744938A
Cited By
Doubly-fed induction motor parameter identification method based on adaptive extended Kalman filtering
CN120357789A
Parameter identification method of doubly-fed induction motor based on adaptive extended Kalman filter
CN120357789B
Model-free predictive current control method and system for permanent magnet synchronous motor
CN120415195A
