Motor calibration method and device

The maximum torque value and optimal working points of motor calibration are quickly filtered through global search algorithms and two-dimensional interpolation algorithms, which solves the problem of inefficiency of traditional calibration methods, and realizes efficient motor control data acquisition and saves resources.

CN119010690APending Publication Date: 2024-11-22领科汇智科技有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411107952.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Traditional motor calibration methods require a lot of time and resources, consume manpower and bench resources, and are inefficient.

Method used

By obtaining the current sweep point dataset, searching for MTPA and MTPV trajectories, combining global search algorithms and two-dimensional interpolation algorithms, quickly filtering out the maximum torque value and the best working point, and automatically processing the data to obtain the control data required by the motor control algorithm. .

Benefits of technology

It realizes rapid acquisition of motor control data, improves data processing accuracy, saves manpower and material resources, and significantly improves project efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010690A_ABST
    Figure CN119010690A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of motors, and particularly relates to a motor calibration method and device. The motor calibration method comprises the following steps: S1, acquiring a current sweep point data set of a to-be-calibrated motor and corresponding torque and dq-axis voltage; s2, searching a maximum torque value on each current circle, namely an MTPA track; s3, searching an intersection point of each flux linkage ellipse and the maximum current circle, namely a weak magnetic first-area track, searching a maximum torque value on each flux linkage ellipse, namely a weak magnetic second-area track, and determining and combining the intersection points of the weak magnetic first-area track and the weak magnetic second-area track, namely an MTPV track; and S4, searching the intersection point of each flux linkage ellipse and each torque value in the envelope lines of the MTPA track and the MTPV track, namely, the optimal working point. According to the method, control data required by a motor control algorithm can be quickly obtained, the data processing precision can meet actual requirements, meanwhile, the investment of a large amount of manpower and material resources is saved, and the project efficiency is improved to a great extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of motors, and in particular relates to a motor calibration method and device. Background Art

[0002] Permanent magnet synchronous motor is the main power actuator of new energy vehicles, and the efficiency of the motor system has an important impact on the energy consumption and cruising range of the whole vehicle. For the existing control algorithms of automotive permanent magnet synchronous motors, the maximum torque current ratio control algorithm (MTPA) is generally used below the motor base speed, and MTPV control is used above the motor base speed. Maximum torque current ratio control is also called stator current minimum control, that is, under a given torque, the stator current is minimized by optimally allocating the AC and DC axis current components, and the output torque is maximized under unit current. MTPV control above the base speed generally increases the negative d-axis current to further increase the motor speed, and at the same time, the stator current is minimized and the target torque is output by optimally allocating the AC and DC axis current components.

[0003] MTPA control below the base speed and MTPV control above the base speed generally obtain motor performance data through motor calibration to obtain the best AC and DC axis current distribution. The traditional MTPA calibration method is to give different dq current combinations on each current circle and find the maximum torque on the corresponding current circle. The traditional MTPV calibration method is to give different dq current combinations that satisfy the voltage utilization rate of 1 at each speed above the base speed and find the maximum torque at the corresponding speed. The above calibration method requires about 2 weeks of manpower and bench resources, which is a very time-consuming and resource-intensive task. Summary of the invention

[0004] The present invention aims to provide a motor calibration method and device to solve the technical problem that traditional calibration methods require a lot of time and resources.

[0005] In order to solve the above technical problems, a first aspect of the present invention provides a motor calibration method, the motor calibration method comprising:

[0006] S1, obtain the current sweep point data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage, where id is the d axis current of each step at a preset speed below the motor base speed, and iq is the q axis current of each step corresponding to each d axis current;

[0007] S2, searching for the first torque value on each current circle according to the current scanning point data set (id, iq) and the corresponding torque, and screening out the maximum torque value among all the first torque values, which is the MTPA trajectory;

[0008] S3, according to the current scanning point data set (id, iq) and the corresponding dq axis voltage, obtain each flux linkage ellipse, search for the intersection of each flux linkage ellipse and the maximum current circle, which is the weak magnetic zone 1 trajectory, search for the second torque value on each flux linkage ellipse, screen out the maximum torque value among all the second torque values, which is the weak magnetic zone 2 trajectory, determine the intersection of the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory, merge the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory, which is the MTPV trajectory;

