Rotation angle detection device

The rotation angle detection device corrects electrical signals using an approximate ellipse found via the least squares method to enhance accuracy, addressing errors from harmonics and noise, thereby improving detection precision.

JP2024155430AInactive Publication Date: 2024-10-31JTEKT CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023070133
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2024-10-31
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing rotation angle detection devices suffer from errors in angle calculation due to harmonics or noise superimposed on sine wave signals, leading to inaccurate Lissajous curves and subsequent correction errors, which affect the detection accuracy.

Method used

A rotation angle detection device that uses a sensor to generate two electrical signals with different phases, and a processing circuit to find an approximate ellipse using the least squares method to correct these signals, thereby improving accuracy.

Benefits of technology

The device achieves improved detection accuracy by minimizing the influence of harmonics and noise, allowing for precise calculation of the rotation angle through approximate ellipse correction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024155430000001_ABST
    Figure 2024155430000001_ABST
Patent Text Reader

Abstract

To provide a rotation angle detection device that can improve the detection accuracy of a rotation angle.SOLUTION: A rotation angle detection device 10 includes a magnetic sensor 12 and a processing circuit 20. The magnetic sensor 12 generates a first electrical signal S1 and a second electrical signal S2 with different phases in response to the rotation of a rotating body. The processing circuit 20 calculates a rotation angle Θ of the rotating body on the basis of the first electrical signal S1 and the second electrical signal S2 generated by the magnetic sensor 12. The processing circuit 20 determines an approximate ellipse that most closely approximates the Lissajous curve represented by the first electrical signal S1 and the second electrical signal S2 by means of the least square method. The processing circuit 20 is configured to correct the first electrical signal S1 and the second electrical signal S2 on the basis of the determined approximate ellipse.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a rotation angle detection device. [Background technology]

[0002] Conventionally, rotation angle detection devices that detect the rotation angle of a detection target are known. It is required for the rotation angle detection device to ensure detection accuracy. For example, an interpolation device in Patent Document 1 captures two-phase sine wave signals output from an encoder. The interpolation device performs offset correction to correct the offset of the two-phase sine wave signals, amplitude correction to equalize the amplitude of the two-phase sine wave signals, and phase difference correction to correct an error in the phase difference between the two-phase sine wave signals.

[0003] When performing offset correction, the interpolation device converts a sine wave signal into a digital signal. The interpolation device performs offset correction using an offset value obtained based on the maximum and minimum values ​​of the digital signal. When performing amplitude correction, the interpolation device obtains an amplitude value of the digital signal based on the maximum and minimum values ​​of the digital signal. The interpolation device performs amplitude correction using an amplitude ratio calculated from the amplitude values ​​of the two-phase digital signals.

[0004] The interpolation device performs phase difference correction by converting the coordinate values ​​of the Lissajous curve represented by the two-phase sinusoidal signals into coordinate values ​​rotated 45° counterclockwise, thereby generating two-phase correction signals that depict the Lissajous curve rotated 45° counterclockwise. An amplitude deviation occurs in the two-phase correction signals after the phase difference correction. For this reason, the interpolation device performs amplitude correction again on the two-phase correction signals. As a result, the Lissajous curve represented by the two-phase correction signals ideally becomes a perfect circle. In other words, two-phase correction signals that have been offset corrected, amplitude corrected, and phase difference corrected are obtained. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2017-151061 A Summary of the Invention [Problem to be solved by the invention]

[0006] For example, harmonics or noise may be superimposed on the actually detected sine wave signal. In this case, the actual Lissajous curve represented by the two-phase sine wave signal does not become a neat ellipse represented by a single curve. The interpolation device of Patent Document 1 converts the sine wave signal into a digital signal and performs offset correction and amplitude correction based on the maximum and minimum values ​​of the converted digital signal. Since the maximum and minimum values ​​of the digital signal contain errors, the correction signal obtained through offset correction, amplitude correction, and phase difference correction also contains errors. Therefore, the angle calculated based on the correction signal may still contain errors. [Means for solving the problem]

