Sine and cosine signal calibration data adaptive method for soft decoding of motor resolver

By real-time acquisition and adaptive correction of sine and cosine signal data during motor operation, the problem of calibration error in motor resolver soft decoding technology is solved, the accuracy and safety of motor control are improved, and the cost is reduced.

CN118589938APending Publication Date: 2024-09-03CHONGQING TSINGSHAN IND
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410517993.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

During the calibration process of the existing motor resolver soft decoding technology, due to problems such as the consistency difference between the resolver body and the hardware sampling circuit, and the inaccurate zero offset of the envelope surface of the sine and cosine signals processed by the software, the maximum value of the resolver signal, The errors in the minimum value and phase difference deviation time affect the accuracy of the motor control parameters and reduce the stability and safety of the motor output.

Method used

An adaptive method for sine and cosine signal calibration data is adopted to obtain the sine and cosine signal data during motor operation in real time, calculate its actual period and phase difference deviation time, and adaptively correct the calibration data stored in the NVM module to ensure motor control. Parameter accuracy and adaptability.

Benefits of technology

It improves the real-time control accuracy and safety of motor resolver soft decoding, reduces the cost of motor resolver control, and enhances the stability and reliability of motor output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589938A
    Figure CN118589938A
Patent Text Reader

Abstract

A sine and cosine signal calibration data adaptive method for soft decoding of a motor resolver comprises the following steps: 1) acquiring a plurality of sine and cosine signal values and corresponding timestamps under the current working condition to form a sine and cosine signal data set; 2) calculating actual period values of sine and cosine signals and a phase difference deviation time actual value of the sine and cosine signals under the current working condition by utilizing timestamps corresponding to maximum and minimum signal values in the sine and cosine signal data sets; 3) obtaining the maximum value and the minimum value of the sine signal and the cosine signal currently stored in the motor NVM module and the phase difference deviation time of the sine signal and the cosine signal, and calculating the maximum value and the minimum value of the sine signal and the cosine signal and the phase difference deviation time of the sine signal and the cosine signal after self-adaptive correction by combining the data obtained from the step 1) to the step 2); and 4) carrying out self-adaptive correction on the maximum value and the minimum value of the sine signal and the cosine signal currently stored in the motor NVM module and the phase difference deviation time of the sine signal and the cosine signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of new energy motors, and in particular to an adaptive method for sine and cosine signal calibration data for motor resolver soft decoding. Background Art

[0002] In the electric drive system of new energy vehicles (such as electric vehicles), the motor rotor position is one of the key input parameters of the motor mechanism. The drive motor of new energy vehicles (such as permanent magnet synchronous motors) generally uses a resolver (hereinafter referred to as "resolver") to obtain the rotor position. The resolver needs to be used with a dedicated decoding chip, but the dedicated resolver decoding chip is expensive. Relatively speaking, resolver soft decoding has the advantages of low cost and flexible use, and does not require additional hardware chips, which greatly reduces the cost. Therefore, the "resolver soft decoding" technology has been increasingly widely used in electric drive products of new energy vehicles in the past two years.

[0003] The use of the motor's resolver soft decoding technology requires that the resolver's sinusoidal and cosine signal calibration data, such as the maximum and minimum values ​​of the resolver's sinusoidal and cosine signals and the phase difference deviation time, be determined through calibration experiments before the motor leaves the factory. These calibration data are then stored in the motor's NVM storage module. These fixed calibration data are then used to calculate and control the motor's resolver angle and angular velocity during actual use of the motor.

[0004] However, during the calibration process, due to the consistency differences between the resolver body and the hardware sampling circuit, and the inaccurate zero-position offset of the envelope surface of the resolver sine and cosine processed by the software, the maximum and minimum values ​​of the resolver sine and cosine signals and the phase difference deviation time of the sine and cosine signals usually obtained in the calibration test will have certain errors compared with the actual operation of the motor. If the software control system of the motor uses these fixed and erroneous data to calculate the resolver angle and angular velocity of the motor, the calculated motor control parameters (i.e., the resolver angle, angular velocity, etc. of the motor) will also have significant errors compared with the actual situation. If the motor control parameters that have errors compared with the actual situation are used to control the drive motor of the car in real time without considering the changes in the actual working conditions, the output stability of the motor will be greatly reduced, and in severe cases, it may even cause the motor to lose control. Summary of the invention

[0005] The purpose of the present invention is to provide a method for adaptively adjusting the calibration data of sinusoidal and cosine signals for motor resolver soft decoding in view of the corresponding deficiencies in the prior art. The method utilizes the sinusoidal and cosine signals acquired in real time to adaptively update the sinusoidal and cosine signal data stored in the NVM storage module according to the actual working conditions, so that the error value of the motor control parameter calculated by the motor software control system is within the allowable range, which conforms to the actual operating conditions of the motor, improves the real-time control of the motor by "resolver soft decoding", ensures the output efficiency of the motor, greatly increases the safety and reliability of the motor control, and reduces the cost of the motor resolver control.