[0009] S4, searching for the intersection of each flux ellipse and each torque value within the envelope of the MTPA trajectory and the MTPV trajectory, which is the optimal working point.

[0010] Optionally, in the motor calibration method as described above, in step S1, a current sweep point data set (id, iq) and corresponding torque and dq axis voltage of the motor to be calibrated are obtained, including:

[0011] S11, selecting a speed below the motor base speed as a preset speed, and giving an initial d-axis current id at the preset speed;

[0012] S12, the q-axis current iq is given in steps from 0 to the maximum value, and the torque and dq-axis voltage corresponding to each group (id, iq) are recorded;

[0013] S13, a new d-axis current id is given in steps from the initial d-axis current id, and step S12 is repeated until the d-axis current id reaches a maximum value, completing the current point sweep in the current circle in the second quadrant.

[0014] Optionally, in the motor calibration method as described above, in step S1, a current sweep is performed using a motor calibration test bench to obtain a current sweep data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage.

[0015] Optionally, in the motor calibration method as described above, step S2 uses a global search algorithm and a two-dimensional interpolation algorithm to obtain the MTPA trajectory, specifically:

[0016] Assume that the current circle Is is given in steps from the initial current circle amplitude IsRef to the maximum current circle amplitude Imax. Then in the global search algorithm, the search range of X1 on the d axis is (0-(-Is)), and the search range of X2 on the q axis is (0-Is). (X1, X2) is on the current circle Is in each round.

[0017] A global search algorithm is used to search for the first torque values ​​corresponding to all dq-axis currents on each round of current circle Is, and the maximum torque value among all the first torque values ​​is screened out, which is the MTPA trajectory;

[0018] During the (X1, X2) search process, if there is data that is not in the current sweep point data set (id, iq), the corresponding first torque value is obtained by interpolating the current sweep point data set (id, iq) and the corresponding torque through a two-dimensional interpolation algorithm.

[0019] Optionally, in the motor calibration method as described above, in step S3, a global search algorithm and a two-dimensional interpolation algorithm are used to obtain the magnetic field weakening zone 1 trajectory, specifically:

[0020] Assume that the flux ellipse Psi is given in steps from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax. Then in the global search algorithm, the search range of X1 on the d-axis is (0-(-Imax)), the search range of X2 on the q-axis is (0-Imax), and (X1, X2) is on the maximum current circle amplitude Imax;

[0021] A global search algorithm is used to search for the flux linkage values ​​corresponding to all dq axis currents on the maximum current circle, and the flux linkage values ​​are compared with the flux linkage ellipse Psi of each round. The minimum difference is found and considered to be the intersection of the flux linkage ellipse Psi and the maximum current circle, which is the weak magnetic zone 1 trajectory.

[0022] In the process of searching the flux linkage value at (X1, X2), if there is data that is not in the current sweep point data set (id, iq), the corresponding flux linkage value is obtained by interpolation using the current sweep point data set (id, iq) and the corresponding flux linkage ellipse through a two-dimensional interpolation algorithm.

[0023] Optionally, in the motor calibration method as described above, in step S3, a global search algorithm and a two-dimensional interpolation algorithm are used to obtain the weak magnetic field zone 2 trajectory, specifically:

[0024] Assume that the magnetic flux ellipse Psi is given step by step from the initial magnetic flux ellipse amplitude PsiRef to the maximum magnetic flux ellipse amplitude Psimax. Then in the global search algorithm, the search range of X1 on the d-axis is (0-(-Imax)), and the search range of X2 on the q-axis is (0-Imax). (X1, X2) is on the magnetic flux ellipse Psi in each round.

[0025] A global search algorithm is used to search for the second torque values ​​corresponding to all dq axis currents on each round of flux ellipse Psi, and the maximum torque value among all the second torque values ​​is screened out, which is the weak magnetic zone II trajectory;

[0026] During the (X1, X2) search process, if there is data that is not in the current sweep point data set (id, iq), the corresponding second torque value is obtained by interpolating the current sweep point data set (id, iq) and the corresponding torque through a two-dimensional interpolation algorithm.

[0027] Optionally, in the motor calibration method as described above, in step S3, merging the weak magnetic field zone 1 trajectory and the weak magnetic field zone 2 trajectory comprises:

[0028] The weak magnetic zone 1 track on the right side of the intersection is retained, and the weak magnetic zone 2 track on the lower side of the intersection is retained for merging.

[0029] Optionally, in the motor calibration method as described above, step S4 uses a global search algorithm to obtain the optimal operating point, specifically:

[0030] Assume that the flux ellipse Psi is given in steps from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax. Under the given flux ellipse Psi, a torque Torq is given in each round. The torque Torq is given in steps from the initial torque TorqRef to the maximum torque value TorqMax. Then, in the global search algorithm, the search range of X1 of the d-axis is (0-(-Imax)), and the search range of X2 of the q-axis is (0-Imax). (X1, X2) is on the flux ellipse Psi of each round.

[0031] A global search algorithm is used to search for the third torque value corresponding to all dq-axis currents on each round of flux ellipse Psi, and the point with the smallest difference with all given torques Torq is found. This point is considered to be the intersection of the flux ellipse Psi and the torque value, which is the optimal working point.

[0032] Optionally, in the motor calibration method as described above, steps S2 to S4 are completed in a preset matlab software, in which a global search algorithm and a two-dimensional interpolation algorithm are pre-set.

[0033] In order to solve the above technical problems, a second aspect of the present invention provides a motor calibration device, the motor calibration device comprising:

[0034] The current scanning module is used to obtain the current scanning point data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage, where id is the d axis current at a preset speed below the motor base speed, and iq is the q axis current of each step corresponding to each d axis current;

[0035] A module for searching MTPA trajectory is used to search for the first torque value on each current circle according to the current scanning point data set (id, iq) and the corresponding torque, and screen out the maximum torque value among all the first torque values, which is the MTPA trajectory;

[0036] A module for searching the MTPV trajectory is used to obtain each flux linkage ellipse according to the current scanning point data set (id, iq) and the corresponding dq axis voltage, search for the intersection of each flux linkage ellipse and the maximum current circle, which is the weak magnetic field zone 1 trajectory, search for the second torque value on each flux linkage ellipse, screen out the maximum torque value among all the second torque values, which is the weak magnetic field zone 2 trajectory, determine the intersection of the weak magnetic field zone 1 trajectory and the weak magnetic field zone 2 trajectory, and merge the weak magnetic field zone 1 trajectory and the weak magnetic field zone 2 trajectory to obtain the MTPV trajectory;

[0037] Finding the best working point is used to search for the intersection of each flux ellipse and each torque value within the envelope of the MTPA trajectory and the MTPV trajectory, which is the best working point.

[0038] The positive progressive effect of the present invention is that the present invention can quickly obtain the control data required by the motor control algorithm, the data processing accuracy of the present invention can meet actual needs, and at the same time save a lot of human and material resources, thereby greatly improving project efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The disclosure of the present invention will become more apparent with reference to the accompanying drawings. It should be understood that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In the drawings:

[0040] Figure 1 A schematic diagram of a current scanning result of the present invention;

[0041] Figure 2 A MTPA trajectory diagram of the present invention;

[0042] Figure 3 A weak magnetic field zone 1 trajectory diagram of the present invention;

[0043] Figure 4 A weak magnetic second zone trajectory diagram of the present invention;

[0044] Figure 5 A MTPA and MTPV trajectory diagram of the present invention;

[0045] Figure 6 It is an optimal working point trajectory diagram inside the envelope of the present invention. DETAILED DESCRIPTION

[0046] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0047] It should be noted that the following embodiments and features therein may be combined with each other if there is no conflict.

[0048] In the description of the present invention, it should be noted that directional words such as the terms "outside", "middle", "inside", "outside", etc., which indicate directions and positional relationships, are based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and cannot be understood as limiting the specific protection scope of the present invention.

[0049] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features. Therefore, the definition of "first" and "second" features can explicitly or implicitly include one or more of the features. In the description of the present invention, "several" and "a number" mean two or more, unless otherwise clearly and specifically defined.

[0050] Reference Figure 1 The present invention provides a motor calibration method, which includes the following specific steps:

[0051] S1, current scanning: obtain the current scanning point data set (id, iq) of the motor to be calibrated and the corresponding torque and dq-axis voltage, where id is the d-axis current at a preset speed below the motor base speed, and iq is the q-axis current of each step corresponding to each d-axis current.