[0007] A rotation angle detection device that can solve the above problem includes a sensor that generates two electrical signals with different phases according to the rotation of a rotating body, and a processing circuit that calculates the rotation angle of the rotating body based on the two electrical signals generated by the sensor. The processing circuit is configured to obtain an approximation ellipse that is most approximate to a Lissajous curve represented by the two electrical signals by a least squares method, and to correct the two electrical signals based on the obtained approximation ellipse.

[0008] According to this configuration, the approximation ellipse that is most similar to the Lissajous curve represented by the two electrical signals is found by the least squares method, so there is little influence from harmonics or noise. Therefore, a more accurate rotation angle can be obtained by calculating the rotation angle of the rotor based on the two corrected electrical signals that have been corrected based on the approximation ellipse. This improves the detection accuracy of the rotation angle.

[0009] In the above rotation angle detection device, the processing circuit is configured to execute a first process of calculating variables of an equation obtained by rearranging a general equation for an ellipse and replacing unknown parts with variables, and a second process of calculating the center coordinates, semimajor axis, semiminor axis, and inclination of the approximate ellipse using the variables calculated through the first process.

[0010] According to this configuration, the approximation ellipse can be obtained by executing the first process and the second process. In the above rotation angle detection device, the processing circuit is configured to acquire the two corrected electrical signals based on a general equation for an ellipse into which the center coordinates, major axis, minor axis, and inclination of the approximation ellipse are substituted.

[0011] According to this configuration, two corrected electrical signals can be obtained simply by substituting the center coordinates, the major axis, the minor axis, and the inclination of the approximate ellipse into the general formula for the ellipse. In the above rotation angle detection device, the rotating body is a shaft.

[0012] According to this configuration, the detection accuracy of the rotation angle of the shaft can be improved. The rotation angle detection device includes a bias magnet fixed to the end of the shaft, and a magnetic sensor facing the bias magnet in the axial direction.

[0013] According to this configuration, the magnetic sensor generates two electrical signals with different phases in response to a change in the magnetic field of the bias magnet. The processing circuit can calculate the rotation angle of the rotor using the two electrical signals generated by the magnetic sensor. Effect of the Invention

[0014] According to the rotation angle detection device of the present invention, the detection accuracy of the rotation angle can be improved. [Brief description of the drawings]

[0015] [Figure 1]1 is a perspective view of a rotation angle detection device according to an embodiment; [Diagram 2] FIG. 2 is a block diagram of a processing circuit according to an embodiment. [Diagram 3] 4 is a graph showing an example of a Lissajous curve represented by a first electrical signal before correction and a second electrical signal before correction according to an embodiment. [Figure 4] 1 is a graph of an ellipse for explaining a general formula of an ellipse. [Diagram 5] 11 is a graph showing an example of a Lissajous curve represented by a corrected first electrical signal and a corrected second electrical signal according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] An embodiment of a rotation angle detection device will be described below. As shown in Fig. 1, the rotation angle detection device 10 has a bias magnet 11 and a magnetic sensor 12. The bias magnet 11 is fixed to an end of a shaft 13. The magnetic sensor 12 is provided on a substrate 14. The magnetic sensor 12 faces the bias magnet 11 in the direction of the axis O of the shaft 13. The shaft 13 is a rotating body and is an object to be detected by the rotation angle detection device 10.

[0017] The bias magnet 11 is a columnar body having a circular cross section, and is a two-pole magnet with a north pole and a south pole magnetized in the radial direction. The bias magnet 11 applies a bias magnetic field to the magnetic sensor 12 in the direction indicated by the solid arrow A1 from the north pole to the south pole. For example, when the shaft 13 rotates by an angle "Θ" from the position in FIG. 1 in the direction indicated by the arrow A2, the bias magnet 11 also rotates by an angle "Θ" in the direction indicated by the arrow A2. As a result, the direction of the bias magnetic field applied to the magnetic sensor 12 changes from the direction indicated by the solid arrow A1 to the direction indicated by the two-dot chain arrow A3 rotated by an angle "Θ" around the axis O. In this way, the direction of the magnetic field applied to the magnetic sensor 12 changes according to the rotation angle Θ of the shaft 13.