[0006] The object of the present invention is to adopt the following scheme to achieve: a method for self-adaptation of sine and cosine signal calibration data for motor resolver soft decoding, comprising the following steps: 1) Under the current real-time operating conditions of the motor, several sine and cosine signal values ​​and corresponding timestamps are obtained to form sine and cosine signal data sets respectively; 2) Use the timestamps corresponding to the maximum and minimum signal values ​​in the sine and cosine signal data sets to calculate the actual period values ​​of the sine and cosine signals under the current working conditions, and then use the actual period values ​​of the sine and cosine signals to calculate the actual value of the phase difference deviation time of the sine and cosine signals under the current working conditions; 3) Obtain the maximum and minimum values ​​of the positive and cosine signals and the phase difference deviation time of the positive and cosine signals currently stored in the motor NVM module, and combine the data obtained from step 1) to step 2) to calculate the maximum and minimum values ​​of the positive and cosine signals and the phase difference deviation time of the positive and cosine signals after adaptive correction respectively; 4) The maximum and minimum values ​​of the sine and cosine signals and the phase difference deviation time of the sine and cosine signals after adaptive correction are used to overwrite the maximum and minimum values ​​of the sine and cosine signals and the phase difference deviation time of the sine and cosine signals currently stored in the motor NVM module.

[0007] Preferably, the maximum value of the adaptively corrected sinusoidal signal in step 3) is calculated according to the following formula: New_Data_sin_max = NVM_sin_max + (Data_sin_max - NVM_sin_max) × K_sin_max Where New_Data_sin_max is the maximum value of the sinusoidal signal after adaptive correction, NVM_sin_max is the maximum value of the sinusoidal signal currently stored in the motor NVM module, Data_sin_max is the maximum sinusoidal signal value in the sinusoidal signal data set, and K_sin_max is the adaptive correction coefficient of the maximum value of the sinusoidal signal.

[0008] Preferably, the minimum value of the adaptively corrected sinusoidal signal in step 3) is calculated according to the following formula: New_Data_sin_min = NVM_sin_min + (Data_sin_min - NVM_sin_min) × K_sin_min Where New_Data_sin_min is the minimum value of the sinusoidal signal after adaptive correction, Data_sin_min is the minimum sinusoidal signal value in the sinusoidal signal data set, NVM_sin_min is the minimum value of the sinusoidal signal currently stored in the motor NVM module, and K_sin_min is the adaptive correction coefficient of the minimum value of the sinusoidal signal.

[0009] Preferably, the maximum value of the adaptively corrected cosine signal in step 3) is calculated according to the following formula: New_Data_cos_max=NVM_cos_max + (Data_cos_max - NVM_cos_max) × K_cos_max Wherein, NVM_cos_max is the maximum value of the cosine signal currently stored in the motor NVM module, New_Data_cos_max is the maximum value of the cosine signal after adaptive correction, Data_cos_max is the maximum cosine signal value in the cosine signal data set, and K_cos_max is the adaptive correction coefficient of the maximum value of the cosine signal.

[0010] Preferably, the minimum value of the adaptively corrected cosine signal in step 3) is calculated according to the following formula: New_Data_cos_min=NVM_cos_min + (Data_cos_min-NVM_cos_min) × K_cos_min Wherein, NVM_cos_min is the minimum value of the cosine signal currently stored in the motor NVM module, New_Data_cos_min is the minimum value of the cosine signal after adaptive correction, Data_cos_min is the minimum cosine signal value in the cosine signal data set, and K_cos_min is the adaptive correction coefficient of the minimum value of the cosine signal.

[0011] Preferably, the phase difference deviation time of the sine and cosine signals after adaptive correction in step 3) is calculated according to the following formula: New_T_Phase_realtime = NVM_T_Phase + (T_Phase_realtime - NVM_T_Phase) × K_T_Phase Where New_T_Phase_realtime is the phase difference deviation time of the sine and cosine signals after adaptive correction, NVM_T_Phase is the phase difference deviation time of the sine and cosine signals currently stored in the motor NVM module, T_Phase_realtime is the actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition, and K_T_Phase is the adaptive correction coefficient of the phase difference deviation time.

