A decoding circuit, method and position encoder for a dual-channel rotary transformer

By generating synchronous combined Z signals in a dual-channel rotary transformer, the problem of out-of-synchronization of the crystal oscillator cycle of the decoding chip is solved, the accuracy of the decoding angle is improved, and the real-time requirements of the extremely low-speed field are met.

CN115752522BActive Publication Date: 2025-08-08SHANGHAI XINRUI DRIVE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211582493.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2025-08-08
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

In the extremely low speed field, the decoding chip of the dual-channel rotary transformer is not synchronized in the crystal oscillator period, resulting in time errors between the precision Z signal and the coarse Z signal, which cannot meet the real-time requirements, affecting the decoding angle accuracy.

Method used

By receiving the precision and coarse machine Z signals in the first microcontroller, a gate pulse is generated, and combining it with the logic and gate device to generate a synchronized combined Z signal. The second microcontroller calculates the combined Z signal to improve the decoding angle accuracy.

Benefits of technology

It realizes time synchronization between the precision machine and the rough machine Z signal, improves the accuracy of the decoding angle, and meets the real-time requirements of extremely low-speed fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115752522B_ABST
    Figure CN115752522B_ABST
Patent Text Reader

Abstract

The present application discloses a decoding circuit, method, and position encoder for a dual-channel rotary transformer. The method includes: a first single-chip microcomputer receives a fine machine Z signal and a coarse machine Z signal respectively sent by a fine machine decoding chip and a coarse machine decoding chip; according to the fine machine Z signal, sets the output angle range of a strobe pulse; combines the output angle range of the strobe pulse with the coarse machine Z signal to generate a strobe pulse; outputs the strobe pulse to a logic AND gate device, so that the logic AND gate device combines the strobe pulse with the fine machine Z signal to output a combined Z signal to a second single-chip microcomputer; the second single-chip microcomputer receives a combined A signal, a combined B signal, and a combined Z signal; the second single-chip microcomputer calculates the combined A signal, the combined B signal, and the combined Z signal to obtain an encoding angle. Using the present application embodiment, a combined Z signal synchronized with the fine machine and the coarse machine can be output, thereby improving the accuracy of the decoding angle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic control, and in particular to a decoding circuit, method and position encoder for a dual-channel rotary transformer. Background Art

[0002] Modern military artillery control systems operate in extremely harsh environments, subject to shock, vibration, temperature, and humidity fluctuations. Under these harsh operating conditions, conventional angular position and velocity sensors, such as photoelectric sensors, are easily damaged. Resolvers, due to their ruggedness and high reliability, are widely used in systems operating in these harsh environments.

[0003] The resolver is a precision angle, position, and speed detection device with the characteristics of high sensitivity and strong anti-interference ability. In the control system, the resolver can be used as a settlement element, mainly used for coordinate transformation, trigonometric function operations, etc.

[0004] In order to improve the decoding accuracy of the resolver, a dual-channel resolver has emerged. The dual-channel resolver includes two resolvers, a coarse resolver and a fine resolver. The decoding accuracy is improved by combining the coarse and fine decoding. Two decoding chips are usually used to decode the coarse and fine resolvers of the dual-channel resolver.

[0005] However, in solving the problem of position speed measurement in the extremely low-speed field, when two decoding chips are used to decode the fine machine and coarse machine of the ABZ incremental dual-channel rotary transformer respectively, due to the asynchronous crystal oscillator period of the two independent decoding chips, the fine machine Z signal and the coarse machine Z signal output by the fine machine decoding chip and the coarse machine decoding chip have a time error, which cannot meet the real-time requirements in the extremely low-speed field and has a great impact on the accuracy of calculating the decoding angle. Summary of the Invention

[0006] The present application provides a decoding circuit, method and position encoder for a dual-channel rotary transformer, which can output a combined Z signal for fine machining and rough machining synchronization, thereby improving the accuracy of the decoding angle.

[0007] The technical solution is as follows:

[0008] In a first aspect of the present application, a decoding circuit for a dual-channel rotary transformer is provided, the circuit comprising: a dual-channel rotary transformer, a precision decoding chip, a coarse decoding chip, a first single-chip microcomputer, a logic AND gate device, and a second single-chip microcomputer, wherein:

[0009] The input end of the dual-channel rotary transformer is connected to the excitation output end of the precision machine decoding chip, the precision machine output end of the dual-channel rotary transformer is connected to the precision machine input end of the precision machine decoding chip, and the excitation input end of the dual-channel rotary transformer is connected to the excitation output end of the precision machine decoding chip;