[0018] The magnetic sensor 12 is, for example, an MR sensor using an MR (Magneto Resistive) element. The magnetic sensor 12 detects the direction of the bias magnetic field applied from the bias magnet 11, and generates a first electric signal S1 and a second electric signal S2 according to the direction of the detected bias magnetic field. The first electric signal S1 is a sine signal that changes sinusoidally with respect to the rotation angle Θ of the shaft 13. The second electric signal is a cosine signal that is 90° out of phase with respect to the first electric signal S1. The amplitude of the first electric signal S1 is the same as the amplitude of the second electric signal S2.

[0019] <Processing circuit> 2, the rotation angle detection device 10 has a processing circuit 20. The processing circuit 20 is provided on a substrate 14. The processing circuit 20 is a processing circuit including any one of the following three configurations (a), (b), and (c).

[0020] (a) One or more processors that operate according to a computer program that is software. The processor includes a CPU (Central Processing Unit) and a memory. (b) One or more dedicated hardware circuits, such as an application specific integrated circuit (ASIC), that perform at least some of the processes. The ASIC includes a CPU and a memory.

[0021] (c) A hardware circuit combining configurations (a) and (b). The memory is a computer-readable medium that stores a program that describes processes or instructions for the computer. The memory includes a RAM (Random Access Memory) and a ROM (Read Only Memory). In this embodiment, the computer is a CPU. The CPU executes various processes by executing the programs stored in the memory at a predetermined calculation cycle.

[0022] The processing circuit 20 captures the first electric signal S1 and the second electric signal S2 generated by the magnetic sensor 12 at a predetermined sampling period. For example, the processing circuit 20 detects the rotation angle Θ of the shaft 13 by calculating the arctangent of the first electric signal S1 and the second electric signal S2 ("Θ=Arctan(S1 / S2)"). This rotation angle Θ is an angle in the range from 0° to 360°.

[0023] However, the processing circuit 20 may detect multiple rotations of the shaft 13 exceeding 360°. The processing circuit 20, for example, counts the number of periods of the first electric signal S1 and the second electric signal S2. The number of periods is an integer value indicating which period of the first electric signal S1 and the second electric signal S2, that is, how many times the detection range (one period) of the magnetic sensor 12 is repeated. The processing circuit 20 detects the rotation angle Θ exceeding 360° of the shaft 13 based on the rotation angle Θ within 360° obtained from the arctangent and the number of periods of the first electric signal S1 and the second electric signal S2.

[0024] <Detection accuracy of rotation angle Θ> When the first electrical signal S1 and the second electrical signal S2 are ideal electrical signals without error, the Lissajous curve is a perfect circle. The Lissajous curve is obtained by plotting the coordinates (cosΘ, sinΘ) of the pair of the first electrical signal S1 and the second electrical signal S2 in an orthogonal coordinate system of cosΘ and sinΘ. However, it is difficult to remove all errors from the actual first electrical signal S1 and the second electrical signal S2. For this reason, in reality, the Lissajous curve is an ellipse and not a perfect circle. The errors are, for example, offset, amplitude error, and phase difference error.

[0025] Based on this premise, the following concerns exist regarding the rotation angle detection device 10. That is, for example, harmonics or noise may be superimposed on the first electrical signal S1 and the second electrical signal S2. In this case, the Lissajous curve represented by the first electrical signal S1 and the second electrical signal S2 will have the following shape.

[0026] 3, the Lissajous curve R1 is, for example, an ellipse whose major axis is inclined by about 45° with respect to the coordinate axes. However, the ellipse is not a neat ellipse represented by a single curve, but an ellipse having a portion that varies greatly in the radial direction.

[0027] There is a concern that the use of the first electrical signal S1 and the second electrical signal S2 on which such harmonics or noise are superimposed may reduce the detection accuracy of the rotation angle Θ. Therefore, in this embodiment, the processing circuit 20 has the following configuration.