[0012] Preferably, in step 3), before calculating the maximum and minimum values ​​of the adaptively corrected sine and cosine signals and the phase difference deviation time of the adaptively corrected sine and cosine signals, it is determined whether the data in the sine signal data set and the cosine signal data set are valid in the following manner: 3-1) Setting data validity thresholds, the data validity thresholds include sine signal validity thresholds, cosine signal validity thresholds, and cycle validity thresholds, the sine signal validity thresholds include the maximum error allowable range of the sine signal and the minimum error allowable range of the sine signal, the cosine signal validity thresholds include the maximum error allowable range of the cosine signal and the minimum error allowable range of the cosine signal, the cycle validity thresholds include the sine and cosine cycle error allowable range and the theoretical cycle error allowable range; 3-2) Determine whether the sine signal data set and cosine signal data set meet the following conditions at the same time: ① The difference between the maximum sinusoidal signal value Data_sin_max in the sinusoidal signal data set and the maximum sinusoidal signal value NVM_sin_max currently stored in the motor NVM module is within the allowable error range of the maximum sinusoidal signal value; ② The difference between the minimum sinusoidal signal value Data_sin_min in the sinusoidal signal data set and the minimum sinusoidal signal value NVM_sin_min currently stored in the motor NVM module is within the allowable error range of the minimum sinusoidal signal value; ③ The difference between the maximum cosine signal value Data_cos_max in the cosine signal data set and the maximum cosine signal value NVM_cos_max currently stored in the motor NVM module is within the allowable error range of the maximum cosine signal value; ④ The difference between the minimum cosine signal value Data_cos_min in the cosine signal data set and the minimum cosine signal value NVM_cos_min currently stored in the motor NVM module is within the allowable range of the minimum cosine signal error; ⑤ The difference between the actual period value T_sin of the sine signal under the current working condition and the actual period value T_cos of the cosine signal under the current working condition is within the allowable range of the sine and cosine period error; ⑥ The difference between the actual period value T_sin of the sine signal under the current working condition, the actual period value T_cos of the cosine signal under the current working condition and the theoretical period calculated value T are both within the allowable range of the theoretical period error; If the sine signal data set and the cosine signal data set do not meet any of the conditions ① to ⑥, the data in the sine signal data set and the cosine signal data set are invalid, and step 1) is repeated to re-collect data to form new sine and cosine signal data sets until the sine signal data set and the cosine signal data set meet the conditions ① to ⑥, and then proceed to the next step.

[0013] Preferably, in step 2), the actual period value of the sine and cosine signals under the current working condition and the actual value of the phase difference deviation time of the sine and cosine signals under the current working condition are calculated according to the following formula: 2-1) The actual period value of the sine signal: T_sin=| t_sin_max- t_sin_min |×2 Where, T_sin is the actual period value of the sinusoidal signal under the current working condition, t_sin_max is the timestamp of the maximum value of the sinusoidal signal under the current working condition, and t_sin_min is the timestamp of the minimum value of the sinusoidal signal under the current working condition; 2-2) The actual period value of the cosine signal: T_cos=| t_cos_max- t_cos_min |×2 Where, T_cos is the actual period value of the cosine signal under the current working condition, t_cos_max is the timestamp of the maximum value of the cosine signal under the current working condition, and t_cos_min is the timestamp of the minimum value of the sine signal under the current working condition; 2-3) Actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition: T_Phase_realtime=| t_sin_max - t_cos_max |- (T_sin+T_cos) / 8 Wherein, T_Phase_realtime is the actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition, t_sin_max is the timestamp of the maximum value of the sine signal under the current working condition, t_cos_max is the timestamp of the maximum value of the cosine signal under the current working condition, T_sin is the actual period value of the sine signal under the current working condition, and T_cos is the actual period value of the cosine signal under the current working condition.

[0014] Preferably, in step 1), before obtaining a plurality of sine and cosine signal values ​​and corresponding timestamps under the current real-time operating condition of the motor, it is determined whether the sine and cosine signal calibration data should be adaptively processed in the following manner: 1-1) Setting the working condition identification threshold, wherein the working condition threshold includes the motor speed threshold and the motor speed change rate threshold; 1-2) Obtain the real-time motor speed and real-time motor speed change rate; 1-3) Determine whether the current working condition requires adaptive processing of the sine and cosine signal calibration data in the following way: If the real-time motor speed is not within the motor speed threshold range, or the real-time motor speed change rate is not within the motor speed change rate threshold range, then there is no need to adaptively process the sine-cosine signal calibration data under the current working condition, and repeat steps 1-2) to 1-3) until the real-time motor speed is within the motor speed threshold range, and the real-time motor speed change rate is within the motor speed change rate threshold range, then it is necessary to adaptively process the sine-cosine signal calibration data under the current working condition, and proceed to the next step.

[0015] Preferably, the real-time motor speed change rate is obtained in the following manner: ① Obtain the original motor speed change rate according to the following formula: The original motor speed change rate = (the current motor speed - the previous motor speed) / software operation cycle; ② Filter the original motor speed change rate to obtain the real-time motor speed change rate.

