Hub motor MTPA control method, device and equipment and storage medium

By constructing an MTPA calculation model based on the inductor's current deflection term optimization, the torque reference value is monitored in real time and the shaft current reference value is iteratively corrected, the accuracy and efficiency problems caused by inductor deflection error in traditional MTPA control technology are solved, and the high accuracy and dynamic performance improvement of the hub motor in new energy vehicles is achieved.

CN120546501AActive Publication Date: 2025-08-26TIANJIN POLYTECHNIC UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511038457.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-08-26
Estimated Expiration
2045-07-28

AI Technical Summary

Technical Problem

Traditional MTPA control technology ignores the dedirection error of the inductor to the current in the hub motor of new energy vehicles, resulting in a decrease in control accuracy and efficiency under large torque output conditions, affecting the vehicle's power performance.

Method used

A MTPA calculation model based on the optimization of the current deflection term of inductor is constructed. By monitoring the changes in the torque reference value, the axis current reference value is calculated and iteratively corrected in real time, and iteratively controls the iterative processing based on the error coefficient and preset limit value, the model accuracy and dynamic performance are improved.

Benefits of technology

It improves the control accuracy and dynamic performance of the hub motor under large torque changes, adapts to the complex road conditions of new energy vehicles, and improves the motor efficiency and vehicle power performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120546501A_ABST
    Figure CN120546501A_ABST
Patent Text Reader

Abstract

The invention provides a hub motor MTPA control method, device and equipment and a storage medium, and belongs to the technical field of motor control, and the method comprises the steps: constructing an MTPA calculation model; when the torque reference value changes, the shaft current reference value of the next control period is calculated through an MTPA calculation model; taking the next control period as a current control period, and calculating a partial derivative error and an error coefficient of the current control period; comparing the error coefficient of the current control period with a preset limit value, and performing iterative correction on the MTPA calculation model when the error coefficient of the current control period is greater than the preset limit value; and when the error coefficient of the current control period is smaller than or equal to a preset limit value, carrying out final correction on the MTPA calculation model. According to the hub motor MTPA control method, device and equipment and the storage medium, the control precision of the motor can be improved, and the dynamic performance can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of motor control technology, and in particular relates to a hub motor MTPA control method, device, equipment and storage medium. Background Art

[0002] In-wheel motors are core components for driving new energy vehicles. Among common motors, interior permanent magnet synchronous motors (IPMS) have gradually become the mainstream technology solution for in-wheel motors due to their high power density and dynamic response. When using IPMMS as in-wheel motors to drive new energy vehicles, they must achieve both higher torque output and faster torque response to accurately track torque commands from the vehicle controller, while also optimizing motor efficiency to increase vehicle range. Therefore, those skilled in the art typically employ maximum torque-to-current (MTPA) technology to control in-wheel motors.

[0003] In practical applications, new energy vehicles require high torque output under typical operating conditions such as climbing, rapid acceleration, and emergency avoidance. Complex road conditions also create dynamic and variable torque demands on the drive system. However, traditional MTPA control technology ignores the partial derivative error of the inductor on the current. This can cause tracking errors in MTPA control, resulting in poor MTPA control performance under sudden high-torque output conditions, which in turn affects vehicle dynamic performance.

[0004] To address this issue, those skilled in the art have chosen to inject current angle increments to obtain two operating points during the system adjustment process, thereby calculating the torque-to-current angle partial derivative term, and then compensating the calculated results to the MTPA calculation model. However, this solution still requires waiting for the current to stabilize before injecting the current angle increment. As a result, the partial derivative calculation lags behind actual operating conditions, affecting the MTPA point tracking speed. In addition, when the existing method introduces the compensation amount into the system, the secondary offset of the current angle will also trigger a cumulative effect of partial derivative errors, resulting in a reduction in MTPA control accuracy, which directly affects motor efficiency and vehicle dynamic performance. Summary of the Invention

[0005] In view of this, the present invention aims to propose a hub motor MTPA control method, device, equipment and storage medium to solve the above technical problems.

