[go: up one dir, main page]

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

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

Info

Publication number
CN115752522B
CN115752522B CN202211582493.5A CN202211582493A CN115752522B CN 115752522 B CN115752522 B CN 115752522B CN 202211582493 A CN202211582493 A CN 202211582493A CN 115752522 B CN115752522 B CN 115752522B
Authority
CN
China
Prior art keywords
signal
machine
coarse
fine
singlechip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211582493.5A
Other languages
Chinese (zh)
Other versions
CN115752522A (en
Inventor
权双坡
张宝
张星瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shanghai Shandong Driving Technology Co ltd
Original Assignee
Shanghai Shanghai Shandong Driving Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shanghai Shandong Driving Technology Co ltd filed Critical Shanghai Shanghai Shandong Driving Technology Co ltd
Priority to CN202211582493.5A priority Critical patent/CN115752522B/en
Publication of CN115752522A publication Critical patent/CN115752522A/en
Application granted granted Critical
Publication of CN115752522B publication Critical patent/CN115752522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

本申请实施例公开了一种双通道旋转变压器的解码电路、方法及位置编码器,所述方法包括:第一单片机接收精机解码芯片和粗机解码芯片分别发送的精机Z信号和粗机Z信号;根据精机Z信号,设置选通脉冲的输出角度范围;结合选通脉冲的输出角度范围与所述粗机Z信号,生成选通脉冲;输出选通脉冲至逻辑与门器件,以使逻辑与门器件结合选通脉冲与所述精机Z信号输出组合Z信号至第二单片机;第二单片机接收组合A信号、组合B信号以及组合Z信号;第二单片机计算组合A信号、组合B信号以及所述组合Z信号,得到编码角度。采用本申请实施例,可以输出精机和粗机同步的组合Z信号,提升解码角度的精度。

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.

Description

Decoding circuit and method of double-channel rotary transformer and position encoder
Technical Field
The application relates to the field of electronic control, in particular to a decoding circuit and method of a double-channel rotary transformer and a position encoder.
Background
Modern military gun control systems are very demanding in their operating environment, such as impact shock and temperature and humidity changes. Under such severe operating conditions, common types of angular axis position, speed sensors, such as photosensors, are susceptible to damage. The rotary transformer is widely applied to systems with harsh working environments due to the characteristics of firmness, durability and high reliability.
The rotary transformer is a precise angle, position and speed detecting device, has the characteristics of high sensitivity, strong anti-interference capability and the like, and can be used as a settlement element in a control system and is mainly used for coordinate transformation, trigonometric function operation and the like.
In order to improve the decoding precision of the rotary transformer, a dual-channel rotary transformer is provided, wherein the dual-channel rotary transformer comprises a coarse machine and a fine machine, the decoding precision is improved through the combination of the coarse machine and the fine machine, two decoding chips are generally used for decoding the dual-channel rotary transformer, and the coarse machine and the fine machine of the dual-channel rotary transformer are respectively decoded.
However, in solving the problem of passing through the position speed measurement in the extremely low speed field, when two decoding chips are adopted to respectively decode the fine machine and the coarse machine of the ABZ incremental dual-channel rotary transformer, as the crystal oscillator periods of the two independent decoding chips are not synchronous, time errors exist between the fine machine Z signal and the coarse machine Z signal output by the fine machine decoding chip and the coarse machine decoding chip, the real-time requirement in the extremely low speed field cannot be met, and the influence on the accuracy of calculating the decoding angle is large.
Disclosure of Invention
The application provides a decoding circuit, a decoding method and a position encoder of a double-channel rotary transformer, which can output a combined Z signal of synchronous precision machine and coarse machine and improve the accuracy of decoding angle.
The technical scheme is as follows:
In a first aspect of the application, a decoding circuit of a dual-channel rotary transformer is provided, the circuit comprises a dual-channel rotary transformer, a fine machine decoding chip, a coarse machine decoding chip, a first singlechip, a logic AND gate device and a second singlechip, wherein:
The input end of the dual-channel rotary transformer is connected with the excitation output end of the refiner decoding chip, the refiner output end of the dual-channel rotary transformer is connected with the refiner input end of the refiner decoding chip, and the excitation input end of the dual-channel rotary transformer is connected with the excitation output end of the refiner decoding chip;
The first end of the fine machine decoding chip is connected with the first end of the first singlechip, and the Z signal output end of the fine machine decoding chip is connected with the first input end of the logic AND gate device;
the first end of the coarse machine decoding chip is connected with the second end of the first singlechip;
the third end of the first singlechip is connected with the second input end of the logic AND gate device;
the first input end of the second singlechip is connected with the A signal output end of the fine machine decoding chip, the second input end of the second singlechip is connected with the B signal output end of the fine machine decoding chip, and the third input end of the second singlechip is connected with the output end of the logic AND gate device.
By adopting the technical scheme, the first singlechip is connected with the fine machine decoding chip and the coarse machine decoding chip, can combine the fine machine Z signal and the coarse machine Z signal, generates a gating pulse, phase-outputs the gating pulse and the fine machine Z signal to obtain a combined Z signal which is synchronous with the fine machine Z signal and the coarse machine Z signal, receives the combined Z signal transmitted by the logic AND gate device, and the fine machine A signal and the fine machine B signal transmitted by the fine machine decoding chip, obtains small error of a decoding angle through combined calculation, and improves the accuracy of the decoding angle.
In a second aspect of the application, there is provided a method of a dual channel resolver, the method comprising:
the first singlechip receives a fine machine Z signal and a coarse machine Z signal which are respectively sent by a fine machine decoding chip and a coarse machine decoding chip;
setting an output angle range of a gating pulse according to the refiner Z signal;
combining the output angle range of the gating pulse and the coarse machine Z signal to generate the gating pulse;
Outputting the gating pulse to a logic AND gate device, so that the logic AND gate device combines the gating pulse and the precision Z signal to output a combined Z signal to a second singlechip;
the second singlechip receives the fine machine A signal, the fine machine B signal and the combined Z signal;
And the second singlechip calculates the refiner A signal, the refiner B signal and the combined Z signal to obtain a coding angle.
By adopting the technical scheme, the first singlechip receives the fine machine Z signal and the coarse machine Z signal, generates gating pulses according to the coarse machine Z signal and the fine machine Z signal and transmits the gating pulses to the logic AND gate device, the logic AND gate device phase-stores the gating pulses and the coarse machine Z signal to generate a combined Z signal with the fine machine Z signal and the coarse machine Z signal in time synchronization, and the second singlechip calculates a decoding angle through the combined Z signal, so that the accuracy of the decoding angle can be further improved.
Optionally, the setting the output angle range of the gating pulse according to the refiner Z signal includes:
and the first singlechip sets half of the mechanical angle corresponding to the period of the precision Z signal as the output angle range of the gating pulse.
By adopting the technical scheme, half of the mechanical angle corresponding to the Z signal of the refiner is set as the output angle range of the gating pulse, so that the gating pulse and the Z signal phase of the refiner which are convenient to output are combined.
Optionally, the generating the gating pulse by combining the output angle range of the gating pulse and the coarse machine Z signal includes:
The first singlechip determines a central point of the coarse machine Z signal in the output angle range of the gating pulse;
Determining a first angle position and a second angle position of the coarse machine Z signal according to the central point;
The level of the strobe between the center point and the first angular position, and between the center point and the second angular position is set to a high level, and the remaining positions are set to low levels.
By adopting the technical scheme, in the gating pulse, the coarse machine Z signal is set to be high level from the central point position to the first angle position, and the coarse machine Z signal is set to be high level from the central point position to the second angle position, and the rest positions are set to be low level, so that the obtained gating pulse is further phase-locked with the fine machine Z signal, and the coarse machine Z signal and the fine machine Z signal can be synchronized.
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.
By adopting the technical scheme, the width of the coarse machine Z signal is very wide and is the pulse width of the fine machine A signal and the fine machine B signal divided by the number of the pole pairs, so that the first angle position is set to be the negative quarter-period angle position of the coarse machine Z signal, and the second angle position is set to be the quarter-period angle position of the coarse machine Z signal, the high-level pulse width of the gating pulse is consistent with the pulse width of the coarse machine Z signal, and the loss of the pulse during calculation is prevented.
Optionally, before receiving the fine machine Z signal and the coarse machine Z signal sent by the fine machine decoding chip and the coarse machine decoding chip respectively, the method further includes:
The first singlechip sends an initial signal to the fine machine decoding chip;
the fine machine decoding chip receives the initial signal, performs power-on operation, generates an excitation signal and sends the excitation signal to the double-channel rotary transformer;
the dual-channel rotary transformer receives the excitation signal, generates a refiner feedback signal, and sends the refiner feedback signal to the refiner decoding chip;
The fine machine decoding chip receives and decodes the fine machine feedback signal, generates a fine machine A signal and a fine machine B signal, and outputs the fine machine A signal and the fine machine B signal to the second singlechip.
By adopting the technical scheme, the first singlechip sends an initial signal to the fine machine decoding chip so that the fine machine decoding chip is electrified and generates an excitation signal, the fine machine decoding chip transmits the excitation signal to the double-channel rotary transformer, the double-channel rotary transformer receives the excitation signal and starts to receive a fine machine feedback signal and a coarse machine feedback signal of an external component, the fine machine feedback signal is transmitted to the fine machine decoding chip, the fine machine decoding chip decodes the fine machine feedback signal to obtain a fine machine A signal, a fine machine B signal and a fine machine Z signal, and transmits the fine machine A signal and the fine machine B signal to the second singlechip, and the fine machine Z signal is transmitted to the first singlechip.
Optionally, before receiving the fine machine Z signal and the coarse machine Z signal sent by the fine machine decoding chip and the coarse machine decoding chip respectively, the method further includes:
The first singlechip sends a starting signal to the coarse machine decoding chip;
The coarse machine decoding chip receives the starting signal and performs power-on operation;
The dual-channel rotary transformer sends the coarse machine feedback signal to the coarse machine decoding chip;
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 singlechip.
By adopting the technical scheme, the first singlechip sends the starting signal to the coarse machine decoding chip, so that the coarse machine decoding chip is electrified to work, the coarse machine feedback signal of the double-channel rotary transformer is received, the coarse machine feedback signal is decoded into the coarse machine Z signal, and the coarse machine Z signal is transmitted to the first singlechip.
Optionally, the second singlechip calculates the refiner a signal, the refiner B signal, and the combined Z signal to obtain a coding angle, including:
and the second singlechip combines the integer parts of the signal A and the signal B of the refiner and the decimal part of the combined signal Z to obtain the coding angle.
By adopting the technical scheme, the coding angle is obtained by combining and calculating the angle of the coarse machine and the angle of the fine machine.
Optionally, after the coding angle is obtained, the method further includes:
and correcting the error of the coding angle to obtain an accurate coding angle.
By adopting the technical scheme, the transmission error and the shaft angle transformation error exist in the double-channel rotary transformer, so that the finally calculated coding angle is inaccurate, and the precision of the coding angle can be further improved by correcting the coding angle.
In a third aspect of the application, a position encoder is provided that includes a decoding circuit of a dual-channel resolver and a communication chip coupled to the decoding circuit of the dual-channel resolver.
In summary, the present application includes at least one of the following beneficial effects:
1. By adopting the technical scheme, the first singlechip receives the fine machine Z signal and the coarse machine Z signal, generates gating pulses according to the coarse machine Z signal and the fine machine Z signal and transmits the gating pulses to the logic AND gate device, the logic AND gate device phase-stores the gating pulses and the coarse machine Z signal to generate a combined Z signal with the fine machine Z signal and the coarse machine Z signal in time synchronization, and the second singlechip calculates a decoding angle through the combined Z signal, so that the accuracy of the decoding angle can be further improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a decoding circuit of a dual-channel resolver according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a decoding method of a dual-channel rotary transformer according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of a position encoder according to an embodiment of the present application.
The reference numerals indicate a decoding circuit of the double-channel rotary transformer, a position encoder, a double-channel rotary transformer, a fine machine decoding chip, a coarse machine decoding chip, a logic AND gate device, a first singlechip, a second singlechip, a communication chip and a communication chip, wherein the decoding circuit of the double-channel rotary transformer is 1, the position encoder, the double-channel rotary transformer is 10, the fine machine decoding chip is 20, the coarse machine decoding chip is 40, the logic AND gate device is 50, the first singlechip is 60, the second singlechip is 70, and the communication chip is arranged.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments.
In describing embodiments of the present application, words such as "exemplary," "such as" or "for example" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "illustrative," "such as" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "illustratively," "such as" or "for example," etc., is intended to present related concepts in a concrete fashion.
In the description of the embodiment of the present application, the term "and/or" is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B, and may indicate that a exists alone, B exists alone, and both a and B exist. In addition, unless otherwise indicated, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Before describing the embodiments of the present application, a brief description of a rotary transformer will be provided.
The resolver is an analog electromechanical element, the output signal is an analog signal, in order to be applied to a digital servo system, a measurement system, a microcomputer processor or a microcomputer control system, the analog signal generated by the resolver must be converted into a digital signal which can be identified by the control system, a resolver circuit or an interface circuit is needed, a transmitter of the resolver is included in the analog/digital converter, and the rotor shaft angle is calculated and the result is displayed by an upper computer, which is the main function of the element.
The double-channel rotary transformer refers to a multipole rotary transformer, and comprises a single-pair magnetic pole rotary transformer and a plurality of pairs of magnetic pole rotary transformers, wherein the single-pair magnetic pole rotary transformer has lower precision, so that the double-channel rotary transformer is called a coarse machine, and the plurality of pairs of magnetic pole rotary transformers have higher precision, so that the double-channel rotary transformer is called a fine machine. Typically, a single pole resolver needs to be integrated together with a multi-pole resolver, and a dual channel resolver will involve both the multi-pole resolver and the single pole resolver in a set of rotor, stator cores when designing the resolver, but with each of the multi-and single pole resolvers having corresponding multi-stage and single pole windings.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments.
Referring to fig. 1, in one embodiment, a decoding circuit 1 of a dual-channel rotary transformer is disclosed, as shown in fig. 1, the 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 singlechip 50, a logic and gate device 40, and a second singlechip 60, wherein:
the input end of the double-channel rotary transformer 10 is connected with the excitation output end of the refiner decoding chip 20, the refiner output end of the double-channel rotary transformer 10 is connected with the refiner input end of the refiner decoding chip 20, and the excitation input end of the double-channel rotary transformer 10 is connected with the excitation output end of the refiner decoding chip 20;
The first end of the fine machine decoding chip 20 is connected with the first end of the first singlechip 50, and the Z signal output end of the fine machine decoding chip 20 is connected with the first input end of the logic AND gate device 40;
the first end of the coarse machine decoding chip 30 is connected with the second end of the first singlechip 50;
the third end of the first singlechip 50 is connected with the second input end of the logic AND gate device 40;
the first input end of the second single-chip microcomputer 60 is connected with the A signal output end of the fine machine decoding chip 20, the second input end of the second single-chip microcomputer 60 is connected with the B signal output end of the fine machine decoding chip 20, and the third input end of the second single-chip microcomputer 60 is connected with the output end of the logic AND gate device 40.
The first singlechip 50 sends a start signal to the fine machine decoding chip 20, the fine machine decoding chip 20 starts to power-on operation after receiving the start signal, generates an excitation signal, and transmits the excitation signal to the dual-channel rotary transformer 10, the dual-channel rotary transformer 10 starts to power-on operation after receiving the excitation signal, receives external component information, and obtains a fine machine feedback signal and a coarse machine feedback signal, the fine machine decoding chip 20 receives and decodes the fine machine feedback signal to decode the fine machine decoding chip 20 and the coarse machine decoding chip 30, the fine machine decoding chip 20 receives and decodes the fine machine feedback signal to obtain a fine machine A signal, a fine machine B signal, and a fine machine Z signal, and transmits the fine machine A signal and the fine machine B signal to the second singlechip 60, and transmits the fine machine Z signal to the logic AND gate device 40, and 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 singlechip 50.
Further, the first singlechip 50 receives the fine machine Z signal and the coarse machine Z signal, generates a gating pulse according to the fine machine Z signal and the coarse machine Z signal, and transmits the gating pulse to the logic and gate device 40, the logic and gate device 40 sums the received fine machine Z signal and gating pulse to obtain a combined Z signal, and transmits the combined Z signal to the second singlechip 60, and the second singlechip 60 calculates the received fine machine a signal, fine machine B signal and combined Z signal to obtain the coding angle.
The Z signal in the rotary transformer is used for indicating the absolute position, and the Z signal, the refiner A signal and the refiner B signal are combined and calculated to obtain the coding angle. Since the fine machine Z signal outputs a plurality of Z signals during one rotation, the absolute position cannot be indicated, and the pulse width of the coarse machine Z signal is wider than the pulse width of the fine machine a signal and the fine machine B signal, if the coarse machine Z signal is directly used as a combination, the pulse may be lost during forward rotation and reverse rotation, and if the fine machine Z signal and the coarse machine Z signal are directly combined, the combined Z signal obtained by combining the fine machine decoding chip 20 and the coarse machine decoding chip 30 has different crystal oscillation periods, and thus, there is an error, and the combined Z signal cannot be used in practical application. Therefore, after the first singlechip 50 receives the fine machine Z signal and the coarse machine Z signal, the decoding circuit 1 of the dual-channel rotary transformer sets an output angle range of the gating pulse according to the fine machine Z signal, sets a first angle position and a second angle position of the gating pulse according to the output angle range of the coarse machine Z signal, outputs the obtained gating pulse to the logic and gate device 40, and the logic and gate device 40 phase-links the gating pulse and the fine machine Z signal to obtain a combined Z signal, and the combined Z signal is synchronous with the coarse machine Z signal and the fine machine Z signal, and calculates to obtain a coding angle through the combined Z signal, the fine machine a signal and the fine machine B signal, so that the precision is obviously improved.
In one embodiment, please refer to fig. 2, a method for decoding a dual-channel rotary transformer 10 is specifically provided, which can be implemented by a computer program, can be implemented by a single chip microcomputer, and can also be operated on a decoding circuit 1 of the dual-channel rotary transformer based on von neumann system. The computer program may be integrated in the application or may run as a stand-alone tool class application.
Step 101, the first singlechip 50 receives the fine machine Z signal and the coarse machine Z signal sent by the fine machine decoding chip 20 and the coarse machine decoding chip 30 respectively.
The decoding chip can adopt two AD2S1210 rotary transformer decoding chips to respectively decode the fine machine and the coarse machine to obtain a fine machine Z signal and a coarse machine Z signal.
The first singlechip 50 sends a start signal to the fine machine decoding chip 20, the fine machine decoding chip 20 starts to power-on operation after receiving the start signal, generates an excitation signal and transmits the excitation signal to the dual-channel rotary transformer 10, the dual-channel rotary transformer 10 starts to power-on operation after receiving the excitation signal, receives external component information, and obtains a fine machine feedback signal and a coarse machine feedback signal, the fine machine decoding chip 20 receives and decodes the fine machine feedback signal to decode the fine machine decoding chip 20 and the coarse machine decoding chip 30, the fine machine decoding chip 20 receives and decodes the fine machine feedback signal to obtain a fine machine A signal, a fine machine B signal and a fine machine Z signal, and transmits the fine machine A signal and the fine machine B signal to the second singlechip 60, and transmits the fine machine Z to the logic AND gate device 40, and 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 singlechip 50.
Step 102, setting an output angle range of the gating pulse according to the refiner Z signal.
Illustratively, since the output strobe needs to be in phase with the refiner Z signal at the end, the output angular range of the strobe needs to be consistent with the output angular range of the refiner Z signal. In practical application, the phenomenon of positive rotation and reverse rotation can be understood that one half of the Z signal of the refiner is a positive signal and the other half is a negative signal. Therefore, the first singlechip 50 sets half of the mechanical angle corresponding to the period of the sperm-machine Z signal as the output angle range of the positive half axis of the strobe.
Step 103, combining the output angle range of the gating pulse and the coarse machine Z signal to generate the gating pulse.
As can be seen from the above, the first singlechip 50 sets half of the mechanical angle corresponding to the period of the sperm-machine Z signal as the output angle range of the positive half axis of the gating pulse, and the negative half axis corresponding to the gating pulse is also half of the mechanical angle corresponding to the period of the sperm-machine Z signal, so that there is necessarily a center point. The first singlechip 50 determines the center point of the coarse Z signal within the output angle range of the strobe.
Since the width of the coarse Z signal is the pole pair number of the fine a signal and the fine B signal divided by 4 times, the negative quarter-cycle angular position of the strobe is set to the first position, the positive quarter-cycle angular position of the strobe is set to the second position, the pulse level of the strobe between the center point and the first angular position, and between the center point and the second angle is set to the high level, and the remaining positions are set to the low level.
Step 104, outputting the gate pulse to the logic and gate device 40, so that the logic and gate device 40 combines the gate pulse and the fine machine Z signal to output the combined Z signal to the second single chip microcomputer 60.
Illustratively, the first singlechip 50 outputs the strobe to the logic and gate device 40, the logic and gate device 40 and the received strobe and the fine machine Z signal phase to obtain a combined Z signal, and the combined Z signal is transmitted to the second singlechip 60.
Step 105, the second singlechip 60 receives the refiner a signal, the refiner B signal and the combined Z signal, and calculates the refiner a signal, the refiner B signal and the combined Z signal to obtain the coding angle.
Illustratively, a resolver may be divided into a resolver and a resolver transmitter. For a rotary transformer transmitter, the unidirectional voltage phase is used for supplying power to the exciting magnetic winding, when the rotor is in a rotating state, the relative position between the exciting winding and the secondary output winding is changed, and therefore, the electromotive force is generated by electromagnetic induction emitted by the secondary output winding. The spatial position relation of the secondary output two-phase windings is a 90-degree orthogonal relation, so that the frequencies of voltages corresponding to the exciting side and the output side are identical, only phases are different, the cosine phase and the sine phase have identical time phases, but the amplitude of the two phases is changed by a corresponding function by taking the rotation angle as a variable.
Because the analog signal output by the rotary transformer has two mechanical angles, namely a fine machine shaft angle and a coarse machine shaft angle, and the computer cannot directly combine the coarse machine feedback signal and the fine machine feedback signal for the mechanical angles, the combination of the coarse machine signal and the combination of the fine machine signal firstly needs to digitally convert the mechanical angles. When the ratio of the speed of the roughing machine to the speed of the finishing machine corresponding to the multipole rotary transformer is 1:N, if the period of the digital angle of the roughing machine shaft corresponding to the multipole rotary transformer is 360 degrees, the period of the digital angle of the finishing machine shaft is 360 degrees/N, namely if the digital angle of the roughing machine shaft completes 1 turn, the digital angle of the finishing machine shaft completes N turns.
A multipole resolver with a 1:32 ratio, if when the roughing shaft completes 1 revolution, then the finishing shaft completes 32 revolutions, i.e. the finishing shaft completes 1 revolution, corresponding to the finishing shaft completing 1/32 revolution, i.e. 11.25 degrees, so 5.6 degrees is the highest position of the finishing shaft. If the refiner and coarse digital angles are 12 bits, but the refiner digital angle is only the first 5 bits, because the accuracy of the next few bits of the coarse shaft is not 32 times greater than the number of the last refined shaft, the first 5 bits of the coarse shaft digital angle are used as the upper 5 bits and the refiner shaft digital angle is used as the lower bits when combining the refiner and coarse shaft angles. Therefore, in general, when combining the fine and coarse data, the principle is that the coarse axis digital angle takes only an integer 0 and the fine axis digital angle takes a fraction 0.
In combining fine and coarse machine data, it is necessary to ensure that the coarse machine axis number angle is error free, however in the display, the factors of error in the multipole resolver, transmission error, and axis angle conversion error will result in an inability to achieve an ideal condition in combining fine and coarse machine axis data angles, often resulting in coarse machine readings that are less or one more minimum unit. Therefore, when combining the data angles of the fine machine and the coarse machine, error correction is necessary, and when error correction is performed, the principle of correcting the data angle of the coarse machine through the data of the fine machine shaft is adopted.
In error correction, it is generally encountered that first, when the precision angle is at the first quadrant, only a few coarse angle numbers are counted. When counting, if the fine angle data overflows, the error correction should be performed by feeding the 5 th bit of the 1 coarse angle, and second, when the fine angle is at the fourth quadrant, the situation occurs that only more coarse angle data is possible and less coarse angle data is not possible. When counting, if the fine angle data is not full, the 5 th bit data of the coarse angle cannot carry out carry, if the situation that the mantissa of the coarse angle carries the 5 th bit data, the 5 th bit of the coarse angle must be subtracted by 1 to implement error correction occurs, and third, when the fine angle is in the second and third quadrant, the situation that the coarse angle data carries does not exist, so that the situation that the coarse angle is less or more can not occur, and error correction is needed.
In summary, when the multi-stage rotary transformer with the 1:32 speed ratio corrects coarse data and fine data, the multi-stage rotary transformer can be realized by the high 2 bits of the fine channel and the 6 th and 7 th bits of the coarse channel, when the fine angle is in a quadrant for carrying out carry, if the coarse angle is not carried, the 5 th bit should be added with 1, when the fine angle is in a four-quadrant for carrying out carry, however, when the coarse angle is carried out carry, the 5 th bit should be subtracted with 1, when the fine angle is in other cases or is in other quadrant, carry is not needed, and when the fine angle is in other quadrant, the 5 th bit is added with 0.
Typically, for a common multipole resolver digital conversion system, a two-speed processor may be designed for combining and correcting fine and coarse machine data, and the same number of fine and coarse machine axis digital angles may be used. The same number of bits is used to represent the coarse and fine data angles first, and if the number of bits of the digital angle of the coarse shaft is smaller than the number of bits of the digital angle of the fine shaft, zero padding is used to carry out the zero padding treatment on the digital angle of the coarse shaft at the tail, after which the digital angle of the coarse shaft is subjected to speed ratio conversion, i.e. N times expansion, and then error correction is carried out by adopting the error correction method described in the above embodiment, i.e. the digital angle of the fine shaft is used to correct the digital angle of the coarse shaft. After the error correction is finished, the digital angle of the coarse shaft can be replaced by the digital angle of the fine shaft, so that the digital angle corresponding to the coarse shaft is combined, and finally the digital angle corresponding to the output of the multipole rotary transformer can be obtained.
The number of bits of the coarse machine data and fine machine data double-speed processor of the multipole rotary transformer can be formed by adding the number of the coarse machine digital angle bits and the number of the fine machine digital angle bits. In general, the number of digits of the digital angle of the refiner is obtained by taking the number of digits of the actual digital angle of the refiner, however, the number of digits of the digital angle of the refiner is required to be obtained by the corresponding speed ratio of the multipole rotary transformer.
The 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, as shown in fig. 3, fig. 3 is a schematic structural diagram of the position encoder provided in the embodiment of the present invention, the communication chip 70 and the second singlechip 60 may be connected through a field bus RS485, and the communication chip 70 may adopt an ADM2682E type RS232 communication chip 70.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.

Claims (10)

1. The decoding circuit of the double-channel rotary transformer is characterized by comprising a double-channel rotary transformer (10), a fine machine decoding chip (20), a coarse machine decoding chip (30), a first singlechip (50), a logic AND gate device (40) and a second singlechip (60), wherein:
The input end of the double-channel rotary transformer (10) is connected with the excitation output end of the fine machine decoding chip (20), the fine machine output end of the double-channel rotary transformer (10) is connected with the fine machine input end of the fine machine decoding chip (20), and the coarse machine output end of the double-channel rotary transformer (10) is connected with the coarse machine input end of the coarse machine decoding chip (30);
The first end of the fine machine decoding chip (20) is connected with the first end of the first singlechip (50), and the Z signal output end of the fine machine decoding chip (20) is connected with the first input end of the logic AND gate device (40);
The first end of the coarse machine decoding chip (30) is connected with the second end of the first singlechip (50);
The third end of the first singlechip (50) is connected with the second input end of the logic AND gate device (40);
The first input end of the second singlechip (60) is connected with the A signal output end of the fine machine decoding chip (20), the second input end of the second singlechip (60) is connected with the B signal output end of the fine machine decoding chip (20), and the third input end of the second singlechip (60) is connected with the output end of the logic AND gate device (40).
2. A method of decoding a two-channel resolver, applied to the decoding circuit of a two-channel resolver (10) according to claim 1, the method comprising:
The first singlechip (50) receives a fine machine Z signal and a coarse machine Z signal which are respectively sent by the fine machine decoding chip (20) and the coarse machine decoding chip (30);
setting an output angle range of a gating pulse according to the refiner Z signal;
combining the output angle range of the gating pulse and the coarse machine Z signal to generate the gating pulse;
outputting the gating pulse to a logic AND gate device (40), so that the logic AND gate device (40) outputs a combined Z signal to the second singlechip (60) by combining the gating pulse and the precision machine Z signal;
the second singlechip (60) receives a refiner A signal, a refiner B signal and the combined Z signal;
And the second singlechip (60) calculates the fine machine A signal, the fine machine B signal and the combined Z signal to obtain a coding angle.
3. The method of decoding a dual-channel resolver according to claim 2, wherein setting an output angle range of a strobe according to the refiner Z signal includes:
the first singlechip (50) sets half of the mechanical angle corresponding to the period of the precision Z signal as the output angle range of the gating pulse.
4. The method of decoding a dual channel resolver according to claim 2, wherein the combining the output angular range of the strobe with the coarse Z signal, generating the strobe, includes:
The first singlechip (50) determines a central point of the coarse machine Z signal within the output angle range of the gating pulse;
Determining a first angle position and a second angle position of the coarse machine Z signal according to the central point;
The level of the strobe between the center point and the first angular position, and between the center point and the second angular position is set to a high level, and the remaining positions are set to low levels.
5. The method of decoding a dual channel resolver according to claim 4, wherein the first angular position is a negative quarter-cycle angular position of the strobe, and the second angular position is a quarter-cycle angular position of the strobe.
6. The method for decoding a dual-channel rotary transformer according to claim 2, wherein before the first single-chip microcomputer (50) receives the fine machine Z signal and the coarse machine Z signal respectively transmitted by the fine machine decoding chip (20) and the coarse machine decoding chip (30), the method further comprises:
The first singlechip (50) sends an initial signal to the fine machine decoding chip (20);
The fine machine decoding chip (20) receives the initial signal, performs power-on operation, generates an excitation signal and sends the excitation signal to the double-channel rotary transformer (10);
The dual-channel rotary transformer (10) receives the excitation signal, generates a refiner feedback signal, and sends the refiner feedback signal to the refiner decoding chip (20);
the fine machine decoding chip (20) receives and decodes the fine machine feedback signal, generates a fine machine A signal and a fine machine B signal, and outputs the fine machine A signal and the fine machine B signal to a second singlechip (60).
7. The method for decoding a dual-channel rotary transformer according to claim 2, wherein before the first single-chip microcomputer (50) receives the fine machine Z signal and the coarse machine Z signal respectively transmitted by the fine machine decoding chip (20) and the coarse machine decoding chip (30), the method further comprises:
the first singlechip (50) sends an initial signal to the coarse machine decoding chip (30);
The coarse machine decoding chip (30) receives the starting signal and is electrified;
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 singlechip (50).
8. The method of decoding a dual channel resolver according to claim 2, wherein the second single-chip microcomputer (60) calculates the fine a signal, the fine B signal, and the combined Z signal to obtain an encoding angle, comprising:
The second singlechip (60) combines according to the integer parts of the refiner A signal and the refiner B signal and the decimal part of the combined Z signal to obtain a coding angle.
9. The method of decoding a dual channel resolver according to claim 8, further comprising, after the encoding angle is obtained:
and correcting the error of the coding angle to obtain an accurate coding angle.
10. A position encoder comprising the decoding circuit (1) of the dual-channel resolver according to claim 1 and a communication chip (70), the communication chip (70) being connected to the decoding circuit of the dual-channel resolver (10).
CN202211582493.5A 2022-12-09 2022-12-09 A decoding circuit, method and position encoder for a dual-channel rotary transformer Active CN115752522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211582493.5A CN115752522B (en) 2022-12-09 2022-12-09 A decoding circuit, method and position encoder for a dual-channel rotary transformer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211582493.5A CN115752522B (en) 2022-12-09 2022-12-09 A decoding circuit, method and position encoder for a dual-channel rotary transformer

Publications (2)

Publication Number Publication Date
CN115752522A CN115752522A (en) 2023-03-07
CN115752522B true CN115752522B (en) 2025-08-08

Family

ID=85345107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211582493.5A Active CN115752522B (en) 2022-12-09 2022-12-09 A decoding circuit, method and position encoder for a dual-channel rotary transformer

Country Status (1)

Country Link
CN (1) CN115752522B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205175428U (en) * 2015-11-27 2016-04-20 湖北三江航天红峰控制有限公司 Position is detected and decoding circuit with dual -speed resolver
CN109579676A (en) * 2018-11-26 2019-04-05 南京长峰航天电子科技有限公司 A kind of location decodingmethod and system based on two speed resolver phase failure

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202547664U (en) * 2012-04-24 2012-11-21 浙江大学 Quadrature sine-cosine shaft angle encoder signal detection and conversion circuit
CN103036572A (en) * 2012-12-06 2013-04-10 上海无线电设备研究所 Decoder and decoding method for two speed resolver
JP2015135283A (en) * 2014-01-17 2015-07-27 日立オートモティブシステムズ株式会社 Rotation angle detection device and pulse signal generation circuit
CN114323086A (en) * 2020-09-30 2022-04-12 叩德自动化(无锡)有限公司 A dual-channel resolver decoding method, circuit and position encoder
CN114018299B (en) * 2021-10-18 2024-08-23 上海莘汭驱动技术有限公司 Control method and system of double-channel rotary transformer type inductive shaft encoder

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205175428U (en) * 2015-11-27 2016-04-20 湖北三江航天红峰控制有限公司 Position is detected and decoding circuit with dual -speed resolver
CN109579676A (en) * 2018-11-26 2019-04-05 南京长峰航天电子科技有限公司 A kind of location decodingmethod and system based on two speed resolver phase failure

Also Published As

Publication number Publication date
CN115752522A (en) 2023-03-07

Similar Documents

Publication Publication Date Title
JP5221494B2 (en) Rotation detection device and bearing with rotation detection device
JPH0373808B2 (en)
JP2720642B2 (en) Multi-turn absolute value encoder
CN108375391B (en) Sin and cosine signal processing method and system
US10623213B2 (en) Method of determining a direction of rotation and valid transitions of quadrature pulses
CN106301105A (en) Based on incremental optical-electricity encoder multipolar dynamo method for detecting magnetic pole position
JP5217766B2 (en) Angular position detection device and rotation number detection device of rotating body
CN102829714A (en) Method for realizing absolute angle measurement based on circular induction synchronizer
CN115752522B (en) A decoding circuit, method and position encoder for a dual-channel rotary transformer
CN102879017B (en) Novel double-speed coarse and fine combination system for resolver-to-digital converter
CN110243401B (en) Photoelectric cell of optical encoder and decoding device of optical magnetic encoder
CN110375788B (en) Four-way orthogonal differential signal demodulation instrument calibration method and system
Attaianese et al. A low cost resolver-to-digital converter
CN113746274B (en) Motor using double incremental encoder and encoding method thereof
US9065475B2 (en) Sin-Cos sensor arrangement, integrated circuit and method therefor
Khattab et al. A Novel method for online correction of amplitude and phase imbalances in sinusoidal encoders signals
JPH07229910A (en) Pulse counter circuit
CN104682818A (en) Rotary variable-voltage angle measuring system based on CORDIC (coordinate rotation digital computer) arc tangent algorithm
CN115855125A (en) Decoding circuit and method of dual-channel resolver based on single decoding chip
US7119717B2 (en) Encoder output divider and R/D converter
CN115208259A (en) Speed measuring method for permanent magnet synchronous motor
CN115143906A (en) EQEP module, and system and method for measuring position and speed of motor
JPH10170210A (en) Induction type position detecting device
JP2967622B2 (en) Frequency measurement circuit
JPH0125288Y2 (en)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant