A rotary transformer digital demodulation device and method

Through the combined method of synchronous numerical integration and oversampling of the resolver digital demodulation device, the problems of angle delay and high quantization error in the existing technology are solved, and high-precision digital demodulation of the resolver is achieved, which is suitable for high-precision torque control. .

CN115452032BActive Publication Date: 2024-10-01HARBIN INST OF TECH AT WEIHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211218955.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-07
Publication Date
2024-10-01
Estimated Expiration
2042-10-07

AI Technical Summary

Technical Problem

The existing rotary transformer digital demodulation method has problems such as high angle delay and quantization error, which cannot meet the needs of high-precision torque control applications and has a narrow application range.

Method used

A rotary transformer digital demodulation device is used, including a rotary transformer module, a synchronous multiplier module, a peripheral circuit module, an excitation signal sampling module, an envelope demodulation module, a PWM wave generation module, a sinusoidal excitation signal duty cycle generation module, and a phase lock The loop module and system error compensation module reduce angle delay and quantization error through a combination of synchronous numerical integration and oversampling, and compensate for envelope errors through a non-orthogonal disturbance compensation module.

Benefits of technology

It significantly reduces the angle delay and quantization error, improves the accuracy of demodulation, expands the scope of application, can obtain synchronous angle information in real time, and is suitable for high-precision torque control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115452032B_ABST
    Figure CN115452032B_ABST
Patent Text Reader

Abstract

A rotary transformer digital demodulation device and method, relating to the field of sensor testing, the device comprises a rotary transformer module, a rotary transformer output sampling module, a synchronous multiplier module, a peripheral circuit module, an excitation signal sampling module, an envelope demodulation module, a PWM wave generation module, a sinusoidal excitation signal duty cycle generation module, a phase-locked loop module and a system error compensation module; the method comprises: generating a sinusoidal excitation signal; obtaining the envelope of the rotary transformer output signal; obtaining the angle and speed through the phase-locked loop; and compensating for system delay. The present invention effectively reduces the angle delay, significantly reduces the quantization error, eliminates the DC bias and excitation delay, eliminates the dependence of the traditional numerical integration method on zero-crossing sampling, and reduces the non-orthogonal error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of sensor testing, and in particular to a rotary transformer digital demodulation device and method. Background Art

[0002] As a position sensor, the resolver is widely used in the field of motors and industrial control. The resolver can provide absolute angular position information and speed information. The resolver consists of a rotating primary coil and an orthogonal secondary coil. The primary coil is driven by an excitation signal, and the secondary coil outputs a carrier containing sine and cosine information. Usually, an analog demodulation chip of the resolver is required to convert the carrier analog signal output by the resolver into a digital signal containing angle information and speed information. Compared with the traditional analog demodulation method, the digital demodulation method based on the controller MCU has the characteristics of low cost and high integration, and is increasingly used in the majority of motor controllers. The digital demodulation method requires the on-chip ADC on the MCU to sample the output signal of the resolver, and generate a sinusoidal excitation signal to drive the resolver through PWM and peripheral filters.

[0003] The existing digital demodulation methods for resolvers are mainly divided into two types: one is the demodulation method based on sampling vertex, and the other is the demodulation method based on filter. The traditional demodulation method based on sampling vertex removes the coupled excitation signal by sampling when the excitation signal reaches the peak of the amplitude, thereby obtaining the envelope of the resolver output. This demodulation method actually only samples once per excitation signal cycle, does not satisfy the Nyquist sampling theorem, introduces a large number of quantization errors, and has low accuracy. In the filter-based demodulation method, synchronous sampling and multiplication are used to increase the frequency of the excitation signal component, and then the filter filters out the excitation signal; due to the introduction of the filter, the angle information has a large delay, and the synchronous angle information cannot be obtained in real time. Therefore, the filter-based method cannot be used for high-precision torque control applications and has a narrow application range. Summary of the invention

