CN115855125A - Decoding circuit and method of double-channel rotary transformer based on single decoding chip - Google Patents

Decoding circuit and method of double-channel rotary transformer based on single decoding chip Download PDF

Info

Publication number
CN115855125A
CN115855125A CN202211581769.8A CN202211581769A CN115855125A CN 115855125 A CN115855125 A CN 115855125A CN 202211581769 A CN202211581769 A CN 202211581769A CN 115855125 A CN115855125 A CN 115855125A
Authority
CN
China
Prior art keywords
decoding
angle
chip
machine
decoding chip
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.)
Pending
Application number
CN202211581769.8A
Other languages
Chinese (zh)
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 CN202211581769.8A priority Critical patent/CN115855125A/en
Publication of CN115855125A publication Critical patent/CN115855125A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The embodiment of the application discloses a decoding circuit and a decoding method of a double-channel rotary transformer based on a single decoding chip, wherein the method comprises the following steps: the method comprises the steps that a single chip microcomputer sends a first control signal to a decoding chip, so that the decoding chip is reduced from first decoding precision to second decoding precision; receiving a roughing machine angle sent by the decoding chip when the decoding chip is at a first decoding precision; sending a second control signal to the decoding chip to enable the decoding chip to be increased from the second decoding precision to the first decoding precision; receiving a fine machine angle sent by the decoding chip when the decoding chip is at a second decoding precision; and calculating the rough machine angle and the fine machine angle according to a combination algorithm to obtain a coding angle. By adopting the embodiment of the application, the duration of step response generated when the rough machine and the fine machine are switched can be shortened, and the precision of a decoding angle is improved.

Description