[0052] In some embodiments, in step S1, a current sweep point data set (id, iq) and corresponding torque and dq axis voltage of the motor to be calibrated are obtained, including:

[0053] S11, selecting a speed below the motor base speed as a preset speed, and giving an initial d-axis current id at the preset speed.

[0054] S12, the q-axis current iq is given in steps from 0 to the maximum value, and the torque and dq-axis voltage corresponding to each group (id, iq) are recorded.

[0055] The step interval in this step can be determined according to actual conditions, such as 1A, 5A, 10A, 15A or 20A, etc., preferably 10A.

[0056] For a d-axis current id, it corresponds to a set of q-axis currents that are given in steps from 0 to the maximum value and the recorded torque and dq-axis voltage.

[0057] S13, a new d-axis current id is given in steps from the initial d-axis current id, and step S12 is repeated until the d-axis current id reaches a maximum value, completing the current point sweep in the current circle in the second quadrant.

[0058] The step interval in this step can be determined according to actual conditions, such as 1A, 5A, 10A, 15A or 20A, etc., preferably 10A.

[0059] Through steps S11 to S13 of the present invention, the following can be obtained: Figure 1 The current scanning point data within the current circle of the second phenomenon shown in .

[0060] Through the current sweep data set (id, iq) recorded in step S1 and the corresponding torque Te, a two-dimensional data table of (id, iq)-Te can be obtained.

[0061] The voltage vector Us can be obtained by recording the square sum of the dq axis voltages (ud, uq). The ratio of the voltage Us to the rotation speed is the magnetic flux Pi, where the rotation speed is the preset rotation speed of step S11. Therefore, a two-dimensional data table of (id, iq)-Pi can be obtained.

[0062] In some embodiments, step S1, a current sweep is performed using a motor calibration test bench to obtain a current sweep data set (id, iq) of the motor to be calibrated and the corresponding torque Te and dq axis voltage (ud, uq).

[0063] The test bench for motor calibration adopts existing technology, which will not be described in detail here.

[0064] S2, search for MTPA trajectory: according to the current scan point data set (id, iq) and the corresponding torque, search for the first torque value on each current circle, and filter out the maximum torque value among all the first torque values, which is the MTPA trajectory.

[0065] In this step, the MTPA trajectory searches for the set of maximum torque points on all current circles.

[0066] Among them, the relationship between the current circle Is and the d-axis current id and the q-axis current iq is as follows:

[0067] id 2 +iq 2 =Is 2

[0068] In some embodiments, in step S2, a global search algorithm and a two-dimensional interpolation algorithm are used to obtain the MTPA trajectory.

[0069] The principle of the global search algorithm is as follows: the algorithm sets the search range (lb, ub), starting point (x0) and constraint conditions (nonlcon) of the problem. For all X1, X2 that meet these requirements, find the point that minimizes the value of the objective function (objective) (fmincon), which is the solution to the problem.

[0070] Therefore, the MTPA trajectory is obtained by using the global search algorithm and the two-dimensional interpolation algorithm:

[0071] (1) Assume that the current circle Is is given in steps from the initial current circle amplitude IsRef to the maximum current circle amplitude Imax.

[0072] The step interval in this step can be determined according to actual conditions, for example, 10A, 20A, 30A, 40A, 50A or 60A.

[0073] (2) Set the search range of the global search algorithm: the search range of X1 on the d-axis is (0-(-Is)), and the search range of X2 on the q-axis is (0-Is).

[0074] (3) Set the search starting point: Both X1 and X2 start searching from 0.

[0075] (4) Set constraints: (X1, X2) on the current circle Is in each round.

[0076] (5) Setting the objective function: Using the current scan point data set (id, iq) calibrated in step S1 combined with two-dimensional interpolation, obtain all the torque values ​​on the current circle Is, find the maximum torque value Tmax among all the torque values, which is the MTPA trajectory point of the current circle Is. At the same time, the corresponding dq axis current (X1, X2) can be obtained simultaneously based on the maximum torque value Tmax.

[0077] The MTPA trajectory points of all wheel current circles Is form the MTPA trajectory, such as Figure 2 As shown, it is through Figure 1 The obtained current sweep point data set (id, iq) and the corresponding torque, and the obtained MTPA trajectory curve.

[0078] During the (X1, X2) search process, if there is data that is not in the two-dimensional data table of (id, iq)-Te, the corresponding first torque value is obtained by interpolation using the two-dimensional data table of (id, iq)-Te through a two-dimensional interpolation algorithm, so that all dq current combinations on the current circle and the corresponding torque values ​​can be found.

[0079] S3, find the MTPV trajectory: according to the current scanning point data set (id, iq) and the corresponding dq axis voltage, obtain each flux ellipse, search for the intersection of each flux ellipse and the maximum current circle, which is the weak magnetic zone 1 trajectory, search for the second torque value on each flux ellipse, screen out the maximum torque value among all the second torque values, which is the weak magnetic zone 2 trajectory, determine the intersection of the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory, merge the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory, which is the MTPV trajectory.

[0080] In this step, the MTPV trajectory is divided into two parts: weak magnetic zone 1 and weak magnetic zone 2. Weak magnetic zone 1 corresponds to the set of intersections of the maximum current circle and the flux linkage ellipse; weak magnetic zone 2 corresponds to the set of points on all flux linkage ellipses that can output the maximum torque.

[0081] In some embodiments, for the weak magnetic zone 1, in step S3, a global search algorithm and a two-dimensional interpolation algorithm are used to obtain the weak magnetic zone 1 trajectory, specifically:

[0082] (1) Assume that the flux ellipse Psi is given in steps from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax.

[0083] The step interval in this step can be determined according to the search granularity.

[0084] (2) Set the search range of the global search algorithm: the search range of X1 on the d-axis is (0-(-Imax)), and the search range of X2 on the q-axis is (0-Imax).

[0085] (3) Set the search starting point: Both X1 and X2 start searching from 0.

[0086] (4) Set the constraint condition: (X1, X2) is at the maximum current circle amplitude Imax.

[0087] (5) Setting the objective function: Using the current scan point data set (id, iq) calibrated in step S1 combined with two-dimensional interpolation, obtain the flux linkage values ​​corresponding to all dq-axis currents on the maximum current circle amplitude Imax, compare the flux linkage values ​​with each round of flux linkage ellipse Psi, and find the minimum difference value, which is considered to be the intersection of the flux linkage ellipse Psi and the maximum current circle.

[0088] The intersection of all wheel flux ellipses Psi and the maximum current circle forms a weak magnetic zone 1 trajectory, such as Figure 3 As shown, it is through Figure 1 The obtained current scanning point data set (id, iq) and the corresponding magnetic flux, and the obtained trajectory curve of the weak magnetic zone 1 on the maximum current circle.

[0089] In the process of searching for the flux linkage value of (X1, X2), if there is data that is not in the two-dimensional data table of (id, iq)-Pi, the two-dimensional interpolation algorithm is used to interpolate the two-dimensional data table of (id, iq)-Pi to obtain the flux linkage value corresponding to (X1, X2), so that all dq current combinations on the maximum current circle and the corresponding flux linkage values ​​can be found.

[0090] In some embodiments, for the weak magnetic zone 2, in step S3, a global search algorithm and a two-dimensional interpolation algorithm are used to obtain the weak magnetic zone 2 trajectory, specifically:

[0091] (1) Assume that the flux ellipse Psi is given in steps from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax.

[0092] The step interval in this step can be determined according to the search granularity.

[0093] (2) Set the search range of the global search algorithm: the search range of X1 on the d-axis is (0-(-Imax)), and the search range of X2 on the q-axis is (0-Imax).

[0094] (3) Set the search starting point: Both X1 and X2 start searching from 0.

[0095] (4) Set constraints: (X1, X2) on the magnetic flux ellipse Psi in each round.

[0096] (5) Setting the objective function: Using the current scan point data set (id, iq) calibrated in step S1 combined with two-dimensional interpolation, obtain the second torque value corresponding to all dq-axis currents on the flux ellipse Psi, and find the maximum torque value Tmax among all the second torque values, which is the weak magnetic zone II trajectory point on the flux ellipse Psi.

[0097] All the weak magnetic zone 2 trajectory points of the wheel flux ellipse Psi form a weak magnetic zone 2 trajectory, such as Figure 4 As shown, Figure 1 The obtained current scanning point data set (id, iq) and the corresponding torque, and the obtained weak magnetic zone 2 trajectory curve.