[0004] The purpose of the present invention is to solve the deficiencies of the above-mentioned prior art and to provide a rotary transformer digital demodulation device and method, which can reduce the angular delay caused by rotary transformer demodulation and reduce the quantization error of digital demodulation, and provide a rotary transformer digital demodulation device and method with high demodulation accuracy and wide application range.

[0005] The technical solution of the present invention to solve the above existing problems is:

[0006] A rotary transformer digital demodulation device, characterized by comprising a rotary transformer module, a rotary transformer output sampling module, a synchronous multiplier module, a peripheral circuit module, an excitation signal sampling module, an envelope demodulation module, a PWM wave generation module, a sinusoidal excitation signal duty cycle generation module, a phase-locked loop module and a system error compensation module;

[0007] The sinusoidal excitation signal duty cycle generation module is connected to the PWM wave generation module, and the sinusoidal excitation signal duty cycle generation module is used to control the PWM wave generation module to generate a PWM wave carrying a sinusoidal excitation signal;

[0008] The PWM wave generation module is connected to the peripheral circuit module, and the peripheral circuit module is used to filter and power amplify the PWM wave to obtain a sinusoidal excitation signal;

[0009] The peripheral circuit module is connected to the rotary transformer module, and the rotary transformer module is used to output an analog signal generated by coupling the angle information with the sinusoidal excitation signal;

[0010] The resolver module is connected to the resolver output sampling module, and the resolver output sampling module is used to collect the output signal of the resolver;

[0011] The excitation signal sampling module is connected to the peripheral circuit module and is used to collect the output sinusoidal excitation signal;

[0012] The excitation signal sampling module and the rotary transformer output sampling module are respectively connected to the synchronous multiplier module, and the synchronous multiplier module is used to synchronously multiply the output signal of the rotary transformer with the excitation signal;

[0013] The synchronous multiplier module is connected to the envelope demodulation module, and the envelope demodulation module is used to demodulate the envelope;

[0014] The envelope demodulation module is connected to the phase-locked loop module, and the phase-locked loop module is used to output the angle and speed in the envelope;

[0015] The phase-locked loop module is connected to the system error compensation module. The system error compensation module multiplies the speed of the envelope by the time delay of the system and then adds the result to the angle of the envelope to obtain the electrical angle of the rotary transformer. The speed output by the phase-locked loop is the speed of the rotary transformer.

[0016] The present invention is further improved by providing a non-orthogonal disturbance compensation module, the envelope demodulation module is connected to the non-orthogonal disturbance compensation module, the non-orthogonal disturbance compensation module is used to observe non-orthogonal errors, and the non-orthogonal errors are used to compensate for errors in the envelope;

[0017] The peripheral circuit module described in the present invention includes a filter circuit and a power amplifier circuit.

[0018] The envelope demodulation module described in the present invention is a numerical synchronous integrator, which uses a synchronous numerical integration method to demodulate the envelope.

[0019] A rotary transformer digital demodulation method, characterized by comprising the following steps:

[0020] Step a. Generate a sinusoidal excitation signal:

[0021] Control the duty cycle of the PWM wave generation module to modulate the PWM wave carrying the sinusoidal excitation signal; filter and amplify the PWM wave to obtain the sinusoidal excitation signal: V exc_real =k gain sin(ω exc t), k gain is the amplifier gain, ω exc is the frequency of the sinusoidal excitation signal;

[0022] Step b. Obtain the envelope of the resolver output signal:

[0023] The sinusoidal excitation signal is input into the resolver, the sinusoidal excitation signal and the resolver output signal are synchronously oversampled, and the two signals are synchronously multiplied to obtain the resolver output after multiplication: The multiplied resolver output signal is envelope demodulated to obtain the resolver's sine output and cosine output envelope signals (i.e., sine envelope and cosine envelope):

[0024]

[0025] Step c. Obtain angle and speed through phase-locked loop

[0026] The sine envelope and cosine envelope are passed to the phase-locked loop, and the angle differential is obtained through the park transformation of the phase-locked loop and the proportional-integral controller. The speed is obtained after passing through the filter of the phase-locked loop; the differential value output by the proportional-integral controller is integrated to obtain the angle; (the phase-locked loop outputs the speed and angle)