[0010] The first end of the precision machine decoding chip is connected to the first end of the first single chip microcomputer, and the Z signal output end of the precision machine decoding chip is connected to the first input end of the logic AND gate device;

[0011] The first end of the coarse machine decoding chip is connected to the second end of the first single chip microcomputer;

[0012] The third terminal of the first single chip microcomputer is connected to the second input terminal of the logic AND gate device;

[0013] The first input terminal of the second single-chip microcomputer is connected to the A signal output terminal of the precision machine decoding chip, the second input terminal of the second single-chip microcomputer is connected to the B signal output terminal of the precision machine decoding chip, and the third input terminal of the second single-chip microcomputer is connected to the output terminal of the logic AND gate device.

[0014] Using the above technical solution, the first single-chip microcomputer is connected to the fine machine decoding chip and the coarse machine decoding chip, which can combine the fine machine Z signal and the coarse machine Z signal and generate a selection pulse. By ANDing the selection pulse and the fine machine Z signal, a combined Z signal that is synchronized with the fine machine Z signal and the coarse machine Z signal can be obtained; the second single-chip microcomputer receives the combined Z signal transmitted by the logic AND gate device, as well as the fine machine A signal and the fine machine B signal sent by the fine machine decoding chip. The error of the decoding angle obtained through combined calculation is small, thereby improving the accuracy of the decoding angle.

[0015] In a second aspect of the present application, a method for a dual-channel rotary transformer is provided, the method comprising:

[0016] The first single chip microcomputer receives the fine machine Z signal and the coarse machine Z signal respectively sent by the fine machine decoding chip and the coarse machine decoding chip;

[0017] According to the precision machining Z signal, the output angle range of the strobe pulse is set;

[0018] Combining the output angle range of the strobe pulse with the coarse machine Z signal to generate the strobe pulse;

[0019] Outputting the strobe pulse to a logic AND gate device, so that the logic AND gate device combines the strobe pulse with the precision machine Z signal to output a combined Z signal to the second single chip microcomputer;

[0020] The second single chip microcomputer receives the precision machine A signal, the precision machine B signal and the combination Z signal;

[0021] The second single chip microcomputer calculates the precision machine A signal, the precision machine B signal and the combined Z signal to obtain the encoding angle.

[0022] Using the above technical solution, the first single-chip microcomputer receives the fine machine Z signal and the coarse machine Z signal, generates a selection pulse based on the coarse machine Z signal and the fine machine Z signal, and transmits it to the logic AND gate device. The logic AND gate device ANDs the selection pulse with the coarse machine Z signal to generate a combined Z signal in which the fine machine Z signal and the coarse machine Z signal are time-synchronized. The second single-chip microcomputer calculates the decoding angle through the combined Z signal, which can further improve the accuracy of the decoding angle.

[0023] Optionally, setting the output angle range of the strobe pulse according to the precision machining Z signal includes:

[0024] The first single chip microcomputer sets half of the mechanical angle corresponding to the period of the precision machining Z signal as the output angle range of the selection pulse.

[0025] By adopting the above technical solution, half of the mechanical angle corresponding to the precision machine Z signal is set as the output angle range of the strobe pulse, so that the output strobe pulse and the precision machine Z signal are ANDed.

[0026] Optionally, combining the output angle range of the strobe pulse with the coarse machine Z signal to generate the strobe pulse includes:

[0027] The first single chip microcomputer determines the center point of the coarse machine Z signal within the output angle range of the strobe pulse;

[0028] Determining a first angular position and a second angular position of the coarse machine Z signal according to the center point;

[0029] The level of the strobe pulse is set to a high level between the center point and the first angular position, and between the center point and the second angular position, and is set to a low level at other positions.

[0030] By adopting the above technical solution, in the selection pulse, the coarse machine Z signal is set to a high level from the center point position to the first angle position, and the coarse machine Z signal is set to a high level from the center point position to the second angle position, and the remaining positions are set to a low level. The obtained selection pulse is then ANDed with the fine machine Z signal to achieve synchronization of the coarse machine Z signal and the fine machine Z signal.

[0031] Optionally, the first angular position is a negative quarter-cycle angular position of the strobe pulse, and the second angular position is a quarter-cycle angular position of the strobe pulse.

