Subdivision method of photoelectric encoder based on three kinds of operation combination correction of quadrature signals

By performing three operations and Fourier series matching on the sine and cosine signals of the photoelectric encoder, the problem of insufficient accuracy of linearized signals in the existing technology is solved, and high-precision angle measurement of the photoelectric encoder is realized.

CN117824725BActive Publication Date: 2026-11-27JILIN UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410014032.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2026-11-27
Estimated Expiration
2044-01-04

AI Technical Summary

Technical Problem

Existing photoelectric encoder linearization techniques only consider approximate matching or first-order coefficient matching of Fourier harmonic coefficients, resulting in a significant difference between the constructed piecewise linear periodic signal and the ideal piecewise linear periodic function, which affects the accuracy of the subdivision angle.

Method used

Two orthogonal sine and cosine signals are used to perform three operations: subtraction, subtraction-division-addition, and subtraction-multiplication-addition. A linear matching correction function is constructed using the linear matching of 1st, 3rd, and 5th order Fourier series. Through amplitude normalization and absolute value operation, combined with quadrant judgment, high-precision subdivision of the encoder signal is achieved.

Benefits of technology

The subdivision accuracy of the photoelectric encoder has been improved, with a theoretical error of no more than 0.0068°, achieving higher angle measurement accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117824725B_ABST
    Figure CN117824725B_ABST
Patent Text Reader

Abstract

The application relates to a photoelectric encoder subdivision method based on three operation combinations of orthogonal signals, which comprises the following steps: carrying out amplitude normalization processing on two-way A and B phase orthogonal sine and cosine signals S A 、S B ; taking absolute values of S1 and S2 and constructing V1, V2 and V3 through three operations; combining V1, V2 and V3 to obtain an angle linear matching correction function V; judging an angle quadrant of the orthogonal signals S1 and S2 to determine an angle quadrant coefficient d; calculating a subdivision angle theta in a subdivision period; and calculating an encoder rotation angle theta D corresponding to the subdivision angle theta. The application utilizes two-way orthogonal sine and cosine signals to carry out three operation combinations of subtraction, subtraction division addition and subtraction multiplication addition, constructs a linear matching correction function through linear matching of 1, 3 and 5 Fourier series combinations, converts the two-way orthogonal sine and cosine signals into linear signals, realizes high-precision linearization subdivision of the encoder signals according to the linear signal amplitude, and the method theoretical limit error is lower than 0.0068 DEG, thereby improving the photoelectric encoder subdivision precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of photoelectric encoder technology, specifically relating to a photoelectric encoder subdivision method based on a combination of three operations of orthogonal signals for correction, and particularly to a signal subdivision method based on encoder signal linearization. Background Technology

[0002] Photoelectric encoders have wide applications in angle measurement. Incremental photoelectric encoders typically consist of a light source, a grating code disk, an indicating grating, a photoelectric sensor, and a rotating shaft. The grating has regularly etched transparent and opaque areas. When the grating code disk and the indicating grating have the same period and are placed parallel to each other, light passing through them forms alternating bright and dark moiré fringes. The intensity of the moiré fringe signal varies sinusoidally, and its period corresponds to the period of the grating code disk and the indicating grating.

[0003] When the grating code disk rotates, the moiré fringes at a fixed position will also change in brightness. The angle θ of the grating code disk's rotation can be obtained by accumulating the number of these changes, n. R =nθ0, where θ0 is the angle of one grating pitch displacement = 360° / m. Within one moiré fringe period, two photoelectric sensors are placed with a 1 / 4 moiré fringe period spacing difference to receive the moiré fringe signal and generate a photocurrent I. A I B After passing through the amplification and filtering circuit, two orthogonal sine and cosine signals S are output. A =asin(θ), S B =acos(θ), where θ is the subdivision period angle from 0 to 360°, and one subdivision period corresponds to the angle θ0 of the grating code disk rotating by one grating pitch displacement. To obtain a resolution better than one grating pitch angle, a subdivision method can be adopted, using two sine and cosine signals to solve for the θ value to obtain the code disk rotation angle θ, which is less than one grating pitch displacement. D This enables high-precision angle measurement.