Decoding circuit and method of double-channel rotary transformer based on single decoding chip
Technical Field
The application relates to the field of electronic control, in particular to a decoding circuit and a decoding method of a double-channel rotary transformer based on a single decoding chip.
Background
The working environment of modern military artillery control systems is very harsh, such as impact vibration, temperature and humidity change and the like. Under such harsh operating conditions, angular shaft position and speed sensors of the conventional type, such as photoelectric sensors, are easily damaged. 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 detection 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, and the dual-channel rotary transformer comprises a coarse machine and a fine machine, wherein the decoding precision is improved through the coarse and fine combination of decoding, and two decoding chips are usually used for decoding the dual-channel rotary transformer and respectively decoding the coarse machine and the fine machine of the dual-channel rotary transformer.
In order to save cost, one decoding chip can be adopted to decode the coarse machine and the fine machine of the dual-channel rotary transformer at the same time, but in the decoding process of the decoding chip, signals sent by the coarse machine and the fine machine need to be switched, a step response with long time can be generated at the moment, and the influence on the precision of the decoding angle is large.
Disclosure of Invention
The application provides a decoding circuit and a decoding method of a double-channel rotary transformer based on a single decoding chip, which can shorten the duration of step response generated when a roughing machine and a finishing machine are switched and improve the precision of a decoding angle.
In a first aspect of the present application, a decoding circuit of a dual-channel rotary transformer based on a single decoding chip is provided, the circuit includes a dual-channel rotary transformer, a single chip, an analog switch and a decoding chip, wherein:
the input end of the double-channel rotary transformer is connected with the excitation output end of the decoding chip, the finishing machine output end of the double-channel rotary transformer is connected with the finishing machine input end of the analog switch, and the roughing machine output end of the double-channel rotary transformer is connected with the roughing machine input end of the analog switch;
the control input end of the analog switch is connected with the first end of the single chip microcomputer, and the signal output end of the analog switch is connected with the signal input end of the decoding chip;
and the first end of the decoding chip is connected with the second end of the single chip microcomputer.
By adopting the technical scheme, the switching of the analog switch is controlled by the single chip microcomputer, the fine machine signal and the coarse machine signal output by the double-channel rotary transformer can be received by only one decoding chip, and compared with the prior art that two decoding chips are adopted to decode the fine machine signal and the coarse machine signal output by the double-channel rotary transformer respectively, the circuit cost is saved.
In a second aspect of the present application, there is provided a decoding method of a dual-channel resolver based on a single decoding chip, the method including:
the single chip microcomputer sends a first control signal to a decoding chip so that the decoding chip is reduced from first decoding precision to second decoding precision;
receiving a roughing machine angle sent by the decoding chip when the decoding chip is at a first decoding precision;
sending a second control signal to the decoding chip to enable the decoding chip to increase the second decoding precision to the first decoding precision;
receiving a fine machine angle sent by the decoding chip when the decoding chip is at a second decoding precision;
and calculating the rough machine angle and the fine machine angle according to a combination algorithm to obtain a coding angle.
By adopting the technical scheme, before the decoding chip receives the rough machine feedback signal, the single chip microcomputer sends the first control signal to the decoding chip, the decoding chip is controlled to reduce the decoding precision, and after the analog switch is controlled to enable the decoding chip to receive the fine machine signal, the single chip microcomputer sends the second control signal to the decoding chip, and the decoding chip is controlled to increase the decoding precision. Before and after the rough machine and the fine machine are switched, the decoding precision of the decoding chip is reduced, and the calculated amount is reduced, so that the step response time generated when the rough machine and the fine machine are switched is reduced, and the precision of the decoding angle is further improved.
Optionally, before sending the first control signal to the decoding chip, the method further includes:
the single chip microcomputer sends an initial signal to the decoding chip;
the decoding chip receives the initial signal, performs power-on operation, generates an excitation signal and sends the excitation signal to the dual-channel rotary transformer;
and the double-channel rotary transformer receives the excitation signal and is electrified for operation.
By adopting the technical scheme, the single chip microcomputer sends the initial signal to the decoding chip, and meanwhile, the working voltage is provided for the decoding chip, so that the decoding chip works, the excitation signal can be generated when the decoding chip works and transmitted to the double-channel rotary transformer, and the double-channel rotary transformer is electrified to work.
Optionally, before receiving the coarse machine angle sent by the decoding chip at the first decoding precision, the method further includes:
the single chip microcomputer sends a first switching signal to the analog switch;
the analog switch receives the first switch signal, receives a coarse machine feedback signal and transmits the coarse machine feedback signal to the decoding chip;
and the decoding chip receives and decodes the coarse machine feedback signal to obtain a coarse machine angle.
By adopting the technical scheme, the single chip microcomputer is used for sending the first switch signal to control the type of the received signal of the analog switch, and after the analog switch receives the first switch signal, the roughing machine feedback signal is transmitted to the roughing machine feedback signal of the double-channel rotary transformer and is transmitted to the decoding chip.
Optionally, before receiving the finish angle sent by the decoding chip at the second decoding precision, the method further includes:
the singlechip sends a second switch signal to the analog switch;
the analog switch receives the second switch signal, receives a finishing machine feedback signal and transmits the finishing machine feedback signal to the decoding chip;
and the decoding chip receives and decodes the fine machining feedback signal to obtain a fine machining angle.
By adopting the technical scheme, the single chip microcomputer is used for sending the second switch signal to control the type of the received signal of the analog switch, and after the analog switch receives the second switch signal, the fine machine feedback signal is transmitted to the fine machine feedback signal of the double-channel rotary transformer and is transmitted to the decoding chip.
Optionally, before the calculating the rough machine angle and the fine machine angle according to a combination algorithm to obtain the coding angle, the method further includes:
the single chip microcomputer judges whether a stable condition is achieved;
and if the stable condition is reached, taking the coding angle obtained by calculation after the stable condition is reached as a final coding angle.
By adopting the technical scheme, errors caused by precision conversion may exist in the coding angle before the stable condition, and the accuracy of the result can be improved by judging whether the stable condition is achieved or not and taking the coding angle obtained by calculation after the stable condition as the final coding angle.
Optionally, the determining whether the stable condition is reached includes:
the single chip microcomputer judges whether the first time length is reached after the fine machine angle is received;
if the first time length is reached after receiving the finishing angle, it was confirmed that stable conditions were achieved.
By adopting the technical scheme, after the single chip microcomputer receives the finishing angle, errors caused by precision conversion possibly exist, whether the stable condition is reached or not is judged by judging whether the first time length is reached, and then the finishing angle after the stable condition is reached is more accurate in result.
Optionally, the calculating, according to a combination algorithm, the rough machine angle and the fine machine angle to obtain a coding angle includes:
and the single chip microcomputer combines the integer part of the rough machining angle and the decimal part of the fine machining angle to obtain a coding angle.
By adopting the technical scheme, the encoding angle is obtained by combining the rough machine angle and the fine machine angle.
Optionally, the method further includes, after the single chip microcomputer combines the integer part of the rough machine angle and the decimal part of the fine machine angle to obtain the coding angle:
and correcting the coding angle to obtain an accurate coding angle.
By adopting the technical scheme, the finally calculated coding angle is inaccurate due to the transmission error and the shaft angle transformation error of the double-channel rotary transformer, and the precision of the coding angle can be further improved by correcting the coding angle.
In a third aspect of the present application, there is provided a position encoder comprising: the decoding and communication chip of the double-channel rotary transformer based on the single decoding chip is connected with the decoding circuit of the double-channel rotary transformer based on the single decoding chip.
In summary, the present application includes at least one of the following advantages:
1. before the decoding chip receives the rough machine feedback signal, the single chip microcomputer sends a first control signal to the decoding chip, the decoding chip is controlled to reduce decoding precision, after the analog switch is controlled to enable the decoding chip to receive the fine machine signal, a second control signal is sent to the decoding chip through the single chip microcomputer, and the decoding chip is controlled to increase the decoding precision. Before and after the rough machine and the fine machine are switched, the decoding precision of the decoding chip is reduced, and the calculated amount is reduced, so that the step response time generated when the rough machine and the fine machine are switched is reduced, and the precision of the decoding angle is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a decoding circuit of a dual-channel resolver based on a single decoding chip according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a decoding method of a dual-channel resolver based on a single decoding chip according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a position encoder according to an embodiment of the present disclosure;
description of the reference numerals: 1. the decoding circuit of the double-channel rotary transformer based on the single decoding chip; 2. a position encoder; 10. a dual-channel rotary transformer; 20. an analog switch; 30. a decoding chip; 40. a single chip microcomputer; 50. and a communication chip.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, 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 a part of the embodiments of the present application, and not all of the embodiments.
In the description of the embodiments of the present application, the words "exemplary," "for example," or "for instance" are used to indicate instances, or illustrations. Any embodiment or design described herein as "exemplary," "e.g.," or "e.g.," is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary," "such as," or "for example" are intended to present relevant concepts in a concrete fashion.
In the description of the embodiments of the present application, the term "and/or" is only one kind of association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, B exists alone, and A and B exist at the same time. In addition, the term "plurality" means two or more unless otherwise specified. For example, the plurality of systems refers to two or more systems, and the plurality of screen terminals refers to two or more screen terminals. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicit indication of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that 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 will be given of a rotary transformer.
The resolver is an analog-type electromechanical element, and in order to be applied to a digital servo system, a measurement system, a microcomputer processor or a microcomputer control system, an analog signal is output, so that the analog signal generated by the resolver needs to be converted into a digital signal which can be identified by the control system, a resolving circuit or an interface circuit is used, a transmitter of the resolver is included in the analog/digital converter, and the rotor shaft angle is calculated and displayed by an upper computer, so that the element has the main function.
The double-channel resolver is a multi-pole resolver, and comprises a single-pair magnetic pole resolver and a multi-pair magnetic pole resolver, wherein the single-pair magnetic pole resolver has low precision and is called a roughing machine, and the multi-pair magnetic pole resolver has high precision and is called a finishing machine. In general, a single-pole resolver and a multi-pole resolver are required to form a system as a whole, and a double-channel resolver is designed such that the multi-pole resolver and the single-pole resolver are both included in a set of rotor and stator cores, but a multi-stage resolver and a single-pole resolver each have corresponding multi-stage and single-pole windings.
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
Referring to fig. 1, in one embodiment, a decoding circuit of a dual-channel resolver based on a single decoding chip is disclosed, as shown in fig. 1, the utility model provides a decoding circuit of two-channel resolver based on single chip of decoding, includes two-channel resolver 10, singlechip 40, analog switch 20 and decoding chip 30, wherein:
the input end of the double-channel rotary transformer 10 is connected with the excitation output end of the decoding chip 30, the finishing output end of the double-channel rotary transformer 10 is connected with the finishing input end of the analog switch 20, and the roughing output end of the double-channel rotary transformer 10 is connected with the roughing input end of the analog switch 20;
the control input end of the analog switch 20 is connected with the first end of the singlechip 40, and the signal output end of the analog switch 20 is connected with the signal input end of the decoding chip 30;
the first end of the decoding chip 30 is connected with the second end of the single chip microcomputer 40.
For example, before powering up, the single chip microcomputer 40 may send a start signal to the decoding chip 30 to power up the decoding chip 30. When the decoding chip 30 is powered on, an excitation signal is generated and transmitted to the dual-channel rotary transformer 10, and when the dual-channel rotary transformer 10 receives the excitation signal, the operation is started, the angle information of the external component is read, and a fine machine feedback signal and a coarse machine feedback signal are generated.
Further, the single chip 40 may send a switching signal to the analog switch 20 for controlling the analog switch 20, and may selectively receive the finishing machine feedback signal or the roughing machine feedback signal transmitted by the dual-channel rotary transformer 10 according to the switching signal. Before receiving the feedback signal of the coarse spinner, the singlechip 40 sends a control instruction to the decoding chip 30, so that the decoding precision of the coarse spinner on the feedback signal of the coarse spinner is reduced; when the finishing machine feedback signal needs to be received, the singlechip 40 sends a switch signal to the analog switch 20, and the analog switch 20 selectively receives the finishing machine feedback signal transmitted by the dual-channel rotary transformer 10 according to the switch signal; after receiving the fine machine feedback signal, the decoding chip 30 needs to decode the fine machine, and the single chip microcomputer 40 sends a control signal to the decoding chip 30, so that the precision of the decoding chip 30 is improved.
A single decoding chip 30 is used to decode the dual channel resolver 10 because the decoding chip 30 can only decode one of the coarse feedback signal or the fine feedback signal at a time. Therefore, one signal needs to be decoded and then the other signal needs to be decoded in time, because the coarse machine feedback signal and the fine machine feedback signal have a phase difference of 180 degrees, a 180-degree step response is generated in the process of switching and decoding the two signals, if the coarse machine feedback signal is decoded with high precision all the time, the generated delay is long, and finally, the error of the coding angle calculation is large. Because the requirement for the decoding precision of the fine machine feedback signal is high and the requirement for the decoding precision of the coarse machine feedback signal is low, the decoding circuit 1 of the double-channel rotary transformer based on the single decoding chip is used for setting the low decoding precision when the coarse machine feedback signal is decoded, and adjusting the decoding precision to decode the fine machine feedback signal until the decoding is switched to the fine machine feedback signal through the analog switch 20, which is equivalent to that in the process of switching the coarse machine and the fine machine decoding, the decoding is performed by the low precision due to the error caused by the step response, so that the time of the step response can be shortened, and the accuracy of the calculation of the coding angle can be further improved.
In one embodiment, please refer to fig. 2, a decoding method of a dual-channel resolver based on a single decoding chip is proposed, which can be implemented by relying on a computer program, a single chip, or a decoding circuit 1 of the dual-channel resolver based on a single decoding chip based on von neumann system. The computer program may be integrated into the application or may run as a separate tool-like application.
Step 101: the single chip microcomputer 40 sends a first control signal to the decoding chip 30 to reduce the decoding chip 30 from the first decoding precision to the second decoding precision.
For example, the decoding chip 30 may adopt an AD2S1210 resolver decoding chip 30, and when the decoding chip 30 decodes the resolver, in order to obtain higher precision, the coarse machine feedback signal or the fine machine feedback signal transmitted by the resolver is usually decoded with 16-bit precision. Because the present application only adopts one decoding chip 30 to decode the rough machine feedback signal and the fine machine feedback signal, if the 16-bit decoding precision is adopted to decode the rough machine feedback signal and the fine machine feedback signal, the highest rotation speed supported by the fine machine decoding is 234rpm, the rough machine is switched to the fine machine, because the phase difference is 180 degrees at most, a step at one position may exist, the generated step response can reach 45 to 66 milliseconds, under the 16-bit decoding precision, the rotation speed of 234rpm can run 63.18 degrees under 45ms, which far exceeds the fine machine period, the error is large, and the method cannot be used in practical application.
Further, before decoding the coarse feedback signal, the single chip 40 sends a first control signal to the decoding chip 30, and after the decoding chip 30 receives the control signal, the decoding precision is reduced, usually the lowest number of the decoding chip 30 precision is 10 bits, if decoding is performed with 10 as precision, the reaction time for decoding with 10-bit decoding precision only needs 1.5 to 2.2 milliseconds under the 180-degree step response, and the reaction time runs only 3.089 degrees under the condition of 234rpm speed for 2.2 milliseconds. The deviation of the coding angle calculated by the combination algorithm is allowed to be at 5.625 degrees.
In a possible embodiment, before the single chip 40 sends the first control signal to the decoding chip 30, a start signal is also sent to the decoding chip 30, and after the decoding chip receives the start signal, the decoding chip starts to power on and generates an excitation signal, and the excitation signal is transmitted to the dual-channel rotary transformer 10, so that the dual-channel rotary transformer 10 starts to read the state of the external component, and a coarse machine feedback signal and a fine machine feedback signal are obtained.
Step 102: the coarse machine angle transmitted when the decoding chip 30 is at the first decoding precision is received.
Illustratively, the single chip microcomputer 40 firstly sends a first switch signal to the analog switch 20, after the analog switch 20 receives the first switch signal, only the coarse machine feedback signal sent by the dual-channel rotary transformer 10 is received, and the coarse machine feedback signal is transmitted to the decoding chip 30, at this time, the decoding chip 30 is in the second decoding precision, the coarse machine feedback signal is decoded through the first decoding precision, a coarse machine angle is obtained, and then the coarse machine angle is sent to the single chip microcomputer 40.
Optionally, in this embodiment of the application, only one decoding chip 30 is used to decode the dual-channel rotary transformer 10, the analog switch 20 may be used to screen signals transmitted by the dual-channel rotary transformer 10, the analog switch 20 may select the SGM3005 chip, the SGM3005 chip includes two normally open and two normally closed controllable chips, and one of a coarse machine feedback signal and a fine machine feedback signal generated by the dual-channel rotary transformer 10 may be selected to be screened into the decoding chip 30 according to a switch signal sent by the single chip microcomputer 40. The analog switch 20 may be a chip such as a data selector.
Step 103: a second control signal is sent to the decoding chip 30 to raise the decoding chip 30 from the second decoding precision to the first decoding precision.
Specifically, after the single chip microcomputer 40 receives the rough machine angle, the second control signal is sent to the decoding chip 30, and after the decoding chip 30 receives the second control signal, the decoding precision of the decoding chip is improved from the second decoding precision to the first decoding precision.
Step 104: and receiving the fine angle sent by the decoding chip 30 when the decoding chip is at the second decoding precision.
Exemplarily, the single chip microcomputer 40 sends a second switch signal to the analog switch 20, the analog switch 20 receives the fine machine feedback signal sent by the dual-channel rotary transformer 10 after receiving the second switch signal, and transmits the fine machine feedback signal to the decoding chip 30, the decoding chip 30 at this time is in the first decoding precision, the fine machine feedback signal is decoded by the first decoding precision to obtain a fine machine angle, and then the fine machine angle is sent to the single chip microcomputer 40.
Step 105: and calculating the rough machine angle and the fine machine angle according to a combination algorithm to obtain a coding angle.
Exemplarily, the resolver may be divided into a resolver and a resolver transmitter. In the case of a rotary transformer transmitter, the excitation magnetic winding is supplied with a unidirectional voltage, which causes a change in the relative position between the excitation winding and the secondary output winding when the rotor is in a rotating state, and thus an electromotive force is generated by the emission of electromagnetic induction by the secondary output winding. And because the spatial position relation of the two-phase winding of the secondary output is more special and is orthogonal 90 degrees, the frequencies of the voltages corresponding to the excitation side and the output side are the same, only the phases are different, the cosine phase and the sine phase have the same time phase, but the amplitudes of the two phases are changed by performing corresponding functions by taking the rotation angle as a variable.
Since the analog signal output by the resolver includes two mechanical angles, i.e., 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 with respect to the mechanical angles, the combination of the coarse machine signal and the combined fine machine signal requires digital conversion of the mechanical angles. When the ratio of the rough machine speed to the fine machine speed corresponding to the multi-pole rotary transformer is 1: n, if the period of the coarse shaft numerical angle corresponding to the multi-pole resolver is 360 degrees, the period of the fine shaft numerical angle is 360 degrees/N, i.e., if the coarse shaft numerical angle completes 1 revolution, the fine shaft numerical angle has completed N revolutions.
A multi-pole resolver with a ratio of 1. If the number of the prime mover is 12 bits compared with the number of the rough mover, but only the first 5 bits of the number of the prime mover are significant bits, because the accuracy of the latter bits of the axis of the rough mover is not higher than the number of the axis of the rough mover after being enlarged by 32 times, in combining the fine and coarse shaft angles, the first 5 bits of the coarse shaft numerical angle are used as the upper 5 bits, while the fine shaft numerical angle is used as the lower bit. Therefore, in general, when combining the data of the finishing machine and the roughing machine, the principle is adopted that the numerical angle of the roughing machine axis only takes the integer 0 part, and the numerical angle of the finishing machine axis takes the decimal 0 part.
When the data of the fine machine and the coarse machine are combined, the numerical angle of the coarse machine shaft must be ensured to be error-free, however, in the display, the factors of the error of the multi-pole rotary transformer, the transmission error and the shaft angle conversion error can cause that when the data angles of the fine machine and the coarse machine shaft are combined, the ideal state cannot be achieved, and the reading of the coarse machine is often reduced by one minimum unit or increased by one minimum unit. Therefore, when the data angles of the fine machine and the coarse machine are combined, error correction is required, and the principle of correcting the data angles of the coarse machine by the data of the fine machine axis is adopted when error correction is carried out.
In error correction, the following is typically encountered: first, when the finishing angle is at the first quadrant, there are situations where only the number of the roughing angle can be counted down. When counting, if the data of the fine machine angle overflows, the 5 th bit of the 1 st coarse machine angle is needed to carry out error correction; second, when the finishing angle is at the fourth quadrant, the situation arises where it is only possible to count more roughing angle data, but not less. During counting, if the finishing angle data is not full, carrying can not be carried out on the data of the 5 th bit towards the roughing angle, and if the data of the 5 th bit is carried by the mantissa of the roughing angle, 1 bit of the 5 th bit of the roughing angle is required to be subtracted to carry out error correction; thirdly, when the finishing angle is in the second and third limits, there is no carry of the roughing angle data, so that it is impossible to count the number of the roughing angle data less or more, and error correction is needed.
In summary, when the 1; when the angle of the fine machine is in the quadrant, no carry is carried out, but the angle of the coarse machine carries out carry, and then the bit 5 should be subtracted by 1; when the finishing angle is in other conditions or other boundaries, no carry is needed, and the 0 adding operation is used for the 5 th bit.
Generally, for a common multi-pole resolver digital conversion system, a dual-speed processor required for combining and correcting the fine machine data and the coarse machine data can be designed, and the fine machine axis and the coarse machine axis digital angle with the same number of bits are adopted. The same number of bits is used to represent the coarse machine data angle and the fine machine data angle, if the number of bits of the digital angle of the coarse machine axis is less than that of the digital angle of the fine machine axis, zero padding processing is performed on the coarse machine digital angle at the tail, then the coarse machine axis digital angle is subjected to speed ratio conversion, namely, N times of expansion, and then error correction is performed by using the error correction method described in the above embodiment, namely, the digital angle of the fine machine axis is used to correct the digital angle of the coarse machine axis. After the error correction is completed, the numerical angle of the coarse crankshaft can be replaced by the numerical angle of the fine crankshaft, so that the numerical angle corresponding to the coarse crankshaft and the fine crankshaft is completed, and finally the numerical angle corresponding to the output of the multi-pole rotary transformer can be obtained.
The number of bits of the coarse machine data and the number of bits of the fine machine data double-speed processor of the multi-pole rotary transformer can be formed by adding the number of the coarse machine digital angular bits and the number of the fine machine digital angular bits. Generally, the number of bits of the fine machine digital angle is obtained by taking the number of bits of the real fine machine data angle, but the number of bits required for obtaining the coarse machine digital angle is realized by the corresponding speed ratio of the multi-pole resolver.
In a possible implementation, after the single chip 40 is powered on to complete initialization and obtain the rough machining angle, the rough machining angle is switched to the fine machining angle, and the fine machining angle can be combined after being stabilized.
Therefore, after the fine machine feedback signal is obtained, timing is started to obtain a first time length, and the combination of the fine machine angle and the coarse machine angle is started to obtain the coding angle after the first time length reaches the threshold value. Since the response of the analog switch 20 to switch from the coarse to the fine is very fast, in the order of microseconds, and through experimental data, a steady state can be achieved in around 20 milliseconds, in order to make the resulting encoding angle accurate, the first time length is usually set to 100 milliseconds, i.e. the steady state must be achieved after 100 milliseconds. After the initial combination angle is obtained, the absolute angle can be obtained all the time only by continuously accumulating the finishing machine angles and resetting after the period value is reached.
The embodiment provides a position encoder 2, the position encoder 2 includes a decoding circuit 1 of a double-channel rotary transformer based on a single decoding chip and a communication chip 50, as shown in fig. 3, fig. 3 is a schematic structural diagram of the position encoder 2 provided by the embodiment of the invention, the communication chip 50 and a single chip microcomputer 40 can be connected through a field bus RS485, and the communication chip 50 can adopt an ADM2682E type RS232 communication chip 50.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included 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. 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 utility model provides a decoding circuit of two-channel resolver based on single decoding chip which characterized in that, includes two-channel resolver, singlechip (40), analog switch (20) and decoding chip (30), wherein:
the input end of the double-channel rotary transformer is connected with the excitation output end of the decoding chip (30), the finishing machine output end of the double-channel rotary transformer is connected with the finishing machine input end of the analog switch (20), and the roughing machine output end of the double-channel rotary transformer is connected with the roughing machine input end of the analog switch (20);
the control input end of the analog switch (20) is connected with the first end of the singlechip (40), and the signal output end of the analog switch (20) is connected with the signal input end of the decoding chip (30);
and the first end of the decoding chip (30) is connected with the second end of the singlechip (40).
2. A decoding method of a single decoding chip based dual-channel resolver, applied to a decoding circuit of a single decoding chip (30) based dual-channel resolver according to claim 1, the method comprising:
the single chip microcomputer (40) sends a first control signal to the decoding chip (30) so that the decoding chip (30) is reduced from a first decoding precision to a second decoding precision;
receiving a rough machine angle sent by the decoding chip (30) when the decoding chip is at a first decoding precision;
receiving a fine machine angle sent by the decoding chip (30) when the decoding chip is at a second decoding precision;
sending a second control signal to the decoding chip (30) to raise the decoding chip (30) from the second decoding precision to the first decoding precision;
and calculating the rough machine angle and the fine machine angle according to a combination algorithm to obtain a coding angle.
3. The decoding method of the single decoding chip-based dual channel rotary transformer according to claim 2, wherein before sending the first control signal to the decoding chip (30), the method further comprises:
the single chip microcomputer (40) sends a starting signal to the decoding chip (30);
the decoding chip (30) receives the initial signal, performs power-on operation, generates an excitation signal and sends the excitation signal to the dual-channel rotary transformer;
and the double-channel rotary transformer receives the excitation signal and is electrified for operation.
4. The decoding method of the single-decoding-chip-based dual-channel resolver according to claim 2, wherein the receiving the decoding chip (30) before the coarse-machine angle sent at the first decoding precision further comprises:
the single chip microcomputer (40) sends a first switching signal to the analog switch (20);
the analog switch (20) receives the first switch signal, receives a coarse machine feedback signal and transmits the coarse machine feedback signal to the decoding chip (30);
and the decoding chip (30) receives and decodes the coarse machine feedback signal to obtain a coarse machine angle.
5. The decoding method of the single decoding chip-based dual-channel resolver according to claim 2, wherein the receiving the decoding chip (30) before the fine angle transmitted at the second decoding precision further comprises:
the single chip microcomputer (40) sends a second switching signal to the analog switch (20);
the analog switch (20) receives the second switch signal, receives a finishing machine feedback signal and transmits the finishing machine feedback signal to the decoding chip (30);
and the decoding chip (30) receives and decodes the fine machine feedback signal to obtain a fine machine angle.
6. The decoding method of the dual-channel resolver based on a single decoding chip as claimed in claim 2, wherein before calculating the rough angle and the fine angle according to the combination algorithm to obtain the encoding angle, the method further comprises:
the single chip microcomputer (40) judges whether a stable condition is achieved;
and if the stable condition is reached, taking the coding angle obtained by calculation after the stable condition is reached as a final coding angle.
7. The decoding method of the dual-channel rotary transformer based on the single decoding chip as claimed in claim 6, wherein the determining whether the stable condition is reached comprises:
the single chip microcomputer (40) judges whether the first time length is reached after the fine machine angle is received;
and if the first time length is reached after the fine machining angle is received, confirming that the stable condition is reached.
8. The decoding method of the single decoding chip-based dual-channel rotary transformer according to claim 2, wherein the calculating the rough angle and the fine angle according to a combination algorithm to obtain an encoding angle comprises:
and the singlechip (40) combines the integer part of the rough machining angle and the decimal part of the fine machining angle to obtain a coding angle.
9. The decoding method of the dual-channel resolver based on a single decoding chip as claimed in claim 8, wherein the single chip microcomputer (40) combines an integer part of the coarse machine angle and a fractional part of the fine machine angle to obtain a coding angle, and further comprises:
and the single chip microcomputer (40) corrects the error of the coding angle to obtain an accurate coding angle.
10. A position encoder, characterized in that it comprises a decoding circuit of a single decoding chip based two-channel resolver according to claim 1 and a communication chip (50), said communication chip (50) being connected to said decoding circuit (1) of a single decoding chip based two-channel resolver.
CN202211581769.8A 2022-12-09 2022-12-09 Decoding circuit and method of double-channel rotary transformer based on single decoding chip Pending CN115855125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211581769.8A CN115855125A (en) 2022-12-09 2022-12-09 Decoding circuit and method of double-channel rotary transformer based on single decoding chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211581769.8A CN115855125A (en) 2022-12-09 2022-12-09 Decoding circuit and method of double-channel rotary transformer based on single decoding chip

