Collimated direct drive motor torque ripple suppression method

By utilizing the compensation strategy of internal sensor information and repeated observers, combined with model predictive control, the opposite torque amount is generated to suppress the torque fluctuation of the quasi-direct drive motor, which solves the problem of large torque fluctuations of the quasi-direct drive motor at the robot joints. problem, improving sports performance and force control accuracy.

CN118554803APending Publication Date: 2024-08-27UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410747271.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Quasi-direct drive motors have large torque fluctuations at robot joints, which affects high-precision force control and smooth motion performance, and traditional controllers cannot effectively suppress such fluctuations.

Method used

Using a compensation strategy based on internal sensor information and repeated observers, a model predictive control (MPC) current loop controller is established. Through cost function optimization, the opposite torque amount is generated to compensate for torque fluctuations and achieve the torque of a quasi-direct drive motor. Fluctuation suppression.

Benefits of technology

Without adding additional sensors, it can effectively reduce the torque fluctuation of quasi-direct drive motors, improve the smooth motion performance and precise force control performance of robot joints, overcome the shortcomings of low bandwidth of traditional controllers, and improve dynamic response capabilities and disturbance suppression. performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118554803A
    Figure CN118554803A
Patent Text Reader

Abstract

The invention discloses a method for suppressing torque ripple of a collimated direct drive motor. The method comprises the following steps: S1, acquiring motor information quantity for reducing the torque ripple of the collimated direct drive motor based on internal sensor information of the collimated direct drive motor and calculation derivative quantity of the collimated direct drive motor; s2, according to the motor information amount, based on a compensation strategy of a repeated observer, accurately calculating to obtain the torque ripple of the collimated direct drive motor; and S3, an MPC current loop controller is established, a cost function is set, torque ripple compensation current generated by the repetitive observer due to the compensation strategy is fed forward to the MPC current loop controller, the MPC current loop controller obtains current input, and the collimated direct drive motor generates a torque amount opposite to the torque ripple of the collimated direct drive motor. The method for suppressing the torque ripple of the collimated direct drive motor aims at reducing the torque ripple of the collimated direct drive motor at the joints of the robot, and has good popularization prospects and application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motors, and in particular to a method for suppressing torque fluctuations of a quasi-direct drive motor. Background Art

[0002] In recent years, quasi-direct drive motors have been widely used in the joints of quadruped, humanoid and other robots due to their advantages such as high torque density and high-bandwidth force control. However, studies have found that once there is a large torque fluctuation in the quasi-direct drive motor at the robot joint, it will directly affect the robot's high-precision force control and smooth position control performance. This is because in order to increase the torque density, quasi-direct drive motors widely use low-cost BLDC motors, which have non-sinusoidal electromotive force and large cogging torque. At the same time, the quasi-direct drive motor has a low-reduction ratio planetary reducer integrated inside, and the shaft misalignment caused by manufacturing tolerances will produce preload, thereby increasing the nonlinear friction torque fluctuation (planetary gearbox friction) that is difficult to model and compensate.

[0003] Torque ripple refers to the periodic fluctuation of torque when the joint output shaft rotates, which includes the cogging torque of the internal brushless motor and the friction torque fluctuation of the gear reducer. This is considered a problem in many robot applications. In servo control, due to the nonlinearity of the ripple, traditional proportional or proportional-integral controllers cannot perform precise positioning, and equipment such as robotic arms cannot achieve smooth movement due to the large torque fluctuation of the quasi-direct drive motor at the joint.

[0004] Therefore, in order to achieve smooth movement of robots equipped with quasi-direct drive motors, minimizing the torque fluctuation of the quasi-direct drive motors is one of the main concerns. Summary of the invention

[0005] In order to solve the problems in the background technology, the present invention provides a method for suppressing torque fluctuations of a quasi-direct drive motor, which aims to reduce the torque fluctuations of the quasi-direct drive motor at the joints of a robot, so as to solve the problem that the torque fluctuations of the quasi-direct drive motor at the joints of existing robots are large and directly affect the high-precision force control and smooth motion performance of the robot.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for suppressing torque fluctuation of a quasi-direct drive motor, which comprises the steps of:

[0007] S1: obtaining motor information for reducing torque fluctuation of the quasi-direct drive motor based on internal sensor information of the quasi-direct drive motor and its calculated derivatives;

[0008] S2: According to the motor information, based on the compensation strategy of the repeated observer, the torque fluctuation of the quasi-direct drive motor is accurately calculated;

[0009] S3: Establish an MPC current loop controller and set a cost function, feed forward the torque fluctuation compensation current generated by the repetitive observer due to the compensation strategy to the MPC current loop controller, the MPC current loop controller obtains current input and enables the quasi-direct drive motor to generate a torque opposite to the torque fluctuation of the quasi-direct drive motor.

[0010] In the above technical solution of the present invention, when the method for suppressing torque fluctuation of a quasi-direct drive motor is adopted, there is no need to add additional sensors in the traditional motor control system. It is only necessary to obtain the motor information for reducing the torque fluctuation of the quasi-direct drive motor based on the internal sensor information of the quasi-direct drive motor and its calculated derivatives, such as obtaining the motor angle, motor current and some of their calculated derivatives. Through modern control principles, the torque fluctuation of the quasi-direct drive motor can be accurately calculated and estimated.

[0011] It should be pointed out that when calculating and estimating the torque fluctuation of the quasi-direct drive motor, in order to improve the accuracy, the present invention also proposes a repetitive observer compensation strategy based on time angle, so as to accurately map and compensate the torque fluctuation caused by the cogging effect through the built-in position sensor signal of the quasi-direct drive motor, thereby achieving a smoother and more precise control effect.

[0012] Accordingly, in the present invention, model predictive control is introduced, an MPC current loop controller is established, and a cost function is set to optimize the construction of the objective function and its solution process, thereby effectively improving the dynamic response capability and disturbance suppression performance of the quasi-direct drive motor torque fluctuation suppression method.

[0013] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor described in the present invention, in step S1, the motor information includes: motor current, motor angle, motor speed and torque fluctuation value of the previous calculation cycle.

[0014] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor of the present invention, in step S1, it also includes: storing the torque fluctuation values ​​of the forward and reverse directions of the joint rotation direction of the last calculation cycle.

[0015] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor of the present invention, in step S2, in order to accurately calculate the torque fluctuation of the quasi-direct drive motor, a torque fluctuation dynamics equation is modeled to obtain a torque fluctuation model:

[0016]

[0017] Where J is the moment of inertia of the motor, is the motor speed; T e is the electromagnetic torque of the motor, B is the damping friction, T cogg is the cogging torque, T fris the reducer friction, ω m is the rotation speed of the motor, T l is the load torque.

[0018] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor described in the present invention, the motor electromagnetic torque T e for:

[0019]

[0020] Where p is the number of motor pole pairs, ψ f is the permanent magnet flux of the motor; i q is the q-axis current.

[0021] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor described in the present invention, in the above torque fluctuation model, the torque disturbance term T of the quasi-direct drive motor is d =T d =-T cogg -T fr sign(ω m )-T l ;

[0022] Expanded torque disturbance term T d The dimension is 1 to N and is modeled as:

[0023] T d (k+1)=a 33 T d (k)

[0024] T d (k) = [T d1 (k) T d2 (k)... T dV (k)] T

[0025]

[0026] Among them, a 33 represents the perturbation state transfer matrix; T d (k) represents the torque disturbance at time k; […] T Represents the conjugate transpose of “…”

[0027] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor of the present invention, in step S2, the angle of one rotation of the output shaft of the quasi-direct drive motor is divided into N parts, and a torque disturbance term T is established. d And the corresponding motor angle mapping relationship, take the mapping index as:

[0028]

[0029] Where i is the mapping index; θ l (k) is the output angle of the quasi-direct drive motor.