[0006] To achieve the above object, the technical solution created by the present invention is implemented as follows: In a first aspect, an embodiment of the present invention provides a method for controlling an in-wheel motor MTPA, comprising the following steps: S1. Construct an MTPA calculation model based on the optimization of the inductance-current partial derivative; S2, monitoring the torque reference value of the motor; S3. When a change in the torque reference value is detected, the control period in which the torque reference value changes is taken as the current control period; the shaft current reference value of the current control period and the partial derivative error of the previous control period are obtained; the motor is controlled according to the shaft current reference value of the current control period; the partial derivative error of the previous control period is set as the partial derivative error of the current control period, and the shaft current reference value of the next control period is calculated using the MTPA calculation model in step S1; S4. Take the next control cycle in step S3 as the current control cycle and execute steps S401-S404; S401, controlling the motor according to the shaft current reference value of the current control cycle; S402, calculating the partial derivative error of the current control period based on the shaft current reference value of the control period in which the torque reference value changes and the shaft current reference value of the current control period; S403, calculating the error coefficient of the current control cycle based on the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle; S404: Compare the error coefficient of the current control cycle with the preset limit. If the error coefficient of the current control cycle is greater than the preset limit, execute step S5; if the error coefficient of the current control cycle is less than or equal to the preset limit, execute step S6. S5. Iteratively correct the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, calculate the shaft current reference value of the next control cycle in step S404 using the iteratively corrected MTPA calculation model, and use the next control cycle in step S404 as the current control cycle, and return to step S401 for execution; S6. Perform a final correction on the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, and calculate the shaft current reference value of all subsequent control cycles through the final corrected MTPA calculation model. When each subsequent control cycle is used as the current control cycle, the motor is controlled according to the shaft current reference value of the current control cycle.

[0007] In a second aspect, an embodiment of the present invention further provides a hub motor MTPA control device, comprising: Model building module, used to build an MTPA calculation model based on the optimization of the inductance-current partial derivative; A monitoring module is used to monitor the torque reference value of the motor; An initial setting module is used to, when a change in the torque reference value is detected, set the control period in which the torque reference value changes as the current control period; obtain the shaft current reference value of the current control period and the partial derivative error of the previous control period; control the motor according to the shaft current reference value of the current control period; set the partial derivative error of the previous control period as the partial derivative error of the current control period, and calculate the shaft current reference value of the next control period using the MTPA calculation model in step S1; An iterative execution module, configured to use the next control cycle in step S3 as the current control cycle and execute steps S401 to S404; The iterative execution module includes: A motor control unit, configured to control the motor according to a shaft current reference value of a current control cycle; a first calculation unit, configured to calculate a partial derivative error of a current control period based on a shaft current reference value of a control period in which a torque reference value changes and a shaft current reference value of a current control period; A second calculation unit is used to calculate the error coefficient of the current control cycle based on the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle; a comparing unit, configured to compare the error coefficient of the current control cycle with a preset limit value, and execute step S5 when the error coefficient of the current control cycle is greater than the preset limit value, and execute step S6 when the error coefficient of the current control cycle is less than or equal to the preset limit value; an iterative correction module, configured to iteratively correct the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, calculate the shaft current reference value of the next control cycle in step S404 using the iteratively corrected MTPA calculation model, and use the next control cycle in step S404 as the current control cycle, and return to step S401 for execution; The subsequent control module is used to make a final correction to the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, and calculate the shaft current reference value of all subsequent control cycles through the final corrected MTPA calculation model, and control the motor according to the shaft current reference value of the current control cycle when each subsequent control cycle is used as the current control cycle.

[0008] In a third aspect, an embodiment of the present invention further provides a device, including: one or more processors; a storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the in-wheel motor MTPA control method provided in the above embodiment.

[0009] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to execute the in-wheel motor MTPA control method provided in the above embodiment.

[0010] Compared with the prior art, the in-wheel motor MTPA control method, device, equipment and storage medium created by the present invention have the following advantages: The present invention creates a hub motor MTPA control method, device, equipment and storage medium. The method can calculate the shaft current reference value of the next control cycle through the MTPA calculation model based on the optimization of the partial derivative of the current by the inductance. Therefore, the partial derivative error of the inductance on the current can be considered in the control process, thereby improving the model accuracy under large torque change conditions. Secondly, the method can directly trigger the calculation process in the control cycle where the torque reference value changes, avoiding the partial derivative calculation delay caused by the existing method of waiting for the current to stabilize before starting the calculation, increasing the calculation speed of the partial derivative error, and improving the dynamic performance of the MTPA. In addition, the method can also iteratively correct the MTPA calculation model, and can control the cyclic process of the iterative processing by comparing the error coefficient with the preset limit value, thereby improving the balance between the MTPA control accuracy and tracking speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings, which constitute part of the present invention, are intended to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are intended to explain the present invention and do not constitute an undue limitation of the present invention. In the accompanying drawings: Figure 1 A flowchart of the in-wheel motor MTPA control method according to the first embodiment of the present invention is created; Figure 2 This is a schematic diagram of the structure of the in-wheel motor MTPA control device according to the second embodiment of the present invention; Figure 3 This is a structural diagram of the device described in Example 3 of the present invention. DETAILED DESCRIPTION