Publications (1)

Publication Number Publication Date
CN115855125A true CN115855125A (en) 2023-03-28

Family

ID=85671654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211581769.8A Pending CN115855125A (en) 2022-12-09 2022-12-09 Decoding circuit and method of double-channel rotary transformer based on single decoding chip

Country Status (1)

Country Link
CN (1) CN115855125A (en)

Similar Documents

Publication Publication Date Title
CN113489411B (en) Servo driver absolute position and speed detection method
WO2003029503A2 (en) Method and apparatus for calibrating and initializing an electronically commutated electric machine
CN108375391B (en) Sine and cosine signal processing method and system
CN114123879B (en) Phase detection method, device, electronic equipment and storage medium
CN111308339A (en) Servo motor testing method, device and equipment and computer storage medium
KR102462592B1 (en) Apparatus and method for compensating position error of resolver
CN115855125A (en) Decoding circuit and method of double-channel rotary transformer based on single decoding chip
JP5313454B2 (en) Electric vehicle stop control method
CN111811562B (en) Incremental photoelectric encoder fine and coarse correction method based on microcontroller
US9065475B2 (en) Sin-Cos sensor arrangement, integrated circuit and method therefor
US6608573B2 (en) Automatic resolution changing method and circuit for use in digital conversion of two-phase sinusoidal wave signals
CN111817615A (en) Device and method for detecting position of rotor of high-speed permanent magnet synchronous motor
CN115752522A (en) Decoding circuit and method of double-channel rotary transformer and position encoder
CN111082725A (en) Magnetic rotary encoder angle compensation method, compensation system and motor
KR102180715B1 (en) High speed counter
CN112665531B (en) Multi-pair-level rotation-transformation coordinate transformation angle solving method
CN104682818A (en) Rotary variable-voltage angle measuring system based on CORDIC (coordinate rotation digital computer) arc tangent algorithm
CN115208266A (en) Permanent magnet synchronous motor rotor position decoding method and device and automobile
CN109428455B (en) Switched reluctance motor and control method thereof
JP2002131084A (en) Position detector
US11797463B2 (en) Signal generation device
CN213072495U (en) Wire-saving type single-coil absolute value magnetic encoder
CN111682827B (en) Motor control method, device, terminal and storage medium
CN107703919B (en) Data acquisition device, control system comprising same and communication method
CN113050699B (en) Control method and device based on magnetic encoder

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