[0030] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor described in the present invention, in step S2, a state equation including torque fluctuation of the quasi-direct drive motor is established, and a repeated observer is constructed:

[0031]

[0032] Among them, the dimension of the repeated observer L is 1 to N dimensions; k represents the time; represents the perturbation state transfer matrix; a 21 represents the coefficient, and a 21 =T s / J;a 22 represents the coefficient, and a 22 =1-BT s / J;a 23 represents the coefficient, and a 23 =T s / J;T s is the sampling time; ω m (k+1) is the speed at time k+1; T e (k) is the torque at time k; a 23 T d (k) is the intermediate derivative value, which represents the calculated disturbance torque at time k; is the estimate of the disturbance torque at time k; is the estimated value of the disturbance torque at time k+1.

[0033] Furthermore, in the method for suppressing torque fluctuation of a quasi-direct drive motor described in the present invention, the repetitive observer is an iterative learning observer or an adaptive parameter repetitive observer.

[0034] Further, in the method for suppressing torque fluctuation of a quasi-direct drive motor of the present invention, in step S3, a cost function is designed based on the current and voltage of the quasi-direct drive motor and the deviation between the predicted value and the reference value or the actual value:

[0035]

[0036] in, is the minimum value of the cost function; Q c is the output weight matrix of the cost function; R c is the input weight matrix of the cost function; x j ref is the reference current value of the dq axis; x is the current; x j is the actual current value of the q axis; N pis the number of prediction steps; N c To control the number of steps; (…) T represents the conjugate transpose of “…”; Δu is the control quantity.

[0037] The beneficial effects of the present invention are as follows: the present invention provides a method for suppressing torque fluctuations of a quasi-direct-drive motor, which aims to reduce the torque fluctuations of the quasi-direct-drive motor at the joints of a robot to improve the smooth motion performance and precise force control performance of the robot joints. Without the need to add additional torque sensors, the method can suppress the electromagnetic and mechanical torque fluctuations of the quasi-direct-drive motor online to overcome the periodic magnetic changes of the quasi-direct-drive motor in the robot joints, and can overcome the periodic friction characteristic changes of the reducer in the robot joints.

[0038] It can be seen that the method for suppressing torque fluctuations of a quasi-direct-drive motor designed by the present invention can overcome the disadvantage of low bandwidth of the traditional proportional-integral PI controller and can improve the accuracy of the torque fluctuation observer, so as to reduce the torque fluctuation of the quasi-direct-drive motor as more effectively as possible, thereby greatly improving the use effect of the quasi-direct-drive motor, and has good promotion prospects and application value. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 The present invention is a flowchart of the steps of the method for suppressing torque fluctuation of a quasi-direct-drive motor in one embodiment.

[0040] Figure 2 This is an electrical control block diagram of torque fluctuation suppression of a quasi-direct drive motor torque fluctuation suppression method according to one embodiment of the present invention.

[0041] Figure 3 A control block diagram of a repetitive observer and a speed loop PI controller of a method for suppressing torque fluctuations of a quasi-direct drive motor according to an embodiment of the present invention.

[0042] Figure 4 A control block diagram of a repetitive observer of a method for suppressing torque fluctuations of a quasi-direct-drive motor according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0044] like Figure 1 As shown, in the present invention, the purpose of the present invention is to propose a method for suppressing torque fluctuations of a quasi-direct drive motor that can suppress electromagnetic and mechanical torque fluctuations of the quasi-direct drive motor online without adding an additional torque sensor, which specifically includes the following steps S1-S3:

[0045] S1: Based on the internal sensor information of the quasi-direct drive motor and its calculated derivatives, the motor information for reducing the torque fluctuation of the quasi-direct drive motor is obtained. The motor information may include: motor current, motor angle, motor speed and torque fluctuation value of the last calculation cycle.

[0046] S2: According to the motor information amount, based on the compensation strategy of the repeated observer, the torque fluctuation of the quasi-direct drive motor is accurately calculated.