[0016] The advantage of the present invention is that, during the actual operation of the motor, the sine and cosine signal data stored in the NVM storage module are continuously corrected according to the actual working conditions, so that the actual operating conditions can be continuously adapted to the changes in the actual working conditions during the actual operation of the motor, so as to ensure that the error value of the motor control parameter calculated by the motor software control system using the sine and cosine signal data is within the allowable range and conforms to the actual operating conditions of the motor. While ensuring the output efficiency of the motor, the safety and reliability of the motor control are improved, and the cost of the motor resolver control is reduced. Glossary

[0017] Timestamp: Usually a sequence of characters that uniquely identifies a moment in time.

[0018] Resolver: When the permanent magnet synchronous motor is working, the rotating magnetic field generated by the stator coil rotates synchronously with the rotor, and the rotating magnetic field poles and the rotor poles will maintain a certain angle. The module that monitors the position and speed of the rotor is the resolver control module, which can be a hardware module or a software module.

[0019] NVM: Non-volatile memory (NVM) is a computer memory that does not lose stored data when the current is turned off. The control parameters of the motor are generally stored in the NVM module. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0021] like Figure 1 As shown, a method for self-adapting sine and cosine signal calibration data for motor resolver soft decoding comprises the following steps: 1) Under the current real-time operating conditions of the motor, several sine and cosine signal values ​​and corresponding timestamps are obtained to form sine and cosine signal data sets respectively; It is worth noting that in step 1), before obtaining a number of sine and cosine signal values ​​and corresponding timestamps under the current real-time operating conditions of the motor, it is necessary to determine whether the sine and cosine signal calibration data should be adaptively processed in the following manner: 1-1) Setting the working condition identification threshold, wherein the working condition threshold includes the motor speed threshold and the motor speed change rate threshold; In this embodiment, the motor speed threshold includes the maximum and minimum values ​​of the motor speed, and the motor speed change rate threshold includes the maximum and minimum values ​​of the motor speed change rate. The specific values ​​are based on the operating status of the motor on the vehicle and are determined according to calibration experiments.

[0022] For example, in this embodiment, the maximum value of the motor speed is set to 3000rpm, the minimum value of the motor speed is set to 1000rpm, the maximum value of the motor speed change rate is set to +1000rpm / s, and the minimum value of the motor speed change rate is set to -1000rpm / s through a calibration experiment; 1-2) Obtain the real-time motor speed and real-time motor speed change rate; In this embodiment, the real-time motor speed change rate is obtained in the following manner: ① Obtain the original motor speed change rate according to the following formula: The original motor speed change rate = (the current motor speed - the previous motor speed) / software operation cycle; ② Filter the original motor speed change rate to obtain the real-time motor speed change rate.

[0023] 1-3) Determine whether the current working condition requires adaptive processing of the sine and cosine signal calibration data in the following way: If the real-time motor speed is not within the motor speed threshold range, or the real-time motor speed change rate is not within the motor speed change rate threshold range, then there is no need to perform adaptive processing on the sine and cosine signal calibration data under the current working condition, and repeat steps 1-2) to 1-3) until the real-time motor speed is within the motor speed threshold range, and the real-time motor speed change rate is within the motor speed change rate threshold range, then it is necessary to perform adaptive processing on the sine and cosine signal calibration data under the current working condition, and then proceed to the next step, obtain a number of sine and cosine signal values ​​and corresponding timestamps under the current motor's real-time operating conditions, and form sine and cosine signal data sets, respectively, as shown in Table 1 and Table 2: Table 1 Sinusoidal signal data set

[0024] Table 2 Cosine signal data set

[0025] For example, the timestamp corresponding to the sine signal value sin_a in Table 1 is t_a, the timestamp corresponding to the sine signal value sin_b is t_b, the timestamp corresponding to the cosine signal value cos_a in Table 2 is T_A, the timestamp corresponding to the cosine signal value cos_b is T_B, and so on, and they are stored in the corresponding data sets in the order of acquisition time.

[0026] In this embodiment, the time used to collect data should be at least 1.5 times the longest cycle in the current speed range of the motor, that is, the number of arrays in each data set in Table 1 and Table 2 should be at least the number that can be collected when the longest cycle is 1.5 times the current speed range.

[0027] 2) According to the following formula, the timestamps corresponding to the maximum and minimum signal values ​​in the sine and cosine signal data sets are used to calculate the actual period values ​​of the sine and cosine signals under the current working condition, and then the actual period values ​​of the sine and cosine signals are used to calculate the actual value of the phase difference deviation time of the sine and cosine signals under the current working condition; In this embodiment, if the maximum signal value of the sinusoidal signal data set is sin_d, the value of the sinusoidal signal sin_d is taken as the maximum value of the sinusoidal signal sin_max, and the timestamp corresponding to the sinusoidal signal sin_d is t_d, that is, the value of the timestamp t_sin_max of the maximum value of the sinusoidal signal sin_max is equal to t_d, and so on.

