Decoding method, system and equipment of rotary transformer and storage medium
By generating reference signals and detecting errors, the decoding accuracy problem caused by the non-orthogonal resolver signal windings is solved and higher decoding accuracy is achieved.
Patent Information
- Application Number
- CN202410589005.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-10
AI Technical Summary
The manufacturing process of the resolver limits its signal windings from being completely orthogonal, resulting in lower decoding accuracy.
A reference signal is generated based on the preset amplitude, sine and cosine winding signal amplitude ratio and phase difference, and the model detection error is calculated through the differential signal. If the error is greater than the threshold, the reference signal is regenerated until the error is less than the threshold to determine the angle of the resolver output. Decoding results.
The accuracy of resolver decoding is improved and the impact of manufacturing process errors on the decoding results is reduced.
Smart Images

Figure CN118623913A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of rotary transformers, and in particular to a decoding method, system, device and storage medium of a rotary transformer. Background Art
[0002] A resolver is an electromagnetic sensor, a small AC motor used to measure angles. However, the manufacturing process of the resolver limits the two signal windings of the resolver to be completely orthogonal, which results in low resolver decoding accuracy.
[0003] Therefore, how to improve the accuracy of resolver decoding is a technical problem that needs to be solved by those skilled in the art.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a decoding method, system, device and storage medium for a rotary transformer, aiming to solve the technical problem of how to improve the accuracy of rotary transformer decoding.
[0006] To achieve the above object, the present application proposes a decoding method for a rotary transformer, the method comprising:
[0007] Generate a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference, and a preset phase of an initial positioning angle;
[0008] Subtracting the first sine reference signal from the real-time sine signal of the rotary transformer to obtain a first differential signal, and subtracting the first cosine reference signal from the real-time cosine signal of the rotary transformer to obtain a second differential signal;
[0009] Inputting the first differential signal and the second differential signal into a preset error model to obtain an overall error;
[0010] If it is detected that the overall error is greater than a preset error threshold, the step of regenerating a first sine reference signal and a first cosine reference signal by using the amplitude and phase corresponding to the overall error is cyclically executed;
[0011] If it is detected that the overall error is less than or equal to the error threshold, the angle output by the resolver is used as a decoding result.
[0012] In one embodiment, after the step of regenerating the first sine reference signal and the first cosine reference signal by using the amplitude and phase corresponding to the overall error, the method further includes:
[0013] The number of cycles is recorded, and when the number of cycles is equal to the preset number of iteration stop times, the angle output by the resolver is used as the decoding result.
[0014] In one embodiment, before the step of generating the first sine reference signal and the second cosine reference signal based on the preset amplitude, the preset sine-cosine winding signal amplitude ratio, the preset sine-cosine phase difference and the phase of the preset initial positioning angle, the step further includes:
[0015] Perform zero-crossing detection on the excitation signal, sine signal and cosine signal of the rotary transformer to obtain zero-crossing detection results corresponding to the excitation signal, the sine signal and the cosine signal, and obtain the quadrant in which the current rotor position is located based on each of the zero-crossing detection results, wherein the zero-crossing detection result represents the positive and negative relationship of the signal after passing through the zero point;
[0016] Generate a second sine reference signal and a second cosine reference signal based on the phase corresponding to the quadrant, and input the sine signal, cosine signal, excitation signal, second sine reference signal and second cosine reference signal into a preset differential signal calculation model to obtain a third differential signal;
[0017] When it is detected that the third differential signal is less than or equal to a preset phase allowable error, the angle of the rotary transformer is used as an initial positioning angle.
[0018] In one embodiment, after the step of inputting the sine signal, the cosine signal, the excitation signal, the second sine reference signal and the second cosine reference signal into a preset differential signal calculation model to obtain a third differential signal, the method further includes:
[0019] When it is detected that the third differential signal is greater than the allowable phase error, the steps of accumulating the phase corresponding to the quadrant by a preset angle step value to obtain a new phase, and generating a new second sine reference signal and a new second cosine reference signal based on the new phase are cyclically executed until the obtained third differential signal is less than or equal to the allowable phase error.
[0020] In one embodiment, the step of obtaining the quadrant in which the current rotor position is located based on each of the zero-crossing detection results includes:
[0021] Comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the sinusoidal signal to obtain the quadrant in which the current rotor position is located;
[0022] or,
[0023] The zero-crossing detection result of the excitation signal is compared with the zero-crossing detection result of the cosine signal to obtain the quadrant in which the current rotor position is located.
[0024] In one embodiment, the step of comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the sinusoidal signal to obtain the quadrant in which the current rotor position is located includes:
[0025] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first second quadrant;
[0026] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0027] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the third quadrant;
[0028] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the third or fourth quadrant.
[0029] In one embodiment, the step of comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the cosine signal to obtain the quadrant in which the current rotor position is located includes:
[0030] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0031] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0032] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant;
[0033] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant.
[0034] In addition, to achieve the above purpose, the present application also proposes a decoding system for a rotary transformer, the decoding system for the rotary transformer comprising:
[0035] A first reference signal generating module, configured to generate a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference, and a preset phase of an initial positioning angle;
[0036] a differential signal calculation module, configured to obtain a first differential signal by subtracting the first sine reference signal from the real-time sine signal of the resolver, and obtain a second differential signal by subtracting the first cosine reference signal from the real-time cosine signal of the resolver;
[0037] an error calculation module, used for inputting the first differential signal and the second differential signal into a preset error model to obtain an overall error;
[0038] A loop module, configured to loop through the steps of regenerating a first sine reference signal and a first cosine reference signal by using an amplitude and a phase corresponding to the overall error if it is detected that the overall error is greater than a preset error threshold;
[0039] A decoding result output module is used to use the angle output by the resolver as a decoding result if it is detected that the overall error is less than or equal to the error threshold.
[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a decoding device for a rotary transformer, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the decoding method for the rotary transformer as described above.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the decoding method of the rotary transformer as described above are implemented.
[0042] One or more technical solutions proposed in this application have at least the following technical effects:
[0043] The present application generates a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference and a preset phase of an initial positioning angle. The reference signal can be generated based on the amplitude ratio and phase difference of the sine-cosine winding of the rotary transformer, that is, the amplitude ratio and phase difference of the sine-cosine winding are applied to the decoding calculation, thereby avoiding the influence of the incomplete orthogonality of the sine-cosine winding of the rotary transformer on the decoding; then, by subtracting the first sine reference signal from the real-time sine signal of the rotary transformer to obtain a first differential signal, and by subtracting the first cosine reference signal from the real-time cosine signal of the rotary transformer to obtain a second differential signal, the actual output of the rotary transformer during operation can be obtained. The difference between the real-time sine signal, the real-time cosine signal and the reference signal; then the first differential signal and the second differential signal are input into a preset error model to obtain an overall error; if it is detected that the overall error is greater than the error threshold, the step of regenerating the first sine reference signal and the first cosine reference signal by the amplitude and phase corresponding to the overall error is cyclically executed; if it is detected that the overall error is less than or equal to the preset error threshold, the angle output by the rotary transformer is used as the decoding result, and when it is detected that the error between the actual signal and the reference signal meets the error threshold, it can be judged that the current angle output by the rotary transformer is a decoding angle that is not affected by the rotary transformer manufacturing process, thereby improving the accuracy of rotary transformer decoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] Figure 1 A flowchart diagram of a first embodiment of a decoding method for a rotary transformer of the present application;
[0047] Figure 2 A flowchart of calculating the initial positioning angle of an embodiment of a decoding method for a rotary transformer of the present application;
[0048] Figure 3 A schematic diagram of a decoding process of a decoding method for a rotary transformer of the present application;
[0049] Figure 4 This is a schematic diagram of the module structure of the decoding system of the rotary transformer according to an embodiment of the present application;
[0050] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the decoding method of the rotary transformer in the embodiment of the present application.
[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0054] The main solution of the embodiment of the present application is: based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference and a preset initial positioning angle phase, generate a first sine reference signal and a first cosine reference signal; subtract the first sine reference signal from the real-time sine signal of the rotary transformer to obtain a first differential signal, and subtract the first cosine reference signal from the real-time cosine signal of the rotary transformer to obtain a second differential signal; input the first differential signal and the second differential signal into a preset error model to obtain an overall error; if it is detected that the overall error is greater than the error threshold, then cyclically execute the steps of regenerating the first sine reference signal and the first cosine reference signal by the amplitude and phase corresponding to the overall error; if it is detected that the overall error is less than or equal to the preset error threshold, then use the angle output by the rotary transformer as the decoding result.
[0055] Because the traditional resolver decoding algorithm usually uses the tangent and anti-tangent of the sine and cosine signals output by the resolver to obtain the position signal. The output signal of the resolver is affected by various errors in the manufacturing process of the resolver itself (for example, the two signal windings of the resolver cannot be completely orthogonal), resulting in poor accuracy of the angles obtained by the traditional decoding method.
[0056] The present application provides a solution, so that the angle decoded by the resolver will not be affected by the resolver's own errors during the resolver manufacturing process, thereby improving the accuracy of resolver decoding.
[0057] It can be seen from the above embodiments that the present application adopts the preset amplitude ratio and overall error of the sine and cosine windings to participate in the decoding operation, thereby eliminating the influence of the resolver body error on the decoding result, thereby improving the accuracy of resolver decoding.
[0058] It should be noted that, for ease of description, the rotary transformer is referred to as a rotary transformer. The execution subject of this application may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, etc., or an electronic device capable of realizing the above functions. The following takes an electronic device as an example to illustrate this embodiment and the following embodiments.
[0059] Based on this, the embodiment of the present application provides a decoding method for a rotary transformer, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the decoding method of the rotary transformer of the present application.
[0060] In this embodiment, the decoding method of the rotary transformer includes steps S10 to S50:
[0061] Step S10, generating a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference, and a preset phase of an initial positioning angle;
[0062] It should be noted that the preset amplitude refers to a value that is close to both the amplitude of the sine signal output by the resolver and the amplitude of the cosine signal output by the resolver. In a feasible embodiment, when it is detected that the amplitude difference between the sine signal and the cosine signal output by the resolver is small, the amplitude of the sine signal or the amplitude of the cosine signal can be used as the preset amplitude. The preset sine-cosine winding signal amplitude ratio refers to the ratio between the amplitudes of the induced electromotive force generated by the sine winding and the cosine winding of the resolver. The preset sine-cosine phase difference refers to the preset phase difference between the sine winding and the cosine winding when generating the induced electromotive force. The initial positioning angle refers to a preset rotor angle. In a feasible embodiment, the initial positioning angle can be preset based on experience.
[0063] In this embodiment, a sine signal and a cosine signal can be randomly generated first, and then the sine signal and the cosine signal can be adjusted based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference and a preset initial positioning angle phase, and the adjusted sine signal is used as a first sine reference signal, and the adjusted cosine signal is used as a first cosine reference signal.
[0064] Step S20, subtracting the first sine reference signal from the real-time sine signal of the resolver to obtain a first differential signal, and subtracting the first cosine reference signal from the real-time cosine signal of the resolver to obtain a second differential signal;
[0065] It should be noted that the real-time sine signal refers to the sine signal output by the rotary transformer in real time after the excitation signal is applied to the rotary transformer, and correspondingly, the real-time cosine signal refers to the cosine signal output by the rotary transformer in real time. It should also be noted that at the same time, the rotary transformer will output a sine signal and a cosine signal at the same time, and the real-time sine signal and real-time cosine signal proposed in this application refer to the signals corresponding to the same time. With the application of the excitation signal, the rotary transformer will output a sine signal and a cosine signal in real time.
[0066] In this embodiment, after applying the excitation signal, the sine signal output by the rotary transformer in real time can be subtracted from the first sine reference signal to obtain a first differential signal, and the cosine signal output by the rotary transformer in real time can be subtracted from the first cosine reference signal to obtain a second differential signal. It can be understood that at each moment after applying the excitation signal, a first differential signal and a second differential signal are obtained.
[0067] Step S30, inputting the first differential signal and the second differential signal into a preset error model to obtain an overall error;
[0068] It should be noted that the error model refers to a model for statistically analyzing the overall error. For example, the error model can be a formula for calculating the sum of squares, in which case the sum of squares of the first differential signal and the second differential signal is the overall error. In another feasible embodiment, the error model can also be a formula for calculating the phase difference, in which case the phase difference is the overall error.
[0069] As an example, when U represents the first differential signal, V represents the second differential signal, and the error model is a formula for calculating the sum of squares, the sum of squares se can be expressed as:
[0070] Se=U 2 +V 2 .
[0071] Step S40, if it is detected that the overall error is greater than a preset error threshold, then cyclically executing the step of regenerating a first sine reference signal and a first cosine reference signal by using the amplitude and phase corresponding to the overall error;
[0072] It should be noted that the error threshold is a threshold predetermined based on experience or the self-error of the resolver. The steps for calculating the amplitude and phase corresponding to the overall error are: deriving the formula corresponding to the error model with respect to the amplitude of the first sinusoidal reference signal, deriving the formula corresponding to the error model with respect to the phase of the initial positioning angle, and setting the two derived formulas equal to zero, and then using the Newton iteration method to solve the two formulas equal to zero, thereby obtaining a new set of amplitudes and phases. Among them, the condition for the Newton iteration method to stop iterating is: the difference between the phases obtained in two adjacent times is less than or equal to the preset threshold. The new amplitude and phase are the latest amplitude and phase solved by the Newton iteration method.
[0073] In this embodiment, if it is detected that the overall error is greater than the error threshold, the error model is differentiated, the derived equation is set equal to zero, and the solution step is iterated to obtain a new amplitude and phase, and then the first sine reference signal and the first cosine reference signal are regenerated based on the new amplitude and phase, and then the steps of calculating the first differential signal and the second differential signal and calculating the overall error are executed.
[0074] Step S50: If it is detected that the overall error is less than or equal to the error threshold, the angle output by the resolver is used as a decoding result.
[0075] In this embodiment, if it is detected that the overall error is less than or equal to a preset error threshold, the angle output by the resolver is used as the decoding result; if it is detected that the overall error is still greater than the error threshold, the process returns to execute the above step S40.
[0076] Exemplarily, the first differential signal U1 and the second differential signal V1 may be expressed as:
[0077]
[0078] Among them, As is the amplitude of the real-time sinusoidal signal, x is the current position of the rotor, y0 is the phase of the initial positioning angle, Bs is the amplitude of the first reference sinusoidal signal, α is the sine-cosine amplitude ratio, δ and d are 0.5 times the phase error of the sine and cosine signals.
[0079] Then calculate the sum of the squares of U and V, Se:
[0080] Se=U 2 +V 2 ;
[0081] Then, the square sum Se of the two differential signals of sine and cosine is differentiated with respect to Bs and y0 respectively, and its value is set to zero. The expression is as follows:
[0082]
[0083] Then, the Newton iteration method is used to solve the derivative equation to obtain the error between two consecutive calculation results of Bs and y0, which is expressed as:
[0084]
[0085] in,
[0086]
[0087] Then, when it is detected that Δy is less than or equal to the preset threshold, a new first reference sine signal and a new first reference cosine signal are generated based on the latest amplitude and phase solved by the Newton iteration method, and the new first reference sine signal and the real-time sine signal at the current moment are subtracted to obtain a new first differential signal, and the new first reference cosine signal and the real-time cosine signal at the current moment are subtracted to obtain a new second differential signal, and the overall error is calculated. If the overall error is still greater than or equal to the error threshold, continue to derive and use the Newton iteration method to solve, and continue to generate the first reference sine signal in a loop, until the step of comparing the overall error with the error threshold is reached, until the overall error is less than the error threshold. Then output the angle output by the rotary transformer at this moment as the decoding result.
[0088] In this embodiment, the present application generates a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference and a preset initial positioning angle phase. The reference signal can be generated based on the amplitude ratio and phase difference of the sine-cosine winding of the rotary transformer, that is, the amplitude ratio and phase difference of the sine-cosine winding are applied to the decoding calculation, thereby avoiding the influence of the incomplete orthogonality of the sine-cosine winding of the rotary transformer on the decoding; then, by subtracting the first sine reference signal from the real-time sine signal of the rotary transformer to obtain a first differential signal, and by subtracting the first cosine reference signal from the real-time cosine signal of the rotary transformer to obtain a second differential signal, the actual operation of the rotary transformer during operation can be obtained. The difference between the real-time sine signal and the real-time cosine signal outputted actually and the reference signal is calculated; then the first differential signal and the second differential signal are input into a preset error model to obtain an overall error; if it is detected that the overall error is greater than the error threshold, the step of regenerating the first sine reference signal and the first cosine reference signal by the amplitude and phase corresponding to the overall error is cyclically executed; if it is detected that the overall error is less than or equal to the preset error threshold, the angle output by the resolver is taken as the decoding result, and when it is detected that the error between the actual signal and the reference signal meets the error threshold, it can be judged that the current angle output by the resolver is a decoding angle that is not affected by the manufacturing process of the resolver, thereby improving the accuracy of the resolver decoding.
[0089] Based on the first embodiment of the present application, a second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those of the above-mentioned embodiment 1 can be referred to the above introduction and will not be repeated later. On this basis, after the above-mentioned step S40, the method further includes:
[0090] Step S60, recording the number of cycles, and when the number of cycles is equal to a preset number of iteration stop times, taking the angle output by the resolver as a decoding result.
[0091] It should be noted that the number of cycles refers to the total number of times the first sine reference signal and the first cosine reference signal are regenerated;
[0092] In this embodiment, in order to reduce the time required for decoding, the number of iteration stop times may be preset, and when it is detected that the number of cycles is equal to the number of iteration stop times, the angle output by the resolver may be used as the decoding result.
[0093] Based on the first embodiment or the second embodiment of the present application, the third embodiment of the present application is proposed. The contents that are the same or similar to the above embodiments are not repeated in this embodiment.
[0094] In this embodiment, before the above step S10, the method further includes:
[0095] Step S70, performing zero-crossing detection on the excitation signal, sine signal and cosine signal of the rotary transformer to obtain zero-crossing detection results corresponding to the excitation signal, the sine signal and the cosine signal, and based on each of the zero-crossing detection results, obtaining the quadrant in which the current rotor position is located, wherein the zero-crossing detection result represents the positive and negative relationship of the signal after passing through the zero point;
[0096] It should be noted that zero-crossing detection refers to detecting the zero point of an AC signal (such as a sine wave) (i.e., the point where the waveform passes through zero when switching from a positive half cycle to a negative half cycle or from a negative half cycle to a positive half cycle). In this embodiment, the zero-crossing detection result is determined based on the first value of the signal after the zero point.
[0097] In this embodiment, after an excitation signal is applied to the rotary transformer and the rotary transformer outputs a sine signal and a cosine signal, a zero-crossing detection result can be obtained based on the first value of the sine signal, the excitation signal, and the cosine signal after the zero point, and then the quadrant in which the current rotor position is located can be obtained based on each zero-crossing detection result.
[0098] In a feasible implementation manner, the above step S70 further includes step S701 or step S702:
[0099] Step S701, comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the sinusoidal signal to obtain the quadrant where the current rotor position is located;
[0100] It should be noted that the zero-crossing detection result represents the positive or negative condition of the first value after the signal crosses the zero point. Therefore, in this embodiment, the quadrant in which the current rotor position is located can be determined by comparing the positive or negative condition of the first value after the excitation signal crosses the zero point with the positive or negative condition of the first value after the sinusoidal signal crosses the zero point.
[0101] In a feasible implementation manner, the above step S701 includes:
[0102] Step S7011, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first second quadrant;
[0103] Step S7012, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first second quadrant;
[0104] Step S7013, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the third quadrant;
[0105] Step S7014, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the third or fourth quadrant.
[0106] In this embodiment, compared with the traditional method of determining the quadrant of the rotor position angle based on sine signals and cosine signals, this embodiment only needs to pay attention to the zero crossing points of the excitation signal and the sine signal, and can respond to changes in the rotor position more quickly, thereby obtaining a more accurate quadrant for the rotor position.
[0107] Step S702: Compare the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the cosine signal to obtain the quadrant in which the current rotor position is located.
[0108] In this embodiment, the quadrant in which the current rotor position is located can also be determined by comparing the positive and negative conditions of the first value of the excitation signal after the zero point and the positive and negative conditions of the first value of the cosine signal after the zero point.
[0109] In a feasible implementation manner, the above step S702 further includes:
[0110] Step S7021, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0111] Step S7022, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0112] Step S7023, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant;
[0113] Step S7024, if it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant.
[0114] In this embodiment, this embodiment may also only focus on the zero-crossing points of the excitation signal and the cosine signal, and may also respond to the change of the rotor position more quickly, thereby obtaining a more accurate quadrant in which the rotor position is located.
[0115] Step S80, generating a second sine reference signal and a second cosine reference signal based on the phase corresponding to the quadrant, and inputting the sine signal, cosine signal, excitation signal, second sine reference signal and second cosine reference signal into a preset differential signal calculation model to obtain a third differential signal;
[0116] It should be noted that the differential signal calculation model refers to a model that can comprehensively measure the differences between the sine signal, the cosine signal and the second sine reference signal and the second cosine reference signal.
[0117] In this embodiment, before generating the second sine reference signal and the second cosine reference signal, a reference phase can be preset for each quadrant, and then the current angle of the rotor is subtracted from the reference phase of the quadrant to obtain a phase offset, and then the pre-generated basic sine signal and basic cosine signal with a fixed frequency are adjusted based on the phase offset, and the adjusted basic sine signal is used as the second sine reference signal, and the adjusted basic cosine signal is used as the second cosine reference signal.
[0118] Exemplarily, after obtaining the sine signal, the cosine signal, the excitation signal, the second sine reference signal and the second cosine reference signal, the obtained signals may be input into the following differential signal calculation model to calculate the third differential signal UC:
[0119] UC=XS·YC-YS·XC=K·sin(xy),
[0120] Among them, XS is the sine signal, XC is the cosine signal, YS is the product of the second sine reference signal and the excitation signal, YC is the product of the second cosine reference signal and the excitation signal, K is a non-zero difference coefficient, x is the current position of the rotor, and y is the angle value of the sine signal.
[0121] Step S90: When it is detected that the third differential signal is less than or equal to a preset phase allowable error, the angle of the rotary transformer is used as an initial positioning angle.
[0122] In this embodiment, when it is detected that the third differential signal is less than or equal to a preset phase allowable error, the rotor angle of the resolver is used as the initial positioning angle.
[0123] In a feasible implementation manner, after the above step S80, the method further includes:
[0124] Step S100, when it is detected that the third differential signal is greater than the phase allowable error, the steps of accumulating the phase corresponding to the quadrant by a preset angle step value to obtain a new phase, and generating a new second sine reference signal and a new second cosine reference signal based on the new phase are cyclically executed until the obtained third differential signal is less than or equal to the phase allowable error.
[0125] Please refer to Figure 2 , Figure 2 This is a flowchart of calculating the initial positioning angle of an embodiment of the decoding method of the rotary transformer of the present application, wherein, after outputting the amplitude ratio K of the sine and cosine, the phase error a and the phase allowable error Δe, the signal is detected at the zero point and the phase is determined, thereby generating a reference signal ( Figure 2 The reference signal refers to the second sine reference signal and the second cosine reference signal), and then the phase of the reference signal is adjusted by the angle step value until the difference error (third differential signal) between the reference signal and the resolver signal is less than the allowable phase error, and the rotor position of the resolver is used as the initial positioning angle.
[0126] In this embodiment, the present application superimposes the phase corresponding to the quadrant by the angle step value, and can gradually calibrate the resolver's own error by the angle step value, thereby improving the accuracy of the obtained initial positioning angle.
[0127] Based on the various embodiments of the decoding method of the rotary transformer of the present application described above, a specific embodiment of the decoding method of the rotary transformer of the present application is proposed.
[0128] In this embodiment, the application steps are as follows:
[0129] DA is used to generate a high-frequency excitation signal for exciting the resolver signal;
[0130] Collect the sine and cosine output signals of the resolver;
[0131] The excitation signal and the sine and cosine signals are subjected to zero-crossing detection and the first value after the zero-crossing is taken for comparison. The quadrant in which the current rotor position angle is located is determined based on the positive and negative relationship between the excitation signal and the sine and cosine signals after the zero-crossing.
[0132] A reference signal (a second sine reference signal and a second cosine reference signal) is generated according to the determined quadrant. The reference signals are sine and cosine signals without an excitation signal.
[0133] The reference signal is multiplied by the excitation signal and then differentially processed with the resolver signal to form a third differential signal.
[0134] Set the "angle step value" and "phase error tolerance value", take the initial phase corresponding to the quadrant as the starting point, accumulate and update to the phase of the reference signal with the "angle step value" as the increment, and compare the new differential value with the "phase error tolerance value" each time. When the differential value is less than the "phase error tolerance value", the accumulation ends and the angle value obtained at this time is considered as the initial positioning angle;
[0135] A DAC is used to generate sine and cosine reference signals (a first sine reference signal and a first cosine reference signal), and the amplitude ratio and phase difference of the resolver sine and cosine winding signals are substituted into the first sine reference signal and the first cosine reference signal.
[0136] The rotor position obtained during the initial angle positioning process is used as the initial phase y0 of the reference signal (the first sine reference signal and the first cosine reference signal), and a value close to the amplitude of the resolver sine and cosine signals is selected as the amplitude of the reference signal (the first sine reference signal and the first cosine reference signal). The sine and cosine reference signals are subtracted from the resolver signals to obtain two differential signals (the first differential signal and the second differential signal). Then the two differential signals are collected and their square sum is calculated.
[0137] If the sum of squares is greater than the error threshold, the sum of squares is differentiated, and the derived formula is set equal to 0, and Newton's iteration method is used to solve it to obtain a new set of amplitudes and phases; and the steps of generating the first sine reference signal, the first cosine reference signal, and calculating the sum of squares are executed repeatedly until the sum of squares is less than or equal to the error threshold, and then the angle output by the rotary transformer is used as the decoding result.
[0138] Please refer to Figure 3 , Figure 3 The decoding process diagram of the decoding method of the rotary transformer of the present application is shown, wherein, after inputting the sine and cosine amplitude ratio K, the number of iteration stops, the iteration stop error, and the phase error, the initial positioning angle can be used as the initial phase of the reference signal (in the following expression, the reference signal refers to the first sine reference signal and the first cosine reference signal), and the reference signal is generated. Then, the sine and cosine signals are respectively subtracted, and then the two differential signals are collected to obtain the variance. If the variance is greater than the error threshold, the variance (in Figure 3 The square sum (specifically the sum of squares) is derived and iteratively calculated, so as to obtain the amplitude and phase of the sine and cosine of the reference signal through iterative calculation. If the phase difference between two adjacent iterations reaches the iteration stop error, and the newly calculated variance is less than or equal to the error threshold, or the number of cycles reaches the iteration stop number, the decoded angle is output.
[0139] In this embodiment, the present application uses the method of solving the updated amplitude and phase through derivation and Newton iteration method, which can not only make the output decoding angle not affected by the error of the rotary transformer itself, but also control the differential signal value collected by the ADC within a very small range, thereby reducing the dependence of the decoding accuracy on the ADC accuracy.
[0140] This application also provides a decoding system for a rotary transformer, please refer to Figure 4 , the decoding system of the rotary transformer comprises:
[0141] A first reference signal generating module 10, for generating a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference and a preset initial positioning angle phase;
[0142] A differential signal calculation module 20, configured to obtain a first differential signal by subtracting the first sine reference signal from the real-time sine signal of the resolver, and obtain a second differential signal by subtracting the first cosine reference signal from the real-time cosine signal of the resolver;
[0143] an error calculation module 30, configured to input the first differential signal and the second differential signal into a preset error model to obtain an overall error;
[0144] A loop module 40, configured to loop through the steps of regenerating a first sine reference signal and a first cosine reference signal according to the amplitude and phase corresponding to the overall error if it is detected that the overall error is greater than a preset error threshold;
[0145] The decoding result output module 50 is configured to use the angle output by the resolver as a decoding result if it is detected that the overall error is less than or equal to the error threshold.
[0146] In one embodiment, the decoding system of the rotary transformer further includes:
[0147] The number recording module is used to record the number of cycles, and when the number of cycles is equal to the preset number of iteration stop times, the angle output by the rotary transformer is used as the decoding result.
[0148] In one embodiment, the decoding system of the rotary transformer further includes:
[0149] A quadrant confirmation module is used to perform zero-crossing detection on the excitation signal, sine signal and cosine signal of the rotary transformer, obtain zero-crossing detection results corresponding to the excitation signal, the sine signal and the cosine signal, and obtain the quadrant in which the current rotor position is located based on each of the zero-crossing detection results, wherein the zero-crossing detection result represents the positive and negative relationship of the signal after passing through the zero point;
[0150] a second differential calculation module, configured to generate a second sine reference signal and a second cosine reference signal based on the phase corresponding to the quadrant, and input the sine signal, the cosine signal, the excitation signal, the second sine reference signal and the second cosine reference signal into a preset differential signal calculation model to obtain a third differential signal;
[0151] The angle determination module is used to use the angle of the rotary transformer as an initial positioning angle when it is detected that the third differential signal is less than or equal to a preset phase allowable error.
[0152] In one embodiment, the decoding system of the rotary transformer further includes:
[0153] A phase accumulation module is used to, when it is detected that the third differential signal is greater than the phase allowable error, cyclically execute the steps of accumulating the phase corresponding to the quadrant by a preset angle step value to obtain a new phase, and generating a new second sine reference signal and a new second cosine reference signal based on the new phase, until the obtained third differential signal is less than or equal to the phase allowable error.
[0154] In one embodiment, the quadrant confirmation module is further used for:
[0155] Comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the sinusoidal signal to obtain the quadrant in which the current rotor position is located;
[0156] The zero-crossing detection result of the excitation signal is compared with the zero-crossing detection result of the cosine signal to obtain the quadrant in which the current rotor position is located.
[0157] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first second quadrant;
[0158] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0159] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the third quadrant;
[0160] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the third or fourth quadrant.
[0161] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0162] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant;
[0163] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant;
[0164] If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant.
[0165] The decoding system of the rotary transformer provided by the present application adopts the decoding method of the rotary transformer in the above embodiment, which can solve the technical problem of how to improve the accuracy of the decoding of the rotary transformer. Compared with the prior art, the beneficial effects of the decoding system of the rotary transformer provided by the present application are the same as the beneficial effects of the decoding method of the rotary transformer provided by the above embodiment, and other technical features in the decoding system of the rotary transformer are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0166] The present application provides a decoding device for a rotary transformer, and the decoding device for the rotary transformer includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the decoding method for the rotary transformer in the above-mentioned embodiment 1.
[0167] Reference below Figure 5 , which shows a schematic diagram of the structure of a decoding device for a rotary transformer suitable for implementing an embodiment of the present application. The decoding device for the rotary transformer in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The decoding device of the rotary transformer shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0168] like Figure 5As shown, the decoding device of the rotary transformer may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the decoding device of the rotary transformer are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the decoding device of the rotary transformer to communicate with other devices wirelessly or by wire to exchange data. Although the decoding device of the rotary transformer with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0169] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0170] The decoding device of the rotary transformer provided by the present application adopts the decoding method of the rotary transformer in the above embodiment, which can solve the technical problem of how to improve the accuracy of the decoding of the rotary transformer. Compared with the prior art, the beneficial effects of the decoding device of the rotary transformer provided by the present application are the same as the beneficial effects of the decoding method of the rotary transformer provided by the above embodiment, and other technical features in the decoding device of the rotary transformer are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0171] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0172] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0173] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the decoding method of the rotary transformer in the above-mentioned embodiment.
[0174] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0175] The computer-readable storage medium may be included in the decoding device of the rotary transformer; or may exist independently without being assembled into the decoding device of the rotary transformer.
[0176] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the decoding device of the rotary transformer, the decoding device of the rotary transformer: generates a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference and a phase of a preset initial positioning angle; subtracts the first sine reference signal from the real-time sine signal of the rotary transformer to obtain a first differential signal, and subtracts the first cosine reference signal from the real-time cosine signal of the rotary transformer to obtain a second differential signal; inputs the first differential signal and the second differential signal into a preset error model to obtain an overall error; if it is detected that the overall error is greater than an error threshold, the steps of regenerating the first sine reference signal and the first cosine reference signal by the amplitude and phase corresponding to the overall error are cyclically executed; if it is detected that the overall error is less than or equal to the preset error threshold, the angle output by the rotary transformer is used as the decoding result.
[0177] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0178] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0179] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0180] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned decoding method of the rotary transformer, and can solve the technical problem of how to improve the accuracy of the rotary transformer decoding. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the decoding method of the rotary transformer provided by the above-mentioned embodiment, and will not be repeated here.
[0181] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A decoding method for a rotary transformer, characterized in that: The method includes: Generate a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference, and a preset phase of an initial positioning angle; Subtracting the first sine reference signal from the real-time sine signal of the rotary transformer to obtain a first differential signal, and subtracting the first cosine reference signal from the real-time cosine signal of the rotary transformer to obtain a second differential signal; Inputting the first differential signal and the second differential signal into a preset error model to obtain an overall error; If it is detected that the overall error is greater than a preset error threshold, the step of regenerating a first sine reference signal and a first cosine reference signal by using the amplitude and phase corresponding to the overall error is cyclically executed; If it is detected that the overall error is less than or equal to the error threshold, the angle output by the resolver is used as a decoding result.
2. The method according to claim 1, characterized in that After the step of regenerating the first sine reference signal and the first cosine reference signal by using the amplitude and phase corresponding to the overall error, the method further includes: The number of cycles is recorded, and when the number of cycles is equal to the preset number of iteration stop times, the angle output by the resolver is used as the decoding result.
3. The method according to claim 1, characterized in that Before the step of generating the first sine reference signal and the second cosine reference signal based on the preset amplitude, the preset sine-cosine winding signal amplitude ratio, the preset sine-cosine phase difference and the phase of the preset initial positioning angle, the step further includes: Perform zero-crossing detection on the excitation signal, sine signal and cosine signal of the rotary transformer to obtain zero-crossing detection results corresponding to the excitation signal, the sine signal and the cosine signal, and obtain the quadrant in which the current rotor position is located based on each of the zero-crossing detection results, wherein the zero-crossing detection result represents the positive and negative relationship of the signal after passing through the zero point; Generate a second sine reference signal and a second cosine reference signal based on the phase corresponding to the quadrant, and input the sine signal, cosine signal, excitation signal, second sine reference signal and second cosine reference signal into a preset differential signal calculation model to obtain a third differential signal; When it is detected that the third differential signal is less than or equal to a preset phase allowable error, the angle of the rotary transformer is used as an initial positioning angle.
4. The method according to claim 3, characterized in that After the step of inputting the sine signal, the cosine signal, the excitation signal, the second sine reference signal and the second cosine reference signal into a preset differential signal calculation model to obtain a third differential signal, the method further includes: When it is detected that the third differential signal is greater than the allowable phase error, the steps of accumulating the phase corresponding to the quadrant by a preset angle step value to obtain a new phase, and generating a new second sine reference signal and a new second cosine reference signal based on the new phase are cyclically executed until the obtained third differential signal is less than or equal to the allowable phase error.
5. The method according to claim 3, characterized in that The step of obtaining the quadrant in which the current rotor position is located based on each of the zero-crossing detection results comprises: Comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the sinusoidal signal to obtain the quadrant in which the current rotor position is located; or, The zero-crossing detection result of the excitation signal is compared with the zero-crossing detection result of the cosine signal to obtain the quadrant in which the current rotor position is located.
6. The method according to claim 5, characterized in that The step of comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the sinusoidal signal to obtain the quadrant in which the current rotor position is located comprises: If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first second quadrant; If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant; If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the third quadrant; If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the sinusoidal signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the third or fourth quadrant.
7. The method according to claim 5, characterized in that The step of comparing the zero-crossing detection result of the excitation signal with the zero-crossing detection result of the cosine signal to obtain the quadrant in which the current rotor position is located comprises: If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant; If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the first quadrant; If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is positive after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is negative after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant; If it is detected that the zero-crossing detection result of the excitation signal indicates that the signal is negative after crossing the zero point, and the zero-crossing detection result of the cosine signal indicates that the signal is positive after crossing the zero point, then the quadrant where the current rotor position is located is the second third quadrant.
8. A decoding system for a rotary transformer, characterized in that: The system comprises: A first reference signal generating module, configured to generate a first sine reference signal and a first cosine reference signal based on a preset amplitude, a preset sine-cosine winding signal amplitude ratio, a preset sine-cosine phase difference, and a preset phase of an initial positioning angle; a differential signal calculation module, configured to obtain a first differential signal by subtracting the first sine reference signal from the real-time sine signal of the resolver, and obtain a second differential signal by subtracting the first cosine reference signal from the real-time cosine signal of the resolver; an error calculation module, used for inputting the first differential signal and the second differential signal into a preset error model to obtain an overall error; A loop module, configured to loop through the steps of regenerating a first sine reference signal and a first cosine reference signal by using an amplitude and a phase corresponding to the overall error if it is detected that the overall error is greater than a preset error threshold; A decoding result output module is used to use the angle output by the resolver as a decoding result if it is detected that the overall error is less than or equal to the error threshold.
9. A decoding device for a rotary transformer, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the decoding method for a rotary transformer according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the decoding method of the resolver according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method and device for resolving angle of rotary transformer based on successive approximation of difference angle formula
CN119691328A