[0032] Using the above technical solution, since the width of the coarse machine Z signal is very wide, which is the pole pair number divided by 4 times the pulse width of the fine machine A signal and the fine machine B signal, the first angular position is set to the negative quarter cycle angular position of the coarse machine Z signal, and the second angular position is set to the quarter cycle angular position of the coarse machine Z signal, so that the high-level pulse width of the selection pulse is consistent with the pulse width of the coarse machine Z signal, preventing the loss of pulses during calculation.

[0033] Optionally, before receiving the fine machine Z signal and the coarse machine Z signal respectively sent by the fine machine decoding chip and the coarse machine decoding chip, the method further includes:

[0034] The first single chip microcomputer sends a start signal to the precision machine decoding chip;

[0035] The precision machine decoding chip receives the start signal, powers on, generates an excitation signal, and sends the excitation signal to the dual-channel rotary transformer;

[0036] The dual-channel rotary transformer receives the excitation signal, generates a precision machining feedback signal, and sends the precision machining feedback signal to the precision machining decoding chip;

[0037] The precision machine decoding chip receives and decodes the precision machine feedback signal, generates a precision machine A signal and a precision machine B signal, and outputs the precision machine A signal and the precision machine B signal to the second single chip microcomputer.

[0038] Using the above technical solution, the first single-chip microcomputer sends a start signal to the precision machining decoding chip, so that the precision machining decoding chip is powered on and generates an excitation signal; the precision machining decoding chip transmits the excitation signal to the dual-channel rotating transformer; the dual-channel rotating transformer receives the excitation signal, starts to receive the precision machining feedback signal and the coarse machining feedback signal from the external component, and transmits the precision machining feedback signal to the precision machining decoding chip; the precision machining decoding chip decodes the precision machining feedback signal to obtain the precision machining A signal, the precision machining B signal and the precision machining Z signal, and transmits the precision machining A signal and the precision machining B signal to the second single-chip microcomputer, and transmits the precision machining Z signal to the first single-chip microcomputer.

[0039] Optionally, before receiving the fine machine Z signal and the coarse machine Z signal respectively sent by the fine machine decoding chip and the coarse machine decoding chip, the method further includes:

[0040] The first single chip microcomputer sends a start signal to the coarse machine decoding chip;

[0041] The coarse machine decoding chip receives the start signal and powers on to operate;

[0042] The dual-channel rotary transformer sends the coarse-machine feedback signal to the coarse-machine decoding chip;

[0043] The coarse-machine decoding chip receives and decodes the coarse-machine feedback signal, generates the coarse-machine Z signal, and outputs the coarse-machine Z signal to the first single-chip microcomputer.

[0044] Using the above technical solution, the first single-chip microcomputer sends a start signal to the coarse-machine decoding chip, so that the coarse-machine decoding chip is powered on and starts to receive the coarse-machine feedback signal of the dual-channel rotary transformer, decodes the coarse-machine feedback signal into a coarse-machine Z signal, and transmits it to the first single-chip microcomputer.

[0045] Optionally, the second single-chip microcomputer calculates the precision machine A signal, the precision machine B signal, and the combined Z signal to obtain the encoding angle, including:

[0046] The second single chip microcomputer combines the integer parts of the precision machine A signal and the precision machine B signal, and the decimal part of the combination Z signal to obtain the encoding angle.

[0047] By adopting the above technical solution, the rough machining angle and the fine machining angle are combined and calculated to obtain the encoding angle.

[0048] Optionally, after obtaining the encoding angle, the method further includes:

[0049] Error correction is performed on the coding angle to obtain an accurate coding angle.

[0050] By adopting the above technical solution, due to the transmission error and shaft angle conversion error of the dual-channel rotary transformer, the finally calculated encoding angle is inaccurate. By correcting the encoding angle, the accuracy of the encoding angle can be further improved.

[0051] In a third aspect of the present application, a position encoder is provided. The position encoder includes: a decoding circuit of a dual-channel rotary transformer and a communication chip. The communication chip is connected to the decoding circuit of the dual-channel rotary transformer.

[0052] In summary, this application has at least one of the following beneficial effects:

[0053] 1. Using the above technical solution, the first single-chip microcomputer receives the fine machine Z signal and the coarse machine Z signal, generates a strobe pulse based on the coarse machine Z signal and the fine machine Z signal, and transmits it to the logic AND gate device. The logic AND gate device ANDs the strobe pulse with the coarse machine Z signal to generate a combined Z signal that is time-synchronized with the fine machine Z signal and the coarse machine Z signal. The second single-chip microcomputer calculates the decoding angle based on the combined Z signal, which can further improve the accuracy of the decoding angle. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0055] Figure 1 1 is a schematic diagram of a decoding circuit of a dual-channel rotary transformer provided in an embodiment of the present application;