[0028] 2-1) The actual period value of the sine signal: T_sin=| t_sin_max- t_sin_min |×2 Where, T_sin is the actual period value of the sinusoidal signal under the current working condition, t_sin_max is the timestamp of the maximum value of the sinusoidal signal under the current working condition, and t_sin_min is the timestamp of the minimum value of the sinusoidal signal under the current working condition; 2-2) The actual period value of the cosine signal: T_cos=| t_cos_max- t_cos_min |×2 Where, T_cos is the actual period value of the cosine signal under the current working condition, t_cos_max is the timestamp of the maximum value of the cosine signal under the current working condition, and t_cos_min is the timestamp of the minimum value of the sine signal under the current working condition; 2-3) Actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition: T_Phase_realtime=| t_sin_max - t_cos_max |- (T_sin+T_cos) / 8 Wherein, T_Phase_realtime is the actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition, t_sin_max is the timestamp of the maximum value of the sine signal under the current working condition, t_cos_max is the timestamp of the maximum value of the cosine signal under the current working condition, T_sin is the actual period value of the sine signal under the current working condition, and T_cos is the actual period value of the cosine signal under the current working condition.

[0029] 3) Obtain the maximum and minimum values ​​of the positive and cosine signals and the phase difference deviation time of the positive and cosine signals currently stored in the motor NVM module, and combine the data obtained from step 1) to step 2) to calculate the maximum and minimum values ​​of the positive and cosine signals and the phase difference deviation time of the positive and cosine signals after adaptive correction respectively; In this embodiment, before calculating the maximum and minimum values ​​of the adaptively corrected sine and cosine signals and the phase difference deviation time of the adaptively corrected sine and cosine signals, it is determined whether the data in the sine signal data set and the cosine signal data set are valid in the following manner: 3-1) Set data validity thresholds, which include sine signal validity threshold, cosine signal validity threshold, and cycle validity threshold. The sine signal validity threshold includes the allowable error range of the maximum value of the sine signal and the allowable error range of the minimum value of the sine signal. The cosine signal validity threshold includes the allowable error range of the maximum value of the cosine signal and the allowable error range of the minimum value of the cosine signal. The cycle validity threshold includes the allowable error range of the sine and cosine cycle errors and the allowable error range of the theoretical cycle. The specific numerical ranges of these data validity thresholds are also based on the operating status of the motor on the vehicle and are determined through calibration experiments.

[0030] 3-2) Determine whether the sine signal data set and cosine signal data set meet the following conditions at the same time: ① The difference between the maximum sinusoidal signal value Data_sin_max in the sinusoidal signal data set and the maximum sinusoidal signal value NVM_sin_max currently stored in the motor NVM module is within the allowable error range of the maximum sinusoidal signal value; ② The difference between the minimum sinusoidal signal value Data_sin_min in the sinusoidal signal data set and the minimum sinusoidal signal value NVM_sin_min currently stored in the motor NVM module is within the allowable error range of the minimum sinusoidal signal value; ③ The difference between the maximum cosine signal value Data_cos_max in the cosine signal data set and the maximum cosine signal value NVM_cos_max currently stored in the motor NVM module is within the allowable error range of the maximum cosine signal value; ④ The difference between the minimum cosine signal value Data_cos_min in the cosine signal data set and the minimum cosine signal value NVM_cos_min currently stored in the motor NVM module is within the allowable range of the minimum cosine signal error; ⑤ The difference between the actual period value T_sin of the sine signal under the current working condition and the actual period value T_cos of the cosine signal under the current working condition is within the allowable range of the sine and cosine period error; ⑥ The difference between the actual period value T_sin of the sine signal under the current working condition, the actual period value T_cos of the cosine signal under the current working condition and the theoretical period calculated value T is within the allowable range of the theoretical period error. The theoretical period calculated value T is calculated according to the following formula: T=60 / (nP) Where n is the real-time motor speed (unit: rpm), and p is the number of pole pairs of the resolver; If the sine signal data set and the cosine signal data set do not meet any of the conditions ① to ⑥, the data in the sine signal data set and the cosine signal data set are invalid, and step 1) is repeated to collect data again to form new sine and cosine signal data sets until the sine signal data set and the cosine signal data set meet the conditions ① to ⑥, and then proceed to the next step, and calculate the maximum and minimum values ​​of the adaptively corrected sine and cosine signals and the phase difference deviation time of the adaptively corrected sine and cosine signals according to the following formula: ⑴ The maximum value of the adaptively corrected sinusoidal signal is calculated according to the following formula: New_Data_sin_max = NVM_sin_max + (Data_sin_max - NVM_sin_max) × K_sin_max Where New_Data_sin_max is the maximum value of the sinusoidal signal after adaptive correction, NVM_sin_max is the maximum value of the sinusoidal signal currently stored in the motor NVM module, Data_sin_max is the maximum sinusoidal signal value in the sinusoidal signal data set, and K_sin_max is the adaptive correction coefficient of the maximum value of the sinusoidal signal.