[0012] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0013] Example 1 Figure 1 This is a flow chart of the in-wheel motor MTPA control method provided in the first embodiment of the present invention, as shown in FIG. Figure 1As shown, the hub motor MTPA control method specifically includes the following steps: S1. Construct an MTPA calculation model based on the optimization of the inductance-current partial derivative.

[0014] In the prior art, the mathematical expression of the torque of the interior permanent magnet synchronous motor with respect to the shaft current is: , In the above formula, is the torque, is the permanent magnet flux, is the number of motor pole pairs, and is the inductance value, and is the shaft current.

[0015] Taking the minimum current amplitude as the objective function and the above formula as the constraint condition, the Lagrangian method is used to find the extreme value of the objective function, and the following Lagrangian equation can be established: , In the above formula, is the current amplitude, is the Lagrange multiplier.

[0016] make The first-order partial derivative of is 0, ignoring the partial derivative of inductance to current, then:

[0017] Traditional MTPA calculation models are usually built based on the above equation. However, in actual applications, the inductance value will change with the changes in the shaft current. Therefore, the partial derivative of the inductance with respect to the current is not zero. Ignoring the partial derivative of the inductance with respect to the current will introduce model errors in the MTPA calculation model, especially under high-torque conditions, which will significantly reduce the control accuracy of the motor MTPA.

[0018] To solve this problem, this embodiment optimizes the existing MTPA calculation model based on the partial derivative error of the inductance on the current, thereby improving the control accuracy of the motor MTPA.

[0019] Specifically, when considering the partial conduction error of the inductor to the current, the following formula is available: , Where, and is the partial derivative error.

[0020] By solving the above formula, the MTPA calculation model based on the optimization of the inductance to the current partial derivative described in step S1 of this embodiment can be obtained, and its calculation formula is as follows: , Where A, F, and G are all calculation coefficients, and: , , , , , , , , , In the above formula, B, C, D, H, I, and J are all intermediate calculation quantities. and is the partial derivative error of the current control cycle, and is the shaft current reference value for the next control cycle, is the torque, is the permanent magnet flux, is the number of motor pole pairs, and is the inductance value.

[0021] The MTPA calculation model can be used to calculate the shaft current reference value for the next control cycle in the subsequent motor control process, combining the partial derivative error of the current control cycle. The motor can then be controlled based on the shaft current reference value to achieve higher control accuracy and adapt to the large torque output requirements of new energy vehicles under typical operating conditions such as climbing, rapid acceleration, or emergency avoidance.

[0022] S2. Monitor the torque reference value of the motor.

[0023] In actual use, when a new energy vehicle faces hill climbing, sudden acceleration, or emergency avoidance, the vehicle controller outputs a torque change command based on the operating conditions. Accordingly, upon receiving the torque change command, the in-wheel motor drive control system adjusts the torque reference value accordingly. In subsequent control cycles, the motor tracks the torque reference value, gradually ensuring that the actual motor output torque meets the torque reference value, thereby ensuring that the new energy vehicle meets the actual operating conditions.

[0024] Therefore, this embodiment monitors the motor's torque reference value in step S2. If the motor's torque reference value remains unchanged, the new energy vehicle is currently operating in a stable, normal operating state, and no additional control of the in-wheel motor is required. If the motor's torque reference value changes, it indicates that the new energy vehicle's operating requirements have changed, potentially necessitating special operating conditions such as hill climbing, rapid acceleration, or emergency maneuvering. In these cases, the in-wheel motor can be controlled using this method to improve motor control accuracy.

[0025] S3. When a change in the torque reference value is detected, the control period in which the torque reference value changes is taken as the current control period; the shaft current reference value of the current control period and the partial derivative error of the previous control period are obtained; the motor is controlled according to the shaft current reference value of the current control period; the partial derivative error of the previous control period is set as the partial derivative error of the current control period, and the shaft current reference value of the next control period is calculated by the MTPA calculation model in step S1.