[0027] Step d. Compensate for system delays:

[0028] The system delay time is multiplied by the rotation speed output by the phase-locked loop to obtain the (angle) compensation amount, and the (angle) compensation amount is added to the angle output by the phase-locked loop to obtain the electrical angle of the resolver.

[0029] The system delay described in the present invention includes numerical integration delay, phase-locked loop delay and controller delay; the system delay time is: in, Numerical integration delay, T PLL is the phase-locked loop delay, T MCU Delay for the controller.

[0030] The present invention is further improved by performing an operation of compensating for errors in the envelope before step c:

[0031] Multiply the obtained sine envelope by the cosine envelope, according to the formula

[0032] After filtering by low-pass filter and arc sine function, the non-orthogonal delay component β is obtained. orth ; Use the sigmoid function to calculate the sign of the non-orthogonal delay component, then add the delay component to the arccosine value of the cosine envelope for compensation, then take the cosine value to get the compensated cosine envelope. The sine envelope and the compensated cosine envelope are input into the phase-locked loop to obtain the angle and speed.

[0033] The controller used in the present invention is based on the AURIX TC275 chip with a main frequency of 200MHz, including a DS-ADC high-precision analog-to-digital converter module and a high-precision GTM pulse width modulation module, and uses a filtering and amplifying circuit composed of a second-order operational amplifier to output a sinusoidal excitation signal.

[0034] The beneficial effects of the present invention are as follows: (1) The synchronous numerical integration method is used to effectively reduce the angle delay. (2) The oversampling and integration method is used to significantly reduce the quantization error. (3) DC bias and excitation delay are eliminated at the root. (4) The dependence of the traditional numerical integration method on zero-crossing sampling is eliminated. (5) The error in the envelope is compensated by the non-orthogonal compensation method, reducing the non-orthogonal error. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of the functional module structure of the rotary transformer digital demodulation device in the present invention.

[0036] Figure 2 Graph showing the sinusoidal excitation signal used in the present invention.

[0037] Figure 3 The figures are the comparison diagram of the sine envelope obtained by the present invention and the ideal sine envelope and their error diagrams. (a) is the comparison diagram and (b) is the error diagram.

[0038] Figure 4 It is a schematic diagram of the functional module structure of the non-orthogonal disturbance compensation module in the present invention.

[0039] Figure 5 is the output angle of the phase-locked loop module in the present invention and Graph of the function.

[0040] Figure 6 It is a schematic diagram of the functional module structure of the phase-locked loop module in the present invention for obtaining angle and rotation speed.

[0041] Figure 7 This is a diagram of the output signal of the rotary transformer in the present invention.

[0042] Figure 8 The angle obtained by the present invention is compared with the ideal angle and its error diagram. (a) is the comparison diagram and (b) is the error diagram.

[0043] Fig. 9 It is a comparison diagram of the rotation speed obtained by the present invention and the ideal rotation speed.

[0044] Fig.10 It is a comparison diagram of the cosine envelope error before and after the non-orthogonal compensation of the method of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0046] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0047] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0048] Background introduction of rotary transformer:

[0049] The resolver is an absolute position sensor that includes a primary coil and two orthogonal secondary coils. Its input is a sinusoidal excitation signal, and its output is a sine and cosine signal with varying amplitudes. Its input signal is:

[0050] V exc =k gian sin(ω exc t), where k gian is the amplitude gain of the excitation signal, ω exc is the frequency of the excitation signal. Its output signal is V x and V y Represent the cosine and sine output signals respectively, where k transrepresents the turns ratio of the resolver, ω el is the electrical speed of the resolver when it is working. By transforming the two signals it outputs, the real-time absolute electrical angle and the electrical speed of the resolver can be obtained. In fact, due to manufacturing accuracy and time delay issues, the output of the resolver has non-orthogonal errors, excitation delays, and DC components. The excitation signal output in the above formula is actually where β orth represents the non-orthogonal error, β exc represents the excitation delay, V offset Represents the DC component, sin(ω exc t) is the sine value of the excitation signal at time t, sin(ω el t) is the sine value of the electrical speed of the rotary transformer when it is working at time t.

