Motor rotation angle measurement system and method
The two-phase amplitude modulated sinusoidal signal of the motor is converted into a digital signal through the rotary transformer and signal conversion module, and the central processing unit is used to calculate the motor rotation angle. This solves the problems of limited outdoor application of grating encoders and high hardware costs, and realizes the motor rotation angle. high-precision measurement.
Patent Information
- Application Number
- CN202410588388.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-05-13
AI Technical Summary
The existing technology uses a grating encoder to obtain the motor angle signal in harsh outdoor environments, which has problems of limited application and high hardware cost.
A rotary transformer mechanically connected to the motor is used. The two-phase amplitude modulated sinusoidal signal output by the rotary transformer is converted into a digital signal through the signal conversion module and the data acquisition module. The central processing unit is used to calculate the motor rotation angle and realize automatic measurement of the motor rotation angle data.
It achieves high-precision measurement of motor rotation angle in harsh outdoor environments, reduces hardware costs, and solves the problem of limited application of grating encoders.
Smart Images

Figure CN118168449B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of motor measurement and control, and specifically relates to a motor angle (rotation angle) measurement system and method. Background Art
[0002] In the control systems of modern machine tools, robots and other mechanical equipment, and in military engineering equipment such as fire control and command systems, there are often such requirements: high-precision transmission or reproduction of an angle data; precise measurement of a linear displacement or angular displacement; accurate control of the three-dimensional spatial position, speed and acceleration of a system; synchronous rotation between two or more axes that are not mechanically fixed, the so-called angle synchronization tracking, etc., all of which are inseparable from the measurement and conversion of digital angle data.
[0003] Many application scenarios of servo systems require real-time accurate angular position information of their motors. The prior art generally uses a grating encoder that rotates synchronously with the motor (directly or via a reducer to connect to the motor) to obtain its angular position information and convert it into digital angle data. The disadvantage of the grating encoder is that its application in harsh outdoor environments is greatly limited and the hardware cost is high. To this end, the present invention proposes a motor angle measurement system and method, which transforms the output signal of a rotary transformer connected to the motor and outputs an angle digital signal reflecting the position of the motor rotor. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, the present invention provides a motor angle measurement system and method.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions.
[0006] In a first aspect, the present invention provides a motor angle measurement system, comprising: a rotary transformer mechanically connected to the motor, a signal conversion module connected to the rotary transformer, a data acquisition module connected to the signal conversion module, and a central processing unit connected to the data acquisition module; the rotary transformer is used to output two-phase amplitudes respectively subject to sin θ 、cos θ Modulated sine signal v 1. v 2, θ is the rotation angle of the motor; the signal conversion module is used to obtain v 1. v 2 amplitude modulation signals V1, V2 and their absolute value signals |V1|, |V2|; the data acquisition module is used to convert the analog voltage signal output by the signal conversion module into a digital signal and send it to the central processing unit; the central processing unit is used to calculate the motor angle based on V1, V2 and |V1|, |V2| θ .
[0007] Furthermore, the signal conversion module includes: a first detector and a first absolute value circuit connected thereto, a second detector and a second absolute value circuit connected thereto; the first detector and the second detector are respectively used to obtain the absolute value of the input v 1. v 2 extracts amplitude modulation signals V1 and V2; the first absolute value circuit and the second absolute value circuit are used to transform the input V1 and V2 into |V1| and |V2| respectively.
[0008] Furthermore, the first absolute value circuit and the second absolute value circuit both include a comparator, an inverter and a two-choice switch; one input terminal of the comparator is connected to V i The other input terminal is connected to the ground, and the output terminal is connected to the control terminal of the two-choice switch, and the V i The positive and negative status signals are sent to the central processing unit; the input of the inverter is connected to V i Signal, output -V i The signal is connected to one input of the two-choice switch; the other input of the two-choice switch is connected to V i signal is connected, the output terminal is connected through the output V i or -V i Get |V i |; Among them, i =1,2.
[0009] Furthermore, the data acquisition module includes a signal conversion module output signal |V i |Connected sample and hold circuit S / H i , and the input and S / H i The output end of the analog-to-digital converter ADC is connected to the central processing unit i , S / H i , ADC i The control ends are connected to the central processing unit respectively; wherein, i =1,2.
[0010] Furthermore, the motor angle is calculated based on V1, V2 and |V1|, |V2| θ The methods include:
[0011] Will θ The value range is [0 0 ,360 0 ) is divided into 8 angle intervals, i The angle interval is: [45 0 ×( i- 1),45 0 × i ), i =1,2,…,8;
[0012] Normalize |V1| and |V2| as follows:
[0013]
[0014] In the formula, X' for X The normalized value of X max for X The maximum value of X =|V1|,|V2|, X' =|V1| ' ,|V2| ' ;
[0015] Based on V1, V2 and |V2| ' -|V1| ' The positive and negative of |V1| ' The monotonicity of θ The angle interval to which it belongs;
[0016] Calculate V x =min(|V1| ' ,|V2| ' ), solve for V x The corresponding angle δ , 0≤ δ ≤45 0 ;
[0017] based on δ as well as θ Calculation of the angle interval θ .
[0018] Furthermore, the determination θ The angle range method includes:
[0019] If V1≥0, V2≥0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [0 0 ,45 0 );
[0020] If V1≥0, V2≥0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [45 0 ,900 );
[0021] If V1≥0, V2<0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [90 0 ,135 0 );
[0022] If V1≥0, V2<0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [135 0 ,180 0 );
[0023] If V1<0, V2<0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [180 0 ,225 0 );
[0024] If V1<0, V2<0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [225 0 ,270 0 );
[0025] If V1<0, V2≥0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [270 0 ,315 0 );
[0026] If V1<0, V2≥0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| '(n-1)<0, then θ Belong to [315 0 ,360 0 );
[0027] Among them, |V1| ' (n),|V1| ' (n-1) are |V1| ' The value at the current time and the previous time.
[0028] Furthermore, V is calculated as follows: x The corresponding angle δ :
[0029]
[0030] In the formula, δ The unit is degree.
[0031] Furthermore, V is calculated as follows: x The corresponding angle δ :
[0032]
[0033] In the formula, δ The unit is degree.
[0034] Furthermore, the δ and θ Calculation of the angle interval θ ,include:
[0035] like θ Belong to [0 0 ,45 0 ),but θ = δ ;
[0036] like θ Belong to [45 0 ,90 0 ),but θ =90 0 - δ ;
[0037] like θ Belong to [90 0 ,135 0 ),but θ =90 0 + δ ;
[0038] like θ Belong to [135 0 ,180 0 ),butθ =180 0 - δ ;
[0039] like θ Belong to [180 0 ,225 0 ),but θ =180 0 + δ ;
[0040] like θ Belong to [225 0 ,270 0 ),but θ =270 0 - δ ;
[0041] like θ Belong to [270 0 ,315 0 ),but θ =270 0 + δ ;
[0042] like θ Belong to [315 0 ,360 0 ),but θ =360 0 - δ .
[0043] In a second aspect, the present invention provides a method for measuring a motor rotation angle using the system, comprising the following steps:
[0044] Real-time acquisition of the positive and negative states of V1 and V2 and their absolute value signals |V1| and |V2|, where V1 and V2 are the two-phase amplitudes of the rotary transformer output respectively affected by sin θ 、cos θ Modulated sine signal v 1. v 2 amplitude modulated signal, θ is the rotation angle of the motor;
[0045] Based on the positive and negative states of V1 and V2 and |V1|, |V2| and θ Calculate the motor angle θ .
[0046] Compared with the prior art, the present invention has the following beneficial effects.
[0047] The present invention provides a rotary transformer mechanically connected to the motor, a signal conversion module connected to the rotary transformer, a data acquisition module connected to the signal conversion module, and a central processing unit connected to the data acquisition module. The rotary transformer is used to output two-phase amplitudes respectively affected by sin θ 、cos θ Modulated sine signal v 1. v 2, θ is the rotation angle of the motor, and the signal conversion module is used to obtain v 1. v 2 amplitude modulation signals V1, V2 and their absolute value signals |V1|, |V2|, the data acquisition module is used to convert the analog voltage signal output by the signal conversion module into a digital signal and send it to the central processing unit, the central processing unit is used to calculate the motor angle based on V1, V2 and |V1|, |V2| θ The invention realizes the automatic measurement of the motor rotation angle data. The invention obtains the angular position digital signal of the motor rotation by transforming and processing the two-phase voltage signal output by the rotary transformer connected to the motor, thereby solving the problems of the prior art of using the grating encoder to obtain the angle signal, such as limited application in harsh outdoor environments and high hardware cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 The present invention is a block diagram of a motor angle measurement system according to an embodiment of the present invention.
[0049] Figure 2 This is the block diagram of the signal conversion module.
[0050] Figure 3 It is a principle block diagram of the first absolute value circuit and the second absolute value circuit.
[0051] Figure 4 for V1, V2, |V1| ' 、|V2| ' and V x =min(|V1| ' ,|V2| ' ) waveform diagram.
[0052] Figure 5 The present invention is a flowchart of a method for measuring the rotation angle of a motor using the system according to an embodiment of the present invention.
[0053] In the figure, 1-motor, 2-rotating transformer, 3-signal conversion module, 31A-first detector, 31B-first absolute value circuit, 32A-second detector, 32B-second absolute value circuit, 4-data acquisition module, 5-central processing unit. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0055] Figure 1 The block diagram of a motor angle measurement system according to an embodiment of the present invention comprises: a rotary transformer 2 mechanically connected to a motor 1, a signal conversion module 3 connected to the rotary transformer 2, a data acquisition module 4 connected to the signal conversion module 3, and a central processing unit 5 connected to the data acquisition module 4; the rotary transformer 2 is used to output two-phase amplitudes respectively subject to sin θ 、cos θ Modulated sine signal v 1. v 2, θ is the rotation angle of the motor 1; the signal conversion module 3 is used to obtain v 1. v 2 amplitude modulation signals V1, V2 and their absolute value signals |V1|, |V2|; the data acquisition module 4 is used to convert the analog voltage signal output by the signal conversion module 3 into a digital signal and then send it to the central processing unit 5; the central processing unit 5 is used to calculate the motor rotation angle based on V1, V2 and |V1|, |V2| θ .
[0056] In this embodiment, the system mainly consists of a motor 1, a rotary transformer 2, a signal conversion module 3, a data acquisition module 4 and a central processing unit 5. The connection relationship between each module is as follows: Figure 1 As shown, the functional principles of each main module are explained below.
[0057] The rotary transformer 2 is mechanically connected to the motor 1 and is mainly used to output two-phase amplitudes respectively affected by the motor rotation angle. θ The sine and cosine functions (sin θ 、cos θ ) modulated sinusoidal signal v 1. v2. The rotary transformer 2 is equivalent to a rotating transformer, which has a primary winding and a secondary winding. When an excitation alternating current of a certain frequency (such as angular frequency ω) is applied to the primary winding, the secondary winding will induce an output voltage with the same frequency as the primary winding. Structurally, the structure of the rotary transformer 2 is similar to that of a two-wire winding motor, with a stator and a rotor made of high magnetic permeability iron-nickel-silicon steel sheets as the core. The stator is on the primary side of the transformer, and the rotor is on the secondary side of the transformer. Two sets of winding coils with axes at 90° to each other are wound on the stator and rotor respectively. The rotor outputs of the rotary transformer 2 are respectively expressed as v 1(t)=v m sin θ * sinωt, v 2(t)=v m cos θ *sinωt, where v m is the amplitude, ω is the angular frequency of the excitation signal, θ is the motor rotation angle.
[0058] The signal conversion module 3 is mainly used to convert the signal input by the rotary transformer 2 v 1. v 2 signals, extract the amplitude modulation signals V1 and V2, and obtain the absolute value signals |V1| and |V2| of V1 and V2. As mentioned above, v 1. v 2 is the amplitude affected by sin θ 、cos θ The modulated sine signal with an angular frequency of ω (such as v m sin θ * sinωt), in order to obtain the motor angle θ , we need to first get the modulation signal V1 (v m sin θ )、V2(v m cos θ Theoretically, only one modulation signal V1 (v m sin θ ) or V2 (v m cos θ ) can be obtained by performing inverse trigonometric transformation θ However, since the phase value of the actual collected signal is unknown and the obtained amplitude signal may contain a DC component, it is impossible to obtain the value by directly processing one of the signals. θ , or the processing accuracy cannot meet the requirements. To this end, this embodiment not only obtains V1 and V2, but also obtains the absolute value signals |V1| and |V2| of V1 and V2. By processing V1, V2 and |V1| and |V2|, we can obtain θ value.
[0059] The data acquisition module 4 is mainly used to convert the analog voltage signal output by the signal conversion module 3 into a digital signal that can be processed by the computer. The data acquisition module 4 is mainly composed of an analog-to-digital conversion circuit, i.e., an ADC chip. Some central processing units are equipped with an ADC, so there is no need to set up a separate ADC chip.
[0060] The central processing unit 5 is the data processing and control center of the system, mainly used to coordinate the work of each module and complete the necessary data processing tasks. For example, by outputting control signals to the data acquisition module 4, real-time data acquisition is realized; the level signal indicating the positive and negative states of V1 and V2 output by the receiving signal conversion module 3 is calculated; the motor rotation angle is calculated according to a certain algorithm θ For example, we can judge based on the positive and negative values of V1 and V2 and the relative size of |V1| and |V2| θ The angle interval to which it belongs is based on the size of |V1| or |V2| and θ Solving the relationship θ The central processing unit 5 may be a single chip microcomputer or a personal computer.
[0061] As an optional embodiment, the signal conversion module 3 includes: a first detector 31A and a first absolute value circuit 31B connected thereto, a second detector 32A and a second absolute value circuit 32B connected thereto; the first detector 31A and the second detector 32A are respectively used to obtain the absolute value of the input v 1. v 2 to extract amplitude modulation signals V1 and V2; the first absolute value circuit 31B and the second absolute value circuit 32B are used to transform the input V1 and V2 into |V1| and |V2| respectively.
[0062] This embodiment provides a technical solution for the signal conversion module 3. In this embodiment, the signal conversion module 3 includes two identical circuit channels, which are respectively composed of a first detector 31A and a first absolute value circuit 31B, a second detector 32A and a second absolute value circuit 32B connected to each other. Figure 2 The function of the detector is to extract the amplitude modulated signal from the input AM signal, for example, v 1(t)=v m sin θ *sinωt and v 2(t)=v m cos θ * Extract the sine-cosine modulated signal v from sinωt m sin θ and v m cos θ The function of the absolute value circuit is to obtain the absolute value signal of the input signal. For example, the input is v msin θ When the output is v m |sin θ |; Input is v m cos θ When the output is v m |cos θ |.
[0063] As an optional embodiment, the first absolute value circuit 31B and the second absolute value circuit 32B both include a comparator, an inverter and a two-select-one switch; one input terminal of the comparator is connected to V i The other input terminal is connected to the ground, and the output terminal is connected to the control terminal of the two-choice switch, and the V i The positive and negative status signals are sent to the central processing unit 5; the input end of the inverter is connected to V i Signal, output -V i The signal is connected to one input of the two-choice switch; the other input of the two-choice switch is connected to V i signal is connected, the output terminal is connected through the output V i or -V i Get |V i |; Among them, i =1,2.
[0064] This embodiment provides a technical solution for the first absolute value circuit 31B and the second absolute value circuit 32B. In this embodiment, the first absolute value circuit 31B and the second absolute value circuit 32B adopt the same circuit structure, and its principle block diagram is as follows: Figure 3 As shown. Signal V i The principle of taking the absolute value is: when V i ≥0, |V i |=V i ; When V i <0, |V i |=-V i To this end, this embodiment sets a comparator, and the two input terminals of the comparator are respectively connected to the input signal V i Connect to ground and V i Compared with 0 voltage, the output terminal output represents V i Positive and negative level signals, for example, V i Output high level when positive; V i When it is negative, it outputs low level. In addition, it is necessary to set a i and -V i The two-choice switch is used to select the i and -V i The control terminal is connected to the output terminal of the comparator. When the comparator outputs a high level, the two-choice switch selects V iOutput; when the comparator outputs a low level, the two-choice switch selects -V i Output, that is, two-choice switch output |V i | signal. Since the central processing unit 5 determines the motor rotation angle θ When the angle range is, you need to know V i Therefore, the output signal of the comparator needs to be input to the central processing unit 5. Of course, to obtain -V i An inverter is also required, and the input of the inverter is V i , output is -V i .
[0065] As an optional embodiment, the data acquisition module 4 includes a signal conversion module 3 output signal | V i |Connected sample and hold circuit S / H i , and the input terminal and S / H i The output end of the analog-to-digital converter ADC is connected to the central processing unit 5. i , S / H i , ADC i The control ends are connected to the central processing unit 5 respectively; wherein, i =1,2.
[0066] This embodiment provides a technical solution for the data acquisition module 4. In this embodiment, the data acquisition module 4 also includes two identical circuit channels, each of which is connected by a sample-and-hold circuit S / H. i and analog-to-digital converter ADC i The input signal is |V i |, i =1,2. S / H i The purpose is to ensure that ADC i During the conversion period, the input signal |V i |The voltage remains unchanged; during the non-conversion period, S / H i Output follows input signal |V i |Change.ADC i The purpose of ADC is to convert the input analog signal into a digital signal. i The higher the number of bits, the higher the conversion accuracy; however, the higher the number of bits, the higher the hardware cost and the heavier the data processing burden. Therefore, in practical applications, the |V i |A compromise is made between the amplitude range and accuracy requirements. S / H i The selection principle is: if the ADC i If the input signal level changes less than 1 LSB during conversion, S / H can be omitted. i Otherwise, add S / H i .
[0067] As an optional embodiment, the motor angle is calculated based on V1, V2 and |V1|, |V2| θ The methods include:
[0068] Will θ The value range is [0 0 ,360 0 ) is divided into 8 angle intervals, i The angle interval is: [45 0 ×( i- 1),45 0 × i ), i =1,2,…,8;
[0069] Normalize |V1| and |V2| as follows:
[0070]
[0071] In the formula, X' for X The normalized value of X max for X The maximum value of X =|V1|,|V2|, X' =|V1| ' ,|V2| ' ;
[0072] Based on V1, V2 and |V2| ' -|V1| ' The positive and negative of |V1| ' The monotonicity of θ The angle interval to which it belongs;
[0073] Calculate V x =min(|V1| ' ,|V2| ' ), solve for V x The corresponding angle δ , 0≤ δ ≤45 0 ;
[0074] based on δ as well as θ Calculation of the angle interval θ .
[0075] This embodiment provides a method for calculating the motor rotation angle based on V1, V2 and |V1|, |V2| θ This embodiment calculates the motor rotation angle θ The technical principle is: θ The value range (00 ~360 0 ) is divided into multiple small intervals, so that |V i |Change monotonically (monotonically increasing or monotonically decreasing) within each small interval; then judge θ The interval to which it belongs; finally, according to |V i |with θ relationship and θ Solve the interval θ . In general, θ The value range (0 0 ~360 0 ) is divided into 4 small intervals, and the angle range of each small interval is 90 0 , the boundary angles of each cell correspond to the maximum, minimum and zero values of the sine and cosine functions. This method is the simplest and most intuitive, but due to the poor linearity of the sine and cosine functions near the maximum or minimum values, θ The solution accuracy is low; while the linearity of the sine and cosine functions near the zero point is better, such as Figure 4 In order to improve θ The solution accuracy of this embodiment is (0 0 ~360 0 ) is divided into 8 small intervals, and the angle range of each small interval is 45 0 , the boundary angles of each cell correspond to |V1| ' 、|V2| ' The zero point and the intersection of the two, and only take the sine and cosine function values close to 0 (≤sin45 0 ),like Figure 4 V x =min(|V1| ' ,|V2| ' ) signal, whose waveform is approximately a triangular wave. This embodiment is based on θ Smaller θ Approximately equal to sin θ calculate θ , since |V1| and |V2| are not sine and cosine functions with an amplitude of 1, in order to directly obtain |V1| or |V2| θ , |V1| and |V2| must be normalized first so that their maximum value is 1. After normalization is completed, according to V1, V2 and |V2| ' -|V1| ' The positive and negative of |V1| ' The monotonicity of θ The angle interval to which it belongs. Since V1, V2 and |V2| ' -|V1| ' There are 2×2×2=8 different combinations of positive and negative, which are just used to represent the 8 small intervals, such asFigure 4 As shown. However, since it is impossible to determine |V2| ' and |V1| ' Which corresponds to sin θ Which one corresponds to cos θ , it is impossible to distinguish between two adjacent small intervals, such as [0 0 ,45 0 ) and [45 0 ,90 0 ), so increase the |V1| ' or |V2| ' Identification of monotonicity. The following embodiments will provide θ A specific solution for the angle range. Next, calculate V x =min(|V1| ' ,|V2| ' ), find V x The angle corresponding to the sine function δ , 0≤ δ ≤45 0 , and according to δ as well as θ Calculation of the angle interval θ .
[0076] As an optional embodiment, the determination θ The angle range method includes:
[0077] If V1≥0, V2≥0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [0 0 ,45 0 );
[0078] If V1≥0, V2≥0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [45 0 ,90 0 );
[0079] If V1≥0, V2<0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [900 ,135 0 );
[0080] If V1≥0, V2<0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [135 0 ,180 0 );
[0081] If V1<0, V2<0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [180 0 ,225 0 );
[0082] If V1<0, V2<0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [225 0 ,270 0 );
[0083] If V1<0, V2≥0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [270 0 ,315 0 );
[0084] If V1<0, V2≥0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [315 0 ,360 0 );
[0085] Among them, |V1| ' (n),|V1| ' (n-1) are |V1| 'The value at the current time and the previous time.
[0086] This embodiment provides a θ A technical solution for the angle range. This embodiment is based on V1, V2 and |V2| ' -|V1| ' The positive and negative of |V1| ' Monotonicity determination θ Table 1 gives the angle range of V1, V2 and |V2| in each angle range. ' -|V1| ' The positive and negative of |V1| ' Monotonicity. |V1| ' The monotonicity of two adjacent moments |V1| ' The change in [|V1| ' (n)-|V1| ' (n-1)] indicates that if the change is positive, |V1| ' monotonically increasing; otherwise, |V1| ' Monotonically decreasing. According to Table 1, it can be uniquely determined θ The specific determination method of the angle range is as above and will not be explained in detail here.
[0087] Table 1
[0088] Serial Number Interval V1 V2 |V2| - |V1| |V1|(n) - |V1|(n - 1) 1 <![CDATA[[0 0 ,45 0 )]]> + + + + 2 <![CDATA[[45 0 ,90 0 )]]> + + - + 3 <![CDATA[[90 0 ,135 0 )]]> + - - - 4 <![CDATA[[135 0 ,180 0 )]]> + - + - 5 <![CDATA[[180 0 ,225 0 )]]> - - + + 6 <![CDATA[[225 0 ,270 0 )]]> - - - + 7 <![CDATA[[270 0 ,315 0 )]]> - + - - 8 <![CDATA[[315 0 ,360 0 )]]> - + + -
[0089] As an optional embodiment, V is calculated as follows: x The corresponding angle δ :
[0090]
[0091] In the formula, δ The unit is degree.
[0092] This example gives the calculation of V x The corresponding angle δ In order to simplify the calculation, this embodiment uses the angle x Smaller sin x = x The approximate validity (i.e., the sine function is approximately a linear function near 0) is directly converted to V x The value of the angle δ , in radians. In order to get δ The angle value of V x The value of is multiplied by a factor of 180 / π. It is worth noting that the angle of each angle interval is δ V x Considered as sin δ When you getδ The meaning of Figure 4 shown.
[0093] As an optional embodiment, V is calculated as follows: x The corresponding angle δ :
[0094]
[0095] In the formula, δ The unit is degree.
[0096] This example gives the calculation of V x The corresponding angle δ As mentioned above, due to the angle of each angle interval δ V x Considered as sin δ , therefore, δ It can also be calculated by V x The inverse sine function is obtained. In this embodiment, by calculating V x The inverse sine function of δ , a higher accuracy can be obtained compared to the previous embodiment, but the amount of calculation is large.
[0097] As an optional embodiment, the δ and θ Calculation of the angle interval θ ,include:
[0098] like θ Belong to [0 0 ,45 0 ),but θ = δ ;
[0099] like θ Belong to [45 0 ,90 0 ),but θ =90 0 - δ ;
[0100] like θ Belong to [90 0 ,135 0 ),but θ =90 0 + δ ;
[0101] like θ Belong to [135 0 ,180 0 ),but θ =180 0 -δ ;
[0102] like θ Belong to [180 0 ,225 0 ),but θ =180 0 + δ ;
[0103] like θ Belong to [225 0 ,270 0 ),but θ =270 0 - δ ;
[0104] like θ Belong to [270 0 ,315 0 ),but θ =270 0 + δ ;
[0105] like θ Belong to [315 0 ,360 0 ),but θ =360 0 - δ .
[0106] This embodiment provides a δ and θ Calculation of the angle interval θ A technical solution. θ The angle interval and V x The corresponding angle δ , according to the knowledge of trigonometric functions, it is easy to get θ Table 2 lists the values of θ The above technical solution is the logical description of Table 2.
[0107] Table 2
[0108] Serial Number Interval Calculation Formula 1 <![CDATA[[0 0 ,45 0 )]]> = 2 <![CDATA[[45 0 ,90 0 )]]> <![CDATA[ θ =90 0 - δ ]]> 3 <![CDATA[[90 0 ,135 0 )]]> <![CDATA[ θ =90 0 + δ ]]> 4 <![CDATA[[135 0 ,180 0 )]]> <![CDATA[ θ =180 0 - δ ]]> 5 <![CDATA[[180 0 ,225 0 )]]> <![CDATA[ θ =180 0 + δ ]]> 6 <![CDATA[[225 0 ,270 0 )]]> <![CDATA[ θ =270 0 - δ ]]> 7 <![CDATA[[270 0 ,315 0 )]]> <![CDATA[ θ =270 0 + δ ]]> 8 <![CDATA[[315 0 ,360 0 )]]> <![CDATA[ θ =360 0 - δ ]]>
[0109] Figure 5 The present invention is a flowchart of a method for measuring the rotation angle of a motor using the system according to an embodiment of the present invention, comprising the following steps:
[0110] Step 101, real-time acquisition of the positive and negative states of V1 and V2 and their absolute value signals |V1| and |V2|, wherein V1 and V2 are the two-phase amplitudes output by the rotary transformer 2 and are respectively affected by sin θ 、cos θModulated sine signal v 1. v 2 amplitude modulated signal, θ is the rotation angle of motor 1;
[0111] Step 102, based on the positive and negative states of V1 and V2 and |V1|, |V2| and θ Calculate the motor angle θ .
[0112] The method of this embodiment, Figure 1 Compared with the technical solution of the system embodiment shown in the figure, its implementation principle and technical effect are similar and will not be repeated here.
[0113] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A motor angle measurement system, characterized in that: including: A rotary transformer mechanically connected to the motor, a signal conversion module connected to the rotary transformer, a data acquisition module connected to the signal conversion module, and a central processing unit connected to the data acquisition module; the rotary transformer is used to output two-phase amplitudes respectively affected by sin θ 、cos θ Modulated sine signal v 1. v 2, θ is the rotation angle of the motor; the signal conversion module is used to obtain v 1. v 2 amplitude modulation signals V1, V2 and their absolute value signals |V1|, |V2|; the data acquisition module is used to convert the analog voltage signal output by the signal conversion module into a digital signal and send it to the central processing unit; the central processing unit is used to calculate the motor angle based on V1, V2 and |V1|, |V2| θ ; Calculate the motor angle based on V1, V2 and |V1|, |V2| θ The methods include: Will θ The value range is [0 0 ,360 0 ) is divided into 8 angle intervals, the i The angle interval is: [45 0 ×( i- 1),45 0 × i ), i =1,2,…,8; Normalize |V1| and |V2| according to the following formula: ; In the formula, X' for X The normalized value of X max for X The maximum value of X =|V1|,|V2|, X' =|V1| ' ,|V2| ' ; Based on V1, V2 and |V2| ' -|V1| ' The positive and negative of |V1| ' The monotonicity of θ The angle interval to which it belongs; Calculate V x =min(|V1| ' ,|V2| ' ), solve for V x The corresponding angle δ , 0≤ δ ≤45 0 ; based on δ as well as θ Calculation of the angle interval θ .
2. The motor angle measurement system according to claim 1, characterized in that: The signal conversion module includes: a first detector and a first absolute value circuit connected thereto, a second detector and a second absolute value circuit connected thereto; the first detector and the second detector are respectively used to obtain the absolute value of the input v 1. v 2 extracts amplitude modulation signals V1 and V2; the first absolute value circuit and the second absolute value circuit are used to transform the input V1 and V2 into |V1| and |V2| respectively.
3. The motor angle measurement system according to claim 2, characterized in that: The first absolute value circuit and the second absolute value circuit both include a comparator, an inverter and a two-choice switch; one input terminal of the comparator is connected to V i The other input terminal is connected to the ground, and the output terminal is connected to the control terminal of the two-choice switch, and the V i The positive and negative status signals are sent to the central processing unit; the input of the inverter is connected to V i Signal, output -V i The signal is connected to one input of the two-choice switch; the other input of the two-choice switch is connected to V i signal is connected, the output terminal is connected through the output V i or -V i Get |V i |; Among them, i =1,2.
4. The motor angle measurement system according to claim 3, characterized in that: The data acquisition module includes a signal conversion module output signal |V i |Connected sample and hold circuit S / H i , and the input terminal and S / H i The output end of the analog-to-digital converter ADC is connected to the central processing unit i , S / H i , ADC i The control ends are connected to the central processing unit respectively; wherein, i =1,2.
5. The motor angle measurement system according to claim 1, characterized in that: The determination θ The angle range method includes: If V1≥0, V2≥0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [0 0 ,45 0 ); If V1≥0, V2≥0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [45 0 ,90 0 ); If V1≥0, V2<0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [90 0 ,135 0 ); If V1≥0, V2<0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [135 0 ,180 0 ); If V1<0, V2<0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [180 0 ,225 0 ); If V1<0, V2<0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)>0, then θ Belong to [225 0 ,270 0 ); If V1<0, V2≥0, |V2| ' -|V1| ' <0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [270 0 ,315 0 ); If V1<0, V2≥0, |V2| ' -|V1| ' ≥0, and |V1| ' (n)-|V1| ' (n-1)<0, then θ Belong to [315 0 ,360 0 ); Among them, |V1| ' (n),|V1| ' (n-1) are |V1| ' The value at the current time and the previous time.
6. The motor angle measurement system according to claim 1, characterized in that: Calculate V as follows x The corresponding angle δ : ; In the formula, δ The unit is degree.
7. The motor angle measurement system according to claim 1, characterized in that: Calculate V as follows x The corresponding angle δ : ; In the formula, δ The unit is degree.
8. The motor angle measurement system according to claim 1, characterized in that: The basis δ and θ Calculation of the angle interval θ ,include: like θ Belong to [0 0 ,45 0 ),but θ = δ ; like θ Belong to [45 0 ,90 0 ),but θ =90 0 - δ ; like θ Belong to [90 0 ,135 0 ),but θ =90 0 + δ ; like θ Belong to [135 0 ,180 0 ),but θ =180 0 - δ ; like θ Belong to [180 0 ,225 0 ),but θ =180 0 + δ ; like θ Belong to [225 0 ,270 0 ),but θ =270 0 - δ ; like θ Belong to [270 0 ,315 0 ),but θ =270 0 + δ ; like θ Belong to [315 0 ,360 0 ),but θ =360 0 - δ .
9. A method for measuring motor rotation angle using the system of claim 1, characterized in that: including the following steps: Real-time acquisition of the positive and negative states of V1 and V2 and their absolute value signals |V1| and |V2|, where V1 and V2 are the two-phase amplitudes of the rotary transformer output respectively affected by sin θ 、cos θ Modulated sine signal v 1. v 2 amplitude modulated signal, θ is the rotation angle of the motor; Based on the positive and negative states of V1 and V2 and |V1|, |V2| and θ Calculate the motor angle θ .
Citation Information
Patent Citations
Control apparatus for electric rotating machine
CN103401498A
Full-angle measuring device and method for rotary transformer
CN112945288A
Permanent magnet synchronous motor position signal acquisition system and method
CN115425879A
Reference signal generation circuit, angle converter, and angle detection apparatus
US20090160436A1
Apparatus for controlling rotating machine based on output signal of resolver
US20140361720A1