[0026] When the torque reference value changes, it proves that the new energy vehicle has a special working condition requirement in the current control cycle of the motor. Since the digital control system has inherent delays and timing requirements in the actual motor control process, the shaft current reference value of the current control cycle needs to be calculated by the previous control cycle. To ensure the continuity and effectiveness of the motor control, this embodiment will obtain the shaft current reference value of the current control cycle calculated in the previous control cycle, so as to control the motor in the current control cycle. At the same time, this embodiment should also obtain the partial derivative error of the previous control cycle in the current control cycle in which the torque reference value changes, and set the partial derivative error of the previous control cycle as the partial derivative error of the current control cycle, so that the MTPA calculation model in step S1 can accurately calculate the shaft current reference value of the next control cycle in which the torque reference value changes while considering the influence of the partial derivative error, thereby achieving higher accuracy in the actual control effect of the motor in the next control cycle.

[0027] S4. Take the next control cycle in step S3 as the current control cycle and execute steps S401-S404.

[0028] As the motor control process progresses, the control cycle will change. Therefore, the next control cycle in step S3 should be used as the current control cycle, and then steps S401-S404 should be executed, so that the MTPA calculation model in step S1 is iteratively updated in each subsequent control cycle of the motor control process to improve the dynamic performance of the motor MTPA control.

[0029] S401 : Control the motor according to the shaft current reference value of the current control cycle.

[0030] In the current control cycle of each motor, the shaft current reference value of the current control cycle calculated from the previous control cycle is used to control the motor. As an optional implementation of this embodiment, controlling the motor according to the shaft current reference value of the current control cycle may specifically include the following steps: The shaft current reference value and the actual shaft current of the motor are input into the PI controller, and the output result of the PI controller is subjected to feedforward decoupling compensation and controller delay compensation. Then, coordinate transformation is performed to obtain the voltage under the α-β axis as the input of the space vector pulse width modulation strategy. Six pulse signals are obtained to control the operation of the two-level three-phase voltage source inverter and drive the motor.

[0031] S402 : Calculate the partial derivative error of the current control period according to the shaft current reference value of the control period in which the torque reference value changes and the shaft current reference value of the current control period.

[0032] In this embodiment, the partial derivative error of the current control period is calculated based on the shaft current reference value of the control period in which the torque reference value changes and the shaft current reference value of the current control period. The following formula can be used: , in: , , In the above formula, and is the partial derivative error of the current control cycle, and is the shaft current reference value of the current control cycle, and is the shaft current reference value during the control period in which the torque reference value changes, and is and The inductance value under the combination, and is and The inductance value under the combination, and is and The inductance value of the combination.

[0033] It should be noted that, in the prior art, the calculation of the partial derivative error is usually completed based on the actual shaft current. However, since the calculation process requires obtaining the inductance value under different actual shaft current combinations, and the inductance value generated by the actual shaft current combination under different control cycles is difficult to obtain simultaneously through the online parameter identification algorithm. Therefore, in order to avoid the harmonic content and current sampling error in the actual shaft current from having an undue impact on the calculation accuracy, this embodiment will perform calculations based on the shaft current reference value, and obtain the inductance value under different shaft current reference value combinations through the inductance lookup table method, so as to accurately calculate the partial derivative error of the current control cycle. Accordingly, the partial derivative error of the current control cycle obtained by calculation can be used to iteratively correct the MTPA calculation model in step S1 in subsequent steps, so that the shaft current reference value of the next control cycle is more accurate.

[0034] S403: Calculate the error coefficient of the current control cycle according to the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle.

[0035] Since each iterative correction of the MTPA calculation model in step S1 through the partial derivative error will cause the shaft current reference value of the next control cycle to change, in order to reasonably control the number of iterative corrections of the MTPA calculation model in step S1 so that the shaft current reference value of the motor can gradually stabilize while ensuring control accuracy during the control process, this embodiment will calculate the error coefficient of the current control cycle based on the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle.

[0036] Specifically, the error coefficient of the current control cycle can be calculated using the following formula: , In the above formula, is the error coefficient of the current control cycle, and is the partial derivative error of the current control cycle, and is the partial derivative error of the previous control cycle.