[0004] Linear subdivision technology is a high-precision measurement technique for photoelectric encoders that has emerged in recent years. This technique utilizes two sine and cosine signals from the encoder to generate an output signal linearly related to its phase θ. The subdivision angle of the encoder can be directly determined based on the amplitude of the output signal, achieving linear subdivision of the encoder angle. It has the advantages of not requiring the construction of a lookup table and being computationally simple. Current linearization techniques mostly use two sine and cosine signals to construct a preliminary approximate piecewise linearized periodic signal. Then, a correction signal is constructed to compensate for the error between the approximate piecewise linearized periodic signal and the ideal piecewise linearized periodic function. M. Benammar (2004, 2005), based on Fourier harmonics and coefficients, proposed constructing a correction signal to make the compensated piecewise linearized periodic signal V... OBy minimizing the error with the ideal piecewise linear periodic function, an approximate matching coefficient was obtained. Piecewise linear periodic signals with theoretical errors not exceeding 0.1235° and 0.0112° were subsequently constructed.

[0005] V O1 =|sinθ|-|cosθ|+0.221×|sinθ|×|cosθ|×(sinθ|-|cosθ|)

[0006]

[0007] Guoyong Ye et al. (2018, 2020) constructed piecewise linear periodic signals that were identical to the first harmonic of an ideal piecewise linear periodic function, and subsequently constructed piecewise linear periodic signals with theoretical errors not exceeding 0.1935° and 0.0783°.

[0008]

[0009]

[0010] In summary, current linearization signal construction methods only consider approximate matching or first-order coefficient matching of Fourier harmonic coefficients, resulting in a significant difference between the constructed piecewise linear periodic signal and the ideal piecewise linear periodic function, which in turn affects the accuracy of the subdivision angle. Summary of the Invention

[0011] The purpose of this invention is to provide a photoelectric encoder subdivision method based on the combination of three operations of orthogonal signals to construct equations using linear matching of 1st, 3rd, and 5th order Fourier series, so as to solve the harmonic coefficient matching problem of the amplitude-angle subdivision method of existing linearization technology.

[0012] The objective of this invention is achieved through the following technical solution:

[0013] The incremental photoelectric encoder outputs two quadrature sine and cosine signals S with the same amplitude after passing through a differential amplifier circuit. A =asin(θ), S B=acos(θ), considering that its amplitude may attenuate during signal transmission. To facilitate subsequent calculations, the amplitude of the two signals is first normalized to obtain S1 = sin(θ) and S2 = cos(θ). The absolute values ​​of these two signals are then used for three combined operations: subtraction (V1), subtraction-division-addition (V2), and subtraction-multiplication-addition (V3). These three operations utilize the linear matching of the 1st, 3rd, and 5th order Fourier series to construct a linear matching correction function—a piecewise linear periodic function. That is, within one period of the encoder output signal, the values ​​of k1, k2, and k3 are determined such that V = k1V1 + k2V2 + k3V3 approximates the ideal piecewise linear function. Within a subdivision period, V has different linear relationships with θ depending on the quadrant in which θ is located. By determining the quadrant in which θ is located using S1 and S2, the angle quadrant coefficient d is determined. Based on the different linear relationships between θ and V in different quadrants, the subdivision angle is determined, thus achieving linear subdivision of the encoder signal.

[0014] A photoelectric encoder subdivision method based on a combination of three operations of orthogonal signals for correction includes the following steps:

[0015] A. The incremental photoelectric encoder outputs two orthogonal sine and cosine signals S with the same amplitude after passing through a differential amplifier circuit. A =asin(θ), S B =acos(θ), for two quadrature signals S of phases A and B A S B After normalizing the amplitude, we get S1 = sin(θ) and S2 = cos(θ);