[0028] <Processing circuit 20> As shown in FIG. 2, the processing circuit 20 includes a correction processing unit 21 and an angle calculation unit 22.

[0029] The correction processing unit 21 executes the correction process. The correction process is a process for correcting the first electric signal S1 and the second electric signal S2 on which harmonics or noise are superimposed. For example, the correction processing unit 21 approximates the actual Lissajous curve R1 on which harmonics or noise are superimposed to a general formula of an ellipse using the least squares method. The correction processing unit 21 calculates the center coordinates of the ellipse, the inclination of the ellipse, the major axis of the ellipse, and the minor axis of the ellipse using the coefficients of the approximation formula. The correction processing unit 21 acquires the corrected first electric signal S11 and the corrected second electric signal S12 from the general formula of the ellipse into which the center coordinates, the inclination, the major axis, and the minor axis of the ellipse are substituted.

[0030] The angle calculation unit 22 takes in the corrected first electric signal S11 and the corrected second electric signal S12 calculated by the correction processing unit 21 at a predetermined sampling period. The angle calculation unit 22 calculates the arctangent of the corrected first electric signal S11 and the corrected second electric signal S12 to calculate the rotation angle Θ of the shaft 13. Depending on the product specifications, the angle calculation unit 22 detects the rotation angle Θ of the shaft 13 exceeding 360° based on the rotation angle Θ within 360° obtained from the previous arctangent and the number of periods of the corrected first electric signal S11 and the corrected second electric signal S12.

[0031] <Correction process procedure> Next, the procedure of the correction process executed by the correction processing unit 21 will be described in detail. As shown in Figure 4, when the coordinates of the center of an ellipse are (X0, Y0), the semi-major axis of the ellipse is "a", the semi-minor axis of the ellipse is "b", and the inclination of the ellipse is "θ", the general formula is expressed by the following Equation 1. The center is the intersection of the major and minor axes. The semi-major axis is the length of the two line segments that divide the major axis at its center. The semi-minor axis is the length of the two line segments that divide the minor axis at its center.

[0032]

number

[0033] However, "X i " is the X coordinate of the ellipse, "Y i " is the Y coordinate of the ellipse. Expanding equation 1, we get the X coordinate X i and the Y coordinate Y i By rearranging with respect to and replacing the unknowns with variables and further rearranging, we obtain the following Equation 2.

[0034]

number

[0035] Where "A", "B", "C", "D", and "E" are variables. The values ​​of variables A to E should be determined so that the sum of the squares of Equation 2 is minimized. The sum of the ellipses is expressed by the following Equation 3.

[0036]

number

[0037] When Equation 3 is partially differentiated with respect to variables A through E and expressed as a matrix, the following Equation 4 is obtained.

[0038]

number

[0039] The correction processing unit 21 calculates variables A to E using Equation 4. i The value of the first electrical signal S1 before correction is substituted into , and the Y coordinate Y i The correction processing unit 21 then substitutes the value of the second electrical signal S2 before correction into the value of the variables A to E. As a result, the correction processing unit 21 acquires the values ​​of the variables A to E. The correction processing unit 21 stores the acquired variables A to E in memory. After completing the calculation of the variables A to E, the correction processing unit 21 erases the value of the first electrical signal S1 before correction and the value of the second electrical signal S2 before correction that are temporarily stored in the memory.

[0040] Next, using the variables A to E, the correction processing unit 21 calculates the coordinates (X0, Y0) of the center of the ellipse, the major radius a of the ellipse, the minor radius b of the ellipse, and the inclination θ of the ellipse. The correction processing unit 21 calculates the coordinates (X0, Y0) of the center of the ellipse using the following formula 5.

[0041]

number

[0042] The correction processing unit 21 calculates the inclination θ of the ellipse using the following formula 6.

[0043]

number

[0044] The correction processing unit 21 calculates the semimajor axis a of the ellipse using the following formula 7.

[0045]

number

[0046] The correction processing unit 21 calculates the minor radius b of the ellipse using the following formula 8.

[0047]

number

[0048] The correction processing unit 21 applies the coordinates (X0, Y0) of the center of the ellipse to be calculated, the inclination θ of the ellipse, the major axis a of the ellipse, and the minor axis b of the ellipse to the above-mentioned formula 1. In addition, the correction processing unit 21 applies the value of the first electric signal S1 before correction, which is taken in at a predetermined sampling period, to the X coordinate X i and the value of the second electrical signal S2 before correction captured at a predetermined sampling period is substituted into the Y coordinate Y i Assign to .

[0049] Point on the ellipse (X i ,Y i ) is expressed by the following formula 9 and formula 10. That is, the point (X i ,Y i ) is expressed as a pair of the formula in parentheses of the first term on the left side of Equation 1 and the formula in parentheses of the second term on the left side of Equation 1.

[0050]

number

[0051]

number

[0052] Therefore, the correction processing unit 21 obtains the calculation result of the formula 9 as the value of the corrected second electrical signal S12. Also, the correction processing unit 21 obtains the calculation result of the formula 10 as the value of the corrected first electrical signal S11.

[0053] With the above, the correction processing by the correction processing unit 21 is completed. As shown in Fig. 5, the Lissajous curve R2 represented by the first electric signal S11 after correction and the second electric signal S12 after correction is an approximate ellipse that is most similar to the Lissajous curve R1 represented by the first electric signal S1 before correction and the second electric signal S2 before correction. The Lissajous curve R2 is a beautiful ellipse represented by a single curve. However, in Fig. 5, the scale of the graph is slightly adjusted so that the Lissajous curve R2 looks like an ellipse. That is, in reality, the Lissajous curve R2 is almost a perfect circle.

[0054] <Effects of the embodiment> This embodiment provides the following advantages. (1) The processing circuit 20 uses the least squares method to find an approximation ellipse that is most similar to the Lissajous curve R1 represented by the uncorrected first electrical signal S1 and the uncorrected second electrical signal S2, and corrects the first electrical signal S1 and the second electrical signal S2 based on the found approximation ellipse.

[0055] According to this configuration, the approximation ellipse that is most similar to the Lissajous curve R1 represented by the uncorrected first electrical signal S1 and the uncorrected second electrical signal S2 is found by the least squares method, so that the influence of harmonics or noise is small. Therefore, by calculating the rotation angle Θ based on the corrected first electrical signal S11 corrected based on the approximation ellipse and the corrected second electrical signal S12, a more accurate rotation angle Θ can be obtained. Therefore, the detection accuracy of the rotation angle Θ can be improved.

[0056] (2) The processing circuit 20 can collectively process three stages of correction, namely, amplitude correction, offset correction, and phase difference correction, for the first electric signal S1 before correction and the second electric signal S2 before correction, by approximating the Lissajous curve R1 represented by the first electric signal S1 before correction and the second electric signal S2 before correction to a general formula of an ellipse. Approximating the Lissajous curve R1 to the general formula of an ellipse is synonymous with finding an approximation ellipse that is most approximate to the Lissajous curve R1 before correction by the least squares method.

[0057] (3) The processing circuit 20 executes a first process and a second process. The first process is a process for calculating variables A to E of Equation 2 obtained by replacing unknown parts with variables A to E when rearranging the general formula for an ellipse. The second process is a process for calculating the center coordinates (X0, Y0), semimajor axis a, semiminor axis b, and inclination θ of the approximated ellipse using variables A to E calculated through the first process. With this configuration, it is possible to obtain an approximated ellipse by executing the first process and the second process.

[0058] (4) The processing circuit 20 acquires the corrected first electrical signal S11 and the corrected second electrical signal S12 based on the general formula of the ellipse into which the center coordinates (X0, Y0), the major axis a, the minor axis b, and the inclination θ of the approximate ellipse are substituted. Specifically, the processing circuit 20 acquires the calculation result of the above-mentioned formula 9 as the value of the corrected second electrical signal S12, and acquires the calculation result of formula 10 as the value of the corrected first electrical signal S11. Formula 9 is the formula in parentheses of the first term on the left side of formula 1. Formula 10 is the formula in parentheses of the second term on the left side of formula 1. According to this configuration, the corrected first electrical signal S11 and the corrected second electrical signal S12 can be acquired simply by substituting the center coordinates, major axis, minor axis, and inclination of the approximate ellipse into the general formula of the ellipse.

