The disclosure of Japanese Patent Applications No. 2011-051637 filed on Mar. 9, 2011 including the specification, drawings and abstract, is incorporated herein by reference in its entirety.
1. Field of the Invention
The invention relates to a rotation angle detection apparatus that detects a rotation angle of a rotor.
2. Description of Related Art
A brushless motor that is used in, for example, an electric power steering system is controlled by supplying currents to stator coils in accordance with the rotation angle of a rotor. For example, rotation angle detection apparatuses, such as the one illustrated in
The arrow in
If the amplitudes A1 and A2 are both regarded as a prescribed value A, or if the first and second output signals V1 and V2 are normalized such that the amplitudes A 1 and A2 both become the prescribed value A, the first output signal V1, which is one of the two output signals, is expressed as V1=A·sin θ, and the second output signal V2, which is the other of the two output signals, is expressed as V2=A·cos θ. Further, if A is 1, the first output signal V1 is expressed as V1=sin θ and the second output signal V2 is expressed as V2=cos θ. Thus, for simpler descriptions, the first output signal V1 of the first magnetic sensor 11 and the second output signal V2 of the second magnetic sensor 12 will be expressed as V1=sin θ and V2=cos θ, respectively.
The rotation angle θ of the rotor 1 is determined using the first and second output signals V1 and V2, according to, for example, Equation 1 shown below.
In the conventional rotation angle detection apparatus as described above, if the gap between the first magnetic sensor 11 and the rotor 1 and the gap between the second magnetic sensor 12 and the rotor 1 are small, third harmonic components are superimposed on the first output signal V1 of the first magnetic sensor 11 and the second output signal V2 of the second magnetic sensor 12, causing distortion of the waveforms of the first and second output signals V1 and V2. For example, as shown in
It is an object of the invention to provide a rotation angle detection apparatus that is capable of accurately detecting the rotation angle of a rotor even if third harmonic components are superimposed on output signals of magnetic sensors.
An aspect of the invention relates to a rotation angle detection apparatus, including: a magnet that rotates as a rotor rotates, and that has multiple magnetic poles arranged in a circumferential direction of the magnet; a first magnetic sensor that outputs, as the magnet rotates, a sinusoidal signal on which a third harmonic component is superimposed; a second magnetic sensor that outputs, as the magnet rotates, a sinusoidal signal on which a third harmonic component is superimposed and of which a phase is different from a phase of the sinusoidal signal output from the first magnetic sensor; a third harmonic component removing unit that corrects the sinusoidal signals output from the first magnetic sensor and the second magnetic sensor so as to remove the third harmonic components from the sinusoidal signals; and a rotation angle calculating unit that calculates a rotation angle of the rotor based on the sinusoidal signals corrected by the third harmonic component removing unit. The third harmonic component removing unit includes: a unit that calculates a post-correction signal V1a of the sinusoidal signal output from the first magnetic sensor according to an equation a; and a unit that calculates a post-correction signal V2a of the sinusoidal signal output from the second magnetic sensor according to an equation b.
In the equation a and the equation b, K is a third harmonic component gain that is larger than zero but smaller than 1 (0<K<1), V1 is the sinusoidal signal output from the first magnetic sensor, V1a is the post-correction signal that is obtained by correcting the output signal V1 using the third harmonic component removing unit, V1b is a pre-correction signal that is the output signal V1 before correction, V2 is the sinusoidal signal output from the second magnetic sensor, V2a is the post-correction signal that is obtained by correcting the output signal V2 using the third harmonic component removing unit, and V2b is a pre-correction signal that is the output signal V2 before correction.
The foregoing and further features and advantages of the invention will become apparent from the following description of example embodiments with reference to the accompanying drawings, wherein like numerals are used to represent like elements and wherein:
In the following, an example embodiment of the invention will be described in detail with reference to the accompanying drawings. In the example embodiment, the invention is applied to a rotation angle detection apparatus that detects the rotation angle of a rotor of a brushless motor.
There are provided two magnetic sensors 11 and 12 which are opposed to an annular end face of the magnet 2, which is a part of one of end faces of the rotor 1, orthogonal to the rotation axis of the rotor 1. The magnetic sensors 11 and 12 are arranged so as to be apart from each other at an angular interval of 90° (electric angle) about the rotation axis of the rotor 1. These magnetic sensors 11 and 12 may each be, for example, a magnetic sensor that includes an element of which the electric characteristics change under the influence of a magnetic field, such as a Hall element and a magnetoresistance element (MR element). It is to be noted that one of the two magnetic sensors will be referred to as “the first magnetic sensor 11” where necessary, while the other of the two magnetic sensors will be referred to as “the second magnetic sensor 12” where necessary.
The arrow in
In this example embodiment, because the gap between the first magnetic sensor 11 and the magnet 2 and the gap between the second magnetic sensor 12 and the magnet 2 are small, third harmonic components are superimposed on the first output signal V1 of the first magnetic sensor 11 and the second output signal V2 of the second magnetic sensor 12. Therefore, in this example embodiment, the first output signal V1 expressed as Equation 2 below is output from the first magnetic sensor 11 and the second output signal V2 expressed as Equation 3 below is output from the second magnetic sensor 12. It is to be noted that K in Equations 3 and 3 below represents a gain K (0<K<1) of third harmonic components.
The first output signal V1 and the second output signal V2 are input into a rotation angle calculation unit 20. The rotation angle calculation unit 20 calculates the rotation angle θ of the rotor 1 based on the first output signal V1 and the second output signal V2. The rotation angle calculation unit 20 is constituted of, for example, a microcomputer including a CPU (Central Processing Unit) and memories, such as a ROM (Read Only Memory) and a RAM (Random Access Memory). The rotation angle calculation unit 20 serves as multiple function processing portions (elements) when the CPU executes given programs stored in the ROM. The multiple function processing portions (elements) include a first third harmonic component removing portion 21 (an example of “third harmonic component removing unit”), a second third harmonic component removing portion 22 (another example of “third harmonic component removing unit”), and a rotation angle calculation portion 23 (an example of “rotation angle calculating unit”).
The first third harmonic component removing portion 21 corrects the first output signal V1 so as to remove the third harmonic components from the first output signal V1. More specifically, at this time, the first third harmonic component removing portion 21 calculates an approximate value (sin θ)n of a signal sin θ that is the first output signal V1 of the first magnetic sensor 11 from which the third harmonic components have been removed. The second third harmonic component removing portion 22 corrects the second output signal V2 so as to remove the third harmonic components from the second output signal V2. More specifically, the second third harmonic component removing portion 22 calculates an approximate value (cos θ)n of a signal cos θ that is the second output signal V2 of the second magnetic sensor 12 from which the third harmonic components have been removed.
The rotation angle calculation portion 23 calculates the rotation angle θ of the rotor 1 based on the approximate value (sin θ)n of the signal sin θ, which has been calculated by the first third harmonic component removing portion 21, and the approximate value (cos θ)n of the signal cos θ, which has been calculated by the second third harmonic component removing portion 22. More specifically, the rotation angle calculation portion 23 calculates the rotation angle θ of the rotor 1 based on Equation 4 shown below.
θ=tan−1 {(sin θ)n/(cos θ)n} Equation 4
In the following, the processings executed by the first third harmonic component removing portion 21 and the second third harmonic component removing portion 22 will be described.
First, the processing executed by the first third harmonic component removing portion 21 will be described. Equation 5 shown below is obtained by transforming Equation 2.
Equation 6 is a set of equations that are used to calculate, based on Equation 5, the approximate value (sin θ)n of the signal sin θ that is the first output signal V1 of the first magnetic sensor 11 from which the third harmonic components have been removed.
As shown in Equation 6 above, an approximate value (sin θ)1 of sin θ in the first calculation cycle is calculated using the first output signal V1 of the first magnetic sensor 11 as sin θ in the term (1−sin2 θ) in the right side of Equation 5. Further, the approximate value (sin θ)2 of sin θ in the second calculation cycle is calculated using the approximate value (sin θ) of sin θ calculated in the first calculation cycle as sin θ in the term (1−sin2 θ) in the right side of Equation 5. That is, if the number of calculation cycles is n (n is an integer that is equal to or larger than 1), the approximate value (sin θ)n of sin θ calculated in each of the second calculation cycle and the following calculation cycles is calculated using an approximate value (sin θ)n-1 of sin θ calculated in the immediately preceding calculation cycle as sin θ in the term (1−sin2 θ) in the right side of Equation 5. It is to be noted that the larger the calculation cycle number n, the higher the accuracy of the approximate value obtained.
The first third harmonic component removing portion 21 calculates a signal value (sin θ)n of sin θ in the nth calculation cycle by executing the calculation described above for n times. It is to be noted the calculation cycle number n may be set to any value. That is, n may one or may be two or more. In this example embodiment, the calculation cycle number n is set to 2 or 3. Next, the processing executed by the second third harmonic component removing portion 22 will be described.
Equation 7 is obtained by transforming Equation 3 shown above.
Equation 8 is used to calculate, based on Equation 7, the approximate value (cos θ)n of the signal cos θ that is the second output signal V2 of the second magnetic sensor 12 from which the third harmonic components have been removed.
As is known from Equation 8 shown above, an approximate value (cos θ)1 of the signal cos θ in the first calculation cycle is calculated using the second output signal V2 of the second magnetic sensor 12 as cos θ in the term (1−cos2 θ) in the right side of Equation 7. Further, an approximate value (cos θ)2 of cos θ in the second calculation cycle is calculated using the approximate value (cos θ)1 calculated in the first calculation cycle as cos θ in the term (1−cos2 θ) in the right side of Equation 7. That is, if the number of calculation cycles is n (n is an integer that is equal to or larger than 1), the approximate value (cos θ)n of cos θ calculated in each of the second calculation cycle and the following calculation cycles is calculated using an approximate value (cos θ)n-1 of cos θ calculated in the immediately preceding calculation cycle as cos θ in the term (1−cos2 θ) in the right side of Equation 7. It is to be noted that the larger the calculation cycle number n, the higher the accuracy of the approximate value obtained.
The second third harmonic component removing portion 22 calculates a signal value (cos θ)n in the nth calculation cycle by executing the calculation described above for n times. It is to be noted that the calculation cycle number n may be set to any value. That is, n may one, or may be two or more. In this example embodiment, the calculation cycle number n is set to 2 or 3.
Referring to the flowchart in
The rotation angle calculation portion 23 of the rotation angle calculation unit 20 calculates the rotation angle θ of the rotor 1 using the approximate value (sin θ)n of sin θ, which has been calculated by the first third harmonic component removing portion 21, and the approximate value (cos θ)n of cos θ, which has been calculated by the second third harmonic component removing portion 22, according to Equation 4 (step S3). Then, the present cycle of the rotation angle calculation routine is finished. According to this example embodiment, because the signal value that is the first output signal V1 of the first magnetic sensor 11 from which the third harmonic components have been removed and the signal value that is the second output signal V2 of the second magnetic sensor 12 from which the third harmonic components have been removed are approximately calculated, even if third harmonic components are superimposed on the first output signal V1 of the first magnetic sensor 11 and the second output signal V2 of the second magnetic sensor 12, the rotation angle of the rotor 1 is accurately calculated. In this way, even if the gap between the first magnetic sensor 11 and the magnet 2 and the gap between the second magnetic sensor 12 and the magnet 2 are small, the rotation angle of the rotor 1 is calculated with high accuracy. As a result, the gap between the first magnetic sensor 11 and the magnet 2 and the gap between the second magnetic sensor 12 and the magnet 2 are made smaller, which contributes to size reduction of a rotation angle detection apparatus.
While the example embodiment of the invention has been described above, the invention may be embodied in various other embodiments. For example, the method for calculating the rotation angle θ of the rotor 1 based on the approximate value (sin θ)n of sin θ and the approximate value (cos θ)n of cos θ is not limited to the above-described method using Equation 4. Further, if 4K/(1−K) in Equations 6 and 8 is regarded as a correction gain G, the correction gain G may either be constant or be calculated based on the approximate value (sin θ)n-1 of sin θ calculated in the immediately preceding calculation cycle and the approximate value (cos θ)n-1 of cos θ calculated in the immediately preceding calculation cycle. In this case, for example, the correction gain Gn that is used when the approximate values (sin θ)n and (cos θ)n in the nth calculation cycle are calculated may be calculated based on the approximate value (sin θ)n-1 of sin θ calculated in the (n−1)th calculation cycle and the approximate value (cos θ)n-1 of cos θ calculated in the (n−1)th calculation cycle. At this time, more specifically, the correction gain Gn may be calculated based on the value at the point which corresponds to the rotation angle θ of 45° and at which the sinusoidal curve of the approximate value (sin θ)n-1 of sin θ calculated in the (n−1)th calculation cycle and the sinusoidal curve of the approximate value (cos θ)n-1 of cos θ calculated in the (n−1)th calculation cycle intersect with each other.
Further, when the approximate value (sin θ) of sin θ calculated in the (n−1)th cycle and the approximate value (cos θ)n-1 of cos θ calculated in the (n−1)th cycle contain third harmonic components, (sin θ)n-12+(cos θ)n-12 is not 1 ((sin θ)n-12+(cos θ)n-12≠1). Therefore, the correction gain (4K/(1−K)) that is used when the approximate values (sin θ)n and (cos θ)n in the nth calculation cycle are calculated may be calculated according to Equation 9 shown below.
G
n
=G
n-1+α×[1−{(sin θ)n-12+(cos θ)n-12}] Equation 9
In Equation 9 above, Gn is the correction gain that is used in the nth approximate value calculation cycle, and Gn-1 is the correction gain that is used in the (n−1)th approximate value calculation cycle, and α is a predetermined constant.
As described above, by adjusting the correction gain G, it is possible to cope with a change in time in the gap between the first magnetic sensor 11 and the magnet 2, a change in time in the gap between the second magnetic sensor 12 and the magnet 2, and individual differences among products (rotation angle detection apparatuses). As a result, it is possible to calculate the rotation angle of the rotor 1 with high accuracy.
In the example embodiment described above, the first magnetic sensor 11 and the second magnetic sensor 12 are arranged so as to be apart from each other at an angular interval (electric angle) of 90° about the rotation axis of the rotor 1. However, the angular interval between the first magnetic sensor 11 and the second magnetic sensor 12 is not limited 90°. That is, the angular interval may be set to any desired angle (electric angle), for example, 120°. Hereinafter, description will be made on the processings that are executed by the first third harmonic component removing portion 21 and the second third harmonic component removing portion 22 when the first magnetic sensor 11 and the second magnetic sensor 12 are arranged so as to be apart from each other at a desired angular interval. If K (0<K<1) is a gain of third harmonic components, the output signal of the first magnetic sensor 11 is the first output signal V1, the signal obtained by correcting the first output signal V1 using the first third harmonic component removing portion 21 is V1a, and the first output signal V1 before correction is V1b, the first third harmonic component removing portion 21 calculates the corrected signal V1a according to Equation 10 shown below. Further, if the output signal of the second magnetic sensor 12 is the second output signal V2, the signal obtained by correcting the second output signal V2 using the second third harmonic component removing portion 22 is V2a, and the second output signal V2 before correction is V2b, the second third harmonic component removing portion 22 calculates the corrected signal V2a according to Equation 11 shown below.
While the example embodiment where the invention is applied to an apparatus that detects the rotation angle of a rotor of a brushless motor has been described, the applications of the invention are not limit to such an apparatus. That is, for example, the invention may be applied also to an apparatus that detects the rotation angle of a rotor other than a rotor of a brushless motor. Further, while the magnet of the rotor 1 has a pair of magnetic poles in the foregoing example embodiment, the rotor 1 may have two or more pairs of magnetic poles.
The invention has been described with reference to the example embodiment for illustrative purposes only. It should be understood that the description is not intended to be exhaustive or to limit form of the invention and that the invention may be adapted for use in other systems and applications. The scope of the invention embraces various modifications and equivalent arrangements that may be conceived by one skilled in the art.
Number | Date | Country | Kind |
---|---|---|---|
JP2011-051637 | Mar 2011 | JP | national |