[0037] S404. Compare the error coefficient of the current control cycle with the preset limit. When the error coefficient of the current control cycle is greater than the preset limit, execute step S5. When the error coefficient of the current control cycle is less than or equal to the preset limit, execute step S6.

[0038] After the error coefficient calculation of the current control cycle is completed, the error coefficient of the current control cycle can be compared with the preset limit, and based on the comparison result, it is determined whether the MTPA calculation model in step S1 needs to be iteratively corrected in subsequent control cycles.

[0039] When the error coefficient of the current control cycle is greater than the preset limit, it is proved that the iterative correction of the MTPA calculation model in step S1 by the partial derivative error of the current control cycle is insufficient to produce sufficient control accuracy, and step S5 should be executed at this time.

[0040] When the error coefficient of the current control cycle is less than or equal to the preset limit, it is proved that iteratively correcting the MTPA calculation model in step S1 through the partial derivative error of the current control cycle can produce sufficient control accuracy, and step S6 should be executed at this time.

[0041] As an example and not a limitation, the preset limit in this embodiment can be set to 0.05. The staff can also adjust the preset limit according to actual needs so that the size of the preset limit matches the actual hardware conditions of the hub motor and the new energy vehicle.

[0042] S5. Iteratively correct the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, calculate the shaft current reference value of the next control cycle in step S404 using the iteratively corrected MTPA calculation model, and use the next control cycle in step S404 as the current control cycle, and return to execute step S401.

[0043] For example, assuming that the torque reference value changes in the Xth control cycle, and after the motor is controlled by the hub motor MTPA control method provided by this embodiment, the error coefficient of the X+1th control cycle is greater than the preset limit, then the torque reference value should be changed according to and Replace the MTPA calculation model and , thereby completing the iterative correction of the MTPA calculation model, so that the shaft current reference value of the X+2 control cycle can be calculated through the iteratively corrected MTPA calculation model and Then the X+2th control cycle is taken as the new current control cycle, and the process returns to step S401 until the process is completed in step S404. Compare with the preset limit to determine whether it is necessary to and The MTPA calculation model is iteratively revised again.

[0044] S6. Perform a final correction on the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, and calculate the shaft current reference value of all subsequent control cycles through the final corrected MTPA calculation model. When each subsequent control cycle is used as the current control cycle, the motor is controlled according to the shaft current reference value of the current control cycle.

[0045] For example, assuming that the torque reference value changes in the Xth control cycle, and after the motor is controlled by the hub motor MTPA control method provided by this embodiment, the error coefficient of the X+5th control cycle is less than or equal to the preset limit, then the torque reference value should be changed according to and Replace the MTPA calculation model and , thus completing the final correction of the MTPA calculation model. In each subsequent control cycle, the corresponding shaft current reference value is calculated using the final corrected MTPA calculation model, and the motor is subsequently controlled using the stable and accurate shaft current reference value.

[0046] It should be noted that when the hub motor MTPA control method provided in this embodiment is used to control the motor, if the torque reference value is detected to have changed again in a certain control cycle, the process should directly return to step S3 so that the subsequent control of the motor meets the new torque reference value change requirements.

[0047] This embodiment provides a method for controlling in-wheel hub motors (MTPA). This method uses an MTPA calculation model optimized based on the inductance-induced partial derivative of current to calculate the shaft current reference value for the next control cycle. This allows for the control process to account for the partial derivative error of the inductance-induced current. The method also directly triggers the calculation process during control cycles where the torque reference value changes, avoiding partial derivative calculation delays. Furthermore, the iterative processing loop is controlled by comparing the error coefficient with a preset limit. This improves the control accuracy and dynamic performance of the MTPA, adapting to the high-torque-variation operating conditions required by in-wheel hub motor control for new energy vehicles.

[0048] Because this embodiment controls the iterative correction loop of the MTPA calculation model by comparing a preset limit with the error coefficient, the preset limit is inversely proportional to the MTPA control accuracy and directly proportional to the MTPA point tracking speed. In actual applications, the preset limit can be flexibly adjusted to meet the specific operating conditions of new energy vehicles, thereby regulating the relationship between control accuracy and tracking speed, improving the adaptability of the in-wheel motor control effect to actual application scenarios.

[0049] To achieve the above purpose, this embodiment may further include the following steps before executing step S404: The change in the torque reference value is obtained, and when the change in the torque reference value is greater than a preset change threshold, the preset limit value is increased, and the increase in the preset limit value is proportional to the change in the torque reference value.

