CN106936387A - The correcting module and its method of sine and cosine measurement signal - Google Patents
The correcting module and its method of sine and cosine measurement signal Download PDFInfo
- Publication number
- CN106936387A CN106936387A CN201710184164.8A CN201710184164A CN106936387A CN 106936387 A CN106936387 A CN 106936387A CN 201710184164 A CN201710184164 A CN 201710184164A CN 106936387 A CN106936387 A CN 106936387A
- Authority
- CN
- China
- Prior art keywords
- signal
- cosine
- drift
- sine
- zero
- 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.)
- Granted
Links
- 238000005259 measurement Methods 0.000 title claims abstract description 33
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012937 correction Methods 0.000 claims abstract description 28
- NCGICGYLBXGBGN-UHFFFAOYSA-N 3-morpholin-4-yl-1-oxa-3-azonia-2-azanidacyclopent-3-en-5-imine;hydrochloride Chemical compound Cl.[N-]1OC(=N)C=[N+]1N1CCOCC1 NCGICGYLBXGBGN-UHFFFAOYSA-N 0.000 claims description 34
- 238000012545 processing Methods 0.000 claims description 33
- 230000003321 amplification Effects 0.000 claims description 28
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 28
- 101100234408 Danio rerio kif7 gene Proteins 0.000 claims description 19
- 101100221620 Drosophila melanogaster cos gene Proteins 0.000 claims description 19
- 101100398237 Xenopus tropicalis kif11 gene Proteins 0.000 claims description 19
- 101150118300 cos gene Proteins 0.000 claims description 11
- 230000001360 synchronised effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 10
- 230000007547 defect Effects 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000004069 differentiation Effects 0.000 description 2
- 238000010606 normalization Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003750 conditioning effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B28/00—Generation of oscillations by methods not covered by groups H03B5/00 - H03B27/00, including modification of the waveform to produce sinusoidal oscillations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D5/00—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
- G01D5/26—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D5/00—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
- G01D5/26—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light
- G01D5/266—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light by interferometric means
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M5/00—Conversion of the form of the representation of individual digits
- H03M5/22—Conversion to or from representation by sinusoidal signals
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Power Engineering (AREA)
- Transmission And Conversion Of Sensor Element Output (AREA)
- Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
Abstract
本发明公开了一种正余弦测量信号的修正模块及其方法,其特征包括:正弦差放单元、正弦去直流漂移单元、正弦幅值调节单元、余弦差放单元、余弦去直流漂移单元、余弦幅值调节单元和正交化单元,是一种不借助任何软件手段的正余弦测量信号修正方法。本发明能实时对正余弦测量信号中存在的直流漂移、幅值不等、非正交化三类主要误差进行修正,从而为后续细分、辨向和计数提供高质量信号,以提高测量精度,并减轻后续软件修正负担。
The invention discloses a correction module of sine and cosine measurement signals and a method thereof. The amplitude adjustment unit and the orthogonalization unit are a correction method for sinusine and cosine measurement signals without any software means. The present invention can correct the three major errors of DC drift, unequal amplitude and non-orthogonalization existing in the sine-cosine measurement signal in real time, so as to provide high-quality signals for subsequent subdivision, direction discrimination and counting, so as to improve the measurement accuracy , and reduce the burden of subsequent software revisions.
Description
技术领域technical field
本发明应用于光栅、激光干涉仪等以正交弦波测量信号为基础的测量场合,具体的说是一种正余弦测量信号的修正模块及其方法。The invention is applied to measurement occasions based on orthogonal sine wave measurement signals, such as gratings and laser interferometers, and is specifically a correction module and method for sinusine and cosine measurement signals.
背景技术Background technique
光栅传感器、激光干涉仪等以正交弦波信号为基础的测量工具在各种测量场合得到了广泛应用,工业上常见的信号处理流程为:光电信号转换-前置放大-差动放大-辨向与细分。理想情况下,差动放大后应得到两路零直流漂移、幅值相等、相位差为90°的完美正交弦波信号(参阅图5虚线所示,其李萨如图为圆心在原点的椭圆),从而为后续细分、辨向及计数提供精度保证,然而因为各种因素的影响,实际信号与理想信号之间会不可避免地存在一定偏差(参阅图5实线),对这种信号直接进行计数和细分将会产生很大的误差,而以此信号作为控制回路中的反馈信息时,将会引起严重的控制错误。故需设计专门的信号修正方案来设法减小此偏差,进而提高测量精度。Measuring tools based on orthogonal sine wave signals such as grating sensors and laser interferometers have been widely used in various measurement occasions. The common signal processing process in industry is: photoelectric signal conversion - preamplification - differential amplification - identification orientation and subdivision. Ideally, after differential amplification, two perfect orthogonal sine wave signals with zero DC drift, equal amplitude, and 90° phase difference should be obtained (refer to the dotted line in Figure 5, and the Lissajous diagram is a circle centered at the origin ellipse), so as to provide precision guarantee for subsequent subdivision, direction identification and counting. However, due to the influence of various factors, there will inevitably be a certain deviation between the actual signal and the ideal signal (see the solid line in Figure 5). If the signal is directly counted and subdivided, a large error will occur, and when the signal is used as the feedback information in the control loop, it will cause serious control errors. Therefore, it is necessary to design a special signal correction scheme to try to reduce this deviation, thereby improving the measurement accuracy.
目前,多数文献和实际测量中都采用软件拟合的方法对正余弦测量信号中存在的直流漂移、不等幅、非正交化三类误差进行修正,理论上可以通过增加采样率无限逼近真实的弦波信号,并采用数学拟合的方法求取三类误差并进行消除,但软件修正方法增加了信号采集软件的复杂性及处理器负担,且由于信号采集精度受限于A/D转换位数、采样率等因素,使得用于误差修正的信号与真实信号间依旧存在一定偏差且难以实现信号的实时修正。At present, most literatures and actual measurements use software fitting methods to correct the three types of errors of DC drift, unequal amplitude, and non-orthogonalization in the sine-cosine measurement signal. In theory, it can infinitely approach the real by increasing the sampling rate. The sine wave signal, and use the method of mathematical fitting to obtain and eliminate the three types of errors, but the software correction method increases the complexity of the signal acquisition software and the processor burden, and because the signal acquisition accuracy is limited by A/D conversion Due to factors such as the number of digits and sampling rate, there is still a certain deviation between the signal used for error correction and the real signal, and it is difficult to realize real-time correction of the signal.
发明内容Contents of the invention
本发明为了解决上述现有技术存在的不足之处,提供一种正余弦测量信号的修正模块及其方法,以期能实时修正弦波测量信号中存在的直流漂移、幅值不等、非正交化三类误差,从而为后续细分、辨向和计数提供高质量信号,以提高测量精度,并减轻后续软件修正负担。In order to solve the deficiencies in the above-mentioned prior art, the present invention provides a correction module and method for the sine-cosine measurement signal, in order to correct the DC drift, unequal amplitude, and non-orthogonality existing in the sine wave measurement signal in real time. Three types of errors can be minimized to provide high-quality signals for subsequent subdivision, direction identification and counting, so as to improve measurement accuracy and reduce the burden of subsequent software corrections.
本发明解决技术问题采用以下技术方案:The present invention solves technical problem and adopts following technical scheme:
本发明一种正余弦测量信号的修正模块的特点包括:正弦差放单元、正弦去直流漂移单元、正弦幅值调节单元、余弦差放单元、余弦去直流漂移单元、余弦幅值调节单元和正交化单元;The characteristics of a correction module of a sine and cosine measurement signal in the present invention include: a sine differential amplifying unit, a sine de-DC drift unit, a sine amplitude adjustment unit, a cosine differential amplifying unit, a cosine de-DC drift unit, a cosine amplitude adjustment unit and a sine Exchange unit;
所述正弦差放单元接收相位差为180°的两路正弦信号sin+和sin-并进行处理,得到一路正弦差动放大信号sin0并提供给所述正弦去直流漂移单元进行处理,得到零直流漂移正弦信号sin1;由所述正弦幅值调节单元对所述零直流漂移正弦信号sin1进行幅值调节,得到校正后的正弦信号sin2,并提供给所述正交化单元;The sinusoidal differential amplifier unit receives and processes two sinusoidal signals sin+ and sin- with a phase difference of 180° to obtain a sinusoidal differential amplification signal sin0 and provides it to the sinusoidal DC drift removal unit for processing to obtain zero DC drift A sinusoidal signal sin1; the amplitude of the zero-DC drift sinusoidal signal sin1 is adjusted by the sinusoidal amplitude adjustment unit to obtain a corrected sinusoidal signal sin2, which is provided to the orthogonalization unit;
所述余弦差放单元接收相位差为180°的两路余弦信号cos+和cos-并进行处理,得到一路余弦差动放大信号cos0并提供给所述余弦去直流漂移单元进行处理,得到零直流漂移余弦信号cos1;由所述余弦幅值调节单元对所述零直流漂移余弦信号cos1进行幅值调节,得到校正后的余弦信号cos2,并提供给所述正交化单元;The cosine differential amplifier unit receives and processes two cosine signals cos+ and cos- with a phase difference of 180° to obtain a cosine differential amplification signal cos0 and provides it to the cosine de-DC drift unit for processing to obtain zero DC drift cosine signal cos1; the cosine amplitude adjustment unit adjusts the amplitude of the zero DC drift cosine signal cos1 to obtain a corrected cosine signal cos2, and provides it to the orthogonalization unit;
所述正交化单元对所述校正后的正弦信号sin2和余弦信号cos2进行正交化处理,得到严格正交、幅值相等、直流漂移为零的正弦信号sin和余弦信号cos。The orthogonalization unit performs orthogonalization processing on the corrected sine signal sin2 and cosine signal cos2 to obtain sine signal sin and cosine signal cos that are strictly orthogonal, have equal amplitudes, and have zero DC drift.
本发明所述的正余弦测量信号的修正模块的特点也在于,所述正弦去直流漂移单元或余弦去直流漂移单元包括:低通滤波器和加法电路;The correction module of the sine and cosine measurement signal according to the present invention is also characterized in that the sine de-DC drift unit or the cosine de-DC drift unit includes: a low-pass filter and an addition circuit;
由所述低通滤波器获取所接收到的一路正弦差动放大信号sin0或一路余弦差动放大信号cos0中的直流漂移信号,并提供给所述加法电路用于去除所述直流漂移信号,从而得到零直流漂移正弦信号sin1或零直流漂移余弦信号cos1。Obtain the DC drift signal in the received one-way sine differential amplification signal sin0 or one-way cosine differential amplification signal cos0 by the low-pass filter, and provide it to the adding circuit for removing the DC drift signal, thereby Get zero DC drift sine signal sin1 or zero DC drift cosine signal cos1.
所述正弦幅值调节单元或余弦幅值调节单元包括:第一绝对值电路、采样保持电路、微分电路、第二绝对值电路、窗口比较器和除法电路;The sine amplitude adjustment unit or the cosine amplitude adjustment unit includes: a first absolute value circuit, a sample and hold circuit, a differential circuit, a second absolute value circuit, a window comparator and a division circuit;
由所述第一绝对值电路对所述零直流漂移正弦信号sin1或零直流漂移余弦信号cos1进行取绝对值处理,得到的结果提供给所述采样保持电路;The first absolute value circuit performs absolute value processing on the zero DC drift sine signal sin1 or the zero DC drift cosine signal cos1, and the obtained result is provided to the sample and hold circuit;
由所述微分电路对所述零直流漂移正弦信号sin1或零直流漂移余弦信号cos1进行微分处理,得到微分信号并提供给所述第二绝对值电路;所述第二绝对值电路对所述微分信号进行取绝对值处理,得到的结果提供给所述窗口比较器进行处理,得到触发信号发送给所述采样保持电路;The differential circuit performs differential processing on the zero DC drift sine signal sin1 or the zero DC drift cosine signal cos1 to obtain a differential signal and provide it to the second absolute value circuit; the second absolute value circuit performs differential processing on the differential signal The signal is processed by taking the absolute value, and the obtained result is provided to the window comparator for processing, and the trigger signal is obtained and sent to the sample and hold circuit;
所述采样保持电路根据所接收到的触发信号,对所述第一绝对值电路的处理结果进行实时幅值采集,从而获得连续变化的幅值信息并提供给所述除法电路;The sample-and-hold circuit performs real-time amplitude acquisition on the processing result of the first absolute value circuit according to the received trigger signal, thereby obtaining continuously changing amplitude information and providing it to the division circuit;
所述除法电路对所述零直流漂移正弦信号sin1或零直流漂移余弦信号cos1与所述幅值信息进行除法计算,从而得到校正后的正弦信号sin2和余弦信号cos2。The division circuit divides the zero DC drift sine signal sin1 or the zero DC drift cosine signal cos1 and the amplitude information to obtain the corrected sine signal sin2 and cosine signal cos2.
当所述零直流漂移正弦信号sin1或零直流漂移余弦信号cos1的幅值变化同步时,所述正弦幅值调节单元和余弦幅值调节单元还可以利用电阻分压法对所述零直流漂移正弦信号sin1或零直流漂移余弦信号cos1进行幅值调节,得到校正后幅值相等的正弦信号sin2和余弦信号cos2。When the amplitude changes of the zero-DC-drift sine signal sin1 or the zero-DC-drift cosine signal cos1 are synchronized, the sine amplitude adjustment unit and the cosine amplitude adjustment unit can also use the resistance voltage divider method to adjust the zero-DC drift sine The amplitude of the signal sin1 or the cosine signal cos1 with zero DC drift is adjusted to obtain a sine signal sin2 and a cosine signal cos2 with equal amplitudes after correction.
本发明一种正余弦测量信号的修正方法的特点是按如下步骤进行:A kind of correction method of sine-cosine measurement signal of the present invention is characterized in that it is carried out as follows:
步骤1、对相位差为180°的两路正弦信号sin+和sin-进行差动放大处理,得到一路正弦差动放大信号sin0;同时,对相位差为180°的两路余弦信号cos+和cos-进行差动放大处理,得到一路余弦差动放大信号cos0;Step 1. Perform differential amplification processing on two sinusoidal signals sin+ and sin- with a phase difference of 180° to obtain a sinusoidal differential amplification signal sin0; at the same time, two cosine signals cos+ and cos- with a phase difference of 180° Perform differential amplification processing to obtain a cosine differential amplification signal cos0;
步骤2、利用低通滤波器获取所述一路正弦差动放大信号sin0或一路余弦差动放大信号cos0中的直流漂移信号,并利用加法电路去除所述一路正弦差动放大信号sin0或一路余弦差动放大信号cos0中的直流漂移信号,得到零直流漂移正弦信号sin1和零直流漂移余弦信号cos1;Step 2, using a low-pass filter to obtain the DC drift signal in the one-way sine differential amplification signal sin0 or one-way cosine differential amplification signal cos0, and using an addition circuit to remove the one-way sine differential amplification signal sin0 or one-way cosine difference Dynamically amplify the DC drift signal in the signal cos0 to obtain a zero DC drift sine signal sin1 and a zero DC drift cosine signal cos1;
步骤3、对零直流漂移正弦信号sin1和零直流漂移余弦信号cos1进行等幅调节,得到校正后的正弦信号sin2和余弦信号cos2;Step 3. Equal amplitude adjustment is performed on the zero DC drift sine signal sin1 and the zero DC drift cosine signal cos1 to obtain the corrected sine signal sin2 and cosine signal cos2;
步骤3.1、对所述零直流漂移正弦信号sin1和零直流漂移余弦信号cos1分别进行取绝对值处理,得到相应的第一绝对值结果用于幅值采集;Step 3.1, performing absolute value processing on the zero-DC-drift sine signal sin1 and the zero-DC-drift cosine signal cos1 respectively, to obtain a corresponding first absolute value result for amplitude acquisition;
步骤3.2、对所述零直流漂移正弦信号sin1和零直流漂移余弦信号cos1分别进行微分处理后再取绝对值,得到相应的第二绝对值结果再进行窗口比较,从而获得相应的幅值采集触发信号;Step 3.2: Carry out differential processing on the zero DC drift sine signal sin1 and zero DC drift cosine signal cos1 respectively, then take the absolute value, obtain the corresponding second absolute value result, and then perform window comparison to obtain the corresponding amplitude acquisition trigger Signal;
步骤3.3、根据相应的幅值采集触发信号,分别对相应的第一绝对值结果进行实时幅值采集,从而获得相应的连续变化的幅值信息;Step 3.3, according to the corresponding amplitude acquisition trigger signal, respectively perform real-time amplitude acquisition on the corresponding first absolute value results, so as to obtain corresponding continuously changing amplitude information;
步骤3.4、将所述零直流漂移正弦信号sin1和零直流漂移余弦信号cos1分别与相应的幅值信息进行除法计算,从而得到校正后的正弦信号sin2和余弦信号cos2;Step 3.4, divide the zero-DC-drift sine signal sin1 and the zero-DC-drift cosine signal cos1 by the corresponding amplitude information respectively, so as to obtain the corrected sine signal sin2 and cosine signal cos2;
步骤4、对所述校正后的正弦信号sin2和余弦信号cos2进行正交化处理,得到严格正交、幅值相等、直流漂移为零的正弦信号sin和余弦信号cos。Step 4. Orthogonalize the corrected sine signal sin2 and cosine signal cos2 to obtain sine signal sin and cosine signal cos that are strictly orthogonal, have equal amplitudes, and have zero DC drift.
与已有技术相比,本发明的有益效果体现在:Compared with the prior art, the beneficial effects of the present invention are reflected in:
1、相较于常用的软件修正方法,本发明是一种不借助任何软件手段的正余弦测量信号修正方法,采用纯硬件电路手段对两路正余弦测量信号中存在的直流漂移、幅值不等、非正交化三类误差进行修正,克服软件拟合方法需进行大量数据运算、拟合的弱点,大大降低了后续信号采集软件的复杂性,且可直接使用专用插值芯片对修正后的信号进行高倍数细分得到便于辨向计数的方波信号。1. Compared with the commonly used software correction method, the present invention is a correction method of sine and cosine measurement signals without any software means, and uses pure hardware circuit means to correct the DC drift and amplitude difference existing in the two-way sine and cosine measurement signals. Etc., non-orthogonalization three types of errors are corrected to overcome the weakness of the software fitting method that requires a large amount of data calculation and fitting, which greatly reduces the complexity of subsequent signal acquisition software, and can directly use a dedicated interpolation chip to correct The signal is subdivided at a high multiple to obtain a square wave signal that is easy to distinguish and count.
2、相较于现有的硬件电路修正方案,本发明可对三类误差进行实时修正,具体体现在:本发明使用低通滤波器实时获取信号中不断变化的直流漂移并通过加法电路对其进行消除,克服了现有方法中不能对正余弦测量信号中的直流漂移进行实时消除的缺陷;本发明利用原信号取微分后的信号过零点作为每个周期内幅值信息的采集信号,可实现正余弦测量信号幅值信息的实时获取,并将原信号与获取到的该幅值信息相除,实时修正信号幅值,得到幅值始终为一的正余弦测量信号,克服了现有技术中无法对幅值不断变化的信号进行实时幅值修正的缺陷。2. Compared with the existing hardware circuit correction scheme, the present invention can correct the three types of errors in real time, specifically embodied in: the present invention uses a low-pass filter to obtain the constantly changing DC drift in the signal in real time and corrects it through the addition circuit Elimination overcomes the defect that the DC drift in the sine-cosine measurement signal cannot be eliminated in real time in the existing method; the present invention uses the zero-crossing point of the signal after differentiation of the original signal as the acquisition signal of the amplitude information in each cycle, which can Realize the real-time acquisition of the amplitude information of the sine-cosine measurement signal, divide the original signal by the obtained amplitude information, correct the signal amplitude in real time, and obtain the sine-cosine measurement signal whose amplitude is always one, which overcomes the existing technology The defect that the real-time amplitude correction cannot be performed on the signal whose amplitude is constantly changing.
3、对于存在非正交化误差(即相位差不是90°)的两路正余弦测量信号,目前常用的正交化方法是,在调节两路信号幅值相等的基础上对其分别相加减,因为幅值相等时,两路信号矢量图为菱形的相邻两边,两信号的和与差即为该菱形的两个对角线,而菱形对角线必正交(原理参阅图6),但受限于不能对信号幅值进行实时检测与修正,故而现有应用并不能保证两路信号幅值完全相等,也就很难得到完美的正交弦波信号,本发明通过对原信号取微分后的信号过零点作为幅值采集触发信息,可实时获取并修正信号幅值,从而确保了该正交化原理实用过程中的可行性。3. For two channels of sine and cosine measurement signals with non-orthogonalization errors (that is, the phase difference is not 90°), the commonly used orthogonalization method is to add them separately on the basis of adjusting the amplitudes of the two signals to be equal Subtraction, because when the amplitudes are equal, the vector diagrams of the two signals are adjacent sides of a rhombus, the sum and difference of the two signals are the two diagonals of the rhombus, and the diagonals of the rhombus must be orthogonal (see Figure 6 for the principle ), but limited by the fact that the signal amplitude cannot be detected and corrected in real time, so the existing application cannot guarantee that the two signal amplitudes are completely equal, and it is difficult to obtain a perfect orthogonal sine wave signal. The zero-crossing point of the differentiated signal is used as the trigger information of the amplitude acquisition, and the signal amplitude can be acquired and corrected in real time, thus ensuring the feasibility of the orthogonalization principle in the practical process.
附图说明Description of drawings
图1为本发明修正模块的整体示意图;Fig. 1 is the overall schematic diagram of the correction module of the present invention;
图2为本发明去直流漂移单元示意图;Fig. 2 is a schematic diagram of the DC drift removal unit of the present invention;
图3a为本发明幅值变化不同步的两信号幅值归一化原理图;Fig. 3 a is the schematic diagram of the normalization of two signal amplitudes whose amplitude changes are asynchronous in the present invention;
图3b为本发明幅值变化同步的两信号幅值调节原理图;Fig. 3b is a schematic diagram of two signal amplitude adjustments in which amplitude changes are synchronized according to the present invention;
图4为本发明信号正交化单元原理图;Fig. 4 is a schematic diagram of the signal orthogonalization unit of the present invention;
图5为实际待修正信号(实线)与理想信号(虚线)李萨如图;Fig. 5 is the Lissajous diagram of the actual signal to be corrected (solid line) and the ideal signal (dotted line);
图6为本发明正交化原理示意图。Fig. 6 is a schematic diagram of the principle of orthogonalization in the present invention.
具体实施方式detailed description
本实施例中,如图1所示,正余弦测量信号修正模块包括:正弦差放单元、正弦去直流漂移单元、正弦幅值调节单元、余弦差放单元、余弦去直流漂移单元、余弦幅值调节单元和正交化单元。In this embodiment, as shown in Figure 1, the sine and cosine measurement signal correction module includes: a sine differential amplifier unit, a sine de-DC drift unit, a sine amplitude adjustment unit, a cosine differential amplify unit, a cosine de-DC drift unit, a cosine amplitude Conditioning unit and Orthogonalization unit.
正弦差放单元接收相位差为180°的两路正弦信号sin+和sin-并进行处理,得到一路正弦差动放大信号sin0并提供给正弦去直流漂移单元进行处理,得到零直流漂移正弦信号sin1,由正弦幅值调节单元对零直流漂移正弦信号sin1进行幅值调节,得到校正后的正弦信号sin2,并提供给正交化单元;The sinusoidal differential amplifier unit receives two sinusoidal signals sin+ and sin- with a phase difference of 180° and processes them to obtain a sinusoidal differential amplification signal sin0 and provides it to the sinusoidal DC drift removal unit for processing to obtain a zero DC drift sinusoidal signal sin1. The amplitude of the zero-DC drift sinusoidal signal sin1 is adjusted by the sinusoidal amplitude adjustment unit to obtain the corrected sinusoidal signal sin2, which is provided to the orthogonalization unit;
余弦差放单元接收相位差为180°的两路余弦信号cos+和cos-并进行处理,得到一路余弦差动放大信号cos0并提供给余弦去直流漂移单元进行处理,得到零直流漂移余弦信号cos1;由余弦幅值调节单元对零直流漂移余弦信号cos1进行幅值调节,得到校正后的余弦信号cos2,并提供给正交化单元;The cosine differential amplifier unit receives two cosine signals cos+ and cos- with a phase difference of 180° and processes them to obtain a cosine differential amplification signal cos0 and provides it to the cosine de-DC drift unit for processing to obtain a zero-DC drift cosine signal cos1; The cosine amplitude adjustment unit adjusts the amplitude of the zero DC drift cosine signal cos1 to obtain the corrected cosine signal cos2, and provides it to the orthogonalization unit;
正交化单元对校正后的正弦信号sin2和余弦信号cos2进行正交化处理,得到严格正交、幅值相等、直流漂移为零的正弦信号sin和余弦信号cos。The orthogonalization unit performs orthogonalization processing on the corrected sinusoidal signal sin2 and cosine signal cos2 to obtain strictly orthogonal sinusoidal signal sin and cosine signal cosine with equal amplitude and zero DC drift.
现有硬件电路修正方案中,多数采用直流补偿的方法去除信号中的直流漂移,无法实时获取并补偿实际信号中不断变化的直流漂移,而本发明中所提出的去直流漂移方法可克服该缺陷,实现实时去直流漂移。如图2所示,正弦去直流漂移单元或余弦去直流漂移单元包括:低通滤波器和加法电路,低通滤波器实时获取所接收到的一路正弦差动放大信号sin0或一路余弦差动放大信号cos0中的直流漂移信号,得到与信号中直流漂移极性相反的信号,并提供给加法电路用于去除直流漂移,从而得到零直流漂移正弦信号sin1或零直流漂移余弦信号cos1。其中,低通滤波器的截止频率可根据测量信号的频率范围并综合考虑响应时间等因素灵活设计。In the existing hardware circuit correction schemes, most of the DC compensation methods are used to remove the DC drift in the signal, and it is impossible to obtain and compensate the constantly changing DC drift in the actual signal in real time, but the DC drift removal method proposed in the present invention can overcome this defect , to achieve real-time DC drift removal. As shown in Figure 2, the sine de-DC drift unit or the cosine de-DC drift unit includes: a low-pass filter and an addition circuit, and the low-pass filter obtains a received sine differential amplification signal sin0 or a cosine differential amplification in real time The DC drift signal in the signal cos0 obtains a signal with the opposite polarity to the DC drift in the signal, and provides it to the addition circuit for removing the DC drift, thereby obtaining a zero DC drift sine signal sin1 or a zero DC drift cosine signal cos1. Among them, the cut-off frequency of the low-pass filter can be flexibly designed according to the frequency range of the measurement signal and considering factors such as response time.
实际正余弦测量信号的幅值是不断变化的,所以要求幅值调节单元电路能实时获取信号幅值信息并修正,联想到原信号取微分后信号过零点恰好对应原信号幅值点这一特征,将微分信号过零点作为幅值采集触发信号,微分信号过零瞬间触发采集信号幅值,其他时间保持该采集结果作为幅值修正信号,并利用除法电路实现幅值修正,可实现信号幅值的实时修正。本发明提供上述思想的一种实现方法,待修正信号取微分并取绝对值后,使用窗口比较器产生一个窄脉冲,以触发采样保持电路采集当前信号即信号幅值,窄脉冲过后,保持该采样结果,并由除法电路将待修正信号与该幅值信息进行除法运算,以实现幅值归一化,该方法可实现信号幅值的实时修正。The amplitude of the actual sine-cosine measurement signal is constantly changing, so the amplitude adjustment unit circuit is required to obtain and correct the signal amplitude information in real time, which is associated with the fact that the zero-crossing point of the original signal after differentiation is exactly corresponding to the original signal amplitude point. , using the zero-crossing point of the differential signal as the trigger signal for amplitude acquisition, the instant the differential signal crosses zero triggers the acquisition of the signal amplitude, and the acquisition result is kept as the amplitude correction signal at other times, and the amplitude correction is realized by using the division circuit, which can realize the signal amplitude real-time corrections. The present invention provides a method for realizing the above idea. After the signal to be corrected is differentiated and its absolute value is taken, a narrow pulse is generated using a window comparator to trigger a sample-and-hold circuit to collect the current signal, that is, the signal amplitude. After the narrow pulse passes, hold the The sampling result is divided by the signal to be corrected and the amplitude information by a division circuit to realize normalization of the amplitude. This method can realize real-time correction of the signal amplitude.
如图3a所示,正弦幅值调节单元或余弦幅值调节单元包括:第一绝对值电路、采样保持电路、微分电路、第二绝对值电路、窗口比较器和除法电路;As shown in Figure 3a, the sine amplitude adjustment unit or the cosine amplitude adjustment unit includes: a first absolute value circuit, a sample and hold circuit, a differential circuit, a second absolute value circuit, a window comparator and a division circuit;
第一绝对值电路对零直流漂移正弦信号sin1或零直流漂移余弦信号cos1进行取绝对值处理,得到的结果提供给采样保持电路;The first absolute value circuit performs absolute value processing on the zero DC drift sine signal sin1 or the zero DC drift cosine signal cos1, and the obtained result is provided to the sample and hold circuit;
微分电路对零直流漂移正弦信号sin1或零直流漂移余弦信号cos1进行微分处理,得到微分信号并提供给第二绝对值电路;第二绝对值电路对微分信号进行取绝对值处理,得到的结果提供给窗口比较器进行处理,得到触发信号发送给采样保持电路;The differential circuit performs differential processing on the zero DC drift sine signal sin1 or the zero DC drift cosine signal cos1 to obtain a differential signal and provide it to the second absolute value circuit; the second absolute value circuit performs absolute value processing on the differential signal, and the obtained result provides Process the window comparator, get the trigger signal and send it to the sample and hold circuit;
采样保持电路根据所接收到的触发信号,对第一绝对值电路的处理结果进行实时幅值采集,从而获得连续变化的幅值信息并提供给除法电路;The sample-and-hold circuit performs real-time amplitude acquisition on the processing result of the first absolute value circuit according to the received trigger signal, thereby obtaining continuously changing amplitude information and providing it to the division circuit;
除法电路对零直流漂移正弦信号sin1或零直流漂移余弦信号cos1与幅值信息进行除法计算,从而得到校正后幅值相等的正弦信号sin2和余弦信号cos2。The division circuit divides the zero DC drift sine signal sin1 or the zero DC drift cosine signal cos1 and the amplitude information to obtain the sine signal sin2 and the cosine signal cos2 with the same amplitude after correction.
此外,当零直流漂移正弦信号sin1或零直流漂移余弦信号cos1的幅值变化同步时,正弦幅值调节单元和余弦幅值调节单元还可以利用电阻分压法(参阅图3b)对零直流漂移正弦信号sin1或零直流漂移余弦信号cos1进行幅值调节,得到幅值相等的正弦信号sin2和余弦信号cos2。In addition, when the amplitude changes of the zero-DC-drift sine signal sin1 or the zero-DC-drift cosine signal cos1 are synchronized, the sine amplitude adjustment unit and the cosine amplitude adjustment unit can also use the resistance voltage divider method (see Figure 3b) to adjust the zero-DC drift The amplitude of the sine signal sin1 or the zero DC drift cosine signal cos1 is adjusted to obtain a sine signal sin2 and a cosine signal cos2 with equal amplitudes.
如图6所示,幅值相等时,两路正余弦测量信号的矢量图为菱形的相邻两边,两信号的和与差即为该菱形的两个对角线,而菱形对角线必正交,故可在调节两路信号幅值相等的基础上对其分别相加减,以修正信号的非正交化误差。在前述正弦幅值调节单元和余弦幅值调节单元实时调节两路信号幅值相等的基础上,正弦信号sin2和余弦信号cos2分别相加、相减后可得到两路严格正交的新信号sin和cos(参阅图4)。As shown in Figure 6, when the amplitudes are equal, the vector diagrams of the two sine and cosine measurement signals are adjacent sides of a rhombus, and the sum and difference of the two signals are the two diagonals of the rhombus, and the diagonals of the rhombus must be Orthogonal, so the amplitudes of the two signals can be adjusted to be equal to each other, and then they can be added and subtracted to correct the non-orthogonalization error of the signal. On the basis of the aforementioned sine amplitude adjustment unit and cosine amplitude adjustment unit adjusting the amplitudes of the two signals to be equal in real time, the sine signal sin2 and the cosine signal cos2 are respectively added and subtracted to obtain two strictly orthogonal new signals sin and cos (see Figure 4).
经过以上处理得到的两路新信号sin和cos,严格正交、幅值相等、直流漂移为零,其李萨如图为一个圆心在原点的正圆,可直接用于后续的细分、计数与辨向。The two new signals sin and cos obtained through the above processing are strictly orthogonal, have equal amplitudes, and have zero DC drift. The Lissajous figure is a perfect circle with the center at the origin, which can be directly used for subsequent subdivision and counting and distinguish direction.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710184164.8A CN106936387B (en) | 2017-03-24 | 2017-03-24 | Correction module and method for sine and cosine measurement signals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710184164.8A CN106936387B (en) | 2017-03-24 | 2017-03-24 | Correction module and method for sine and cosine measurement signals |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106936387A true CN106936387A (en) | 2017-07-07 |
CN106936387B CN106936387B (en) | 2020-02-14 |
Family
ID=59425217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710184164.8A Active CN106936387B (en) | 2017-03-24 | 2017-03-24 | Correction module and method for sine and cosine measurement signals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106936387B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679777A (en) * | 2017-11-16 | 2018-02-09 | 哈尔滨理工大学 | Transmission of electricity quality evaluation segmented compensation parameter setting method based on division arithmetic |
CN108204830A (en) * | 2017-11-28 | 2018-06-26 | 珠海格力节能环保制冷技术研究中心有限公司 | The compensation method of phase deviation and device |
CN109115533A (en) * | 2018-09-07 | 2019-01-01 | 天津福云天翼科技有限公司 | A kind of sine wave accurate reproducing method in real time |
CN111324925A (en) * | 2020-02-17 | 2020-06-23 | 中铁二院工程集团有限责任公司 | A method for evaluating the overall stiffness of railway bridges |
CN112433471A (en) * | 2020-11-24 | 2021-03-02 | 北京麦格纳材科技有限公司 | High-precision self-gain compensation control method and control circuit thereof |
CN113310396A (en) * | 2021-05-20 | 2021-08-27 | 西安电子科技大学 | Sine and cosine signal amplitude calculation circuit with double sampling structure |
CN116346558A (en) * | 2023-05-23 | 2023-06-27 | 清华大学 | A method and system for generating quadrature signals |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610232A (en) * | 2008-06-19 | 2009-12-23 | 富士通株式会社 | Amplitude suppressing device and signal sending device |
CN101692601A (en) * | 2009-06-03 | 2010-04-07 | 北京中星微电子有限公司 | Automatic gain control device and audio control system comprising same |
CN101709983A (en) * | 2009-10-30 | 2010-05-19 | 大连光洋科技工程有限公司 | On-line actual error compensation system of sine and cosine encoder |
KR20110082828A (en) * | 2010-01-12 | 2011-07-20 | 삼성테크윈 주식회사 | Encoder signal processing device and method of motor |
CN102564462A (en) * | 2011-12-27 | 2012-07-11 | 华中科技大学 | Error compensation device for sin/cos encoder |
-
2017
- 2017-03-24 CN CN201710184164.8A patent/CN106936387B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610232A (en) * | 2008-06-19 | 2009-12-23 | 富士通株式会社 | Amplitude suppressing device and signal sending device |
CN101692601A (en) * | 2009-06-03 | 2010-04-07 | 北京中星微电子有限公司 | Automatic gain control device and audio control system comprising same |
CN101709983A (en) * | 2009-10-30 | 2010-05-19 | 大连光洋科技工程有限公司 | On-line actual error compensation system of sine and cosine encoder |
KR20110082828A (en) * | 2010-01-12 | 2011-07-20 | 삼성테크윈 주식회사 | Encoder signal processing device and method of motor |
CN102564462A (en) * | 2011-12-27 | 2012-07-11 | 华中科技大学 | Error compensation device for sin/cos encoder |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679777A (en) * | 2017-11-16 | 2018-02-09 | 哈尔滨理工大学 | Transmission of electricity quality evaluation segmented compensation parameter setting method based on division arithmetic |
CN107679777B (en) * | 2017-11-16 | 2020-10-30 | 哈尔滨理工大学 | Power transmission quality evaluation segmented compensation parameter setting method based on division operation |
CN108204830B (en) * | 2017-11-28 | 2019-08-06 | 珠海格力电器股份有限公司 | Phase deviation compensation method and device |
CN108204830A (en) * | 2017-11-28 | 2018-06-26 | 珠海格力节能环保制冷技术研究中心有限公司 | The compensation method of phase deviation and device |
US11125589B2 (en) | 2017-11-28 | 2021-09-21 | Gree Green Refrigeration Technology Center Co., Ltd. Of Zhuhai | Phase deviation compensation method and apparatus |
CN109115533A (en) * | 2018-09-07 | 2019-01-01 | 天津福云天翼科技有限公司 | A kind of sine wave accurate reproducing method in real time |
CN109115533B (en) * | 2018-09-07 | 2020-10-27 | 天津福云天翼科技有限公司 | Real-time accurate reproduction method of sine wave |
CN111324925A (en) * | 2020-02-17 | 2020-06-23 | 中铁二院工程集团有限责任公司 | A method for evaluating the overall stiffness of railway bridges |
CN111324925B (en) * | 2020-02-17 | 2022-04-01 | 中铁二院工程集团有限责任公司 | Method for judging overall rigidity of railway bridge |
CN112433471A (en) * | 2020-11-24 | 2021-03-02 | 北京麦格纳材科技有限公司 | High-precision self-gain compensation control method and control circuit thereof |
CN112433471B (en) * | 2020-11-24 | 2021-09-21 | 北京麦格纳材科技有限公司 | High-precision self-gain compensation control method and control circuit thereof |
CN113310396A (en) * | 2021-05-20 | 2021-08-27 | 西安电子科技大学 | Sine and cosine signal amplitude calculation circuit with double sampling structure |
CN116346558A (en) * | 2023-05-23 | 2023-06-27 | 清华大学 | A method and system for generating quadrature signals |
CN116346558B (en) * | 2023-05-23 | 2023-08-22 | 清华大学 | Method and system for generating orthogonal signals |
Also Published As
Publication number | Publication date |
---|---|
CN106936387B (en) | 2020-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106936387B (en) | Correction module and method for sine and cosine measurement signals | |
EP2823262B1 (en) | Phase estimation method and apparatus therefor | |
TWI438408B (en) | Detection device | |
US10989568B2 (en) | Position detection device and position detection method | |
US9068861B2 (en) | Resolver interface | |
CN107830792A (en) | Method for the position of the position indicator that determines position measuring system | |
EP3147631B1 (en) | 360° magnetic rotary position sensor system and method for calculating high precision 360-degrees absolute angle of a rotating body | |
CN111964707A (en) | Angle Calibration Method of Absolute Magnetic Encoder Based on Vernier Code Track | |
JP2008304249A (en) | Encoder signal processing device and its signal processing method | |
CN104330096B (en) | A kind of rectification building-out of measurement signal and the method and device of automatic Calibration | |
US9909907B2 (en) | Double quadrature with adaptive phase shift for improved phase reference performance | |
US20220163605A1 (en) | Electronic circuit for measuring an angle and an intensity of an external magnetic field | |
US9176162B2 (en) | Position encoder | |
CN116294963A (en) | Apparatus and method for determining the angular position of an inductive position sensor | |
JPH0496130A (en) | Signal calibrating device | |
JP2839341B2 (en) | Calibration device for position signal | |
US11994411B2 (en) | Vernier sensor with self calibration | |
Hwang et al. | Signal compensation for analog rotor position errors due to nonideal sinusoidal encoder signals | |
CN114925315A (en) | Vector signal processing method, vector signal processing device and computer readable storage medium | |
EP3239664B1 (en) | Signal processing arrangement and signal processing method | |
CN110530407A (en) | A kind of photosignal quality error separation method of photoelectric encoder | |
TW201809604A (en) | Electromagnetic-induction type position detector capable of detecting interpolation errors according to gap changes in order to correct a detection position | |
KR101931440B1 (en) | Phase correction circuit having low-area for rotary variable differential transformer | |
JP2005172669A (en) | Interpolation error correcting method and its system | |
JP2019078547A (en) | Position detector |
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 |