[0051] like Figure 1 The rotary transformer digital demodulation device shown includes a rotary transformer module 1, a rotary transformer output sampling module 2, a synchronous multiplier module 3, a peripheral circuit module 4, an excitation signal sampling module 5, an envelope demodulation module 6, a non-orthogonal disturbance compensation module 9, a PWM wave generation module 7, a sinusoidal excitation signal duty cycle generation module 8, a phase-locked loop module 10 and a system error compensation module 11;

[0052] The sinusoidal excitation signal duty cycle generation module 8 is connected to the PWM wave generation module 7, and the sinusoidal excitation signal duty cycle generation module 8 is used to control the PWM wave generation module 7 to generate a PWM wave carrying the sinusoidal excitation signal according to the sinusoidal excitation signal angle;

[0053] The output end of the PWM wave generation module 7 is connected to the input end of the peripheral circuit module 4, and the peripheral circuit module 4 includes a filter circuit and a power amplifier circuit. The peripheral circuit module is used to filter and amplify the PWM wave to obtain a sinusoidal excitation signal;

[0054] The output end of the peripheral circuit module 4 is connected to the input end of the rotary transformer module 1, and the rotary transformer module 1 is used to output an analog signal generated by coupling the angle information with the sinusoidal excitation signal;

[0055] The output end of the rotary transformer module 1 is connected to the input end of the rotary transformer output sampling module 2, and the rotary transformer output sampling module 2 is used to collect the output signal of the rotary transformer;

[0056] The input end of the excitation signal sampling module 5 is connected to the output end of the peripheral circuit module 4, and is used to collect the sinusoidal excitation signal output by the peripheral circuit module;

[0057] The output end of the excitation signal sampling module 5 and the output end of the rotary transformer output sampling module 2 are respectively connected to the input end of the synchronous multiplier module 3, and the synchronous multiplier module 3 is used to synchronously multiply the output signal of the rotary transformer with the sinusoidal excitation signal;

[0058] The output end of the synchronous multiplier module 3 is connected to the input end of the envelope demodulation module 6, and the envelope demodulation module 6 is used to demodulate the envelope; in this embodiment, the envelope demodulation module 6 is a numerical synchronous integrator, which uses a synchronous numerical integration method to demodulate the envelope to obtain a sine envelope and a cosine envelope;

[0059] The output end of the envelope demodulation module 6 is connected to the input end of the non-orthogonal disturbance compensation module 9, and the non-orthogonal disturbance compensation module 9 is used to observe the non-orthogonal error and compensate the envelope; Figure 4 It can be seen that the non-orthogonal disturbance compensation module includes a multiplier module, a low-pass filter (LPF) module, a per-unit module, an inverse sine module, a compensation sign adjustment module, an inverse cosine module, an adder module and a cosine module. The sine envelope output and the cosine envelope output of the envelope demodulation module are connected to the input of the multiplier module, the output of the multiplier module is connected to the input of the low-pass filter (LPF) module, the output of the low-pass filter (LPF) module is connected to the input of the per-unit module, the output of the per-unit module is connected to the input of the inverse sine module, and the output of the inverse sine module is connected to the input of the compensation sign adjustment module; the cosine envelope output of the envelope demodulation module is connected to the input of the inverse cosine module, the output of the inverse cosine module and the output of the compensation sign adjustment module are respectively connected to the input of the adder module, the output of the adder module is connected to the input of the cosine module, and the output of the cosine module outputs the compensated cosine envelope signal.

[0060] The sine envelope output terminal of the envelope demodulation module 6 and the cosine module output terminal of the non-orthogonal disturbance compensation module 9 are connected to the input terminal of the phase-locked loop module 10, and the phase-locked loop module 10 is used to output the electrical angle and electrical speed in the envelope;