[0050] Accordingly, step S404 can be specifically optimized as follows: The error coefficient of the current control cycle is compared with the increased preset limit. When the error coefficient of the current control cycle is greater than the increased preset limit, step S5 is executed. When the error coefficient of the current control cycle is less than or equal to the increased preset limit, step S6 is executed.

[0051] When the change in the torque reference value exceeds a preset change threshold, it indicates that the new energy vehicle is experiencing a special operating condition with a sudden change in torque demand (for example, when leaving a dangerous area or encountering an obstacle in the direction of travel, requiring the vehicle to accelerate or brake suddenly). In this special operating condition, control accuracy is far less important than tracking speed. Therefore, the preset limit can be increased to reduce the number of iterative adjustments to the MTPA calculation model, ensuring that the motor quickly tracks the changes in the torque reference value during the control process and promptly meeting the special operating conditions encountered by the new energy vehicle. Accordingly, since a larger change in the torque reference value indicates a higher tracking speed requirement for the current special operating condition, increasing the preset limit in this special operating condition can ensure that the increase in the preset limit is proportional to the change in the torque reference value, further improving the match between the increased preset limit and the special operating condition.

[0052] In addition, after increasing the preset limit value based on special working conditions, the present embodiment may further include the following steps: During the execution of steps S401-S404, the real-time torque of the motor is continuously monitored. When the difference between the real-time torque and the change result of the torque reference value in step S3 is less than the preset difference threshold, the preset limit value in step S404 is restored to the initial value.

[0053] When the difference between the real-time torque and the change result of the torque reference value is less than the preset difference threshold, it proves that the torque output by the current new energy vehicle hub motor can basically meet the application requirements of special working conditions. At this time, the preset limit can be restored to the initial value, thereby improving the control accuracy of the motor in subsequent control cycles.

[0054] Example 2 Figure 2 FIG. 1 is a schematic structural diagram of the in-wheel motor MTPA control device provided in the second embodiment of the present invention. Figure 2 As shown, the hub motor MTPA control device includes: A model building module 210 is used to build an MTPA calculation model based on the optimization of the inductance to the current partial derivative; A monitoring module 220 is used to monitor the torque reference value of the motor; The initial setting module 230 is configured to, upon detecting a change in the torque reference value, determine the control cycle in which the torque reference value changes as the current control cycle; obtain the shaft current reference value of the current control cycle and the partial derivative error of the previous control cycle; control the motor according to the shaft current reference value of the current control cycle; set the partial derivative error of the previous control cycle as the partial derivative error of the current control cycle, and calculate the shaft current reference value of the next control cycle using the MTPA calculation model in step S1; The iterative execution module 240 is configured to use the next control cycle in step S3 as the current control cycle and execute steps S401 to S404; The iterative execution module 240 includes: The motor control unit 241 is used to control the motor according to the shaft current reference value of the current control cycle; A first calculation unit 242 is configured to calculate a partial derivative error of a current control period based on the shaft current reference value of the control period in which the torque reference value changes and the shaft current reference value of the current control period; A second calculation unit 243 is configured to calculate an error coefficient of a current control cycle based on the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle; The comparing unit 244 is configured to compare the error coefficient of the current control cycle with a preset limit value, and execute step S5 when the error coefficient of the current control cycle is greater than the preset limit value, and execute step S6 when the error coefficient of the current control cycle is less than or equal to the preset limit value; The iterative correction unit 250 is configured to iteratively correct the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, calculate the shaft current reference value of the next control cycle in step S404 using the iteratively corrected MTPA calculation model, and use the next control cycle in step S404 as the current control cycle, and return to step S401 for execution; The subsequent control module 260 is used to make a final correction to the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, and calculate the shaft current reference value of all subsequent control cycles through the final corrected MTPA calculation model, and when each subsequent control cycle is used as the current control cycle, control the motor according to the shaft current reference value of the current control cycle.

[0055] The in-wheel motor MTPA control device provided in this embodiment can take into account the partial derivative error of the inductance on the current during the control process, avoid the resulting partial derivative calculation delay, and reasonably control the iterative cycle process of the MTPA calculation model. Therefore, it can improve the control accuracy and dynamic performance of the MTPA and adapt to the large torque change working conditions required by the in-wheel motor control of new energy vehicles.