[0056] Figure 2 1 is a flow chart of a decoding method for a dual-channel rotary transformer provided in an embodiment of the present application;

[0057] Figure 3 This is a structural diagram of a position encoder provided in an embodiment of the present application.

[0058] Explanation of the accompanying symbols: 1. Decoding circuit of dual-channel rotary transformer; 2. Position encoder; 10. Dual-channel rotary transformer; 20. Precision machine decoding chip; 30. Coarse machine decoding chip; 40. Logic AND gate device; 50. First single-chip microcomputer; 60. Second single-chip microcomputer; 70. Communication chip. DETAILED DESCRIPTION

[0059] In order to enable people skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0060] In the description of the embodiments of this application, words such as "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0061] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "multiple" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0062] Before describing the embodiments of the present application, a brief introduction to the rotary transformer is first given.

[0063] The resolver is an analog electromechanical component that outputs an analog signal. In order to be able to be used in digital servo systems, measurement systems, microprocessors or microcomputer control systems, the analog signal generated by the resolver must be converted into a digital signal that can be recognized by the control system. This requires the use of a resolver circuit or an interface circuit. The analog / digital converter includes the resolver's transmitter. Calculating the rotor shaft angle and using the host computer to display the result is the main function of this component.

[0064] A dual-channel resolver is a multi-pole resolver, including single-pole and multi-pole resolvers. Single-pole resolvers have lower precision and are therefore called coarse resolvers, while multi-pole resolvers have higher precision and are therefore called fine resolvers. Typically, a unipolar resolver is used together with a multi-pole resolver to form a complete system. When designing a dual-channel resolver, both multi-pole and unipolar resolvers are incorporated into a single rotor and stator core. However, both multi-stage and single-stage resolvers have corresponding multi-stage and unipolar windings.

[0065] The following will provide a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0066] Please refer to Figure 1 In one embodiment, a decoding circuit 1 of a dual-channel rotary transformer is disclosed, such as Figure 1As shown, a decoding circuit 1 of a dual-channel rotary transformer includes a dual-channel rotary transformer 10, a fine machine decoding chip 20, a coarse machine decoding chip 30, a first single-chip microcomputer 50, a logic AND gate device 40 and a second single-chip microcomputer 60, wherein:

[0067] The input end of the dual-channel rotary transformer 10 is connected to the excitation output end of the precision machine decoding chip 20, the precision machine output end of the dual-channel rotary transformer 10 is connected to the precision machine input end of the precision machine decoding chip 20, and the excitation input end of the dual-channel rotary transformer 10 is connected to the excitation output end of the precision machine decoding chip 20;

[0068] The first end of the precision machine decoding chip 20 is connected to the first end of the first single chip microcomputer 50, and the Z signal output end of the precision machine decoding chip 20 is connected to the first input end of the logic AND gate device 40;

[0069] The first end of the coarse machine decoding chip 30 is connected to the second end of the first single chip microcomputer 50;

[0070] The third terminal of the first single chip microcomputer 50 is connected to the second input terminal of the logic AND gate device 40;

[0071] The first input terminal of the second single-chip microcomputer 60 is connected to the A signal output terminal of the precision machine decoding chip 20, the second input terminal of the second single-chip microcomputer 60 is connected to the B signal output terminal of the precision machine decoding chip 20, and the third input terminal of the second single-chip microcomputer 60 is connected to the output terminal of the logic AND gate device 40.

[0072] Exemplarily, the first single-chip microcomputer 50 sends a start signal to the precision machine decoding chip 20. After receiving the start signal, the precision machine decoding chip 20 starts to power on, generates an excitation signal, and transmits the excitation signal to the dual-channel rotary transformer 10. After receiving the excitation signal, the dual-channel rotary transformer 10 powers on and starts to receive external component information, obtains a precision machine feedback signal and a coarse machine feedback signal, and transmits the precision machine feedback signal and the coarse machine feedback signal to the precision machine decoding chip 20 and the coarse machine decoding chip 30, respectively. The precision machine decoding chip 20 receives and decodes the precision machine feedback signal to obtain a precision machine A signal, a precision machine B signal, and a precision machine Z signal, and transmits the precision machine A signal and the precision machine B signal to the second single-chip microcomputer 60, and transmits the precision machine Z signal to the logic AND gate device 40. The coarse machine decoding chip 30 receives and decodes the coarse machine feedback signal to obtain a coarse machine Z signal, and transmits the coarse machine Z signal to the first single-chip microcomputer 50.