[0047] See also Figure 2 It can be seen that in the present invention, the angle-based repeated observer compensation strategy utilizes the internal sensor information obtained in the above step S1 of the quasi-direct drive motor and some of their calculated derivatives to accurately map and calculate the torque fluctuation of the quasi-direct drive motor caused by the cogging effect.

[0048] In order to accurately calculate the torque fluctuation of the quasi-direct drive motor, the torque fluctuation dynamics equation modeling was carried out to obtain the torque fluctuation model:

[0049]

[0050] Where J is the moment of inertia of the motor, is the motor speed; T e is the electromagnetic torque of the motor, B is the damping friction, T cogg is the cogging torque, T fr is the reducer friction, ω m is the rotation speed of the motor, and Tl is the load torque.

[0051] The electromagnetic torque T of the above motor e for:

[0052]

[0053] Where p is the number of motor pole pairs, ψ f is the permanent magnet flux of the motor; i q is the q-axis current.

[0054] Accordingly, in the above torque fluctuation model, both the cogging torque and the friction fluctuation are included in the torque disturbance term T of the quasi-direct drive motor. d In the above equation, the torque disturbance term T d =T d =-T cogg -T fr sign(ω m )-T l ;

[0055] Expanded torque disturbance term T d The dimension is 1 to N and is modeled as:

[0056] Td (k+1)=a 33 T d (k)

[0057] T d (k) = [T d1 (k) T d2 (k)...T dV (k)] T

[0058]

[0059] Among them, a 33 represents the perturbation state transfer matrix; T d (k) represents the torque disturbance at time k; […] T Represents the conjugate transpose of “…”

[0060] In order to make the quasi-direct drive motor angle periodic and the above-mentioned expanded torque disturbance term T d The model can also be matched to the output shaft of the quasi-direct drive motor. The angle of one circle can be divided into N parts, and the torque disturbance term T is established. d And the corresponding motor angle mapping relationship, take the mapping index as:

[0061]

[0062] Where i is the mapping index; θ l (k) is the output angle of the quasi-direct drive motor.

[0063] Based on this, see Figure 3 and Figure 4 The repetitive state equation including the torque fluctuation of the quasi-direct drive motor is established and a repetitive observer is constructed:

[0064]

[0065] Among them, the dimension of the repeated observer L is 1 to N dimensions; k represents the time; represents the perturbation state transfer matrix; a 21 represents the coefficient, and a 21 =T s / J;a 22 represents the coefficient, and a 22 =1-BT s / J;a 23 represents the coefficient, and a 23 =T s / J;T s is the sampling time; ω m (k+1) is the speed at time k+1; ω m (k) is the speed at time k; Te (k) is the torque at time k; a 23 T d (k) is the calculated disturbance torque at time k; is the estimate of the disturbance torque at time k; is the estimated value of the disturbance torque at time k+1.

[0066] It should be noted that, in practical applications, the repeated observer can be an iterative learning observer or an adaptive parameter repeated observer, and the main performance parameters of the repeated learning observer can be simplified to a forgetting factor and a gain coefficient, which can be adjusted arbitrarily according to the desired observer performance while ensuring stability.

[0067] S3: Establish an MPC current loop controller and set a cost function, feed forward the torque fluctuation compensation current generated by the repetitive observer due to the compensation strategy to the MPC current loop controller, the MPC current loop controller obtains current input and enables the quasi-direct drive motor to generate a torque opposite to the torque fluctuation of the quasi-direct drive motor.

[0068] Among them, the quasi-direct drive motor used in the present invention still uses a permanent magnet brushless motor control system, and the permanent magnet brushless motor control system is implemented using field oriented control (FOC), which uses SVPWM to control the three-phase duty cycle of the inverter to increase voltage utilization; when the quasi-direct drive motor is applied to the joints of the robot, the position and speed loops can adopt the commonly used solutions of the robot, and the position loop and the speed loop are controlled using proportional control means, and the position loop, speed loop and torque feedforward instructions are accumulated as the desired current signal of the current loop.