[0056] Based on the technology of the above embodiment, the iterative execution module further includes: a preset limit value increasing unit, configured to obtain a change in the torque reference value, and increase the preset limit value when the change in the torque reference value is greater than a preset change value threshold, wherein the increase in the preset limit value is proportional to the change in the torque reference value; The preset limit value recovery unit is used to continuously monitor the real-time torque of the motor during the execution of steps S401-S404, and when the difference between the real-time torque and the change result of the torque reference value in step S3 is less than the preset difference threshold, restore the preset limit value in step S404 to the initial value.

[0057] The in-wheel motor MTPA control device provided in the embodiment of the present invention can execute the in-wheel motor MTPA control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0058] Example 3 Figure 3 A schematic diagram of the structure of a device provided in Example 3 of the present invention. Figure 3 A block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 3 The device 12 shown is only an example and should not bring any limitation to the functionality and scope of use of the embodiments of the present invention.

[0059] like Figure 3 As shown, device 12 is implemented as a general-purpose computing device. Components of device 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including system memory 28 and processing unit 16).

[0060] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0061] Device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by device 12, including volatile and non-volatile media, removable and non-removable media.

[0062] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 3 Not shown, usually called a "hard drive"). Although Figure 3 Although not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), as well as an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0063] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methodologies of the embodiments described herein.

[0064] Device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with device 12, and / or any device that enables device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). This communication may occur via input / output (I / O) interface 22. Furthermore, device 12 may communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of device 12 via bus 18. It should be understood that, although not shown, other hardware and / or software modules may be used in conjunction with device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0065] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28 , such as implementing the in-wheel motor MTPA control method provided in an embodiment of the present invention.

[0066] Example 4 The fourth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute the in-wheel motor MTPA control method as described in any of the above embodiments.

[0067] The computer storage medium of the embodiments of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0068] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0069] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0070] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0071] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A hub motor MTPA control method, characterized in that The steps include: S1. Construct an MTPA calculation model based on the optimization of the inductance-current partial derivative; S2, monitoring the torque reference value of the motor; S3. When a change in the torque reference value is detected, the control period in which the torque reference value changes is taken as the current control period; the shaft current reference value of the current control period and the partial derivative error of the previous control period are obtained; the motor is controlled according to the shaft current reference value of the current control period; the partial derivative error of the previous control period is set as the partial derivative error of the current control period, and the shaft current reference value of the next control period is calculated using the MTPA calculation model in step S1; S4. Take the next control cycle in step S3 as the current control cycle and execute steps S401-S404; S401, controlling the motor according to the shaft current reference value of the current control cycle; S402, calculating the partial derivative error of the current control period based on the shaft current reference value of the control period in which the torque reference value changes and the shaft current reference value of the current control period; S403, calculating the error coefficient of the current control cycle based on the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle; S404: Compare the error coefficient of the current control cycle with the preset limit. If the error coefficient of the current control cycle is greater than the preset limit, execute step S5; if the error coefficient of the current control cycle is less than or equal to the preset limit, execute step S6. S5. Iteratively correct the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, calculate the shaft current reference value of the next control cycle in step S404 using the iteratively corrected MTPA calculation model, and use the next control cycle in step S404 as the current control cycle, and return to step S401 for execution; S6. Perform a final correction on the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, and calculate the shaft current reference value of all subsequent control cycles through the final corrected MTPA calculation model. When each subsequent control cycle is used as the current control cycle, the motor is controlled according to the shaft current reference value of the current control cycle.

2. The in-wheel motor MTPA control method according to claim 1, characterized in that: The calculation formula of the MTPA calculation model based on the optimization of the inductance to the current partial derivative is as follows: , Where A, F, and G are all calculation coefficients, and: , , , , , , , , , In the above formula, B, C, D, H, I, and J are all intermediate calculation quantities. and is the partial derivative error of the current control cycle, and is the shaft current reference value for the next control cycle, is the torque, is the permanent magnet flux, is the number of motor pole pairs, and is the inductance value.

3. The in-wheel motor MTPA control method according to claim 1, characterized in that: The motor is controlled based on the shaft current reference value of the current control cycle, including: The shaft current reference value and the actual shaft current of the motor are input into the PI controller, and the output result of the PI controller is subjected to feedforward decoupling compensation and controller delay compensation. Then, coordinate transformation is performed to obtain the voltage under the α-β axis as the input of the space vector pulse width modulation strategy. Six pulse signals are obtained to control the operation of the two-level three-phase voltage source inverter and drive the motor.