[0073] Furthermore, the first single-chip microcomputer 50 receives the fine machine Z signal and the coarse machine Z signal, and generates a selection pulse based on the fine machine Z signal and the coarse machine Z signal, and transmits the selection pulse to the logic AND gate device 40; the logic AND gate device 40 ANDs the received fine machine Z signal with the selection pulse to obtain a combined Z signal, and transmits the combined Z signal to the second single-chip microcomputer 60; the second single-chip microcomputer 60 calculates the received fine machine A signal, fine machine B signal and combined Z signal to obtain the encoding angle.

[0074] Typically, the Z signal in a resolver is used to indicate absolute position. The encoded angle is calculated by combining the Z signal with the fine machine A and fine machine B signals. Because the fine machine Z signal outputs multiple Z signals during a single rotation, it cannot indicate absolute position. Furthermore, the pulse width of the coarse machine Z signal is wider than that of the fine machine A and fine machine B signals. Directly using the coarse machine Z signal for the combination may result in pulse loss during forward and reverse rotation. Directly combining the fine machine Z signal with the coarse machine Z signal will also result in errors in the resulting combined Z signal, due to the different crystal oscillator periods of the fine machine decoder chip 20 and the coarse machine decoder chip 30, making it unusable in practical applications. Therefore, through the decoding circuit 1 of the above-mentioned dual-channel rotating transformer, after the first single-chip microcomputer 50 receives the fine machine Z signal and the coarse machine Z signal, the output angle range of the selection pulse is set according to the fine machine Z signal, and the first angle position and the second angle position of the selection pulse are set according to the output angle range of the coarse machine Z signal. The obtained selection pulse is output to the logic AND gate device 40. The logic AND gate device 40 ANDs the selection pulse with the fine machine Z signal to obtain a combined Z signal. The combined Z signal is synchronized with both the coarse machine Z signal and the fine machine Z signal. The encoding angle is obtained by calculating the combined Z signal with the fine machine A signal and the fine machine B signal, and the accuracy is significantly improved.

[0075] In one embodiment, please refer to Figure 2 A decoding method for a dual-channel resolver 10 is proposed. This method can be implemented using a computer program, a single-chip microcomputer, or run on a decoding circuit 1 for a dual-channel resolver based on a von Neumann architecture. The computer program can be integrated into an application or run as a standalone tool application.

[0076] Step 101 : The first single chip microcomputer 50 receives the fine machine Z signal and the coarse machine Z signal respectively sent by the fine machine decoding chip 20 and the coarse machine decoding chip 30 .

[0077] The decoding chip can use two AD2S1210 rotary transformer decoding chips to decode the fine machine and the rough machine respectively to obtain the fine machine Z signal and the rough machine Z signal.

[0078] Exemplarily, the first single-chip microcomputer 50 sends a start signal to the precision machine decoding chip 20. After receiving the start signal, the precision machine decoding chip 20 starts to power on, generates an excitation signal, and transmits the excitation signal to the dual-channel rotary transformer 10. After receiving the excitation signal, the dual-channel rotary transformer 10 powers on and starts to receive external component information, obtains a precision machine feedback signal and a coarse machine feedback signal, and transmits the precision machine feedback signal and the coarse machine feedback signal to the precision machine decoding chip 20 and the coarse machine decoding chip 30, respectively. The precision machine decoding chip 20 receives and decodes the precision machine feedback signal to obtain a precision machine A signal, a precision machine B signal, and a precision machine Z signal, and transmits the precision machine A signal and the precision machine B signal to the second single-chip microcomputer 60, and transmits the precision machine Z signal to the logic AND gate device 40. The coarse machine decoding chip 30 receives and decodes the coarse machine feedback signal to obtain a coarse machine Z signal, and transmits the coarse machine Z signal to the first single-chip microcomputer 50.

[0079] Step 102: According to the precision machining Z signal, set the output angle range of the strobe pulse.

[0080] For example, since the output strobe pulse ultimately needs to be ANDed with the precision machining Z signal, the output angular range of the strobe pulse must be consistent with the output angular range of the precision machining Z signal. In actual applications, forward and reverse rotation occurs, which can be understood as half of the precision machining Z signal being positive and the other half being negative. Therefore, the first single-chip microcomputer 50 sets half of the mechanical angle corresponding to the period of the precision machining Z signal as the output angular range of the positive half axis of the strobe pulse.

