Resolver and calibration method and device therefor, storage medium, and control system
By inputting the preset carrier signal into the resolver and updating the correction coefficient, the problem of signal drift under the influence of environment and temperature is solved, and the system stability and measurement accuracy are improved.
Patent Information
- Application Number
- PCT/CN2023/138690
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2023-12-14
- Publication Date
- 2024-10-03
AI Technical Summary
The resolver output signal is affected by the environment and temperature during processing, causing drift and imbalance, affecting the stability of the motion servo control system.
By inputting a sinusoidal carrier signal of preset frequency and amplitude to the rotor coil, the quadrature modulation signal output by the stator coil is obtained, and the correction coefficient is updated in different angle ranges, the signal is automatically corrected to eliminate the amplitude imbalance, and a calibration state is introduced to Improve the rigor of control logic.
It improves the stability of the resolver system and the accuracy of angular position measurement, and reduces the logic control error rate and the probability of repeated signal acquisition during the calibration process.
Smart Images

Figure CN2023138690_03102024_PF_FP_ABST
Abstract
Description
Rotary transformer and calibration method, device, storage medium and control system thereof
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 27, 2023, with application number "202310305524.0" and titled "Rotary Transformer and Its Calibration Method, Device, Storage Medium and Control System", the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of control technology, and in particular to a rotary transformer and a calibration method, device, storage medium and control system thereof. Background Art
[0003] In related technical solutions, since the output signal of the rotary transformer is affected by the environment, temperature, etc. during the processing process, drift and imbalance may occur.
[0004] The above drift and imbalance will cause the amplitudes of the Sin and Cos signals to be not completely equal, and the resulting angular position information will fluctuate, affecting the stability of the motion servo control system.
[0005] Summary of the Invention
[0006] This application aims to solve at least one of the technical problems existing in the prior art or related art.
[0007] To this end, a first aspect of the present application is to provide a calibration method for a rotary transformer.
[0008] A second aspect of the present application is to provide a calibration device for a rotary transformer.
[0009] A third aspect of the present application is to provide another rotary transformer calibration device.
[0010] A fourth aspect of the present application is to provide a readable storage medium.
[0011] A fifth aspect of the present application is to provide a computer program product.
[0012] A sixth aspect of the present application is to provide a rotary transformer.
[0013] A seventh aspect of the present application is to provide a control system for a rotary transformer.
[0014] In view of this, according to the first aspect of the present application, the present application provides a calibration method for a rotating transformer, the rotating transformer includes a stator coil and a rotor coil, and the calibration method includes: inputting a sinusoidal carrier signal of a preset frequency and a preset amplitude into the rotor coil so that the stator coil outputs an orthogonal modulation signal; demodulating the modulation signal to obtain a first signal and a second signal, wherein the first signal has a first correction coefficient and the second signal has a second correction coefficient; when the rotor angle of the rotating transformer is within different angle ranges, obtaining the current value of the second signal and the first signal; when the value of one of the first correction coefficient and the second correction coefficient remains unchanged, updating the value of the other correction coefficient of the first correction coefficient and the second correction coefficient according to the current value.
[0015] The technical solution of the present application proposes a calibration method for a rotary transformer. By running the above calibration method, the first correction coefficient and the second correction coefficient can be automatically corrected to eliminate the incomplete equality of the amplitudes of the output first signal and the second signal caused by the rotary transformer being affected by the environment, temperature, etc., that is, to eliminate the fluctuations in the amplitudes of the first signal and the second signal when the angle is sensed or measured based on the rotary transformer, thereby improving the stability of the system in which the rotary transformer is located.
[0016] In addition, the rotary transformer calibration method proposed in this application also has the following additional technical features.
[0017] In the above technical solution, when the rotor angle of the rotating transformer is within different angle ranges, the current values of the second signal and the first signal are obtained, specifically including: obtaining the calibration state of the rotating transformer; when the calibration state is the first state, obtaining the first value of the second signal and the second value of the first signal when the rotor angle is within the first angle range, and modifying the calibration state to the second state; and when the calibration state is the second state, obtaining the third value of the second signal and the fourth value of the first signal when the rotor angle is within the second angle range.
[0018] In this technical solution, a concept of calibration state is introduced for the calibration of the rotary transformer. By introducing the concept of calibration state, the calibration process can be guided by the calibration state, thereby promoting the rigor of the control logic in the entire calibration process and reducing the probability of errors in logic control during the calibration process.
[0019] In addition, after obtaining the values of the first signal and the second signal when the rotor angle is in different angle ranges, the calibration state will be modified to ensure that the values of the first signal and the second signal are obtained only once in the same calibration state, further reducing the probability of obtaining the values of the first signal and the second signal multiple times or repeatedly in the same calibration state, thereby ensuring the reliability of the calibration method.
[0020] In any of the above technical solutions, when the value of one of the first correction coefficient and the second correction coefficient remains unchanged, the value of the other correction coefficient of the first correction coefficient and the second correction coefficient is updated according to the current value, specifically including: when the value of the first correction coefficient remains unchanged, determining a first difference between the square value of the second value and the square value of the fourth value, and a second difference between the square value of the first value and the square value of the third value; and determining the value of the updated second correction coefficient based on the ratio of the first difference to the second difference.
[0021] In this technical solution, the process of determining the value of the second correction coefficient is defined when the first correction coefficient remains unchanged. Specifically, the difference corresponding to the square value of the first signal value when the rotor angle is in different angle ranges, that is, the first difference, is calculated. At the same time, the difference corresponding to the square value of the second signal value when the rotor angle is in different angle ranges is also calculated, and the first difference is compared with the second difference to obtain a ratio.
[0022] The above ratio can characterize the magnitude of the change in the value of the first signal and the magnitude of the change in the value of the second signal. By calculating the above ratio, the change in the values of the first signal and the second signal is applied to the second signal according to the above ratio, that is, the second correction coefficient in this application is obtained, so that the amplitude of the second signal after weighted processing using the second correction coefficient is almost the same as the amplitude of the first signal, so that when the first signal and the second signal are used to sense and measure the angular position, the accuracy of the sensing and measurement of the above angular position can be improved.
[0023] In the above technical solution, the square value is used for difference calculation so that the selection process of the second correction coefficient focuses on the amplitudes of the first signal and the second signal, thereby ensuring the accuracy of the second correction coefficient.
[0024] In any of the above technical solutions, the value of the updated second correction coefficient is expressed as follows:
[0025] Wherein, CosGain is the updated value of the second correction coefficient, Sinθ0 is the second value, Sinθ1 is the fourth value, Cosθ0 is the first value, and Cosθ1 is the third value.
[0026] Among them, Sin 2 θ0 is the square value of the second value, Sin 2 θ1 is the square value of the fourth value, Cos 2 θ0 is the square value of the first value, Cos 2 θ1 is the square of the third value.
[0027] In one of the technical solutions, SinGain is the value of the first correction coefficient, which defaults to 1.
[0028] In any of the above technical solutions, it also includes: receiving a calibration input; in response to the calibration input, modifying the calibration state of the resolver to a first state; and when the calibration state is the second state, modifying the calibration state of the resolver to a third state.
[0029] In this technical solution, the calibration input may be a start-up input for a certain function in the resolver. Specifically, if the resolver has a calibration function, the calibration input is the selection of the calibration function.
[0030] In one of the technical solutions, the resolver has a calibration mode, and the calibration input is the selection of the calibration mode.
[0031] In the above technical solution, after responding to the calibration input, the calibration state is modified to the first state so that when the calibration state is detected to be the first state, the current values of the first signal and the second signal are executed, thereby realizing the correction of the first correction coefficient and the second correction coefficient.
[0032] In this technical solution, it is ensured that the calibration state will be changed to the first state only when the calibration input is received, thereby ensuring the reliability of the calibration process.
[0033] In the above technical solution, when the calibration state is the second state, the calibration state is modified to the third state to avoid the calibration state from remaining in the second state, so that the third value and the fourth value are continuously updated, affecting the determination of the first correction coefficient and the second correction coefficient.
[0034] In any of the above technical solutions, the first angle range has a first upper limit value and a first lower limit value, the first lower limit value is between 80° and 100°, and the first upper limit value is between 110° and 130°; and / or the second angle range has a second upper limit value and a second lower limit value, the second lower limit value is between 170° and 190°, and the second upper limit value is between 200° and 220°.
[0035] In any of the above technical solutions, it also includes: weighting the first signal and the second signal according to the first correction coefficient and the updated second correction coefficient, and outputting the weighted signal.
[0036] In this technical solution, by outputting a weighted signal, the rotor angle is estimated using the weighted signal, thereby ensuring the accuracy of the rotor angle estimation without affecting the normal operation of the resolver.
[0037] According to the second aspect of the present application, the present application provides a calibration device for a rotating transformer, the rotating transformer includes a stator coil and a rotor coil, and the calibration device includes: an input unit for inputting a sinusoidal carrier signal of a preset frequency and a preset amplitude into the rotor coil so that the stator coil outputs an orthogonal modulation signal; a demodulation unit for demodulating the modulation signal to obtain a first signal and a second signal, the first signal having a first correction coefficient, and the second signal having a second correction coefficient; an acquisition unit for obtaining the current values of the second signal and the first signal when the rotor angle of the rotating transformer is within different angle ranges; a calibration unit for updating the value of the other correction coefficient of the first correction coefficient and the second correction coefficient according to the current value when the value of one of the first correction coefficient and the second correction coefficient remains unchanged.
[0038] The technical solution of the present application proposes a calibration device for a rotary transformer, which can automatically correct the first correction coefficient and the second correction coefficient to eliminate the problem that the amplitudes of the output first signal and the second signal are not completely equal when the rotary transformer is affected by the environment, temperature, etc., that is, to eliminate the fluctuations in the amplitudes of the first signal and the second signal when the angle is sensed or measured based on the rotary transformer, thereby improving the stability of the system in which the rotary transformer is located.
[0039] In addition, the rotary transformer calibration device proposed in this application also has the following additional technical features.
[0040] In the above technical solution, the acquisition unit is specifically used to: obtain the calibration state of the rotating transformer; when the calibration state is the first state, obtain the first value of the second signal and the second value of the first signal when the rotor angle is within the first angle range, and modify the calibration state to the second state; and when the calibration state is the second state, obtain the third value of the second signal and the fourth value of the first signal when the rotor angle is within the second angle range.
[0041] In this technical solution, a concept of calibration state is introduced for the calibration of the rotary transformer. By introducing the concept of calibration state, the calibration process can be guided by the calibration state, thereby promoting the rigor of the control logic in the entire calibration process and reducing the probability of errors in logic control during the calibration process.
[0042] In addition, after obtaining the values of the first signal and the second signal when the rotor angle is in different angle ranges, the calibration state will be modified to ensure that the values of the first signal and the second signal are obtained only once in the same calibration state, further reducing the probability of obtaining the values of the first signal and the second signal multiple times or repeatedly in the same calibration state, thereby ensuring the reliability of the calibration method.
[0043] In the above technical solution, the calibration unit is specifically used to: determine a first difference between the square value of the second value and the square value of the fourth value, and a second difference between the square value of the first value and the square value of the third value when the value of the first correction coefficient remains unchanged; and determine the value of the updated second correction coefficient based on the ratio of the first difference to the second difference.
[0044] In this technical solution, the process of determining the value of the second correction coefficient is defined when the first correction coefficient remains unchanged. Specifically, the difference corresponding to the square value of the first signal value when the rotor angle is in different angle ranges, that is, the first difference, is calculated. At the same time, the difference corresponding to the square value of the second signal value when the rotor angle is in different angle ranges is also calculated, and the first difference is compared with the second difference to obtain a ratio.
[0045] The above ratio can characterize the magnitude of the change in the value of the first signal and the magnitude of the change in the value of the second signal. By calculating the above ratio, the change in the values of the first signal and the second signal is applied to the second signal according to the above ratio, that is, the second correction coefficient in this application is obtained, so that the amplitude of the second signal after weighted processing using the second correction coefficient is almost the same as the amplitude of the first signal, so that when the first signal and the second signal are used to sense and measure the angular position, the accuracy of the sensing and measurement of the above angular position can be improved.
[0046] In the above technical solution, the square value is used for difference calculation so that the selection process of the second correction coefficient focuses on the amplitudes of the first signal and the second signal, thereby ensuring the accuracy of the second correction coefficient.
[0047] In the above technical solution, the value of the updated second correction coefficient is expressed as follows:
[0048] Wherein, CosGain is the updated value of the second correction coefficient, Sinθ0 is the second value, Sinθ1 is the fourth value, Cosθ0 is the first value, and Cosθ1 is the third value.
[0049] Wherein, CosGain is the updated value of the second correction coefficient, Sinθ0 is the second value, Sinθ1 is the fourth value, Cosθ0 is the first value, and Cosθ1 is the third value.
[0050] Among them, Sin 2 θ0 is the square value of the second value, Sin 2 θ1 is the square value of the fourth value, Cos 2 θ0 is the square value of the first value, Cos 2 θ1 is the square of the third value.
[0051] In one of the technical solutions, SinGain is the value of the first correction coefficient, which defaults to 1.
[0052] In any of the above technical solutions, the calibration unit is further used to: receive a calibration input; modify the calibration state of the rotary transformer to the first state in response to the calibration input; and modify the calibration state of the rotary transformer to the third state when the calibration state is the second state.
[0053] In this technical solution, the calibration input may be a start-up input for a certain function in the resolver. Specifically, if the resolver has a calibration function, the calibration input is the selection of the calibration function.
[0054] In one of the technical solutions, the resolver has a calibration mode, and the calibration input is the selection of the calibration mode.
[0055] In the above technical solution, after responding to the calibration input, the calibration state is modified to the first state so that when the calibration state is detected to be the first state, the current values of the first signal and the second signal are executed, thereby realizing the correction of the first correction coefficient and the second correction coefficient.
[0056] In this technical solution, it is ensured that the calibration state will be changed to the first state only when the calibration input is received, thereby ensuring the reliability of the calibration process.
[0057] In the above technical solution, when the calibration state is the second state, the calibration state is modified to the third state to avoid the calibration state from remaining in the second state, so that the third value and the fourth value are continuously updated, affecting the determination of the first correction coefficient and the second correction coefficient.
[0058] In any of the above technical solutions, the first angle range has a first upper limit value and a first lower limit value, the first lower limit value is between 80° and 100°, and the first upper limit value is between 110° and 130°; and / or the second angle range has a second upper limit value and a second lower limit value, the second lower limit value is between 170° and 190°, and the second upper limit value is between 200° and 220°.
[0059] In any of the above technical solutions, the calibration unit is further used to: perform weighted processing on the first signal and the second signal according to the first correction coefficient and the updated second correction coefficient, and output the weighted signal.
[0060] In this technical solution, by outputting a weighted signal, the rotor angle is estimated using the weighted signal, thereby ensuring the accuracy of the rotor angle estimation without affecting the normal operation of the resolver.
[0061] According to the third aspect of the present application, the present application provides a calibration device for a rotary transformer, comprising: a processor and a memory, the memory storing programs or instructions that can be run on the processor, and implementing the steps of any of the above methods when the programs or instructions are executed by the processor.
[0062] According to the fourth aspect of the present application, the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of any of the above methods are implemented.
[0063] According to a fifth aspect of the present application, the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of any of the above methods.
[0064] According to a sixth aspect of the present application, the present application provides a rotary transformer, comprising: a calibration device as any of the above rotary transformers; and / or the above readable storage medium; and / or the above computer program product.
[0065] According to the seventh aspect of the present application, the present application provides a control system for a rotating transformer, including: a carrier signal generating module, connected to the rotor coil of the rotating transformer, for outputting a sinusoidal carrier signal of a preset frequency and a preset amplitude; a demodulation module, connected to the stator coil of the rotating transformer, for demodulating the orthogonal modulation signal output by the stator coil to obtain a first signal and a second signal; a correction module, connected to the demodulation module, for executing to implement the steps of any one of the above methods.
[0066] In the above technical solution, the control system of the resolver further includes: a calculation module connected to the correction module, and configured to determine the rotor angle of the resolver according to the weighted signal.
[0067] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0069] FIG1 is a schematic diagram showing a flow chart of a method for calibrating a rotary transformer in an embodiment of the present application;
[0070] FIG2 shows a schematic block diagram of a rotary transformer calibration device according to an embodiment of the present application;
[0071] FIG3 shows a schematic block diagram of another rotary transformer calibration device according to an embodiment of the present application;
[0072] FIG4 shows a schematic block diagram of a control system of a rotary transformer in an embodiment of the present application;
[0073] FIG5 shows a schematic diagram of the control logic of the correction module in an embodiment of the present application;
[0074] FIG6 shows a topological diagram of the correction module in an embodiment of the present application.
[0075] 4 , the corresponding relationship between the reference numerals and component names is as follows: 402 carrier signal generating module, 404 rotary transformer, 406 demodulation module, 408 correction module, 410 calculation module. DETAILED DESCRIPTION
[0076] In order to more clearly understand the above aspects, features and advantages of the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features therein can be combined with each other in the absence of conflict.
[0077] In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present application is not limited to the specific embodiments disclosed below.
[0078] In one embodiment of the present application, as shown in FIG1 , a calibration method for a rotary transformer is provided. The rotary transformer includes a stator coil and a rotor coil. The calibration method includes:
[0079] Step 102: Input a sinusoidal carrier signal of a preset frequency and amplitude to the rotor coil, so that the stator coil outputs an orthogonal modulation signal;
[0080] Step 104: demodulate the modulated signal to obtain a first signal and a second signal, wherein the first signal has a first correction coefficient and the second signal has a second correction coefficient;
[0081] Step 106: when the rotor angle of the resolver is within different angle ranges, obtain current values of the second signal and the first signal;
[0082] Step 108 : When the value of one of the first correction coefficient and the second correction coefficient remains unchanged, update the value of the other correction coefficient according to the current value.
[0083] An embodiment of the present application proposes a calibration method for a rotary transformer. By running the above calibration method, the first correction coefficient and the second correction coefficient can be automatically corrected to eliminate the incomplete equality of the amplitudes of the first signal and the second signal output when the rotary transformer is affected by the environment, temperature, etc., that is, to eliminate the fluctuations in the amplitudes of the first signal and the second signal when the angle is sensed or measured based on the rotary transformer, thereby improving the stability of the system in which the rotary transformer is located.
[0084] The embodiments of the present application are implemented based on the following principles. Specifically, a first correction coefficient and a second correction coefficient are set for the first signal and the second signal respectively. The first correction coefficient and the second correction coefficient are adjusted to correct the first signal and the second signal so that the signal amplitudes of the first signal and the second signal output after correction are almost the same. Therefore, when the first signal and the second signal are used to sense and measure the angular position, the accuracy of the sensing and measurement of the above-mentioned angular position can be improved.
[0085] Among them, a sinusoidal carrier signal with a preset frequency and a preset amplitude is used as the input signal of the rotor coil to eliminate the difference between the first signal and the second signal obtained after the stator coil output is analyzed due to the difference in the input signal. That is, a fixed input signal is used to calibrate the rotating transformer to eliminate the deviation in the calibration caused by the difference in the input signal, thereby ensuring the accuracy of the calibration.
[0086] In the above embodiment, the preset frequency can be set according to actual usage needs, and will not be described in detail here.
[0087] Similarly, the preset amplitude is also determined according to actual usage needs and will not be elaborated here.
[0088] In the above embodiment, considering that the first correction coefficient and the second correction coefficient are used for weighted processing of the first signal and the second signal, after the weighted processing, they will affect the information of the rotor in the rotating transformer at different postures. If there is a deviation between the first correction coefficient and the second correction coefficient, it will cause a larger deviation in the amplitude of the first signal and the second signal.
[0089] By limiting the current values of the first and second signals to those within different angular ranges of the rotor angle, and determining the values of the first or second correction coefficient based on these values, the first or second correction coefficient is adjusted to fully account for the posture of the resolver's rotor at different rotational positions, thereby ensuring the accuracy of the first or second correction coefficients.
[0090] In the above embodiment, in the process of determining the values of the first correction coefficient and the second correction coefficient, calibration is achieved by keeping one of the values unchanged and determining the value of the other one, so that there will be no large deviation between the amplitudes corresponding to the first signal and the second signal.
[0091] In the above embodiment, when the rotor angle of the rotating transformer is within different angle ranges, the current values of the second signal and the first signal are obtained, specifically including: obtaining the calibration state of the rotating transformer; when the calibration state is the first state, obtaining the first value of the second signal and the second value of the first signal when the rotor angle is within the first angle range, and modifying the calibration state to the second state; and when the calibration state is the second state, obtaining the third value of the second signal and the fourth value of the first signal when the rotor angle is within the second angle range.
[0092] In this embodiment, a concept of a calibration state is introduced for the calibration of the rotary transformer. By introducing the concept of the calibration state, the calibration process is guided by the calibration state, thereby promoting the rigor of the control logic in the entire calibration process and reducing the probability of errors in the logic control during the calibration process.
[0093] In addition, after obtaining the values of the first signal and the second signal when the rotor angle is in different angle ranges, the calibration state will be modified to ensure that the values of the first signal and the second signal are obtained only once in the same calibration state, further reducing the probability of obtaining the values of the first signal and the second signal multiple times or repeatedly in the same calibration state, thereby ensuring the reliability of the calibration method.
[0094] In any of the above embodiments, when the value of one of the first correction coefficient and the second correction coefficient remains unchanged, the value of the other correction coefficient of the first correction coefficient and the second correction coefficient is updated according to the current value, specifically including: when the value of the first correction coefficient remains unchanged, determining a first difference between the square value of the second value and the square value of the fourth value, and a second difference between the square value of the first value and the square value of the third value; and determining the value of the updated second correction coefficient based on the ratio of the first difference to the second difference.
[0095] In this embodiment, the process of determining the value of the second correction coefficient when the first correction coefficient remains unchanged is defined. Specifically, the difference corresponding to the square value of the first signal value when the rotor angle is in different angle ranges, that is, the first difference, is calculated. At the same time, the difference corresponding to the square value of the second signal value when the rotor angle is in different angle ranges is also calculated, and the first difference is compared with the second difference to obtain a ratio.
[0096] The above ratio can characterize the magnitude of the change in the value of the first signal and the magnitude of the change in the value of the second signal. By calculating the above ratio, the change in the values of the first signal and the second signal is applied to the second signal according to the above ratio, that is, the second correction coefficient in this application is obtained, so that the amplitude of the second signal after weighted processing using the second correction coefficient is almost the same as the amplitude of the first signal, so that when the first signal and the second signal are used to sense and measure the angular position, the accuracy of the sensing and measurement of the above angular position can be improved.
[0097] In the above embodiment, the square value is used for difference calculation so that the selection process of the second correction coefficient focuses on the amplitudes of the first signal and the second signal, thereby ensuring the accuracy of the second correction coefficient.
[0098] In any of the above embodiments, the value of the updated second correction coefficient is expressed as follows:
[0099] Wherein, CosGain is the updated value of the second correction coefficient, Sinθ0 is the second value, Sinθ1 is the fourth value, Cosθ0 is the first value, and Cosθ1 is the third value.
[0100] Among them, Sin 2 θ0 is the square value of the second value, Sin 2 θ1 is the square value of the fourth value, Cos 2 θ0 is the square value of the first value, Cos 2 θ1 is the square of the third value.
[0101] In one embodiment, SinGain is the value of the first correction coefficient, which defaults to 1.
[0102] In any of the above embodiments, the method further includes: receiving a calibration input; modifying the calibration state of the resolver to a first state in response to the calibration input; and modifying the calibration state of the resolver to a third state when the calibration state is the second state.
[0103] In this embodiment, the calibration input may be a start input of a certain function in the resolver. Specifically, if the resolver has a calibration function, the calibration input is the selection of the calibration function.
[0104] In one embodiment, the resolver has a calibration mode, and the calibration input is a selection of the calibration mode.
[0105] In the above embodiment, after responding to the calibration input, the calibration state is modified to the first state so that when the calibration state is detected to be the first state, the current values of the first signal and the second signal are executed, thereby achieving correction of the first correction coefficient and the second correction coefficient.
[0106] In this embodiment, it is ensured that the calibration state is changed to the first state only when the calibration input is received, thereby ensuring the reliability of the calibration process.
[0107] In the above embodiment, when the calibration state is the second state, the calibration state is modified to the third state to avoid the calibration state from remaining in the second state, so that the third value and the fourth value are continuously updated, affecting the determination of the first correction coefficient and the second correction coefficient.
[0108] In any of the above embodiments, the first angle range has a first upper limit value and a first lower limit value, the first lower limit value is between 80° and 100°, and the first upper limit value is between 110° and 130°; and / or the second angle range has a second upper limit value and a second lower limit value, the second lower limit value is between 170° and 190°, and the second upper limit value is between 200° and 220°.
[0109] In any of the above embodiments, the method further includes: weighting the first signal and the second signal according to the first correction coefficient and the updated second correction coefficient, and outputting the weighted signal.
[0110] In this embodiment, the weighted signal is output so that the rotor angle can be estimated using the weighted signal, thereby ensuring the accuracy of the rotor angle estimation without affecting the normal operation of the resolver.
[0111] In one embodiment, as shown in Figure 2, the present application provides a calibration device 200 for a rotating transformer, the rotating transformer includes a stator coil and a rotor coil, and the calibration device includes: an input unit 202, used to input a sinusoidal carrier signal of a preset frequency and a preset amplitude into the rotor coil, so that the stator coil outputs an orthogonal modulation signal; a demodulation unit 204, used to demodulate the modulation signal to obtain a first signal and a second signal, the first signal having a first correction coefficient, and the second signal having a second correction coefficient; an acquisition unit 206, used to obtain the current values of the second signal and the first signal when the rotor angle of the rotating transformer is within different angle ranges; a calibration unit 208, used to update the value of the other correction coefficient of the first correction coefficient and the second correction coefficient according to the current value when the value of one of the first correction coefficient and the second correction coefficient remains unchanged.
[0112] An embodiment of the present application proposes a calibration device 200 for a rotary transformer, which can automatically correct the first correction coefficient and the second correction coefficient to eliminate the problem that the amplitudes of the output first signal and the second signal are not completely equal when the rotary transformer is affected by the environment, temperature, etc., that is, to eliminate the fluctuations in the amplitudes of the first signal and the second signal when the angle is sensed or measured based on the rotary transformer, thereby improving the stability of the system in which the rotary transformer is located.
[0113] In the above embodiment, the acquisition unit is specifically used to: obtain the calibration state of the rotating transformer; when the calibration state is the first state, obtain the first value of the second signal and the second value of the first signal when the rotor angle is within the first angle range, and modify the calibration state to the second state; and when the calibration state is the second state, obtain the third value of the second signal and the fourth value of the first signal when the rotor angle is within the second angle range.
[0114] In this embodiment, a concept of a calibration state is introduced for the calibration of the rotary transformer. By introducing the concept of the calibration state, the calibration process is guided by the calibration state, thereby promoting the rigor of the control logic in the entire calibration process and reducing the probability of errors in the logic control during the calibration process.
[0115] In addition, after obtaining the values of the first signal and the second signal when the rotor angle is in different angle ranges, the calibration state will be modified to ensure that the values of the first signal and the second signal are obtained only once in the same calibration state, further reducing the probability of obtaining the values of the first signal and the second signal multiple times or repeatedly in the same calibration state, thereby ensuring the reliability of the calibration method.
[0116] In the above embodiment, the calibration unit is specifically used to: determine a first difference between the square value of the second value and the square value of the fourth value, and a second difference between the square value of the first value and the square value of the third value when the value of the first correction coefficient remains unchanged; and determine the value of the updated second correction coefficient based on the ratio of the first difference to the second difference.
[0117] In this embodiment, the process of determining the value of the second correction coefficient when the first correction coefficient remains unchanged is defined. Specifically, the difference corresponding to the square value of the first signal value when the rotor angle is in different angle ranges, that is, the first difference, is calculated. At the same time, the difference corresponding to the square value of the second signal value when the rotor angle is in different angle ranges is also calculated, and the first difference is compared with the second difference to obtain a ratio.
[0118] The above ratio can characterize the magnitude of the change in the value of the first signal and the magnitude of the change in the value of the second signal. By calculating the above ratio, the change in the values of the first signal and the second signal is applied to the second signal according to the above ratio, that is, the second correction coefficient in this application is obtained, so that the amplitude of the second signal after weighted processing using the second correction coefficient is almost the same as the amplitude of the first signal, so that when the first signal and the second signal are used to sense and measure the angular position, the accuracy of the sensing and measurement of the above angular position can be improved.
[0119] In the above embodiment, the square value is used for difference calculation so that the selection process of the second correction coefficient focuses on the amplitudes of the first signal and the second signal, thereby ensuring the accuracy of the second correction coefficient.
[0120] In the above embodiment, the value of the updated second correction coefficient is expressed as follows:
[0121] Wherein, CosGain is the updated value of the second correction coefficient, Sinθ0 is the second value, Sinθ1 is the fourth value, Cosθ0 is the first value, and Cosθ1 is the third value.
[0122] Wherein, CosGain is the updated value of the second correction coefficient, Sinθ0 is the second value, Sinθ1 is the fourth value, Cosθ0 is the first value, and Cosθ1 is the third value.
[0123] Among them, Sin 2 θ0 is the square value of the second value, Sin 2 θ1 is the square value of the fourth value, Cos 2 θ0 is the square value of the first value, Cos 2 θ1 is the square of the third value.
[0124] In one embodiment, SinGain is the value of the first correction coefficient, which defaults to 1.
[0125] In any of the above embodiments, the calibration unit is further configured to: receive a calibration input; modify the calibration state of the resolver to the first state in response to the calibration input; and modify the calibration state of the resolver to the third state when the calibration state is the second state.
[0126] In this embodiment, the calibration input may be a start input of a certain function in the resolver. Specifically, if the resolver has a calibration function, the calibration input is the selection of the calibration function.
[0127] In one embodiment, the resolver has a calibration mode, and the calibration input is the selected calibration mode.
[0128] In the above embodiment, after responding to the calibration input, the calibration state is modified to the first state so that when the calibration state is detected to be the first state, the current values of the first signal and the second signal are executed, thereby achieving correction of the first correction coefficient and the second correction coefficient.
[0129] In this embodiment, it is ensured that the calibration state is changed to the first state only when the calibration input is received, thereby ensuring the reliability of the calibration process.
[0130] In the above embodiment, when the calibration state is the second state, the calibration state is modified to the third state to avoid the calibration state from remaining in the second state, so that the third value and the fourth value are continuously updated, affecting the determination of the first correction coefficient and the second correction coefficient.
[0131] In any of the above embodiments, the first angle range has a first upper limit value and a first lower limit value, the first lower limit value is between 80° and 100°, and the first upper limit value is between 110° and 130°; and / or the second angle range has a second upper limit value and a second lower limit value, the second lower limit value is between 170° and 190°, and the second upper limit value is between 200° and 220°.
[0132] In any of the above embodiments, the calibration unit is further configured to: perform weighted processing on the first signal and the second signal according to the first correction coefficient and the updated second correction coefficient, and output the weighted signal.
[0133] In this embodiment, the weighted signal is output so that the rotor angle can be estimated using the weighted signal, thereby ensuring the accuracy of the rotor angle estimation without affecting the normal operation of the resolver.
[0134] In one embodiment, as shown in FIG3 , the present application provides a rotary transformer calibration device 300 , comprising: a processor 302 and a memory 304 , wherein the memory 304 stores programs or instructions that can be run on the processor 302 , and when the programs or instructions are executed by the processor, the steps of any of the above methods are implemented.
[0135] The memory 304 can be used to store software programs and various data. The memory 304 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 304 can include a volatile memory or a non-volatile memory, or the memory can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0136] In one embodiment, the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of any of the above methods are implemented.
[0137] The readable storage medium is a computer-readable storage medium, which can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer-readable storage medium can be, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer-readable storage media includes: a portable computer floppy disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory card, a floppy disk, an encoding mechanical device (such as a punched card or a groove with a raised structure on which instructions are recorded), and any suitable combination of the above. The computer-readable storage medium used herein should not be understood as a transmission signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium, or electrical signals transmitted through wires.
[0138] In one embodiment, the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of any of the above methods.
[0139] The methods may be implemented in various ways depending on the specific features and / or example applications. For example, the methods may be implemented through a combination of hardware, firmware, and / or software. For example, in a hardware implementation, the processor may be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, electronic devices, other device units for performing the above functions, and / or combinations thereof.
[0140] In one embodiment, the present application provides a rotary transformer, including: a calibration device as any of the above rotary transformers; and / or the above readable storage medium; and / or the above computer program product.
[0141] In one embodiment, as shown in Figure 4, the present application provides a control system for a rotary transformer, including: a carrier signal generating module 402, connected to the rotor coil of the rotary transformer 404, for outputting a sinusoidal carrier signal of a preset frequency and a preset amplitude; a demodulation module 406, connected to the stator coil of the rotary transformer 404, for demodulating the orthogonal modulation signal output by the stator coil to obtain a first signal and a second signal; a correction module 408, connected to the demodulation module 406, for executing to implement the steps of any of the above methods.
[0142] In one embodiment, the first signal is a Sin signal, and the second signal is a Cos signal.
[0143] In one embodiment, the carrier signal generating module 402 uses an AMC1210 chip, and outputs a sine wave signal with a frequency of 8 kHz and an amplitude of 4 V through the PWM1 and PWM2 pins, and the waveform is shown as G01.
[0144] In one embodiment, as shown in FIG6 , the demodulation module 406 uses the ADS1205 chip to perform AD conversion on the modulation signal output by the resolver module (waveform shown as G02), and transmits the converted digital signal to the AMC1210 chip. The AMC1210 chip has a built-in demodulator to demodulate the input modulation signal, and then transmits the Cos signal and Sin signal (waveform shown as G03) to the Cos signal and Sin signal correction module built into the digital signal processing (DSP) through a digital interface.
[0145] In one embodiment, the correction module 408 uses DSP to correct the Cos signal and the Sin signal, and outputs Sinθ and Cosθ after correction.
[0146] Specifically, as shown in FIG5 , the correction module 408 performs the following steps:
[0147] Step 501: The resolver calibration status Status is initialized to 0, the Sin calibration coefficient SinGain is initialized to 1, and the Cos calibration coefficient CosGain is initialized to 1.
[0148] Step 502: Obtain the resolver rotor angle θ from the calculation module.
[0149] Step 503: Determine whether Status is 0. If yes, jump to step 504; if no, jump to step 507.
[0150] Step 504: Determine whether the current θ is greater than θa0 and less than θa1. If yes, jump to step 505; if not, jump to step 502.
[0151] Step 505: Set Status to 1.
[0152] Step 506: Record: Sinθ0 = Sinθ; Cosθ0 = Cosθ, and jump to step 502.
[0153] Step 507: Determine whether Status is 1. If yes, jump to step 508; if no, jump to step 511.
[0154] Step 508 : Determine whether the current θ is greater than θb0 and less than θb1 . If yes, jump to step 509 ; if not, jump to step 502 .
[0155] Step 509: Set Status to 2.
[0156] Step 510: Record: Sinθ1 = Sinθ; Cosθ1 = Cosθ, and jump to step 502.
[0157] Step 511: Determine whether Status is 2. If yes, jump to step 512; if no, jump to step 502.
[0158] Step 512: Set Status to 255.
[0159] Step 513: Set the Sin correction coefficient SinGain=1.
[0160] Step 514: Set the Cos correction coefficient
[0161] Step 515: Calculate Sinθ=Sin signal×SinGain, Cosθ=Cos signal×CosGain.
[0162] Among them, Status is the calibration status in this application, Sin correction coefficient SinGain is the first correction coefficient, Cos correction coefficient CosGain is the second correction coefficient, Status is 0 for the default calibration status, Status is 1 for the first state, Status is 2 for the second state, and Status is 255 for the third state.
[0163] Among them, the value range of the above-mentioned θa0 is: between 80° and 100°, the value range of θa1 is: between 110° and 130°, the value range of θb0 is: between 170° and 190°, and the value range of θb1 is: between 200° and 220°.
[0164] For example, if the value of θa0 is 90°, the value of θa1 is 120°, the value of θb0 is 180°, and the value of θb1 is 210°, then the above embodiment can be changed to:
[0165] Step A1: The resolver correction status Status is initialized to 0, the Sin correction coefficient SinGain is initialized to 1, and the Cos correction coefficient CosGain is initialized to 1.
[0166] Step A2: Obtain the resolver rotor angle θ from the calculation module.
[0167] Step A3: Determine whether Status is 0. If yes, jump to step A4; if no, jump to step B1.
[0168] Step A4: Determine whether the current θ is greater than 90° and less than 120°. If yes, jump to step A5; if not, jump to step A2.
[0169] Step A5: Set Status to 1.
[0170] Step A6: Record: Sinθ0 = Sinθ, Cosθ0 = Cosθ, jump to step A2.
[0171] Step B1: Determine whether Status is 1. If so, jump to step B2; if not, jump to step C1.
[0172] Step B2: Determine whether the current θ is greater than 180° and less than 210°. If yes, jump to step B3; if not, jump to step A2.
[0173] Step B3: Set Status to 2.
[0174] Step B4: Record: Sinθ1=Sinθ, Cosθ1=Cosθ, jump to step A2.
[0175] Step C1: Determine whether Status is 2. If so, jump to step C2; if not, jump to step A2.
[0176] Step C2: Set Status to 255.
[0177] Step C3: Set the Sin correction coefficient SinGain=1.
[0178] Step C4: Set the Cos correction coefficient
[0179] Step C5: Calculate Sinθ=Sin signal×SinGain, Cosθ=Cos signal×CosGain.
[0180] In the above embodiment, the control system of the resolver further includes: a calculation module 410 connected to the correction module, and configured to determine the rotor angle of the resolver according to the weighted signal.
[0181] In this embodiment, the weighted signals are the corrected Sinθ and Cosθ, and the resolver rotor angle θ is calculated. Preferably, the resolver rotor angle θ is calculated using a DSP. For example, the calculation method is: θ = arctan2(Sinθ, Cosθ).
[0182] Among them, the function arctan2(y, x) is defined as:
[0183] Among them, Sinθ corresponds to y and Cosθ corresponds to x.
[0184] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly refer to one or more of the features. In the text of this application, unless otherwise specified, "plurality" means two or more. Furthermore, "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the connected objects.
[0185] In the textual description of this application, it is understood that, unless otherwise specified or limited, the terms "installed," "connected," and "connected" should be interpreted broadly. For example, they can refer to fixed connection, detachable connection, or integral connection; they can refer to mechanical connection or electrical connection; they can refer to direct connection between two components or indirect connection through an intermediate medium; and they can refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.
[0186] In the claims, specification, and drawings of this application, the terms "one embodiment," "some embodiments," "a specific embodiment," and the like mean that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of this application. In the claims, specification, and drawings of this application, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0187] The above are merely preferred embodiments of the present application and are not intended to limit the present application. Those skilled in the art will readily appreciate that various modifications and variations are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A method for calibrating a rotary transformer, wherein: The rotary transformer includes a stator coil and a rotor coil, and the calibration method includes: Inputting a sinusoidal carrier signal of a preset frequency and a preset amplitude into the rotor coil so that the stator coil outputs an orthogonal modulation signal; Demodulating the modulated signal to obtain a first signal and a second signal, wherein the first signal has a first correction coefficient and the second signal has a second correction coefficient; When the rotor angle of the rotary transformer is within different angle ranges, obtaining current values of the second signal and the first signal; When the value of one of the first correction coefficient and the second correction coefficient remains unchanged, the value of the other of the first correction coefficient and the second correction coefficient is updated according to the current value.
2. The rotary transformer calibration method according to claim 1, wherein: When the rotor angle of the rotary transformer is within different angle ranges, obtaining current values of the second signal and the first signal specifically includes: Obtaining a calibration status of the resolver; When the calibration state is the first state, obtaining a first value of the second signal and a second value of the first signal when the rotor angle is within a first angle range, and modifying the calibration state to the second state; and When the calibration state is the second state, a third value of the second signal and a fourth value of the first signal are obtained when the rotor angle is within a second angle range.
3. The rotary transformer calibration method according to claim 2, wherein: In a case where the value of one of the first correction coefficient and the second correction coefficient remains unchanged, updating the value of the other correction coefficient of the first correction coefficient and the second correction coefficient according to the current value specifically includes: Under the condition that the value of the first correction coefficient remains unchanged, determining a first difference between the square value of the second value and the square value of the fourth value, and a second difference between the square value of the first value and the square value of the third value; The value of the updated second correction coefficient is determined based on the ratio of the first difference to the second difference.
4. The rotary transformer calibration method according to claim 3, wherein: The updated value of the second correction coefficient is expressed as follows: Among them, CosGain is the updated value of the second correction coefficient, Sinθ0 is the second value, Sinθ1 is the fourth value, Cosθ0 is the first value, and Cosθ1 is the third value.
5. The rotary transformer calibration method according to claim 2, wherein: Also includes: receiving calibration input; In response to the calibration input, modifying a calibration state of the resolver to the first state; as well as When the calibration state is the second state, the calibration state of the resolver is modified to a third state.
6. The rotary transformer calibration method according to claim 2, wherein: The first angle range has a first upper limit and a first lower limit, the first lower limit is between 80° and 100°, and the first upper limit is between 110° and 130°; and / or The second angle range has a second upper limit and a second lower limit, the second lower limit is between 170° and 190°, and the second upper limit is between 200° and 220°.
7. The method for calibrating a rotary transformer according to any one of claims 1 to 6, wherein: Also includes: The first signal and the second signal are weighted according to a first correction coefficient and the updated second correction coefficient, and the weighted signals are output.
8. A rotary transformer calibration device, wherein: The rotary transformer comprises a stator coil and a rotor coil, and the calibration device comprises: An input unit, used for inputting a sinusoidal carrier signal of a preset frequency and a preset amplitude into the rotor coil, so that the stator coil outputs an orthogonal modulation signal; A demodulation unit, configured to demodulate the modulated signal to obtain a first signal and a second signal, wherein the first signal has a first correction coefficient and the second signal has a second correction coefficient; an acquisition unit, configured to obtain current values of the second signal and the first signal when the rotor angle of the rotary transformer is within different angle ranges; A calibration unit is used to update the value of the other correction coefficient of the first correction coefficient and the second correction coefficient according to the current value when the value of one of the first correction coefficient and the second correction coefficient remains unchanged.
9. A rotary transformer calibration device, wherein: include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, wherein: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, wherein: The program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the method according to any one of claims 1 to 7.
12. A rotary transformer, wherein: include: The rotary transformer calibration device according to claim 8 or 9; and / or The readable storage medium according to claim 10; and / or The computer program product of claim 11.
13. A control system for a rotary transformer, wherein: include: A carrier signal generating module, connected to the rotor coil of the rotary transformer, for outputting a sinusoidal carrier signal of a preset frequency and a preset amplitude; A demodulation module, connected to the stator coil of the rotary transformer, and used to demodulate the orthogonal modulation signal output by the stator coil to obtain a first signal and a second signal; A correction module, connected to the demodulation module, is used to execute the steps of the method as claimed in any one of claims 1 to 7.
14. The control system of the rotary transformer according to claim 13, wherein: Also includes: A calculation module is connected to the correction module and is used to determine the rotor angle of the rotary transformer according to the weighted signal.
Citation Information
Patent Citations
All-digital RDC decoding system with error suppression function
CN110426062A
Systematic errors suppression method for resolvers, involves determining correction values and correcting amplitude error and angle error of tracking signal
DE10036090A1
Resolver digital angle conversion device, method, and program
JP2005257565A
Error parameter extracting device of position detector and position detector having error compensating function
JP2007033412A
Resolver system and electric power steering apparatus using the same
JP2008170178A