[0031] ⑵ The minimum value of the adaptively corrected sinusoidal signal is calculated according to the following formula: New_Data_sin_min = NVM_sin_min + (Data_sin_min - NVM_sin_min) × K_sin_min Where New_Data_sin_min is the minimum value of the sinusoidal signal after adaptive correction, Data_sin_min is the minimum sinusoidal signal value in the sinusoidal signal data set, NVM_sin_min is the minimum value of the sinusoidal signal currently stored in the motor NVM module, and K_sin_min is the adaptive correction coefficient of the minimum value of the sinusoidal signal.

[0032] ⑶ The maximum value of the adaptively corrected cosine signal is calculated according to the following formula: New_Data_cos_max=NVM_cos_max + (Data_cos_max - NVM_cos_max) × K_cos_max Wherein, NVM_cos_max is the maximum value of the cosine signal currently stored in the motor NVM module, New_Data_cos_max is the maximum value of the cosine signal after adaptive correction, Data_cos_max is the maximum cosine signal value in the cosine signal data set, and K_cos_max is the adaptive correction coefficient of the maximum value of the cosine signal.

[0033] (4) The minimum value of the adaptively corrected cosine signal is calculated according to the following formula: New_Data_cos_min=NVM_cos_min + (Data_cos_min-NVM_cos_min) × K_cos_min Wherein, NVM_cos_min is the minimum value of the cosine signal currently stored in the motor NVM module, New_Data_cos_min is the minimum value of the cosine signal after adaptive correction, Data_cos_min is the minimum cosine signal value in the cosine signal data set, and K_cos_min is the adaptive correction coefficient of the minimum value of the cosine signal.

[0034] ⑸ The phase difference deviation time of the sine and cosine signals after adaptive correction is calculated according to the following formula: New_T_Phase_realtime = NVM_T_Phase + (T_Phase_realtime - NVM_T_Phase) × K_T_Phase Where New_T_Phase_realtime is the phase difference deviation time of the sine and cosine signals after adaptive correction, NVM_T_Phase is the phase difference deviation time of the sine and cosine signals currently stored in the motor NVM module, T_Phase_realtime is the actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition, and K_T_Phase is the adaptive correction coefficient of the phase difference deviation time.

[0035] In this embodiment, the adaptive correction coefficient has a value range of 0 to 100%. The larger the value of the adaptive correction coefficient, the greater the amplitude of the adaptive correction of the sine and cosine signal calibration data stored in the motor NVM module. Each adaptive correction coefficient is calibrated through vehicle testing combined with the actual application of the motor. The value of the adaptive correction coefficient is different in different situations. In the early stage of vehicle operation, the motor software control system uses the sine-cosine signal calibration data stored in the motor NVM module to calculate the motor rotation angle and angular velocity. When used for actual motor working condition control, there is a high probability that the motor output and the operating status of the vehicle will have problems. At this time, it is necessary to appropriately increase the value of the adaptive correction coefficient to improve the output stability of the motor and the stability of the vehicle operation as soon as possible. After the vehicle has been running for a period of time, the sine-cosine signal calibration data stored in the motor NVM module has been largely adaptively corrected in the early stage and can basically meet the actual working conditions, ensuring the stable operation of the vehicle. At this time, there is no need to perform large-scale adaptive correction on the sine-cosine signal calibration data stored in the motor NVM module. The value of the adaptive correction coefficient can be appropriately reduced, and the sine-cosine signal calibration data stored in the motor NVM module can be adaptively processed to a small extent.

[0036] 4) The maximum and minimum values ​​of the sine and cosine signals and the phase difference deviation time of the sine and cosine signals after adaptive correction are used to overwrite the maximum and minimum values ​​of the sine and cosine signals and the phase difference deviation time of the sine and cosine signals currently stored in the motor NVM module.

[0037] In this embodiment, during the actual operation of the motor, steps 1) to 4) are repeated continuously to adaptively process the sine and cosine signal calibration data used for the motor resolver soft decoding, so as to ensure the precise control of the motor by the motor software control system. Experiments have shown that the motor software control system uses the adaptively corrected sine and cosine signal calibration data of the present invention to calculate the motor resolver angle and angular velocity. The error value of the calculation result is within the allowable range and can be used for real-time control of the motor. While ensuring the motor output efficiency, the safety and reliability of the motor control are improved.

[0038] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification made to the present invention by those skilled in the art without departing from the spirit of the present invention shall fall within the protection scope of the present invention.

Claims