[0081] Step 103: Combine the output angle range of the strobe pulse with the coarse machine Z signal to generate a strobe pulse.

[0082] For example, as can be seen from the above, the first single-chip microcomputer 50 sets half the mechanical angle corresponding to the period of the fine machining Z signal as the output angle range of the positive half-axis of the strobe pulse. Therefore, the negative half-axis corresponding to the fine machining Z signal is also half the mechanical angle corresponding to the period of the fine machining Z signal. Therefore, a center point must exist. The first single-chip microcomputer 50 determines the center point within the output angle range of the strobe pulse where the coarse machining Z signal is located.

[0083] Since the width of the coarse machine Z signal is the number of pole pairs of the fine machine A signal and the fine machine B signal divided by 4, the negative quarter-cycle angular position of the strobe pulse is set to the first position, and the positive quarter-cycle angular position of the strobe pulse is set to the second position. The pulse levels of the strobe pulse between the center point and the first angular position and between the center point and the second angle are set to a high level, and the remaining positions are set to a low level.

[0084] Step 104 : Outputting a strobe pulse to the logic AND gate device 40 , so that the logic AND gate device 40 combines the strobe pulse with the precision Z signal and outputs a combined Z signal to the second single-chip microcomputer 60 .

[0085] Exemplarily, the first single-chip microcomputer 50 outputs a strobe pulse to the logic AND gate device 40 , and the logic AND gate device 40 ANDs the received strobe pulse with the precision machine Z signal to obtain a combined Z signal, and transmits the combined Z signal to the second single-chip microcomputer 60 .

[0086] Step 105: The second single chip microcomputer 60 receives the precision machine A signal, the precision machine B signal and the combined Z signal, calculates the precision machine A signal, the precision machine B signal and the combined Z signal, and obtains the encoding angle.

[0087] For example, resolvers can be divided into resolver transformers and resolver transmitters. In the resolver transmitter, power is supplied to the excitation magnetic winding via a unidirectional voltage phase. When the rotor is rotating, the relative position between the excitation winding and the secondary output winding changes, resulting in an electromotive force generated by electromagnetic induction emitted by the secondary output winding. Furthermore, because the spatial relationship between the two phases of the secondary output winding is unique, being orthogonal at 90 degrees, the voltages corresponding to the excitation and output phases have the same frequency, differing only in phase. While the cosine and sine phases have the same time phase, their amplitudes vary as a function of the rotation angle.

[0088] Because the analog signal output by the resolver contains two mechanical angles: the fine and coarse shaft angles, and because computers cannot directly combine the coarse and fine feedback signals, the mechanical angles must first be digitally converted to combine the coarse and fine signals. When the ratio of the coarse to fine speeds corresponding to the multi-pole resolver is 1:N, and the period of the coarse shaft digital angle corresponding to the multi-pole resolver is 360 degrees, the period of the fine shaft digital angle is 360 degrees / N. That is, if the coarse shaft digital angle completes one rotation, the fine shaft digital angle has completed N rotations.

[0089] For a multi-pole resolver with a 1:32 speed ratio, if the coarse shaft completes one revolution, the fine shaft completes 32 revolutions. This means that one revolution of the fine shaft corresponds to 1 / 32 of a coarse shaft revolution, or 11.25 degrees. Therefore, 5.6 degrees is the most significant digit of the fine shaft. If both the fine shaft angle and the coarse shaft angle are 12 digits, only the first five digits of the fine shaft angle are significant. This is because the accuracy of the last few digits of the coarse shaft angle is not as good as the 32x magnification of the fine shaft angle. When combining the fine shaft angle and the coarse shaft angle, the first five digits of the coarse shaft angle are used as the most significant digits, while the fine shaft angle is used as the least significant digits. Therefore, when combining the fine and coarse shaft angles, the principle is typically to use only the integer 0 portion of the coarse shaft angle and the decimal 0 portion of the fine shaft angle.

[0090] When combining the fine and rough machining data, it is imperative to ensure that the rough machining axis digital angle is error-free. However, factors such as multi-pole resolver errors, transmission errors, and shaft angle conversion errors can result in suboptimal display when combining the fine and rough machining axis angle data, often causing the rough machining reading to be one unit less or more. Therefore, error correction is essential when combining the fine and rough machining angle data. This correction is based on the principle of comparing the fine machining axis data with the rough machining axis angle data.