[0069] It should be pointed out that in the present invention, the current loop controller of the quasi-direct drive motor adopts the MPC algorithm, that is, the MPC current loop controller, which can track the desired current within one control cycle without torque overshoot or undercurrent conditions, thereby enabling high-bandwidth torque control.

[0070] In the present invention, the repetitive observer feeds forward the torque fluctuation compensation current generated by the algorithm delay and sensor delay compensation strategy to the MPC current loop controller in step S2, so that the quasi-direct drive motor generates a torque opposite to the torque fluctuation of the quasi-direct drive motor, thereby eliminating the torque fluctuation of the joint motor.

[0071] Wherein, in step S3, in order to establish the MPC current loop controller, the discrete state equation of the quasi-direct drive motor is established:

[0072]

[0073] x(k+1)=Αc x(k)+B c u(k)+G c v(k)

[0074] y(k)=C c x(k)

[0075] x(k)=[i d i q ] T ,

[0076] u(k)=[u d u q ] T ,

[0077] v(k)=ψ f ,

[0078]

[0079] G c =[0-ω e T s / L q ],

[0080] Among them A c represents the state transfer matrix; B c represents the control matrix; C c represents the output matrix; G c represents the disturbance input matrix; x(k) represents the state vector; y(k) represents the output; T s Indicates sampling time; L d is the d-axis inductance; L q is the q-axis inductance; R represents resistance; ω e Represents electrical angular velocity.

[0081] Moreover, in order to obtain the optimal control input of the MPC current control loop, the cost function can be optimized, that is, the minimum value of the cost function can be obtained; therefore, according to the current and voltage of the quasi-direct drive motor and the deviation between the predicted value and the reference value or the actual value, the cost function can also be specifically designed as:

[0082]

[0083] in, is the minimum value of the cost function; Q c is the output weight matrix of the cost function; R c is the input weight matrix of the cost function; x j ref is the reference current value of the dq axis; x is the current; x j is the actual current value of the q axis; N pis the number of prediction steps; N c To control the number of steps; (…) T represents the conjugate transpose of “…”; Δu is the control quantity.

[0084] Furthermore, in practical applications, in order to actually implement this solution, the state constraints can be softened with the help of slack variable formulas to ensure the feasibility of the optimization problem. In order to solve the quadratic programming with linear constraints, any standard QP solver can also be used.

[0085] Accordingly, in order to facilitate disclosure and explanation of the method for suppressing torque fluctuation of a quasi-direct drive motor according to the present invention, the following embodiment 1 is also specifically disclosed:

[0086] Embodiment 1:

[0087] In this embodiment 1, the quasi-direct drive motor is specifically applied to the joints of the robot. In order to reduce the torque fluctuation of the quasi-direct drive motor at the joints of the robot and improve the smooth motion performance and precise force control performance of the robot, the following torque fluctuation suppression method is specifically used to suppress the torque of the quasi-direct drive motor. The quasi-direct drive motor torque fluctuation suppression method specifically includes the following steps S1-S3:

[0088] S1: The internal sensor information obtained by the internal sensor of the quasi-direct drive motor and some of their calculated derivatives are used to obtain the torque fluctuation information for reducing the quasi-direct drive motor; the torque fluctuation information includes: motor current, motor angle, motor speed and torque fluctuation value at the previous moment.

[0089] It should be noted that, in step S1, Figure 2 As shown, the motor current information obtained includes the three-phase stator current of the motor. The three-phase stator current of the motor can be sampled and transformed to the DQ0 rotating coordinate system through analog sampling and coordinate transformation. In this way, the torque of the motor is related to the motor current i of the Q axis. q Approximately linear relationship, so the motor electromagnetic torque T can be calculated based on the motor current information e .

[0090] Moreover, in actual applications, the motor angle information and motor speed information obtained by collecting the internal sensors of the quasi-direct drive motor are combined with the angle encoder signal measured inside the quasi-direct drive motor to obtain the angles of the motor end and the output end, and the joint rotation speed of the quasi-direct drive motor when applied to the robot joint can be calculated through filtering and differential algorithms.