[0061] The output end of the phase-locked loop module 10 is connected to the input end of the system error compensation module 11. The system error compensation module 11 multiplies the speed of the envelope by the time delay of the system and adds the result to the angle of the envelope to obtain the electrical angle of the rotary transformer. The speed output by the phase-locked loop is the electrical speed of the rotary transformer.

[0062] The phase-locked loop module in this embodiment includes a park conversion module, a proportional integral controller module (PI), a low-pass filter module (LPF) and an integration module (1 / s).

[0063] The sine envelope output of the envelope demodulation module and the cosine module output of the non-orthogonal disturbance compensation module are connected to the input of the park transformation module, the q-axis voltage output of the park transformation module is connected to the input of the proportional-integral controller module, and the output of the proportional-integral controller module is respectively connected to the input of the low-pass filter module and the integral module. The output of the low-pass filter module of the phase-locked loop outputs the electrical speed of the rotary transformer, and the output of the integral module outputs the electrical angle; the output of the park transformation module includes the d-axis voltage output and the q-axis voltage output; the output of the integral module is connected to the input of the park transformation module as the feedback of the phase-locked loop angle.

[0064] The rotary transformer digital demodulation method implemented by the rotary transformer digital demodulation device comprises the following steps:

[0065] Step a. Generate a sinusoidal excitation signal:

[0066] like Figure 1 As shown, the generation of the sinusoidal excitation signal starts with generating the duty cycle of the PWM wave. The sinusoidal excitation signal duty cycle generation module 8 generates the frequency ω of the excitation signal as required. exc , adjust the duty cycle of the PWM wave, the duty cycle expression is sin(ω exc t). After obtaining the duty cycle required to be output, the sinusoidal excitation signal duty cycle generation module 8 controls the PWM wave generation module 7 to generate the PWM wave V exc (Wave V exc That is, the PWM wave carrying the sinusoidal excitation signal). Then, the peripheral circuit module 4 is used to connect V exc Filtering and power amplification to obtain a sine wave V exc_real (Sine wave V exc_real is a sinusoidal excitation signal), V exc_real =k gain sin(ω exc t), k gain is the gain of the power amplifier, ω exc is the frequency of the sinusoidal excitation signal. The peripheral circuit module 4 includes a filter circuit and a power amplifier circuit; wherein the filter is a low-pass filter with a cut-off frequency of 10ω exc In order to obtain the sinusoidal excitation signal more accurately, the frequency of the PWM wave carrying the sinusoidal excitation signal output by the PWM wave generating module 7 is at least 100ω exc The filter in the peripheral circuit module 4 is an active low-pass filter, which and the power amplifier are both constructed using operational amplifiers. The excitation signal V exc_real The amplitude is about 10V. Figure 2 Shown is the excitation signal when the excitation frequency is 1 k rad / s.

[0067] Step b. Obtain the envelope of the resolver output signal:

[0068] First, the resolver output sampling module 2 and the excitation signal sampling module 5 are used to synchronously oversample the signal V output by the resolver module 1. x and V y , and the sinusoidal excitation signal V output from the peripheral circuit module 4 exc_real The sampling ratio of oversampling can be changed. The higher the sampling ratio of oversampling, the faster the frequency of angle update and the smaller the quantization error of the result. After sampling, the signal V output by the resolver module 1 is x and V y The sampled sinusoidal excitation signal V exc_real The synchronous multiplier module 3 is used for synchronous multiplication, that is, a synchronous multiplication result is obtained in each sampling period. After the signal output by the resolver and the sinusoidal excitation signal pass through the synchronous multiplier, the result obtained is

[0069] After synchronous multiplication, the output envelope of the resolver has been decoupled from the excitation signal. Considering the actual error, the resolver's sinusoidal output after the synchronous multiplier is:

[0070]

[0071] The output of the cosine output signal after passing through the synchronous multiplier is:

[0072]

[0073] The output of the synchronous multiplier module 3 is transmitted to the envelope demodulation module 6 for envelope demodulation. The envelope demodulation module 6 in this embodiment is a numerical synchronous integration module, which uses the numerical synchronous integration method to perform envelope demodulation. In the synchronous multiplier, the envelope has been decoupled from the excitation signal; the numerical synchronous integration link needs to extract the envelope information from the input synchronous multiplier signal. The integration interval of the numerical synchronous integration is a sinusoidal excitation signal period T exc Since the numerical synchronous integration link has the same effect on the cosine output and sine output of the resolver, the following mainly analyzes the numerical synchronous integration of the sine output. The sine output after synchronous numerical integration is:

[0074] Where t0 is the time when integration starts. Considering the error of the resolver, the error terms in the synchronous multiplier output are and sin(ω exc t+β exc )V offset These two terms are trigonometric periodic functions, and their periods are and T exc The integration interval of the numerical synchronous integration module is T exc , so after the numerical integration in this method, these two error terms are eliminated. By using synchronous multipliers and numerical synchronous integration, the excitation delay β exc and DC component V offset are eliminated. The principle of the cosine output signal is the same. After numerical synchronous integration, only the non-orthogonal error has not been eliminated. After the amplitude is normalized, the envelope of the resolver can be obtained; after the synchronous multiplier and numerical synchronous integration link, the normalized output sine envelope and cosine envelope are:

[0075] where k corr is the amplitude normalization coefficient. The comparison and error between the envelope obtained after the synchronous multiplier and numerical synchronous integrator and the ideal envelope are shown in Figure 3 As shown in the figure. Because of the use of oversampling and synchronous integration, the angle information can be updated at the sampling frequency, reducing the quantization error and angle delay. Because a synchronous multiplier is used before the numerical synchronous integration, the synchronous numerical integration is not limited by the zero-crossing point of the output signal of the resolver.

[0076] Step b1. Compensate for errors in the envelope

[0077] The output signal of the rotary transformer contains a variety of errors, among which the excitation delay and the DC component are eliminated in step b. Step b1 mainly compensates for the non-orthogonal error. Therefore, a non-orthogonal disturbance compensation module 9 based on trigonometric transformation is designed. The specific functional module diagram of the non-orthogonal disturbance compensation module 9 is shown in FIG. Figure 4 shown.

[0078] Multiply the sine envelope and cosine envelope obtained in step b to obtain the decoupled non-orthogonal error sine function: The non-orthogonal error sine function is filtered through a low-pass filter (LPF) and an inverse sine function to obtain the non-orthogonal delay β orth .

[0079] Since the differentials of the arccosine function and the cosine function are different in different angle ranges, the cosine envelope of the resolver cannot be directly compensated, so the sign of the compensation needs to be adjusted according to the angle. The link function for compensation is: When the angle of the resolver is in ((2k-1)π, 2kπ), k∈N, the differential of the cosine function is positive and the differential of the inverse cosine function is negative, and the differential signs of the two functions are different. Therefore, when the angle of the resolver is in this range, the compensation angle should be a positive delay, so n is 0. When it is in (2kπ, (2k+1)π), the differential of the cosine function is negative, and the differential of the inverse cosine function is also negative. The differential signs of the two functions are the same, and the compensation angle should be a negative delay, so n is 1. However, if the sign of the compensation delay angle is suddenly changed at one point, it will cause a The disturbance peaks of different sizes greatly affect the stability of the system. Therefore, the sigmoid function is used to generate a buffer zone before and after the sign change angle, and the compensation function expression becomes: in The sign function of the compensation term is It is the electrical angle output by the phase-locked loop module, and its initial value is 0.

[0080] The functional form is: where θ buff is the size of the buffer zone (buffer angle). Figure 5 The buffer angle is shown as of Comparison of functions as a function of angle.

[0081] Step c. Obtain angle and speed through phase-locked loop

