Method for correcting signal of rotary transformer and related product
By correcting the offset and normalized coefficients of the rotation transformer signal, the problem of poor angle calculation accuracy in motor vector control is solved, and more accurate motor control is achieved.
Patent Information
- Application Number
- CN202411193109.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
AI Technical Summary
In the prior art, in motor vector control, due to the bias and amplitude deviation of the rotation transformer signal, the angle calculation accuracy is poor, which in turn affects the accuracy of the motor control.
By determining the function of the sine signal and cosine signal corresponding to the rotation transformer signal, calculating its offset and normalization coefficient, the signal is biased and normalized, and the accuracy of angle calculation is improved.
Improve the accuracy and accuracy of motor control, making the motor run more accurately.
Smart Images

Figure CN119093801A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile motor control technology, and in particular to a method for correcting a rotary transformer signal and related products. Background Art
[0002] Field-Oriented Control (FOC) is a driving technology used to control AC motors, especially in asynchronous motors and synchronous motors. Its main principle is to decompose the motor's electronic current into a torque component parallel to the magnetic field and a magnetic flux component perpendicular to the magnetic field, thereby independently controlling the motor's torque and magnetic moment, achieving efficient and precise control of the motor's operation.
[0003] The existing technology usually directly calculates the electrical angle based on the collected resolver signal, and then uses this angle to calculate the speed or for motor vector control. Since the physical signal sampled in the actual project has deviations in bias and amplitude, it is easy to cause deviations in the calculated angle, which in turn leads to poor control accuracy of the motor.
[0004] Therefore, how to improve the control accuracy of the motor is a problem that technical personnel in this field need to solve urgently. Summary of the invention
[0005] Based on the above problems, the present application provides a method for correcting a rotary transformer signal and related products, which corrects the rotary transformer signal by an offset and a normalization coefficient, thereby improving the accuracy of angle calculation and making the control of the motor more accurate.
[0006] In a first aspect, an embodiment of the present application provides a method for correcting a resolver signal, comprising:
[0007] Determine a function corresponding to a signal to be corrected; the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected;
[0008] Performing calculation based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal;
[0009] Based on the first offset, the first normalization coefficient, the second offset, and the second normalization coefficient, the signal to be corrected is subjected to offset correction and normalization processing to obtain a corrected value of the sine signal and a corrected value of the cosine signal.
[0010] Optionally, the expression of the first function is ysin (θ) = G sin *(Ofs sin +sinθ);
[0011] The expression of the second function is y cos (θ) = G cos *(Ofs cos +cosθ);
[0012] Where y sin (θ) is the sampling value corresponding to the resolver physical sinusoidal signal, G sin is the amplitude corresponding to the sinusoidal signal, Ofs sin is the offset parameter corresponding to the sinusoidal signal, sinθ is the standard sine, y cos (θ) is the sampling value corresponding to the physical cosine signal of the resolver, G cos is the amplitude corresponding to the cosine signal, Ofs cos is the offset parameter corresponding to the cosine signal, and cosθ is the standard cosine.
[0013] Optionally, the calculating based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal includes:
[0014] The first function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a first integral expression group;
[0015] Solving based on the first integral expression, and obtaining a first offset and a first normalization coefficient corresponding to the sinusoidal signal;
[0016] The second function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a second integral expression group;
[0017] Based on the second integral expression, a second offset and a second normalization coefficient corresponding to the cosine signal are obtained.
[0018] Optionally, before determining the function corresponding to the signal to be corrected, the method further includes:
[0019] When the speed of the motor is in a preset speed range, the physical signal of the rotary transformer is collected at fixed intervals;
[0020] Determining a signal to be corrected based on the physical signal;
[0021] The preset speed range is determined based on parameters of the rotary transformer and parameters of the motor.
[0022] Optionally, determining the signal to be corrected based on the physical signal includes:
[0023] In the same cycle, calculation is performed based on the two physical signals collected at two different time points to determine the angle difference generated by the rotary transformer between the two different time points;
[0024] All the physical signals collected between the two different time points whose angle difference is greater than π are used as signals to be corrected.
[0025] Optionally, the method further includes:
[0026] When the speed of the motor is not within the preset speed range, the correction parameter state machine is reset.
[0027] Optionally, the method further includes:
[0028] Calculating the electrical angle of the resolver using the corrected value of the sine signal and the value of the cosine signal;
[0029] Determining the electrical angular velocity of the rotary transformer based on the electrical angle of the rotary transformer and the time difference of the acquisition signal;
[0030] Based on the ratio relationship between the number of pole pairs of the rotary transformer and the number of pole pairs of the motor rotor, the electrical angle of the rotary transformer is used to determine the electrical angular velocity of the motor, and a corresponding control signal is generated based on the electrical angular velocity of the motor.
[0031] In a second aspect, an embodiment of the present application provides a device for correcting a rotary transformer signal, comprising:
[0032] A determination module, used to determine a function corresponding to a signal to be corrected; the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected;
[0033] A calculation module, configured to perform calculation based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal;
[0034] A correction module is used to perform offset correction and normalization processing on the signal to be corrected based on the first offset, the first normalization coefficient, the second offset and the second normalization coefficient to obtain the corrected value of the sine signal and the value of the cosine signal.
[0035] In a third aspect, an embodiment of the present application provides a device for calculating wading depth, including:
[0036] Memory for storing computer programs;
[0037] A processor is used to implement the steps of the method for correcting the resolver signal as described above when executing the computer program.
[0038] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for correcting the resolver signal as described above are implemented.
[0039] It can be seen from the above technical solutions that compared with the prior art, the present application has the following advantages:
[0040] The present application first determines the function corresponding to the signal to be corrected. Wherein, the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected. Then, based on the first function and the second function, calculations are performed to obtain a first offset and a first normalization coefficient corresponding to the sine signal, as well as a second offset and a second normalization coefficient corresponding to the cosine signal. Finally, based on the first offset, the first normalization coefficient, the second offset and the second normalization coefficient, the signal to be corrected is bias-corrected and normalized to obtain the value of the corrected sine signal and the value of the cosine signal. In this way, the resolver signal is corrected by the offset and the normalization coefficient, thereby improving the accuracy of the angle calculation and making the control of the motor more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flowchart of a method for correcting a rotary transformer signal provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of an amplitude deviation provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of a DC bias provided in an embodiment of the present application;
[0044] Figure 4 A calculation flow chart of a rotary transformer signal correction coefficient provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of the structure of a rotary transformer signal correction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] As mentioned above, the angle calculated by the existing method has deviations, which leads to poor control accuracy of the motor. Specifically, in actual engineering, the physical signal sampled back has deviations in bias and amplitude, and is not a standard sine and cosine function. Therefore, the calculated tangent value and the corresponding angle obtained by calculating the arc tangent from the tangent value are both biased. When the angle is used for speed calculation or motor vector control, the control accuracy and control effect are relatively poor.
[0047] To solve the above problems, an embodiment of the present application provides a method for correcting a rotating transformer signal, comprising: first determining the function corresponding to the signal to be corrected. The signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected. Then, based on the first function and the second function, calculations are performed to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal. Finally, based on the first offset, the first normalization coefficient, the second offset and the second normalization coefficient, the signal to be corrected is subjected to bias correction and normalization processing to obtain the value of the corrected sine signal and the value of the cosine signal.
[0048] In this way, the resolver signal is corrected by the offset and the normalization coefficient, thereby improving the accuracy of angle calculation and making the control of the motor more accurate.
[0049] It should be noted that the method for correcting a rotary transformer signal and related products provided in this application can be applied to the field of automotive motor control technology. The above is only an example and does not limit the application field of the method for correcting a rotary transformer signal and related products provided in this application.
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] Figure 1 A flowchart of a method for correcting a rotary transformer signal provided in an embodiment of the present application.
[0052] Combination Figure 1 As shown, a method for correcting a rotary transformer signal provided by the present application may include:
[0053] S101: Determine a function corresponding to a signal to be corrected; the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected.
[0054] Figure 2 A schematic diagram of an amplitude deviation provided in an embodiment of the present application. Figure 3 A schematic diagram of a DC bias provided in an embodiment of the present application. Figure 2 and Figure 3 As shown, in actual engineering, the physical signal sampled back may have an amplitude deviation (the amplitude is 0.6 in the figure) or a DC bias, and the system expects the maximum amplitude of the sine and cosine signals to be equal, and strictly symmetrical with the x-axis, with equal positive and negative amplitudes, that is, to obtain standard sine and cosine functions, so that the angle obtained by the inverse tangent is the most accurate, and then the motor can be controlled more accurately by this angle. To this end, an embodiment of the present application provides a correction device for a rotary transformer signal for collecting and correcting the physical signal generated by the rotary transformer. Among them, the physical signal generated by the rotary transformer needs to be screened, and the screened physical signal can be decomposed into the form of a sine signal and a cosine signal as a signal to be corrected, and the correction device collects physical signals at fixed intervals, so the physical signal can be represented by a function, that is, the function corresponding to the signal to be corrected is determined. The sine signal corresponds to the first function, and the cosine signal corresponds to the second function.
[0055] In the embodiment of the present application, there are two correction coefficients for the rotary transformer signal, one is the offset of the rotary transformer signal, and the other is the normalization coefficient of the rotary transformer signal. Theoretically, the two amplitudes G of the sine signal and cosine signal decomposed from the same rotary transformer signal collected should be the same, and both signals have no offset. However, due to differences in engineering manufacturing, materials, processes, etc., the maximum amplitudes of the sine signal and the cosine signal will be inconsistent, and a DC component will be superimposed on the signal, so the expression of the corresponding first function can be written as: y sin (θ) = G sin *(Ofs sin +sinθ); the expression of the second function can be written as: cos (θ) = G cos *(Ofs cos +cosθ).
[0056] In this way, the offset corresponding to the sinusoidal signal can be defined as The normalization coefficient is K sin =1 / G sin ; The offset corresponding to the cosine signal is The normalization coefficient is K cos =1 / Gcos .
[0057] S102: Perform calculation based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal.
[0058] In practical applications, combined with the above functions, G is the amplitude related to the transformation ratio, θ is the electrical angle of the resolver rotor, Ofs sin 、Ofs cos ∈[-1,1]. In this way, the offset corresponding to the sine signal can be defined as The normalization coefficient is K sin =1 / G sin ; The offset corresponding to the cosine signal is The normalization coefficient is K cos =1 / G cos Thus, in order to correctly calculate tanθ, the correction device needs to perform calculations based on the first function and the second function to obtain the first offset and the first normalization coefficient corresponding to the sine signal, and the second offset and the second normalization coefficient corresponding to the cosine signal, and correct the resolver signal based on the above four parameters to obtain the correct values of sinθ and cosθ.
[0059] In addition, since the calculation methods are not the same, the embodiment of the present application describes a possible calculation method.
[0060] In one case, S102: performing calculation based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal, may specifically include:
[0061] The first function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a first integral expression group;
[0062] Solving based on the first integral expression, and obtaining a first offset and a first normalization coefficient corresponding to the sinusoidal signal;
[0063] The second function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a second integral expression group;
[0064] Based on the second integral expression, a second offset and a second normalization coefficient corresponding to the cosine signal are obtained.
[0065] In practical applications, the two correction parameters of the resolver signal need to be calculated in each cycle, and the angle difference needs to be used to determine whether the angle passes through the zero point, and the correction calculation needs to be performed between the zero points. Specifically, if the correction device wants to calculate the offset and the normalization coefficient, it can perform definite integrals on the product of the first function corresponding to the sine signal and the second function corresponding to the cosine signal with sinθ and cosθ in a cycle passing through zero. Among them, the first integral expression group corresponding to the sine signal is as follows:
[0066]
[0067] Similarly, the second integral expression group corresponding to the cosine signal is as follows:
[0068]
[0069] Then take the square root of the results of the first integral expression group and the second integral expression group respectively to obtain G sin The value of G cos The value of. Based on the above definition, the corresponding offset of the sinusoidal signal is The normalization coefficient is K sin =1 / G sin ; The offset corresponding to the cosine signal is The normalization coefficient is K cos =1 / G cos , and then calculate K sin , K cos , as well as That is, the first offset and the first normalization coefficient corresponding to the sine signal, and the second offset and the second normalization coefficient corresponding to the cosine signal are calculated.
[0070] In addition, since the methods for collecting the signal to be corrected are not the same, the embodiment of the present application can illustrate a possible collection method.
[0071] In one case, before determining the function corresponding to the signal to be corrected, the method further includes:
[0072] When the speed of the motor is in a preset speed range, the physical signal of the rotary transformer is collected at fixed intervals;
[0073] Determining a signal to be corrected based on the physical signal;
[0074] The preset speed range is determined based on parameters of the rotary transformer and parameters of the motor.
[0075] In practical applications, due to the uncertainty of the project, it is necessary to select a suitable motor speed interval for signal acquisition based on the actual motor parameters and rotary transformer parameters in the acquisition of rotary transformer signals, because the signal waveform in this interval is relatively complete and undistorted. The acquisition time of the rotary transformer signal generally adopts a fixed time sampling interval of 100μs. If the selected speed is too low, the physical signal and circuit processing part of the rotary transformer itself have large errors, and the signal distortion is large, resulting in inaccurate corrected data; if the speed is too high and the signal frequency is high, it is difficult to collect data when it passes the zero point, resulting in incomplete sampling intervals, and then the corrected data is also incomplete. It can be understood that the correction device can collect physical signals of multiple rotary transformers, and then determine the interval passing the zero point from these physical signals as the signal to be corrected.
[0076] In addition, since the methods for determining the signal to be corrected are not the same, the embodiment of the present application can illustrate a possible determination method.
[0077] In one embodiment, determining the signal to be corrected based on the physical signal comprises:
[0078] In the same cycle, calculation is performed based on the two physical signals collected at two different time points to determine the angle difference generated by the rotary transformer between the two different time points;
[0079] All the physical signals collected between the two different time points whose angle difference is greater than π are used as signals to be corrected.
[0080] In practical applications, the correction device needs to determine whether the collected physical signal is a signal to be corrected. If so, the correction process is entered. The correction device collects the physical signal of the rotary transformer every Δt time. After the collection is completed, two physical signals (which can be recorded as the first signal and the second signal) in the same cycle are selected, and the angle difference Δθ generated by the rotary transformer during this period is calculated. Specifically, taking the first signal as an example, the first signal is decomposed into a sine signal and a cosine signal. Since no correction is performed, the function expression of the sine signal and the cosine signal adopts the theoretical parameter value, that is, the theoretical value of sinθ or cosθ, and the amplitude and offset are the hardware design values in theory. In this way, the tangent value corresponding to the first signal is calculated, and the electrical angle θ1 of the rotary transformer at the moment of collecting the first signal is obtained by the table lookup method. Similarly, the function expression of the cosine signal of the sine signal decomposed into the second signal also adopts the theoretical parameter value, and the tangent value corresponding to the second signal is obtained by calculation, and the electrical angle θ2 of the rotary transformer at the moment of collecting the second signal is obtained by the table lookup method. Then, the angle difference Δθ generated by the rotary transformer during this period is obtained by subtracting θ1 from θ2. If Δθ is greater than π, all physical signals collected in the time period between the time when the first signal is collected and the time when the second signal is collected are used as signals to be corrected, and then this part of the physical signals in this period are corrected, and then a complete corrected signal is obtained based on the graphic characteristics of the sine and cosine signals.
[0081] S103: Based on the first offset, the first normalization coefficient, the second offset, and the second normalization coefficient, perform offset correction and normalization processing on the signal to be corrected to obtain a corrected value of the sine signal and a corrected value of the cosine signal.
[0082] In practical applications, the calculated first offset, first normalization coefficient, second offset and second normalization coefficient are substituted into the expression y of the first function above: sin (θ) = G sin *(Ofs sin +sinθ) and the expression of the second function is y cos (θ) = G cos *(Ofs cos +cosθ), the bias correction and normalization processing of the signal to be corrected are implemented, and the correct values of sinθ and cosθ, that is, the value of the corrected sine function and the value of the corrected cosine signal, are obtained.
[0083] In addition, since the processing methods corresponding to different data are not the same, the embodiment of the present application can illustrate a possible processing method.
[0084] In one embodiment, the method further comprises:
[0085] When the speed of the motor is not within the preset speed range, the correction parameter state machine is reset.
[0086] Figure 4 A calculation flow chart of a rotary transformer signal correction coefficient provided in an embodiment of the present application. Figure 4 As shown, the correction device first obtains the physical signals of the rotary transformer collected at the current sampling moment and the adjacent previous sampling moment, and then performs calculations based on the two physical signals to obtain the angle difference Δθ generated by the rotary transformer between the two different time points. It can be understood that the time difference between the current sampling moment and the adjacent previous sampling moment is Δt. In addition, Δt can be reasonably valued according to the speed range. In the embodiment of the present application, Δt is generally set within half a cycle for ease of calculation. In this way, if the angle θ of the rotary transformer at the current sampling moment is 0 or 0<θ<Δθ (Δθ takes a smaller value of 1°, 2° or 3°, and the error is considered acceptable), it is considered that the angle θ has just passed the zero point, and the correction device marks this point with "1" and uses it as the correction starting point, and then starts to calculate the correction coefficient of the rotary transformer signal based on this moment, that is, the integration of the sin or cos function in the range of 0 to 2π; if θ≠0 or 0<θ≮Δθ, it is considered that the angle θ is not a zero point, and the correction device will mark it with "0", that is, the zero point mark position 1 and the zero crossing mark position 0. It can be understood that the mark "1" is the key to trigger signal correction, and the physical signal marked with "1" is the signal to be corrected. Then the correction device determines whether the motor speed is within the specified range. If not, the correction parameter state machine is reset; if so, it is not used. Based on the correction parameter state machine, the current angle value is assigned to the previous value variable, and the correction coefficient of the rotary transformer signal is calculated.
[0087] In addition, regarding how to use the corrected signal to control the motor, the method further includes:
[0088] Calculating the electrical angle of the resolver using the corrected value of the sine signal and the value of the cosine signal;
[0089] Determining the electrical angular velocity of the rotary transformer based on the electrical angle of the rotary transformer and the time difference of the acquisition signal;
[0090] Based on the ratio relationship between the number of pole pairs of the rotary transformer and the number of pole pairs of the motor rotor, the electrical angle of the rotary transformer is used to determine the electrical angular velocity of the motor, and a corresponding control signal is generated based on the electrical angular velocity of the motor.
[0091] In practical applications, the correct tangent value tanθ is divided by the value of the corrected sine function sinθ and the corrected cosine signal cosθ to obtain the correct tangent value tanθ, and then the correct electrical angle θ of the resolver is obtained by looking up the table. The electrical angular velocity of the resolver is calculated based on the sampling time difference Δt of the resolver signal, and then the electrical angular velocity of the motor is obtained by the ratio of the pole pairs of the resolver and the motor rotor, and a corresponding control signal is generated based on the electrical angular velocity of the motor to control the motor.
[0092] In summary, the present application first determines the function corresponding to the signal to be corrected. Wherein, the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected. Then, based on the first function and the second function, calculations are performed to obtain a first offset and a first normalization coefficient corresponding to the sine signal, as well as a second offset and a second normalization coefficient corresponding to the cosine signal. Finally, based on the first offset, the first normalization coefficient, the second offset and the second normalization coefficient, the signal to be corrected is bias-corrected and normalized to obtain the value of the corrected sine signal and the value of the cosine signal. In this way, the resolver signal is corrected by the offset and the normalization coefficient, thereby improving the accuracy of the angle calculation and making the control of the motor more accurate.
[0093] Based on the method for correcting a rotary transformer signal provided in the above embodiment, the embodiment of the present application further provides a device for correcting a rotary transformer signal. The device for correcting a rotary transformer signal is described below in conjunction with the embodiments and drawings.
[0094] Figure 5 A schematic diagram of the structure of a rotary transformer signal correction device provided in an embodiment of the present application. Figure 5 As shown, the rotary transformer signal correction device 500 provided in the embodiment of the present application includes:
[0095] A determination module 501 is used to determine a function corresponding to a signal to be corrected; the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected;
[0096] A calculation module 502, configured to perform calculation based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal;
[0097] The correction module 503 is used to perform offset correction and normalization processing on the signal to be corrected based on the first offset, the first normalization coefficient, the second offset and the second normalization coefficient to obtain the corrected value of the sine signal and the value of the cosine signal.
[0098] Among them, the expression of the first function is y sin (θ) = G sin *(Ofs sin +sinθ);
[0099] The expression of the second function is y cos (θ) = G cos *(Ofs cos +cosθ);
[0100] Where y sin (θ) is the sampling value corresponding to the resolver physical sinusoidal signal, G sin is the amplitude corresponding to the sinusoidal signal, Ofs sin is the offset parameter corresponding to the sinusoidal signal, sinθ is the standard sine, y cos (θ) is the sampling value corresponding to the physical cosine signal of the resolver, G cos is the amplitude corresponding to the cosine signal, Ofs cos is the offset parameter corresponding to the cosine signal, and cosθ is the standard cosine.
[0101] As an implementation manner, with respect to how to obtain the first offset and the first normalization coefficient corresponding to the sine signal, and the second offset and the second normalization coefficient corresponding to the cosine signal, the calculation module 502 is specifically used to:
[0102] The first function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a first integral expression group;
[0103] Solving based on the first integral expression, and obtaining a first offset and a first normalization coefficient corresponding to the sinusoidal signal;
[0104] The second function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a second integral expression group;
[0105] Based on the second integral expression, a second offset and a second normalization coefficient corresponding to the cosine signal are obtained.
[0106] As an implementation manner, with respect to how to collect the physical signal of the rotary transformer, the rotary transformer signal correction device 500 further includes: a collection module;
[0107] The acquisition module is used to acquire the physical signal of the rotary transformer at fixed intervals when the speed of the motor is in a preset speed range;
[0108] Determining a signal to be corrected based on the physical signal;
[0109] The preset speed range is determined based on parameters of the rotary transformer and parameters of the motor.
[0110] As an implementation manner, with respect to how to determine the signal to be corrected, the above-mentioned rotary transformer signal correction device 500 further includes: a determination submodule;
[0111] A determination submodule, configured to perform calculations based on the two physical signals collected at two different time points in the same cycle to determine an angle difference generated by the rotary transformer between the two different time points;
[0112] All the physical signals collected between the two different time points whose angle difference is greater than π are used as signals to be corrected.
[0113] As an implementation method, with respect to how to process abnormal data, the above-mentioned rotary transformer signal correction device 500 further includes: a reset module;
[0114] The reset module is used to reset the correction parameter state machine when the rotation speed of the motor is not within a preset rotation speed range.
[0115] As an implementation method, with respect to how to control the motor, the above-mentioned rotary transformer signal correction device 500 further includes: a control module;
[0116] A control module, configured to calculate the electrical angle of the resolver using the corrected value of the sine signal and the value of the cosine signal;
[0117] Determining the electrical angular velocity of the rotary transformer based on the electrical angle of the rotary transformer and the time difference of the acquisition signal;
[0118] Based on the ratio relationship between the number of pole pairs of the rotary transformer and the number of pole pairs of the motor rotor, the electrical angle of the rotary transformer is used to determine the electrical angular velocity of the motor, and a corresponding control signal is generated based on the electrical angular velocity of the motor.
[0119] In summary, the present application first determines the function corresponding to the signal to be corrected. Wherein, the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected. Then, based on the first function and the second function, calculations are performed to obtain a first offset and a first normalization coefficient corresponding to the sine signal, as well as a second offset and a second normalization coefficient corresponding to the cosine signal. Finally, based on the first offset, the first normalization coefficient, the second offset and the second normalization coefficient, the signal to be corrected is bias-corrected and normalized to obtain the value of the corrected sine signal and the value of the cosine signal. In this way, the resolver signal is corrected by the offset and the normalization coefficient, thereby improving the accuracy of the angle calculation and making the control of the motor more accurate.
[0120] In addition, the present application also provides a device for correcting a resolver signal, comprising: a memory for storing a computer program; and a processor for implementing the steps of the method for correcting a resolver signal as described in any one of the above items when executing the computer program.
[0121] In addition, the present application also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for correcting a resolver signal as described in any one of the above items are implemented.
[0122] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for correcting a resolver signal, characterized in that: The method comprises: Determine a function corresponding to a signal to be corrected; the signal to be corrected includes a sine signal and a cosine signal; the function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected; Performing calculation based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal; Based on the first offset, the first normalization coefficient, the second offset, and the second normalization coefficient, the signal to be corrected is subjected to offset correction and normalization processing to obtain a corrected value of the sine signal and a corrected value of the cosine signal.
2. The method according to claim 1, characterized in that: The expression of the first function is y sin (θ) = G sin (Ofs sin +sinθ); The expression of the second function is y cos (θ) = G cos *(Ofs cos +cosθ); Where y sin (θ) is the sampling value corresponding to the resolver physical sinusoidal signal, G sin is the amplitude corresponding to the sinusoidal signal, Ofs sin is the offset parameter corresponding to the sinusoidal signal, sinθ is the standard sine, y cos (θ) is the sampling value corresponding to the physical cosine signal of the resolver, G cos is the amplitude corresponding to the cosine signal, Ofs cos is the offset parameter corresponding to the cosine signal, and cosθ is the standard cosine.
3. The method according to claim 2, characterized in that The calculating based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal includes: The first function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a first integral expression group; Solving based on the first integral expression, and obtaining a first offset and a first normalization coefficient corresponding to the sinusoidal signal; The second function is combined with the standard sine and the standard cosine respectively, and a definite integral operation is performed on a period passing through the zero point to obtain a second integral expression group; Based on the second integral expression, a second offset and a second normalization coefficient corresponding to the cosine signal are obtained.
4. The method according to claim 1, characterized in that Before determining the function corresponding to the signal to be corrected, the method further includes: When the speed of the motor is in a preset speed range, the physical signal of the rotary transformer is collected at fixed intervals; Determining a signal to be corrected based on the physical signal; The preset speed range is determined based on parameters of the rotary transformer and parameters of the motor.
5. The method according to claim 4, characterized in that The determining the signal to be corrected based on the physical signal comprises: In the same cycle, calculation is performed based on the two physical signals collected at two different time points to determine the angle difference generated by the rotary transformer between the two different time points; All the physical signals collected between the two different time points whose angle difference is greater than π are used as signals to be corrected.
6. The method according to claim 5, characterized in that The method further comprises: When the speed of the motor is not within the preset speed range, the correction parameter state machine is reset.
7. The method according to claim 1, characterized in that The method further comprises: Calculating the electrical angle of the resolver using the corrected value of the sine signal and the value of the cosine signal; Determining the electrical angular velocity of the rotary transformer based on the electrical angle of the rotary transformer and the time difference of the acquisition signal; Based on the ratio relationship between the number of pole pairs of the rotary transformer and the number of pole pairs of the motor rotor, the electrical angle of the rotary transformer is used to determine the electrical angular velocity of the motor, and a corresponding control signal is generated based on the electrical angular velocity of the motor.
8. A device for correcting a rotary transformer signal, characterized in that: include: A determination module, used to determine a function corresponding to a signal to be corrected; the signal to be corrected includes a sine signal and a cosine signal; The function includes a first function corresponding to the sine signal to be corrected and a second function corresponding to the cosine signal to be corrected; A calculation module, configured to perform calculation based on the first function and the second function to obtain a first offset and a first normalization coefficient corresponding to the sine signal, and a second offset and a second normalization coefficient corresponding to the cosine signal; A correction module is used to perform offset correction and normalization processing on the signal to be corrected based on the first offset, the first normalization coefficient, the second offset and the second normalization coefficient to obtain the corrected value of the sine signal and the value of the cosine signal.
9. A device for calculating wading depth, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for correcting a resolver signal according to any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for correcting a resolver signal according to any one of claims 1 to 7 are implemented.