[0091] Accordingly, in this embodiment, in the above step S1, a storage area mem with a length of N may be specifically allocated. for [i] (k+1) 、mem rev [i] (k+1); Among them, mem for [i] (k+1) and mem rev [i] (k+1) As a memory, it can store the torque fluctuation values ​​of the positive and reverse directions of the joint rotation in the previous calculation cycle respectively.

[0092] S2: Angle-based repeated observer compensation strategy, using the internal sensor information acquired by the internal sensor built into the quasi-direct drive motor acquired in step S1 above and some of their calculated derivatives to accurately map and calculate the torque fluctuation caused by the cogging effect.

[0093] like Figure 2 As shown, the data processing method of the quasi-direct drive motor torque fluctuation suppression method in one implementation is as follows.

[0094] In this embodiment, in the actual application of step S2, the disturbance torque stored in the flash can be updated to the memory mem for [i] (k) and mem rev [i] (k) and measure the encoder angle at time k.

[0095] Calculate the speed filter value ω m (k-11) can use the difference method, M method, MT method, Kalman filter or other filtering algorithms;

[0096] Using the expected torque T e ref As the torque value T e (k), that is, T e (k) = T e ref (k-1).

[0097] like Figure 4 As shown, the control block diagram of the repetitive observer of the quasi-direct drive motor torque fluctuation suppression method in one embodiment is implemented as follows:

[0098] The angle mapping i is calculated based on the motor encoder data according to the formula:

[0099]

[0100] Among them, the larger the value of N is, the higher the resolution of torque fluctuation is. However, the value of N is limited by the resolution of the encoder and the memory size of the controller and should not be too large.

[0101] The angle mapping i calculated in the previous step based on the motor encoder data is recorded as i prev .

[0102] During the operation of the method provided by the present invention, the angle mapping i is constantly compared to see if it changes. By comparing i and i prev , when i≠i prev , the angle of the motor changes:

[0103] (1) If the motor is rotating in the forward direction, read the last cycle record Update observation According to the formula:

[0104] mem for [i] (k+1) =Qmem for [i] (k) +L N a 23 {T d (k)-mem for [i] (k)}

[0105] Based on the above, record the results to

[0106] (2) If the motor is rotating in the reverse direction, read the last cycle record Update observation According to the formula:

[0107] mem for [i] (k+1) =Qmem for [i] (k) +L N a 23 {T d (k)-mem for [i] (k)}

[0108] Based on the above, record the results to mem rev [k+1].

[0109] Secondly, when the above process (1) or process (2) is completed, the angle mapping i is also updated to i prev .

[0110] Accordingly, the quasi-direct drive motor angle θ is predicted at the next moment m , calculate the output torque fluctuation suppression feedforward information At angle θ m Finally, store in memory mem for [N] and mem rev [N] to memory for the next cycle.

[0111] In detail, Figure 4 In, Te (k+1) is the torque at time k+1; a 23 T d (k) is the intermediate derivative value, which represents the calculated disturbance torque at time k; L is the disturbance observer gain matrix; Z -1 is a discrete delay device used to delay 1 time instant; K is an interference estimation matrix.

[0112] S3: Establish an MPC current loop controller and set a cost function to quickly and accurately track the torque fluctuation compensation current generated by the repeated observer in step S2 and fed forward to the MPC current loop controller due to the compensation strategy, such as Figure 3 As shown, P1(z) in the control block diagram of the method for suppressing torque fluctuation of the quasi-direct drive motor is an MPC current loop controller in this embodiment. The MPC current loop controller obtains current input so that the MPC current control loop can track the torque fluctuation compensation current mentioned above, and enables the quasi-direct drive motor to generate a torque opposite to the torque fluctuation of the quasi-direct drive motor, thereby eliminating the torque fluctuation of the quasi-direct drive motor.