[0016] B. Take the absolute values ​​of S1 and S2 respectively, and perform three combined operations: subtraction (V1), subtraction-division-addition (V2), and subtraction-multiplication-addition (V3).

[0017] C. Construct the angle linear matching correction function V using the linear matching of the 1st, 3rd, and 5th order Fourier series;

[0018] D. Determine the quadrant of θ by using orthogonal signals S1 and S2, and determine the quadrant coefficient d of the angle.

[0019] E. Determine the subdivision angle θ based on the different linear relationships between different quadrants and V to achieve linear subdivision of the encoder signal;

[0020] F. Calculate the encoder rotation angle θ corresponding to the subdivision angle θ. D .

[0021] Further, step A specifically involves,

[0022] For two orthogonal sine and cosine signals S, A and B A S B After amplitude normalization, two signals S1 and S2 with an amplitude of 1 are obtained:

[0023]

[0024]

[0025] Further, step B specifically involves:

[0026] Take the absolute values ​​of S1 and S2 to obtain |S1| and |S2|, and perform the following three operations to construct V1, V2, and V3:

[0027] V1=|S1|-|S2| (3)

[0028]

[0029] V3=(|S1|-|S2|)(|S1|+|S2|) (5).

[0030] Further, step C specifically involves combining V1, V2, and V3, and using the combined correction coefficients k1 = 1.0213, k2 = 0.12905, and k3 = -0.1502 to calculate the angle linear matching correction function V:

[0031] V = k1V1 + k2V2 + k3V3 (6).

[0032] Specifically, the quadrant of the angle is determined by using orthogonal signals S1 and S2, and the quadrant coefficient d is then determined.

[0033]

[0034] Further, step E specifically involves determining the subdivision angle θ based on the function V:

[0035] θ = (-1) d-1 ×45×V+45×(2d-1) (8).

[0036] Further, step F specifically involves calculating the encoder rotation angle θ corresponding to the subdivision angle θ. D :

[0037]

[0038] in, is the angle value corresponding to one grating pitch displacement of the photoelectric encoder, that is, the angle corresponding to the encoder grating disk rotating by one grating pitch; m is the number of grating lines of the photoelectric encoder.

[0039] Furthermore, the A / D circuit supports S... A S B After sampling, the encoder rotation angle θ is completed in the FPGA. D Calculation; simultaneously, the shaping circuit converts the two orthogonal signals S...A S B Shaped into a square wave signal Q A Q B In the FPGA, direction determination and counting calculation are performed to obtain the rotation direction (+ or -) and the whole-pitch rotation angle θ. R ;θ D With θ R The sum of the two is the measured angle + / - (θ) D +θ R The data is sent to the host computer via the communication module to achieve angle measurement.

[0040] Furthermore, the whole grid pitch rotation angle θ R The calculation steps are as follows:

[0041] a. Determine the direction of rotation: Based on Q A Q B Is the time interval between rising edges greater than Q? A (or Q) B Use 1 / 2 of the cycle to determine the direction of the turntable;

[0042] b. Counting: During the rotation of the encoder disk, Q is counted. A (or Q) B The rising edge of the encoder is used to count the number of grid pitches n that the encoder disk rotates;

[0043] c. Calculate angle θ R :

[0044] θ R =nθ0 (10).

[0045] Compared with the prior art, the beneficial effects of the present invention are:

[0046] This invention proposes an incremental photoelectric encoder angle subdivision method. It utilizes three operations on two orthogonal sine and cosine signals, constructing a linear matching correction function using the linear matching of 1st, 3rd, and 5th order Fourier series combinations of these three operations. This converts the two orthogonal sine and cosine signals into linear signals, and the subdivision angle value of the encoder signal can be directly determined based on the amplitude of the linear signal. The proposed subdivision method has a theoretical error of no more than 0.0068°, improving the subdivision accuracy of the photoelectric encoder. Attached Figure Description