1. An adaptive method for sine and cosine signal calibration data for motor resolver soft decoding, It is characterized in that The following steps are involved: 1) Under the current real-time operating conditions of the motor, several sine and cosine signal values ​​and corresponding timestamps are obtained to form sine and cosine signal data sets respectively; 2) Use the timestamps corresponding to the maximum and minimum signal values ​​in the sine and cosine signal data sets to calculate the actual period values ​​of the sine and cosine signals under the current working conditions, and then use the actual period values ​​of the sine and cosine signals to calculate the actual value of the phase difference deviation time of the sine and cosine signals under the current working conditions; 3) Obtain the maximum and minimum values ​​of the positive and cosine signals and the phase difference deviation time of the positive and cosine signals currently stored in the motor NVM module, and combine the data obtained from step 1) to step 2) to calculate the maximum and minimum values ​​of the positive and cosine signals and the phase difference deviation time of the positive and cosine signals after adaptive correction respectively; 4) The maximum and minimum values ​​of the sine and cosine signals and the phase difference deviation time of the sine and cosine signals after adaptive correction are used to overwrite the maximum and minimum values ​​of the sine and cosine signals and the phase difference deviation time of the sine and cosine signals currently stored in the motor NVM module.

2. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that The maximum value of the adaptively corrected sinusoidal signal in step 3) is calculated according to the following formula: New_Data_sin_max = NVM_sin_max + (Data_sin_max - NVM_sin_max) × K_sin_max Where New_Data_sin_max is the maximum value of the sinusoidal signal after adaptive correction, NVM_sin_max is the maximum value of the sinusoidal signal currently stored in the motor NVM module, Data_sin_max is the maximum sinusoidal signal value in the sinusoidal signal data set, and K_sin_max is the adaptive correction coefficient of the maximum value of the sinusoidal signal.

3. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that The minimum value of the adaptively corrected sinusoidal signal in step 3) is calculated according to the following formula: New_Data_sin_min = NVM_sin_min + (Data_sin_min - NVM_sin_min) × K_sin_min Where New_Data_sin_min is the minimum value of the sinusoidal signal after adaptive correction, Data_sin_min is the minimum sinusoidal signal value in the sinusoidal signal data set, NVM_sin_min is the minimum value of the sinusoidal signal currently stored in the motor NVM module, and K_sin_min is the adaptive correction coefficient of the minimum value of the sinusoidal signal.

4. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that The maximum value of the adaptively corrected cosine signal in step 3) is calculated according to the following formula: New_Data_cos_max=NVM_cos_max + (Data_cos_max - NVM_cos_max) × K_cos_max Wherein, NVM_cos_max is the maximum value of the cosine signal currently stored in the motor NVM module, New_Data_cos_max is the maximum value of the cosine signal after adaptive correction, Data_cos_max is the maximum cosine signal value in the cosine signal data set, and K_cos_max is the adaptive correction coefficient of the maximum value of the cosine signal.

5. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that The minimum value of the adaptively corrected cosine signal in step 3) is calculated according to the following formula: New_Data_cos_min=NVM_cos_min + (Data_cos_min-NVM_cos_min) × K_cos_min Wherein, NVM_cos_min is the minimum value of the cosine signal currently stored in the motor NVM module, New_Data_cos_min is the minimum value of the cosine signal after adaptive correction, Data_cos_min is the minimum cosine signal value in the cosine signal data set, and K_cos_min is the adaptive correction coefficient of the minimum value of the cosine signal.

6. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that The phase difference deviation time of the sine and cosine signals after adaptive correction in step 3) is calculated according to the following formula: New_T_Phase_realtime = NVM_T_Phase + (T_Phase_realtime - NVM_T_Phase) × K_T_Phase Where New_T_Phase_realtime is the phase difference deviation time of the sine and cosine signals after adaptive correction, NVM_T_Phase is the phase difference deviation time of the sine and cosine signals currently stored in the motor NVM module, T_Phase_realtime is the actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition, and K_T_Phase is the adaptive correction coefficient of the phase difference deviation time.

7. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that In step 3), before calculating the maximum and minimum values ​​of the adaptively corrected sine and cosine signals and the phase difference deviation time of the adaptively corrected sine and cosine signals, determine whether the data in the sine signal data set and the cosine signal data set are valid in the following manner: 3-1) Setting data validity thresholds, the data validity thresholds include sine signal validity thresholds, cosine signal validity thresholds, and cycle validity thresholds, the sine signal validity thresholds include the maximum error allowable range of the sine signal and the minimum error allowable range of the sine signal, the cosine signal validity thresholds include the maximum error allowable range of the cosine signal and the minimum error allowable range of the cosine signal, the cycle validity thresholds include the sine and cosine cycle error allowable range and the theoretical cycle error allowable range; 3-2) Determine whether the sine signal data set and cosine signal data set meet the following conditions at the same time: ① The difference between the maximum sinusoidal signal value Data_sin_max in the sinusoidal signal data set and the maximum sinusoidal signal value NVM_sin_max currently stored in the motor NVM module is within the allowable error range of the maximum sinusoidal signal value; ② The difference between the minimum sinusoidal signal value Data_sin_min in the sinusoidal signal data set and the minimum sinusoidal signal value NVM_sin_min currently stored in the motor NVM module is within the allowable error range of the minimum sinusoidal signal value; ③ The difference between the maximum cosine signal value Data_cos_max in the cosine signal data set and the maximum cosine signal value NVM_cos_max currently stored in the motor NVM module is within the allowable error range of the maximum cosine signal value; ④ The difference between the minimum cosine signal value Data_cos_min in the cosine signal data set and the minimum cosine signal value NVM_cos_min currently stored in the motor NVM module is within the allowable range of the minimum cosine signal error; ⑤ The difference between the actual period value T_sin of the sine signal under the current working condition and the actual period value T_cos of the cosine signal under the current working condition is within the allowable range of the sine and cosine period error; ⑥ The difference between the actual period value T_sin of the sine signal under the current working condition, the actual period value T_cos of the cosine signal under the current working condition and the theoretical period calculated value T are both within the allowable range of the theoretical period error; If the sine signal data set and the cosine signal data set do not meet any of the conditions ① to ⑥, the data in the sine signal data set and the cosine signal data set are invalid, and step 1) is repeated to re-collect data to form new sine and cosine signal data sets until the sine signal data set and the cosine signal data set meet the conditions ① to ⑥, and then proceed to the next step.

8. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that In step 2), the actual period value of the sine and cosine signals under the current working condition and the actual value of the phase difference deviation time of the sine and cosine signals under the current working condition are calculated according to the following formula: 2-1) The actual period value of the sine signal: T_sin=| t_sin_max- t_sin_min |×2 Where, T_sin is the actual period value of the sinusoidal signal under the current working condition, t_sin_max is the timestamp of the maximum value of the sinusoidal signal under the current working condition, and t_sin_min is the timestamp of the minimum value of the sinusoidal signal under the current working condition; 2-2) The actual period value of the cosine signal: T_cos=| t_cos_max- t_cos_min |×2 Where, T_cos is the actual period value of the cosine signal under the current working condition, t_cos_max is the timestamp of the maximum value of the cosine signal under the current working condition, and t_cos_min is the timestamp of the minimum value of the sine signal under the current working condition; 2-3) Actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition: T_Phase_realtime=| t_sin_max - t_cos_max |- (T_sin+T_cos) / 8 Wherein, T_Phase_realtime is the actual value of the phase difference deviation time between the sine signal and the cosine signal under the current working condition, t_sin_max is the timestamp of the maximum value of the sine signal under the current working condition, t_cos_max is the timestamp of the maximum value of the cosine signal under the current working condition, T_sin is the actual period value of the sine signal under the current working condition, and T_cos is the actual period value of the cosine signal under the current working condition.

9. The method for self-adapting sine and cosine signal calibration data according to claim 1, It is characterized in that In step 1), before obtaining a number of sine and cosine signal values ​​and corresponding timestamps under the current real-time operating conditions of the motor, it is determined whether the sine and cosine signal calibration data should be adaptively processed in the following manner: 1-1) Setting the working condition identification threshold, wherein the working condition threshold includes the motor speed threshold and the motor speed change rate threshold; 1-2) Obtain the real-time motor speed and real-time motor speed change rate; 1-3) Determine whether the current working condition requires adaptive processing of the sine and cosine signal calibration data in the following way: If the real-time motor speed is not within the motor speed threshold range, or the real-time motor speed change rate is not within the motor speed change rate threshold range, then there is no need to adaptively process the sine-cosine signal calibration data under the current working condition, and repeat steps 1-2) to 1-3) until the real-time motor speed is within the motor speed threshold range, and the real-time motor speed change rate is within the motor speed change rate threshold range, then it is necessary to adaptively process the sine-cosine signal calibration data under the current working condition, and proceed to the next step.

10. The method for self-adapting sine and cosine signal calibration data according to claim 9, It is characterized in that The real-time motor speed change rate is obtained in the following manner: ① Obtain the original motor speed change rate according to the following formula: The original motor speed change rate = (the current motor speed - the previous motor speed) / software operation cycle; ② Filter the original motor speed change rate to obtain the real-time motor speed change rate.

Citation Information

Cited By

  • Motor rotating speed control method, motor rotating speed control circuit, chip and electronic equipment

    CN119093811A

  • Method and device for automatically calibrating zero deviation of angle sensor of brushless motor

    CN122339336A

  • Motor rotation speed control method, motor rotation speed control circuit, chip, and electronic device

    WO2026051806A1