[0113] In detail, Figure 3 In the equation, ω_des is the desired speed, ω m is the actual speed; 1 / (z-1) is a discrete integrator used to integrate the error; Kp is a proportional coefficient used to adjust the output of the proportional controller; K I is the integral coefficient, which is used to adjust the integrator output; T e _des is the expected electromagnetic torque; T e is the actual electromagnetic torque; P1(z) is the torque loop discrete system transfer function; P2(z) is the motor mechanical dynamic characteristic discrete system or transfer function; is the estimated value of the disturbance torque; K is the disturbance estimation matrix; is the estimated value of the state variable.

[0114] In this embodiment, in the actual application of step S3, first, the discrete time state equation of the quasi-direct drive motor is established. Assume that the state variable of the motor is x k , the input is u k , the output is y k , then the state equation can be expressed as:

[0115] x k+1 =Ax k +Bu k

[0116] y k =Cx k +Du k

[0117] in:

[0118] A is the state matrix;

[0119] B is the input matrix;

[0120] C is the output matrix;

[0121] D is the transfer matrix.

[0122] The core of MPC is to predict and control future behavior by optimizing the cost function. The cost function usually includes the weighted sum of the state error and the control input. In this embodiment, the cost function is designed as follows:

[0123]

[0124] in, To optimize the cost function of current performance and find its minimum value; Q c is the output weight matrix of the cost function; R c is the input weight matrix of the cost function; x j ref is the reference current value of the dq axis; x is the current; x j is the actual current value of the q axis; N p is the number of prediction steps; N c To control the number of steps; (…) T represents the conjugate transpose of “…”; Δu is the control quantity.

[0125] Furthermore, in practical applications, in order to actually implement this solution, a set of optimal control inputs is found by optimizing the cost function: input u at time k k , input u at time k+1 k+1 , input u at time k+N-1 k+N-1 , so that the cost function is minimized. This embodiment softens the state constraints with the help of the slack variable formula to ensure the feasibility of the optimization problem. In order to solve the quadratic programming of linear constraints, it is implemented by the open source quadratic programming solver (QP) OSQP (Operator Splitting Quadratic Program). Any standard QP solver such as qpOASES, Gurobi, MATLAB Optimization Toolbox, etc. can also be used.

[0126] Further, if Figure 2 As shown, the optimal control input solved by the MPC controller is input into the inverter drive board after dq-αβ vector transformation and space vector pulse width modulation SVPWM, generating a three-phase electric control quasi-direct drive motor, thereby reducing the torque fluctuation of the quasi-direct drive motor.

[0127] In detail, Figure 2In it, x_des is the desired position; T_des is the desired torque; ω_des is the desired speed; Kt is the torque coefficient; Kp is the proportional coefficient; Kd is the differential coefficient; SVPWM is space vector pulse width modulation.

[0128] In the above-mentioned embodiment 1 of the present invention, the effectiveness of the method for suppressing torque fluctuations of a quasi-direct-drive motor is demonstrated through the simulation of a single quasi-direct-drive motor and a two-degree-of-freedom monoped robot experiment. After the quasi-direct-drive motor to which the method for suppressing torque fluctuations of a quasi-direct-drive motor is applied is set at the joint of the robot, the robot's speed tracking performance is improved by 72.7%, and the trajectory tracking performance is improved by 58.47%.

[0129] Of course, in some other implementations, according to actual application requirements, when actually setting the above-mentioned quasi-direct drive motor, it is also possible to consider changing the reduction ratio of the quasi-direct drive reducer to other variable values.

[0130] Furthermore, the quasi-direct drive motor using the method for suppressing torque fluctuations of the quasi-direct drive motor designed by the present invention is not only applicable to robot joints, but can also be applied to technical fields such as electric vehicles, drones or electric ships.

[0131] To sum up, the above-mentioned method for suppressing torque fluctuations of a quasi-direct drive motor of the present invention can overcome the periodic magnetic changes in the quasi-direct drive motor, and can overcome the periodic friction characteristic changes in the reducer in the quasi-direct drive motor. It can overcome the shortcomings of low bandwidth of the traditional proportional integral PI controller, and can improve the accuracy of the torque fluctuation observer, so as to reduce the torque fluctuation as more effectively as possible. It has a better use effect and has good promotion prospects and application value.