[0091] When performing error correction, the following situations are commonly encountered: First, when the precision angle is in the first quadrant, the only possible situation is the undercounting of the rough angle. When counting, if the precision angle data overflows, the fifth digit of the rough angle should be carried forward to implement error correction. Second, when the precision angle is in the fourth quadrant, the only possible situation is the overcounting of the rough angle data, not the undercounting. When counting, if the precision angle data is not full, the fifth digit of the rough angle data cannot be carried forward. If the rough angle mantissa is carried forward to the fifth digit, the fifth digit of the rough angle must be subtracted to implement error correction. Third, when the precision angle is in the second and third quadrants, there is no carry in the rough angle data, so the rough angle data cannot be undercounted or overcounted, which requires error correction.

[0092] To sum up, when the multi-stage rotating transformer with a speed ratio of 1:32 corrects the coarse machine data and the fine machine data, it can be achieved through the upper 2 bits of the fine channel and the 6th and 7th bits of the coarse channel. When the fine machine angle is in the first quadrant and carries, if the coarse machine angle does not carry, then the 5th bit should be added by 1; when the fine machine angle is in the fourth quadrant and there is no carry, but the coarse machine angle carries, then the 5th bit should be subtracted by 1; when the fine machine angle is in other situations or is in other quadrants, there is no need to carry, and at this time, the 5th bit is added by 0.

[0093] Under normal circumstances, for an ordinary multi-pole rotary transformer digital conversion system, a dual-speed processor required for the combination and error correction of fine machine data and coarse machine data can be designed, and the fine machine shaft and coarse machine shaft digital angles with the same number of digits are used. First, the same number of digits is used to represent the coarse machine data angle and the fine machine data angle. If the number of digits of the digital angle of the coarse machine shaft is less than that of the digital angle of the fine machine shaft, the coarse machine digital angle is zero-filled at the tail. Thereafter, the coarse machine shaft digital angle is subjected to speed ratio conversion, that is, expanded by N times, and then error correction is implemented using the error correction method described in the above embodiment, that is, the digital angle of the fine machine shaft is used to correct the digital angle of the coarse machine shaft. After completing error correction, the coarse machine shaft digital angle can be replaced by the fine machine shaft digital angle, thereby completing the digital angle corresponding to the combination of the fine machine shaft and the coarse machine shaft, and finally the digital angle corresponding to the output of the multi-pole rotary transformer can be obtained.

[0094] By adding the number of bits of the coarse and fine digital angles, we can determine the number of bits in the coarse and fine data dual-speed processor for the multi-pole resolver. Generally, the number of bits of the fine digital angle is obtained by taking the number of bits of the actual fine data angle. However, the number of bits required to obtain the coarse digital angle depends on the speed ratio of the multi-pole resolver.

[0095] This embodiment provides a position encoder, which includes a decoding circuit 1 of a dual-channel rotary transformer based on a single decoding chip and a communication chip 70, such as Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of the position encoder provided by an embodiment of the present invention. The communication chip 70 and the second single-chip microcomputer 60 can be connected via the field bus RS485. The communication chip 70 can be an ADM2682E type RS232 communication chip 70.

[0096] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not recorded in the present disclosure.

Claims

1. A decoding circuit for a dual-channel rotary transformer, characterized in that: It comprises a dual-channel rotary transformer (10), a precision machine decoding chip (20), a rough machine decoding chip (30), a first single-chip microcomputer (50), a logic AND gate device (40) and a second single-chip microcomputer (60), wherein: The input end of the dual-channel rotary transformer (10) is connected to the excitation output end of the fine machine decoding chip (20), the fine machine output end of the dual-channel rotary transformer (10) is connected to the fine machine input end of the fine machine decoding chip (20), and the rough machine output end of the dual-channel rotary transformer (10) is connected to the rough machine input end of the rough machine decoding chip (30); The first end of the precision machine decoding chip (20) is connected to the first end of the first single-chip microcomputer (50), and the Z signal output end of the precision machine decoding chip (20) is connected to the first input end of the logic AND gate device (40); The first end of the coarse machine decoding chip (30) is connected to the second end of the first single chip microcomputer (50); The third terminal of the first single-chip microcomputer (50) is connected to the second input terminal of the logic AND gate device (40); The first input terminal of the second single-chip microcomputer (60) is connected to the A signal output terminal of the precision machine decoding chip (20), the second input terminal of the second single-chip microcomputer (60) is connected to the B signal output terminal of the precision machine decoding chip (20), and the third input terminal of the second single-chip microcomputer (60) is connected to the output terminal of the logic AND gate device (40).