[0082] After the envelope error is compensated, the sine envelope and the cosine envelope enter the phase-locked loop module 10 as inputs. Figure 6 The following is a diagram showing the structure of the phase-locked loop to obtain the angle and speed. The expression of the park transformation is: After park transformation and proportional-integral controller pi, the angle differential can be obtained, and after passing through the low-pass filter of the phase-locked loop, the electrical speed of the resolver can be obtained; the obtained angle differential can be integrated to obtain the electrical angle.

[0083] Step d. Compensate for system delays

[0084] Numerical integration, i.e. definite integration, is used in this resolver digital demodulation system. Therefore, an integration delay is introduced, and the delay time is half the excitation signal cycle: In addition, there is the delay T of the phase-locked loop PLL and the controller delay T MCU Therefore, the system delay can be obtained as It can be considered that within a short system delay, the electrical speed of the rotary transformer is constant. Therefore, the system error compensation module 11 multiplies the speed output by the phase-locked loop and the system delay to obtain the angle of system delay compensation, and adds the compensation angle to the phase-locked loop output angle to obtain the electrical angle of the rotary transformer finally output by the system:

[0085] In the present invention, AURIX TC275 is used as the controller of the digital demodulation system of the rotary transformer. An active filter composed of a second-order operational amplifier and a power amplifier circuit are used as the excitation signal output topology circuit. The electrical speed of the rotary transformer in the experiment is 100rpm; the period of the excitation signal is 1kHz; the sampling frequency is 100kHz; and the introduced non-orthogonal delay is 0.2 degrees. The rotary transformer system is simulated using NI's PXI unit, in which the FPGA-based board PXIe-7846R simulates the rotary transformer, provides ideal envelope and angle, speed information, and communicates with CAN through the PXI-8512 board.

[0086] Figure 7 Shown are the sine and cosine signals output by a simulated resolver depending on the input excitation signal. Figure 8 The figure shows a comparison between the angle obtained by the digital demodulation system obtained by the present invention and the ideal angle; it can be seen from the figure that the present method can better follow the ideal angle, and the error obtained under the working condition of 100RPM is 20.87arc min. Fig. 9 The figure shows the comparison between the rotation speed obtained by the method of the present invention and the ideal rotation speed. As can be seen from the figure, the present invention can stably follow the ideal rotation speed, and the error between the obtained rotation speed and the ideal rotation speed is only 0.07rpm. Fig.10 The figure shows the comparison of the cosine envelope error before and after the non-orthogonal compensation of the method of the present invention. The non-orthogonal compensation significantly reduces the error.

[0087] In summary, the present invention proposes a digital demodulation method for a rotary transformer based on numerical synchronous integration. By using the envelope demodulation method of numerical synchronous integration, the delay of the angle acquired by the digital demodulation system can be effectively reduced. Oversampling and integration are used in combination to reduce the quantization error in the sampling process. The use of a synchronous multiplier in combination with the integration link can remove the excitation delay and the DC component of the rotary transformer. At the same time, a synchronous multiplier is used to decouple the excitation and envelope signals before integration, omitting the zero-crossing detection link of the rotary transformer output. This method designs a disturbance observer based on trigonometric transformation to compensate for the non-orthogonal delay of the rotary transformer output. At the same time, a sigmoid-based connection function is designed to smooth the compensated cosine envelope.

Claims