[0047] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is a block diagram of the incremental photoelectric encoder and its hardware structure;

[0049] Figure 2 This is a block diagram of a photoelectric encoder subdivision method based on the combination of three operations of orthogonal signals for correction;

[0050] Figure 3 It simulates two normalized quadrature signals;

[0051] Figure 4 It is the theoretical error of the five methods for subdividing the angles.

[0052] In the diagram, 1. Light source 2. Grating code disk 3. Indicator grating 4. Photoelectric sensor 5. Rotating shaft. Detailed Implementation

[0053] The present invention will be further described below with reference to embodiments:

[0054] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention and not the entire structure.

[0055] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0056] Linear subdivision technology for photoelectric encoders combines two orthogonal sine and cosine signals from the encoder into an approximate piecewise linear periodic function. The subdivision angle value of the two sine and cosine signals within a single grid pitch angle displacement is determined based on the amplitude of this piecewise linear function, achieving a resolution better than a single grid pitch angle and improving the measurement accuracy of the measurement system. However, current linear subdivision techniques only consider approximate matching or first-order coefficient matching of Fourier harmonic coefficients, leading to significant differences between the constructed linear function and the ideal linear function, resulting in large subdivision errors. To address these issues, this invention employs three operational combinations—subtraction, subtraction-division-addition, and subtraction-multiplication-addition—from two orthogonal sine and cosine signals. A linear matching correction function is constructed using matching of 1st, 3rd, and 5th order Fourier series, achieving high-precision linear subdivision of the encoder signal with a theoretical error not exceeding 0.0068°.

[0057] like Figure 1As shown, an incremental photoelectric encoder typically consists of a light source 1, a grating code disk 2, an indicator grating 3, a photoelectric sensor 4, and a rotating shaft 5. The grating has regularly spaced transparent and opaque areas. When the grating code disk and the indicator grating have the same period and are placed parallel to each other, light passing through the indicator grating will form alternating bright and dark moiré fringes. The intensity of the moiré fringe signal light varies according to a sinusoidal law, and its period is equal to the periods of the code disk grating and the indicator grating.

[0058] When the grating code disk rotates, the moiré fringes at a fixed position will also change in brightness. If the number of grating lines of the photoelectric encoder is m, then the moiré fringes will produce m changes in brightness during one rotation of the grating code disk. By recording the number of times the brightness and darkness of the fringes change during the rotation of the grating code disk, n, we can obtain the integer grating pitch rotation angle θ corresponding to the rotation of the grating code disk by n grating pitches. R =nθ0, where θ0 is the angle of one grating pitch displacement, 360° / m. Within one moiré fringe period, two photoelectric sensors are placed with a 1 / 4 moiré fringe period spacing difference to receive the moiré fringe signal and generate a photocurrent I. A I B After passing through the amplification and filtering circuit, two orthogonal sine and cosine signals S are output. A =asin(θ), S B = acos(θ), where θ is the subdivision period angle = 0 to 360°, and one subdivision period corresponds to the grating code disk rotating through an angle θ0 of one grating pitch displacement. The A / D circuit corresponds to S... A S B After sampling, the encoder rotation angle θ is completed in the FPGA. D Calculation; simultaneously, the shaping circuit converts the two orthogonal signals S... A S B Shaped into a square wave signal Q A Q B In the FPGA, direction determination and counting calculation are performed to obtain the rotation direction (+ or -) and the whole-pitch rotation angle θ. R ;θ D With θ R The sum of the two is the measured angle + / - (θ) D +θ R The data is sent to the host computer via the communication module to achieve high-precision angle measurement.