[0059] (5) There is no need to perform filtering to suppress the effects of harmonics or noise superimposed on the first electrical signal S1 and the second electrical signal S2, which reduces the computational load on the processing circuit 20.

[0060] (6) The rotation angle detection device 10 detects the rotation angle Θ of the shaft 13. According to the rotation angle detection device 10, the detection accuracy of the rotation angle Θ of the shaft 13 can be improved. (7) The rotation angle detection device 10 has a bias magnet 11 fixed to an end of a shaft 13, and a magnetic sensor 12 axially facing the bias magnet 11. According to this configuration, the magnetic sensor 12 generates a first electric signal S1 and a second electric signal S2 having different phases from each other in response to a change in the magnetic field of the bias magnet 11. The processing circuit 20 can calculate the rotation angle Θ of the shaft 13 using the first electric signal S1 and the second electric signal S2 generated by the magnetic sensor 12.

[0061] <Other embodiments> This embodiment may be modified as follows. The magnetic sensor 12 may be a TMR sensor using a TMR (Tunnel Magneto Resistance) element, an AMR sensor using an AMR (Anisotropic Magneto Resistance) element, or a GMR sensor using a GMR (Giant Magneto Resistive) element. The magnetic sensor 12 may also be, for example, an electromagnetic induction resolver. Any sensor may be used as long as it generates a sine signal and a cosine signal in response to the rotation of the shaft 13.

[0062] Instead of the magnetic sensor, an optical sensor may be used. Any sensor that generates a sine signal and a cosine signal in response to the rotation of the shaft 13 may be used. The shaft 13 can be used as a rotating part of various mechanical devices. The shaft 13 may be, for example, an output shaft of a motor. The motor may be an assist motor that generates an assist force applied to a steering mechanism of a vehicle. The motor may be a reaction motor that generates a steering reaction force applied to a steering wheel, or a steering motor that generates a steering force applied to a steering shaft of a vehicle.

[0063] The detection target of the rotation angle detection device 10 is not limited to the shaft 13. The device can be applied to detection of the rotation angle of various rotating parts. The rotating part is a rotating body. [Explanation of symbols]

[0064] 10...Rotation angle detection device 11...Bias magnet 12...Magnetic sensor (sensor) 13...Shaft (rotating body) 20...Processing circuit

Claims

1. A sensor that generates two electrical signals with different phases in response to rotation of a rotating body; a processing circuit that calculates a rotation angle of the rotating body based on the two electrical signals generated by the sensors, The processing circuit is configured to use a least squares method to find an approximation ellipse that is most similar to the Lissajous curve represented by the two electrical signals, and to correct the two electrical signals based on the found approximation ellipse.

2. The processing circuit performs a first process of calculating variables of an equation obtained by replacing an unknown part of a general equation of an ellipse with a variable when the general equation of an ellipse is rearranged; 2. The rotation angle detection device according to claim 1, configured to execute a second process of calculating a center coordinate, a major axis, a minor axis, and a tilt of the approximation ellipse by using the variables calculated through the first process.

3. 3. The rotation angle detection device according to claim 1, wherein the processing circuit is configured to acquire the two corrected electrical signals based on a general equation for an ellipse into which the center coordinates, the major axis, the minor axis, and the inclination of the approximation ellipse are substituted.

4. 3. The rotation angle detection device according to claim 1, wherein the rotating body is a shaft.

5. a bias magnet secured to an end of the shaft; 5. The rotation angle detection device according to claim 4, further comprising a magnetic sensor facing the bias magnet in the axial direction.

Citation Information

Patent Citations

  • Interpolation method and interpolation device

    JP2017151061A