[0098] During the (X1, X2) search process, if there is data that is not in the two-dimensional data table of (id, iq)-Te, the corresponding second torque value is obtained by interpolation using the two-dimensional data table of (id, iq)-Te through a two-dimensional interpolation algorithm, thereby finding all dq current combinations on the magnetic flux ellipse and the corresponding torque values.

[0099] In some embodiments, in step S3, the weak magnetic zone 1 track and the weak magnetic zone 2 track are merged, including: retaining the weak magnetic zone 1 track on the right side of the intersection and retaining the weak magnetic zone 2 track on the bottom side of the intersection for merging.

[0100] Since the weak magnetic zone 1 trajectory is the set of intersections of all magnetic flux ellipses and the maximum current circle, and the weak magnetic zone 2 trajectory is the set of maximum torque values ​​that can be output by all magnetic flux ellipses, the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory use the same set of magnetic flux ellipses. Therefore, there is an intersection between the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory. Since the set point of the two trajectories is known, it is easy to find the common intersection point (X1, X2) in the two trajectories. The trajectory to the right of the intersection point (X1, X2) in the weak magnetic zone 1 and the trajectory below the intersection point (X1, X2) in the weak magnetic zone 2 are retained, which is the MTPV trajectory.

[0101] Will Figure 3 The weak magnetic field zone trajectory and Figure 4 The weak magnetic field two-zone trajectory in is merged to obtain Figure 5 The MTPV trajectory curve shown is the two merged curves on the left. Figure 5 The right side curve in Figure 2 MTPA trajectory curve in.

[0102] S4, find the best working point: within the envelope of the MTPA trajectory and the MTPV trajectory, search for the intersection of each flux ellipse and each torque value, which is the best working point.

[0103] There are a large number of operating points within the MTPA and MTPV envelopes, and the optimal operating point needs to be selected based on the principle of outputting torque with minimum current.

[0104] In some embodiments, step S4 uses a global search algorithm to obtain the optimal working point, specifically:

[0105] (1) Assume that the flux ellipse Psi is given in steps from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax. Under the given flux ellipse Psi, a torque Torq is given in each round. The torque Torq is given in steps from the initial torque TorqRef to the maximum torque value TorqMax.

[0106] The step intervals in this step can be determined according to the search granularity.

[0107] (2) Set the search range of the global search algorithm: the search range of X1 on the d-axis is (0-(-Imax)), and the search range of X2 on the q-axis is (0-Imax).

[0108] (3) Set the search starting point: Both X1 and X2 start searching from 0.

[0109] (4) Set constraints: (X1, X2) on the magnetic flux ellipse Psi in each round.

[0110] (5) Setting the objective function: Using the current scan point data set (id, iq) calibrated in step S1 combined with two-dimensional interpolation, obtain the third torque value corresponding to all dq-axis currents on the flux ellipse Psi, and find the point with the smallest difference with all given torques Torq. This point is considered to be the intersection of the flux ellipse Psi and the torque value, which is the optimal working point.

[0111] The intersection of all wheel flux ellipses Psi and all wheel torque values ​​forms several optimal working points. Figure 6 As shown, “*” represents the optimal working point, and there are several optimal working points inside the MTPA and MTPV envelopes.

[0112] In some embodiments, steps S2 to S4 are completed in a preset matlab software, in which a global search algorithm and a two-dimensional interpolation algorithm are pre-set.

[0113] After the motor bench calibration work is completed, the global search algorithm and the two-dimensional interpolation algorithm in the matlab software are used to process the data to quickly obtain the MTPA and MTPV envelope trajectory and the optimal working point. Therefore, the present invention only needs to use the motor bench for one day to perform current scanning, and the rest of the work can be separated from the bench. The calibration data is automatically processed using the matlab script to obtain the MTPA and MTPV envelope and the internal optimal working point, which greatly saves the time and energy required for motor calibration.

[0114] The global search algorithm and the two-dimensional interpolation algorithm are existing algorithms and will not be described in detail here.

[0115] An embodiment of the present invention further provides a motor calibration device, the motor calibration device comprising:

[0116] The current scanning module is used to obtain the current scanning point data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage, where id is the d axis current of each step at a preset speed below the motor base speed, and iq is the q axis current of each step corresponding to each d axis current;