[0059] Code disk rotation angle θ D The calculation process is as follows Figure 2As shown, a linear matching correction function is constructed by combining three operations on the two orthogonal sine and cosine signals (A and B phases) output by the photoelectric encoder. The combination coefficients of the three operations are solved by establishing equations using the linear matching of 1st, 3rd, and 5th order Fourier series. The angle value θ is determined by the linear matching correction function value, thus achieving angle subdivision of the incremental encoder. The steps are as follows: First, the amplitude of the two signals is normalized to obtain two signals S1 and S2 with an amplitude of 1. Second, the absolute values ​​of S1 and S2 are calculated to obtain |S1| and |S2|, and V1, V2, and V3 are constructed. Then, V1, V2, and V3 are combined to obtain the angle linear matching correction function V. Finally, the subdivision angle θ is determined based on the function V. The specific steps are as follows:

[0060] 1. For two orthogonal sine and cosine signals S, A and B. A S B Perform amplitude normalization:

[0061]

[0062]

[0063] 2. Take the absolute values ​​of S1 and S2 and perform the following three operations:

[0064] V1=|S1|-|S2| (3)

[0065]

[0066] V3=(|S1|-|S2|)(|S1|+|S2|) (5)

[0067] 3. Calculate the angle linear matching correction function value V using the combined correction coefficients k1 = 1.0213, k2 = 0.12905, and k3 = -0.1502:

[0068] V=k1V1+k2V2+k3V3 (6)

[0069] 4. Determine the quadrant of the angle using orthogonal signals S1 and S2, and then determine the quadrant coefficient d:

[0070]

[0071] 5. Calculate the subdivision angle θ within one subdivision period:

[0072] θ = (-1) d-1 ×45×V+45×(2d-1) (8)

[0073] 6. Calculate the encoder rotation angle θ corresponding to the subdivision angle θ. D :

[0074]

[0075] in, The angle corresponding to rotating the encoder grating code disk by one grating pitch; m is the number of grating lines of the photoelectric encoder.

[0076] Full pitch rotation angle θ R Calculation process:

[0077] 1. Determine the direction of rotation: based on Q A Q B Is the time interval between rising edges greater than Q? A (or Q) B Use half a cycle to determine the direction of the turntable.

[0078] 2. Counting: During the rotation of the encoder, Q is counted. A (or Q) B The rising edge of the encoder is used to count the number of grid pitches n that the encoder rotates.

[0079] 3. Calculate angle θ R :

[0080] θ R =nθ0 (10)

[0081] The two normalized sine and cosine signals S1 = sinθ and S2 = cosθ are simulated, with angle θ = [0°, 360°), and 36,000 values ​​at 0.01° intervals, as shown below. Figure 3 As shown; with combined correction coefficients k1 = 1.0213, k2 = 0.12905, k3 = -0.1502, the combined piecewise linear periodic signal V is obtained:

[0082]

[0083] Calculate the 36,000 subdivision angles θ within one subdivision period according to steps 4-5. C The difference between the measured angle and the simulated angle value θ is the theoretical error Δθ of the method. V :

[0084] Δθ V =θ C -θ=(-1) d-1 ×45×V+45×(2d-1)-θ (12)

[0085] Simulation results are as follows Figure 4 As shown by the red line, the limit error is 0.0068°.

[0086] Compared with other methods: the two piecewise linear periodic signals V constructed by M. Benammar (2004, 2005) O1 VO2 The two piecewise linear periodic signals V constructed by Guoyong Ye et al. (2018, 2020) O2 V O3 Substitute V in equation (12) respectively, and similarly calculate the theoretical error of the subdivision angle for the corresponding method. The results are as follows Figure 4 The lines are shown in medium green, purple, blue, and orange. Among them, V... O1 V O2 V O2 V O3 They are respectively:

[0087] V O1 =|S1|-|S2|+0.221×|S1|×|S2|×(|S1|-|S2|) (13)

[0088]

[0089]

[0090]

[0091] The theoretical limit errors of the subdivision angles for the four methods mentioned above are 0.1235°, 0.0112°, 0.1935° and 0.0783°, respectively.