4. The in-wheel motor MTPA control method according to claim 1, characterized in that: The partial derivative error of the current control period is calculated based on the shaft current reference value of the control period in which the torque reference value changes and the shaft current reference value of the current control period, using the following formula: , in: , , In the above formula, and is the partial derivative error of the current control cycle, and is the shaft current reference value of the current control cycle, and is the shaft current reference value during the control period in which the torque reference value changes, and is and The inductance value under the combination, and is and The inductance value under the combination, and is and The inductance value of the combination.

5. The in-wheel motor MTPA control method according to claim 1, characterized in that: The error coefficient of the current control cycle is calculated based on the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle, using the following formula: , In the above formula, is the error coefficient of the current control cycle, and is the partial derivative error of the current control cycle, and is the partial derivative error of the previous control cycle.

6. The in-wheel motor MTPA control method according to claim 1, characterized in that: Before step S404, the in-wheel motor MTPA control method further includes: Obtaining a change in the torque reference value, and when the change in the torque reference value is greater than a preset change threshold, increasing the preset limit value, wherein the increase in the preset limit value is proportional to the change in the torque reference value; Accordingly, step S404 includes: The error coefficient of the current control cycle is compared with the increased preset limit. When the error coefficient of the current control cycle is greater than the increased preset limit, step S5 is executed. When the error coefficient of the current control cycle is less than or equal to the increased preset limit, step S6 is executed.

7. The in-wheel motor MTPA control method according to claim 6, characterized in that: After increasing the preset limit value, the in-wheel motor MTPA control method further includes: During the execution of steps S401-S404, the real-time torque of the motor is continuously monitored. When the difference between the real-time torque and the change result of the torque reference value in step S3 is less than the preset difference threshold, the preset limit value in step S404 is restored to the initial value.

8. A hub motor MTPA control device, characterized in that: include: Model building module, used to build an MTPA calculation model based on the optimization of the inductance-current partial derivative; A monitoring module is used to monitor the torque reference value of the motor; An initial setting module is used to, when a change in the torque reference value is detected, set the control period in which the torque reference value changes as the current control period; obtain the shaft current reference value of the current control period and the partial derivative error of the previous control period; control the motor according to the shaft current reference value of the current control period; set the partial derivative error of the previous control period as the partial derivative error of the current control period, and calculate the shaft current reference value of the next control period using the MTPA calculation model in step S1; An iterative execution module, configured to use the next control cycle in step S3 as the current control cycle and execute steps S401 to S404; The iterative execution module includes: A motor control unit, configured to control the motor according to a shaft current reference value of a current control cycle; a first calculation unit, configured to calculate a partial derivative error of a current control period based on a shaft current reference value of a control period in which a torque reference value changes and a shaft current reference value of a current control period; A second calculation unit is used to calculate the error coefficient of the current control cycle based on the partial derivative error of the current control cycle and the partial derivative error of the previous control cycle; a comparing unit, configured to compare the error coefficient of the current control cycle with a preset limit value, and execute step S5 when the error coefficient of the current control cycle is greater than the preset limit value, and execute step S6 when the error coefficient of the current control cycle is less than or equal to the preset limit value; an iterative correction module, configured to iteratively correct the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, calculate the shaft current reference value of the next control cycle in step S404 using the iteratively corrected MTPA calculation model, and use the next control cycle in step S404 as the current control cycle, and return to step S401 for execution; The subsequent control module is used to make a final correction to the MTPA calculation model in step S1 according to the partial derivative error of the current control cycle in step S404, and calculate the shaft current reference value of all subsequent control cycles through the final corrected MTPA calculation model, and control the motor according to the shaft current reference value of the current control cycle when each subsequent control cycle is used as the current control cycle.

9. A device, characterized in that The device comprises: one or more processors; a storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the in-wheel motor MTPA control method according to any one of claims 1 to 7.

10. A storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the in-wheel motor MTPA control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Synchronous motor maximum torque current ratio control method for eliminating virtual signal injection method error

    CN114944804A

  • MTPA prediction control method of permanent magnet synchronous motor

    CN116094400A

  • Permanent magnet synchronous motor constant parameter MTPA prediction control method and system

    CN117978030A

  • High magnetic circuit saturation permanent magnet synchronous motor MTPA control method based on partial derivative term compensation

    CN119865089A