[0132] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for suppressing torque fluctuation of a quasi-direct drive motor, characterized in that: Includes steps: S1: obtaining motor information for reducing torque fluctuation of the quasi-direct drive motor based on internal sensor information of the quasi-direct drive motor and its calculated derivatives; S2: According to the motor information, based on the compensation strategy of the repeated observer, the torque fluctuation of the quasi-direct drive motor is accurately calculated; S3: Establish an MPC current loop controller and set a cost function, feed forward the torque fluctuation compensation current generated by the repetitive observer due to the compensation strategy to the MPC current loop controller, the MPC current loop controller obtains current input and enables the quasi-direct drive motor to generate a torque opposite to the torque fluctuation of the quasi-direct drive motor.

2. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 1, characterized in that: In step S1, the motor information includes: motor current, motor angle, motor speed and torque fluctuation value of the last calculation cycle.

3. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 2, characterized in that: In step S1, it also includes: storing the torque fluctuation values ​​of the positive and reverse directions of the joint rotation direction in the last calculation cycle.

4. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 1, characterized in that: In step S2, in order to accurately calculate the torque fluctuation of the quasi-direct drive motor, a torque fluctuation dynamics equation is modeled to obtain a torque fluctuation model: Where J is the moment of inertia of the motor, is the motor speed; T e is the electromagnetic torque of the motor, B is the damping friction, T cogg is the cogging torque, T fr is the reducer friction, ω m is the rotation speed of the motor, T l is the load torque.

5. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 4, characterized in that: Motor electromagnetic torque T e for: Where p is the number of motor pole pairs, ψ f is the permanent magnet flux of the motor; i q is the q-axis current.

6. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 4, characterized in that: In the above torque fluctuation model, the torque disturbance term T of the quasi-direct drive motor is d =T d =-T cogg -T fr sign(ω m )-T l ; Expanded torque disturbance term T d The dimension is 1 to N and is modeled as: T d (k+1)=a 33 T d (k) T d (k)=[T d1 (k) T d2 (k)…T dN (k)] T Among them, a 33 represents the perturbation state transfer matrix; T d (k) represents the torque disturbance at time k; […] T Represents the conjugate transpose of "..." 7. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 6, characterized in that: In step S2, the angle of the output shaft of the quasi-direct drive motor is divided into N parts, and the torque disturbance term T is established. d And the corresponding motor angle mapping relationship, take the mapping index as: Where i is the mapping index; θ l (k) is the output angle of the quasi-direct drive motor at time k.

8. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 7, characterized in that: In step S2, the state equation including the torque fluctuation of the quasi-direct drive motor is established, and a repeated observer is constructed: Among them, the dimension of the repeated observer L is 1 to N dimensions; k represents the time; represents the perturbation state transfer matrix; a 21 represents the coefficient, and a 21 =T s / J;a 22 represents the coefficient, and a 22 =1-BT s / J;a 23 represents the coefficient, and a 23 =T s / J;T s is the sampling time; ω m (k+1) is the speed at time k+1; ω m (k) is the speed at time k; T e (k) is the torque at time k; a 23 T d (k) is the calculated disturbance torque at time k; is the estimate of the disturbance torque at time k; is the estimated value of the disturbance torque at time k+1.

9. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 1, characterized in that: The repeated observer is an iterative learning observer or an adaptive parameter repeated observer.

10. The method for suppressing torque fluctuation of a quasi-direct drive motor according to claim 1, characterized in that: In step S3, the cost function is set to: in, is the minimum value of the cost function; Q c is the output weight matrix of the cost function; R c is the input weight matrix of the cost function; x j ref is the reference current value of the dq axis; x is the current; x j is the actual current value of the q axis; N p is the number of prediction steps; N c To control the number of steps; (…) T represents the conjugate transpose of “…”; Δu is the control quantity.