[0092] It is evident that the subdivision method proposed in this invention, which is based on the combination of three operations of orthogonal signals for correction, has the smallest theoretical limit error in subdivision angle and thus has better practical accuracy.

[0093] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A photoelectric encoder subdivision method based on a combination of three operations of orthogonal signals for correction, characterized in that, including the following steps: A. The incremental photoelectric encoder outputs two orthogonal sine and cosine signals with the same amplitude after passing through a differential amplifier circuit. S A = a sin( i ), S B = a cos( i For two quadrature signals A and B, S A , S B After amplitude normalization, the result is S 1=sin( i ), S 2 = cos( i ); B. S 1. S 2. Take the absolute value of each and subtract them. V 1. Subtraction and addition V 2 and subtraction, multiplication, and addition V 3 has three combined operations; C. Construct an angle linear matching correction function using the linear matching of 1st, 3rd, and 5th order Fourier series. V ; D. From orthogonal signals judge i Determine the quadrant coefficient of the angle. d ; E. According to different quadrants and V Different linear relationships determine the subdivision angle i To achieve linear subdivision of the encoder signal: F 、 Calculate the subdivision angle i Corresponding encoder angle i D ; Step C, specifically, involves combining... Using combined correction coefficients k 1 = 1.0213, k 2 = 0.12905, k 3 = -0.1502 Calculate the angle linear matching correction function V : (6); Step D, specifically, involves using orthogonal signals... S 1. S 2. Determine the quadrant in which the angle lies and determine the quadrant coefficient. d : (7); Step E, specifically, involves, according to the function V Determine the subdivision angle i : (8)。 2. The photoelectric encoder subdivision method based on a combination of three operations of orthogonal signals for correction according to claim 1, characterized in that, Step A specifically involves processing the two orthogonal sine and cosine signals A and B. S A , S B Amplitude normalization is performed to obtain two signals with an amplitude of 1. S 1. S 2: (1) (2)。 3. The photoelectric encoder subdivision method based on a combination of three operations of orthogonal signals for correction according to claim 1, characterized in that, Step B, specifically, involves... S 1. S 2. It is absolutely worth it | S 1|、| S 2|, and perform the following 3 operations to construct V 1. V 2 and V 3: (3) (4) (5)。 4. The photoelectric encoder subdivision method based on a combination of three operations of orthogonal signals for correction according to claim 1, characterized in that, Step F: Calculate the subdivision angle i Corresponding encoder angle i D : (9); in, i 0= Rotate the encoder grating code disk by an angle corresponding to one grating pitch; m This represents the number of grating lines in the photoelectric encoder.

5. The photoelectric encoder subdivision method based on the combination of three operations of orthogonal signals for correction according to claim 1, characterized in that: A / D circuit pair S A , S B After sampling, the subdivision angle is completed in the FPGA. i D Calculation; simultaneously, the shaping circuit converts the two orthogonal signals into... S A , S B Shaped into a square wave signal Q A , Q B In the FPGA, direction determination and counting calculations are performed to obtain the rotation direction and the whole-pitch rotation angle. i R ; i D and i R The sum of the two is the measured angle + / - ( i D + i R The encoder rotation angle is measured by sending the data to the host computer via the communication module.

6. The photoelectric encoder subdivision method based on a combination of three operations of orthogonal signals for correction according to claim 5, characterized in that, Full gate pitch rotation angle i R Calculation steps: a. Determine the direction of rotation: based on Q A , Q B Is the time interval between rising edges greater than Q A or Q B Use half a cycle to determine the direction of rotation; b. Counting: During the rotation of the encoder disk, the counting... Q A or Q B The rising edge is used to count the number of grid pitches rotated by the code disk. n ; c. Calculate the angle i R : i R= nth 0 (10)。

Citation Information

Patent Citations

  • Sine signal and cosine signal processing method and system

    CN108375391A

  • Moire fringe signal subdivision method

    CN113587963A