[0117] The module for searching the MTPA trajectory is used to search the first torque value on each current circle according to the current scanning point data set (id, iq) and the corresponding torque, and screen out the maximum torque value among all the first torque values, which is the MTPA trajectory;

[0118] The module for finding the MTPV trajectory is used to obtain each flux ellipse according to the current scanning point data set (id, iq) and the corresponding dq axis voltage, search for the intersection of each flux ellipse and the maximum current circle, which is the weak magnetic zone 1 trajectory, search for the second torque value on each flux ellipse, screen out the maximum torque value among all the second torque values, which is the weak magnetic zone 2 trajectory, determine the intersection of the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory, and merge the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory to obtain the MTPV trajectory;

[0119] Find the best working point, which is used to search for the intersection of each flux ellipse and each torque value within the envelope of the MTPA trajectory and the MTPV trajectory, which is the best working point.

[0120] The present invention is described in detail above in conjunction with the embodiments of the accompanying drawings. A person skilled in the art can make various variations of the present invention according to the above description. Therefore, some details in the embodiments should not be construed as limiting the present invention, and the present invention shall be protected by the scope defined by the attached claims.

Claims

1. A motor calibration method, characterized in that: The motor calibration method comprises: S1, obtain the current sweep point data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage, where id is the d axis current of each step at a preset speed below the motor base speed, and iq is the q axis current of each step corresponding to each d axis current; S2, searching for the first torque value on each current circle according to the current scanning point data set (id, iq) and the corresponding torque, and screening out the maximum torque value among all the first torque values, which is the MTPA trajectory; S3, according to the current scanning point data set (id, iq) and the corresponding dq axis voltage, obtain each flux linkage ellipse, search for the intersection of each flux linkage ellipse and the maximum current circle, which is the weak magnetic zone 1 trajectory, search for the second torque value on each flux linkage ellipse, screen out the maximum torque value among all the second torque values, which is the weak magnetic zone 2 trajectory, determine the intersection of the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory, merge the weak magnetic zone 1 trajectory and the weak magnetic zone 2 trajectory, which is the MTPV trajectory; S4, searching for the intersection of each flux ellipse and each torque value within the envelope of the MTPA trajectory and the MTPV trajectory, which is the optimal working point.

2. The motor calibration method according to claim 1, characterized in that: In step S1, the current sweep point data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage are obtained, including: S11, selecting a speed below the motor base speed as a preset speed, and giving an initial d-axis current id at the preset speed; S12, the q-axis current iq is given in steps from 0 to the maximum value, and the torque and dq-axis voltage corresponding to each group (id, iq) are recorded; S13, a new d-axis current id is given in steps from the initial d-axis current id, and step S12 is repeated until the d-axis current id reaches a maximum value, completing the current point sweep in the current circle in the second quadrant.

3. The motor calibration method according to claim 2, characterized in that: Step S1, using a motor calibration test bench to perform current scanning, to obtain a current scanning data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage.

4. The motor calibration method according to claim 1, characterized in that: Step S2, using a global search algorithm and a two-dimensional interpolation algorithm to obtain the MTPA trajectory, specifically: Assume that the current circle Is is given in steps from the initial current circle amplitude IsRef to the maximum current circle amplitude Imax. Then in the global search algorithm, the search range of X1 on the d axis is 0 to -Is, and the search range of X2 on the q axis is 0 to Is. X1 and X2 are on the current circle Is in each round. A global search algorithm is used to search for the first torque values ​​corresponding to all dq-axis currents on each round of current circle Is, and the maximum torque value among all the first torque values ​​is screened out, which is the MTPA trajectory; During the search process of X1 and X2, if there is data that is not in the current sweep point data set (id, iq), the corresponding first torque value is obtained by interpolating the current sweep point data set (id, iq) and the corresponding torque through a two-dimensional interpolation algorithm.