2. A decoding method for a dual-channel rotary transformer, characterized in that: A decoding circuit applied to the dual-channel rotary transformer (10) according to claim 1, the method comprising: The first single chip microcomputer (50) receives the fine machine Z signal and the coarse machine Z signal respectively sent by the fine machine decoding chip (20) and the coarse machine decoding chip (30); According to the precision machining Z signal, the output angle range of the strobe pulse is set; Combining the output angle range of the strobe pulse with the coarse machine Z signal to generate the strobe pulse; Outputting the strobe pulse to a logic AND gate device (40), so that the logic AND gate device (40) combines the strobe pulse with the precision machine Z signal and outputs a combined Z signal to the second single chip microcomputer (60); The second single chip microcomputer (60) receives the precision machine A signal, the precision machine B signal and the combined Z signal; The second single chip microcomputer (60) calculates the precision machine A signal, the precision machine B signal and the combined Z signal to obtain a coding angle.

3. The decoding method of the dual-channel rotary transformer according to claim 2, characterized in that: The step of setting the output angle range of the strobe pulse according to the precision machining Z signal comprises: The first single chip microcomputer (50) sets half of the mechanical angle corresponding to the period of the precision machining Z signal as the output angle range of the strobe pulse.

4. The decoding method of the dual-channel rotary transformer according to claim 2, characterized in that: The combining the output angle range of the strobe pulse and the coarse machine Z signal to generate the strobe pulse comprises: The first single chip microcomputer (50) determines the center point of the coarse machine Z signal within the output angle range of the strobe pulse; Determining a first angular position and a second angular position of the coarse machine Z signal according to the center point; The level of the strobe pulse is set to a high level between the center point and the first angular position, and between the center point and the second angular position, and is set to a low level at other positions.

5. The decoding method of the dual-channel rotary transformer according to claim 4, characterized in that: The first angular position is a negative quarter-cycle angular position of the strobe pulse, and the second angular position is a quarter-cycle angular position of the strobe pulse.

6. The decoding method of the dual-channel rotary transformer according to claim 2, characterized in that: Before the first single chip microcomputer (50) receives the fine machine Z signal and the coarse machine Z signal respectively sent by the fine machine decoding chip (20) and the coarse machine decoding chip (30), it also includes: The first single-chip microcomputer (50) sends a start signal to the precision machine decoding chip (20); The precision machine decoding chip (20) receives the start signal, powers on, generates an excitation signal, and sends the excitation signal to the dual-channel rotary transformer (10); The dual-channel rotary transformer (10) receives the excitation signal, generates a precision machining feedback signal, and sends the precision machining feedback signal to the precision machining decoding chip (20); The precision machine decoding chip (20) receives and decodes the precision machine feedback signal, generates a precision machine A signal and a precision machine B signal, and outputs the precision machine A signal and the precision machine B signal to a second single chip microcomputer (60).

7. The decoding method of the dual-channel rotary transformer according to claim 2, characterized in that: Before the first single chip microcomputer (50) receives the fine machine Z signal and the coarse machine Z signal respectively sent by the fine machine decoding chip (20) and the coarse machine decoding chip (30), it also includes: The first single chip microcomputer (50) sends a start signal to the coarse machine decoding chip (30); The coarse machine decoding chip (30) receives the start signal and powers on to operate; The dual-channel rotary transformer (10) sends a coarse machine feedback signal to the coarse machine decoding chip (30); The coarse machine decoding chip (30) receives and decodes the coarse machine feedback signal, generates the coarse machine Z signal, and outputs the coarse machine Z signal to the first single chip microcomputer (50).

8. The decoding method of the dual-channel rotary transformer according to claim 2, characterized in that: The second single chip microcomputer (60) calculates the precision machine A signal, the precision machine B signal and the combined Z signal to obtain the encoding angle, including: The second single chip microcomputer (60) combines the integer parts of the precision machine A signal and the precision machine B signal, and the decimal part of the combined Z signal to obtain a coding angle.

9. The decoding method of the dual-channel rotary transformer according to claim 8, characterized in that: After obtaining the coding angle, the method further includes: Error correction is performed on the coding angle to obtain an accurate coding angle.

10. A position encoder, characterized in that: It comprises the decoding circuit (1) of the dual-channel rotary transformer according to claim 1 and a communication chip (70), wherein the communication chip (70) is connected to the decoding circuit of the dual-channel rotary transformer (10).

Citation Information

Patent Citations

  • Location decoding method and system based on dual-channel rotary transformer phase lock-lose

    CN109579676A

  • Position is detected and decoding circuit with dual -speed resolver

    CN205175428U