1. A rotary transformer digital demodulation device, Features It includes a rotary transformer module, a rotary transformer output sampling module, a synchronous multiplier module, a peripheral circuit module, an excitation signal sampling module, an envelope demodulation module, a PWM wave generation module, a sinusoidal excitation signal duty cycle generation module, a phase-locked loop module and a system error compensation module; The sinusoidal excitation signal duty cycle generation module is connected to the PWM wave generation module, and the sinusoidal excitation signal duty cycle generation module is used to control the PWM wave generation module to generate a PWM wave carrying a sinusoidal excitation signal; The PWM wave generation module is connected to the peripheral circuit module, and the peripheral circuit module is used to filter and power amplify the PWM wave to obtain a sinusoidal excitation signal; The peripheral circuit module is connected to the rotary transformer module, and the rotary transformer module is used to output an analog signal generated by coupling the angle information with the sinusoidal excitation signal; The resolver module is connected to the resolver output sampling module, and the resolver output sampling module is used to collect the output signal of the resolver; The excitation signal sampling module is connected to the peripheral circuit module and is used to collect the output sinusoidal excitation signal; The excitation signal sampling module and the rotary transformer output sampling module are respectively connected to the synchronous multiplier module, and the synchronous multiplier module is used to synchronously multiply the output signal of the rotary transformer with the excitation signal; The synchronous multiplier module is connected to the envelope demodulation module, and the envelope demodulation module is used to demodulate the envelope; The envelope demodulation module is connected to the phase-locked loop module, and the phase-locked loop module is used to output the angle and speed in the envelope; The phase-locked loop module is connected to the system error compensation module. The system error compensation module multiplies the speed of the envelope by the time delay of the system and then adds the result to the angle of the envelope to obtain the electrical angle of the rotary transformer. The speed output by the phase-locked loop is the speed of the rotary transformer.

2. The rotary transformer digital demodulation device according to claim 1, Features A non-orthogonal disturbance compensation module is provided. The envelope demodulation module is connected to the non-orthogonal disturbance compensation module. The non-orthogonal disturbance compensation module is used to observe non-orthogonal errors and use the non-orthogonal errors to compensate for errors in the envelope.

3. The rotary transformer digital demodulation device according to claim 1 or 2, Features The peripheral circuit module includes a filter circuit and a power amplifier circuit.

4. The rotary transformer digital demodulation device according to claim 1 or 2, Features The envelope demodulation module is a numerical synchronous integrator, which uses a synchronous numerical integration method to demodulate the envelope.

5. A rotary transformer digital demodulation method implemented by the rotary transformer digital demodulation device according to claim 1, Features The method comprises the following steps: Step a. generating a sinusoidal excitation signal: Control the duty cycle of the PWM wave generation module to modulate the PWM wave carrying the sinusoidal excitation signal; filter and amplify the PWM wave to obtain the sinusoidal excitation signal: V exc_real =k gain sin(ω exc t), k gain is the amplifier gain, ω exc is the frequency of the sinusoidal excitation signal; Step b. Obtain the envelope of the resolver output signal: The sinusoidal excitation signal is input into the resolver, the sinusoidal excitation signal and the resolver output signal are synchronously oversampled, and the two signals are synchronously multiplied to obtain the resolver output after multiplication: The multiplied resolver output signal is envelope demodulated to obtain the resolver's sine output and cosine output envelope signals, namely: sine envelope and cosine envelope: Step c. Obtain angle and speed through phase-locked loop The sine envelope and cosine envelope are passed to the phase-locked loop, and the angle differential is obtained through the park transformation of the phase-locked loop and the proportional-integral controller, and the speed is obtained after passing through the filter of the phase-locked loop; The differential value output by the proportional-integral controller is integrated to obtain the angle; Step d. Compensate for system delays: The system delay time is multiplied by the rotation speed output by the phase-locked loop to obtain the angle compensation amount, and the angle compensation amount is added to the angle output by the phase-locked loop to obtain the electrical angle of the resolver; The system delay described in the present invention includes numerical integration delay, phase-locked loop delay and controller delay; the system delay time is: in, Numerical integration delay, T PLL is the phase-locked loop delay, T MCU Delay for the controller.

6. The rotary transformer digital demodulation method according to claim 5, Features: Before step c, perform the error compensation operation in the envelope: Multiply the obtained sine envelope by the cosine envelope, according to the formula After filtering by low-pass filter and arc sine function, the non-orthogonal delay component β is obtained. orth ; Use the sigmoid function to calculate the sign of the non-orthogonal delay component, then add the delay component to the arccosine value of the cosine envelope for compensation, and then take the cosine value to obtain the compensated cosine envelope.