5. The motor calibration method according to claim 1, characterized in that: In step S3, a global search algorithm and a two-dimensional interpolation algorithm are used to obtain the weak magnetic field zone 1 trajectory, specifically: Assume that the flux ellipse Psi is given step by step from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax. Then in the global search algorithm, the search range of X1 on the d-axis is 0 to -Imax, and the search range of X2 on the q-axis is 0 to Imax. X1 and X2 are on the maximum current circle amplitude Imax. A global search algorithm is used to search for the flux linkage values ​​corresponding to all dq axis currents on the maximum current circle, and the flux linkage values ​​are compared with the flux linkage ellipse Psi of each round. The minimum difference is found and considered to be the intersection of the flux linkage ellipse Psi and the maximum current circle, which is the weak magnetic zone 1 trajectory. During the process of searching the flux linkage value by X1 and X2, if there is data not in the current sweep point data set (id, iq), the corresponding flux linkage value is obtained by interpolation using the current sweep point data set (id, iq) and the corresponding flux linkage ellipse through a two-dimensional interpolation algorithm.

6. The motor calibration method according to claim 1, characterized in that: In step S3, a global search algorithm and a two-dimensional interpolation algorithm are used to obtain the weak magnetic zone II trajectory, specifically: Assume that the flux ellipse Psi is given step by step from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax. Then in the global search algorithm, the search range of X1 on the d-axis is 0 to -Imax, and the search range of X2 on the q-axis is 0 to Imax. X1 and X2 are on the flux ellipse Psi in each round. A global search algorithm is used to search for the second torque values ​​corresponding to all dq axis currents on each round of flux ellipse Psi, and the maximum torque value among all the second torque values ​​is screened out, which is the weak magnetic zone II trajectory; During the search process of X1 and X2, if there is data that is not in the current sweep point data set (id, iq), the corresponding second torque value is obtained by interpolating the current sweep point data set (id, iq) and the corresponding torque through a two-dimensional interpolation algorithm.

7. The motor calibration method according to claim 1, characterized in that: In step S3, the weak magnetic zone 1 track and the weak magnetic zone 2 track are merged, including: The weak magnetic zone 1 track on the right side of the intersection is retained, and the weak magnetic zone 2 track on the lower side of the intersection is retained for merging.

8. The motor calibration method according to claim 1, characterized in that: Step S4, using a global search algorithm to obtain the optimal working point, specifically: Assume that the flux ellipse Psi is given in steps from the initial flux ellipse amplitude PsiRef to the maximum flux ellipse amplitude Psimax. Under the given flux ellipse Psi, a torque Torq is given in each round. The torque Torq is given in steps from the initial torque TorqRef to the maximum torque value TorqMax. Then, in the global search algorithm, the search range of X1 of the d-axis is 0 to -Imax, and the search range of X2 of the q-axis is 0 to Imax. X1 and X2 are on the flux ellipse Psi of each round. A global search algorithm is used to search for the third torque value corresponding to all dq-axis currents on each round of flux ellipse Psi, and the point with the smallest difference with all given torques Torq is found. This point is considered to be the intersection of the flux ellipse Psi and the torque value, which is the optimal working point.

9. The motor calibration method according to any one of claims 1 to 8, characterized in that: Steps S2 to S4 are completed in a preset matlab software, in which a global search algorithm and a two-dimensional interpolation algorithm are pre-set.

10. A motor calibration device, characterized in that: The motor calibration device comprises: The current scanning module is used to obtain the current scanning point data set (id, iq) of the motor to be calibrated and the corresponding torque and dq axis voltage, where id is the d axis current at a preset speed below the motor base speed, and iq is the q axis current of each step corresponding to each d axis current; A module for searching MTPA trajectory is used to search for the first torque value on each current circle according to the current scanning point data set (id, iq) and the corresponding torque, and screen out the maximum torque value among all the first torque values, which is the MTPA trajectory; A module for searching the MTPV trajectory is used to obtain each flux linkage ellipse according to the current scanning point data set (id, iq) and the corresponding dq axis voltage, search for the intersection of each flux linkage ellipse and the maximum current circle, which is the weak magnetic field zone 1 trajectory, search for the second torque value on each flux linkage ellipse, screen out the maximum torque value among all the second torque values, which is the weak magnetic field zone 2 trajectory, determine the intersection of the weak magnetic field zone 1 trajectory and the weak magnetic field zone 2 trajectory, and merge the weak magnetic field zone 1 trajectory and the weak magnetic field zone 2 trajectory to obtain the MTPV trajectory; Finding the best working point is used to search for the intersection of each flux ellipse and each torque value within the envelope of the MTPA trajectory and the MTPV trajectory, which is the best working point.