ANGLE SENSOR AND ANGLE SENSOR SYSTEM
20170370747 · 2017-12-28
Assignee
Inventors
Cpc classification
G01D5/145
PHYSICS
International classification
Abstract
An angle sensor includes a first to a fourth detection unit and an angle detection unit. Each of the first to the fourth detection unit generates two detection signals. The first to the fourth detection unit are arranged in a positional relationship that establishes predetermined phase relationships among the detection signals they generate. The angle detection unit performs operations using the detection signals to generate a first and a second signal in which an error component corresponding to a fifth or higher-order harmonic and an error component corresponding to a harmonic of the order other than the fifth order are lower than those in the detection signals. The angle detection unit then calculates a detected angle value on the basis of the first and the second signal.
Claims
1. An angle sensor for generating a detected angle value, the detected angle value having a correspondence with an angle that a direction of a rotating magnetic field in a reference position forms with respect to a reference direction, the angle sensor comprising: a first detection unit; a second detection unit; and an angle detection unit, wherein the first detection unit includes a first and a second detection signal generation unit for generating a first and a second detection signal, respectively, each of the first and the second detection signal having a correspondence with an angle that the direction of the rotating magnetic field in a first position forms with respect to a first direction, the second detection unit includes a third and a fourth detection signal generation unit for generating a third and a fourth detection signal, respectively, each of the third and the fourth detection signal having a correspondence with an angle that the direction of the rotating magnetic field in a second position forms with respect to a second direction, when the direction of the rotating magnetic field varies with a predetermined period, each of the first to the fourth detection signal contains an ideal component and a first error component, the ideal component varies periodically in such a manner as to trace an ideal sinusoidal curve, the first error component is an error component corresponding to an n-th harmonic of the ideal component, n being 5 or more, the ideal components of the first and the second detection signal are different in phase from each other, the ideal components of the third and the fourth detection signal are different in phase from each other, the first detection unit and the second detection unit are arranged in a positional relationship that establishes a first phase relationship between the ideal components of the first and the third detection signal, and a second phase relationship between the ideal components of the second and the fourth detection signal, the first phase relationship is such a relationship that performing a first operation to obtain a sum of or difference between the first and the third detection signal yields a signal that is lower in the first error component than the first and the third detection signal, the second phase relationship is such a relationship that performing a second operation to obtain a sum of or difference between the second and the fourth detection signal yields a signal that is lower in the first error component than the second and the fourth detection signal, and the angle detection unit includes: a first computing circuit for generating a first signal by performing operations including the first operation, the first signal being lower in the first error component than the first and the third detection signal; a second computing circuit for generating a second signal by performing operations including the second operation, the second signal being lower in the first error component than the second and the fourth detection signal; and an angle computing unit for calculating the detected angle value on the basis of the first and the second signal.
2. The angle sensor according to claim 1, wherein the positional relationship between the first detection unit and the second detection unit is such a relationship that the first position and the second position are different from each other so that the direction of the rotating magnetic field in the first position and the direction of the rotating magnetic field in the second position are different from each other.
3. The angle sensor according to claim 1, wherein the positional relationship between the first detection unit and the second detection unit is such a relationship that the first direction and the second direction are different from each other while the direction of the rotating magnetic field in the first position is the same as the direction of the rotating magnetic field in the second position.
4. The angle sensor according to claim 1, wherein the first phase relationship is a relationship in which the ideal components of the first and the third detection signal have a phase difference of 180°/n, the second phase relationship is a relationship in which the ideal components of the second and the fourth detection signal have a phase difference of 180°/n, the first operation is an operation to obtain the sum of the first and the third detection signal, and the second operation is an operation to obtain the sum of the second and the fourth detection signal.
5. The angle sensor according to claim 1, wherein the first phase relationship is a relationship in which the ideal components of the first and the third detection signal have a phase difference of 360°/n, the second phase relationship is a relationship in which the ideal components of the second and the fourth detection signal have a phase difference of 360°/n, the first operation is an operation to obtain the difference between the first and the third detection signal, and the second operation is an operation to obtain the difference between the second and the fourth detection signal.
6. The angle sensor according to claim 1, wherein the phase difference between the ideal components of the first and the second detection signal and the phase difference between the ideal components of the third and the fourth detection signal are both 90°.
7. The angle sensor according to claim 1, wherein each of the first to the fourth detection signal generation unit includes at least one magnetic detection element.
8. The angle sensor according to claim 7, wherein the at least one magnetic detection element includes at least one magnetoresistance element, and the at least one magnetoresistance element includes a magnetization pinned layer whose magnetization direction is pinned, a free layer whose magnetization direction varies depending on the direction of the rotating magnetic field, and a nonmagnetic layer located between the magnetization pinned layer and the free layer.
9. An angle sensor system comprising: the angle sensor according to claim 1; and a magnetic field generation unit for generating the rotating magnetic field.
10. The angle sensor system according to claim 9, wherein the positional relationship between the first detection unit and the second detection unit is such a relationship that the first position and the second position are different from each other so that the direction of the rotating magnetic field in the first position and the direction of the rotating magnetic field in the second position are different from each other.
11. The angle sensor system according to claim 10, wherein the magnetic field generation unit is configured to vary its relative position with respect to the first and the second detection unit in a predetermined direction, and the first position and the second position are different from each other in the predetermined direction.
12. The angle sensor system according to claim 11, wherein the magnetic field generation unit is configured to rotate about a central axis, the predetermined direction is the direction of rotation of the magnetic field generation unit, and the first position and the second position are in an imaginary plane perpendicular to the central axis and located at the same distance from the central axis.
13. The angle sensor system according to claim 11, wherein the first position and the second position are on an imaginary straight line and different from each other, and the predetermined direction is parallel to the imaginary straight line.
14. The angle sensor system according to claim 9, wherein the positional relationship between the first detection unit and the second detection unit is such a relationship that the first direction and the second direction are different from each other while the direction of the rotating magnetic field in the first position is the same as the direction of the rotating magnetic field in the second position.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
First Embodiment
[0061] Preferred embodiments of the present invention will now be described in detail with reference to the drawings. First, reference is made to
[0062] The magnetic field generation unit 5 of the present embodiment is a ring-shaped magnet mounted onto a rotary shaft 6, which is an object whose rotational position is to be detected. In response to the rotation of the rotary shaft 6, the magnetic field generation unit 5 rotates about a central axis C in a rotational direction D.
[0063] The magnetic field generation unit 5 includes a first portion 5A and a second portion 5B magnetized in mutually different directions. The first portion 5A and the second portion 5B are arranged symmetrically with respect to a first imaginary plane including the central axis C. In
[0064] The reference position is located within a second imaginary plane parallel to an end face of the magnetic field generation unit 5 and perpendicular to the central axis C. The second imaginary plane will hereinafter be referred to as the reference plane P. In the reference plane P, the direction of the rotating magnetic field MF generated by the magnetic field generation unit 5 rotates about the reference position. The reference direction is located within the reference plane P and intersects the reference position. In the following description, the direction of the rotating magnetic field MF in the reference position refers to a direction located within the reference plane P.
[0065] The angle sensor 2 includes a first detection unit 10, a second detection unit 20, a third detection unit 30, and a fourth detection unit 40. The first to the fourth detection unit 10, 20, 30 and 40 are located to contact or intersect the reference plane P. The relative position of the magnetic field generation unit 5 with respect to the first to the fourth detection unit 10, 20, 30 and 40 varies in the rotational direction D about the central axis C.
[0066] Now, the arrangement of the first to the fourth detection unit 10, 20, 30 and 40 and the definitions of directions and angles in the present embodiment will be described with reference to
[0067] The first detection unit 10 detects the rotating magnetic field MF in a first position P1. The second detection unit 20 detects the rotating magnetic field MF in a second position P2. The third detection unit 30 detects the rotating magnetic field MF in a third position P3. The fourth detection unit 40 detects the rotating magnetic field MF in a fourth position P4. The first to the fourth position P1, P2, P3 and P4 are located in the first to the fourth detection unit 10, 20, 30 and 40, respectively. In the present embodiment, the first to the fourth position P1 to P4 are different from each other in the rotational direction D so that the directions of the rotating magnetic field MF in the first to the fourth position P1 to P4 are different from each other.
[0068] As shown in
[0069] The second position P2 is a position displaced counterclockwise from the first position P1 on the circumference by an angle θ1. The third position P3 is a position displaced counterclockwise from the first position P1 on the circumference by an angle θ3. The fourth position P4 is a position displaced counterclockwise from the third position P3 on the circumference by an angle θ2. The specific values of the angles θ1 to θ3 will be described later.
[0070] The first to the fourth detection unit 10, 20, 30 and 40 are located in mutually different positions so that the first to the fourth position P1 to P4 have the above-described relationship with each other. The positional relationship between the first to the fourth detection unit 10, 20, 30 and 40 will be described in more detail later.
[0071] As shown in
[0072] A first direction D11, a second direction D21, a third direction D31, a fourth direction D41, a fifth direction D12, a sixth direction D22, a seventh direction D32, and an eighth direction D42 will be defined as shown in
[0073] The fifth to the eighth direction D12, D22, D32 and D42 are directions that are rotated by a predetermined angle from the first to the fourth direction D11, D21, D31 and D41, respectively. In the present embodiment, the fifth to the eighth direction D12, D22, D32 and D42 are directions that are rotated clockwise by 90° from the first to the fourth direction D11, D21, D31 and D41, respectively.
[0074] The configuration of the angle sensor 2 will now be described in detail with reference to
[0075] The first detection signal generation unit 11 generates a first detection signal S1. The second detection signal generation unit 12 generates a second detection signal S2. Each of the first and the second detection signal S1 and S2 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the first position P1 forms with respect to the first direction D11.
[0076] The third detection signal generation unit 21 generates a third detection signal S3. The fourth detection signal generation unit 22 generates a fourth detection signal S4. Each of the third and the fourth detection signal S3 and S4 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the second position P2 forms with respect to the second direction D21.
[0077] The fifth detection signal generation unit 31 generates a fifth detection signal S5. The sixth detection signal generation unit 32 generates a sixth detection signal S6. Each of the fifth and the sixth detection signal S5 and S6 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the third position P3 forms with respect to the third direction D31.
[0078] The seventh detection signal generation unit 41 generates a seventh detection signal S7. The eighth detection signal generation unit 42 generates an eighth detection signal S8. Each of the seventh and the eighth detection signal S7 and S8 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the fourth position P4 forms with respect to the fourth direction D41.
[0079] As the direction DM of the rotating magnetic field MF rotates with a predetermined period, all the first to the eighth detection signal S1 to S8 vary periodically with a signal period equal to the predetermined period. The second, the fourth, the sixth and the eighth detection signal S2, S4, S6 and S8 are different in phase from the first, the third, the fifth and the seventh detection signal S1, S3, S5 and S7, respectively. In the present embodiment, the phases of the detection signals S2, S4, S6 and S8 are preferably different from the phases of the detection signals S1, S3, S5 and S7, respectively, by an odd number of times ¼ the signal period. However, in the light of the production accuracy of the magnetic detection element and other factors, the phase difference between the respective two detection signals can be slightly different from an odd number of times ¼ the signal period. The following description assumes that the phases of the detection signals satisfy the aforementioned preferred relationship.
[0080]
[0081] The first detection signal generation unit 11 includes a Wheatstone bridge circuit 14 and a difference detector 15. The second detection signal generation unit 12 includes a Wheatstone bridge circuit 16 and a difference detector 17. The third detection signal generation unit 21 includes a Wheatstone bridge circuit 24 and a difference detector 25. The fourth detection signal generation unit 22 includes a Wheatstone bridge circuit 26 and a difference detector 27. The fifth detection signal generation unit 31 includes a Wheatstone bridge circuit 34 and a difference detector 35. The sixth detection signal generation unit 32 includes a Wheatstone bridge circuit 36 and a difference detector 37. The seventh detection signal generation unit 41 includes a Wheatstone bridge circuit 44 and a difference detector 45. The eighth detection signal generation unit 42 includes a Wheatstone bridge circuit 46 and a difference detector 47.
[0082] Each of the Wheatstone bridge circuits 14, 16, 24, 26, 34, 36, 44 and 46 includes a power supply port V, a ground port G two output ports E1 and E2, a first pair of serially connected magnetic detection elements R1 and R2, and a second pair of serially connected magnetic detection elements R3 and R4. One end of each of the magnetic detection elements R1 and R3 is connected to the power supply port V. The other end of the magnetic detection element R1 is connected to one end of the magnetic detection element R2 and the output port E1. The other end of the magnetic detection element R3 is connected to one end of the magnetic detection element R4 and the output port E2. The other end of each of the magnetic detection elements R2 and R4 is connected to the ground port G A power supply voltage of predetermined magnitude is applied to the power supply port V. The ground port G is grounded.
[0083] Each of the magnetic detection elements R1 to R4 includes a plurality of magnetoresistance (MR) elements connected in series. Each of the plurality of MR elements is a spin-valve MR element, for example. The spin-valve MR element includes a magnetization pinned layer whose magnetization direction is pinned, a free layer which is a magnetic layer whose magnetization direction varies depending on the direction DM of the rotating magnetic field MF, and a nonmagnetic layer located between the magnetization pinned layer and the free layer. The spin-valve MR element may be a TMR element or a GMR element. In the TMR element, the nonmagnetic layer is a tunnel barrier layer. In the GMR element, the nonmagnetic layer is a nonmagnetic conductive layer. The spin-valve MR element varies in resistance depending on the angle that the magnetization direction of the free layer forms with respect to the magnetization direction of the magnetization pinned layer, and has a minimum resistance when the foregoing angle is 0° and a maximum resistance when the foregoing angle is 180°. In
[0084] In the first detection signal generation unit 11, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the first direction D11, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the first direction D11. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 14 varies depending on the strength of a component in the first direction D11 of the rotating magnetic field MF in the first position P1. The difference detector 15 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 14 as the first detection signal S1. The first detection signal generation unit 11 thus detects the strength of the component in the first direction D11 of the rotating magnetic field MF in the first position P1 and generates the first detection signal S1 indicative of the strength. Each of this strength and the first detection signal S1 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the first position P1 forms with respect to the first direction D11.
[0085] In the second detection signal generation unit 12, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the fifth direction D12, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the fifth direction D12. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 16 varies depending on the strength of a component in the fifth direction D12 of the rotating magnetic field MF in the first position P1. The difference detector 17 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 16 as the second detection signal S2. The second detection signal generation unit 12 thus detects the strength of the component in the fifth direction D12 of the rotating magnetic field MF in the first position P1 and generates the second detection signal S2 indicative of the strength. Each of this strength and the second detection signal S2 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the first position P1 forms with respect to the first direction D11.
[0086] In the third detection signal generation unit 21, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the second direction D21, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the second direction D21. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 24 varies depending on the strength of a component in the second direction D21 of the rotating magnetic field MF in the second position P2. The difference detector 25 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 24 as the third detection signal S3. The third detection signal generation unit 21 thus detects the strength of the component in the second direction D21 of the rotating magnetic field MF in the second position P2 and generates the third detection signal S3 indicative of the strength. Each of this strength and the third detection signal S3 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the second position P2 forms with respect to the second direction D21.
[0087] In the fourth detection signal generation unit 22, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the sixth direction D22, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the sixth direction D22. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 26 varies depending on the strength of a component in the sixth direction D22 of the rotating magnetic field MF in the second position P2. The difference detector 27 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 26 as the fourth detection signal S4. The fourth detection signal generation unit 22 thus detects the strength of the component in the sixth direction D22 of the rotating magnetic field MF in the second position P2 and generates the fourth detection signal S4 indicative of the strength. Each of this strength and the fourth detection signal S4 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the second position P2 forms with respect to the second direction D21.
[0088] In the fifth detection signal generation unit 31, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the third direction D31, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the third direction D31. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 34 varies depending on the strength of a component in the third direction D31 of the rotating magnetic field MF in the third position P3. The difference detector 35 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 34 as the fifth detection signal S5. The fifth detection signal generation unit 31 thus detects the strength of the component in the third direction D31 of the rotating magnetic field MF in the third position P3 and generates the fifth detection signal S5 indicative of the strength. Each of this strength and the fifth detection signal S5 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the third position P3 forms with respect to the third direction D31.
[0089] In the sixth detection signal generation unit 32, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the seventh direction D32, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the seventh direction D32. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 36 varies depending on the strength of a component in the seventh direction D32 of the rotating magnetic field MF in the third position P3. The difference detector 37 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 36 as the sixth detection signal S6. The sixth detection signal generation unit 32 thus detects the strength of the component in the seventh direction D32 of the rotating magnetic field MF in the third position P3 and generates the sixth detection signal S6 indicative of the strength. Each of this strength and the sixth detection signal S6 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the third position P3 forms with respect to the third direction D31.
[0090] In the seventh detection signal generation unit 41, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the fourth direction D41, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the fourth direction D41. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 44 varies depending on the strength of a component in the fourth direction D41 of the rotating magnetic field MF in the fourth position P4. The difference detector 45 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 44 as the seventh detection signal S7. The seventh detection signal generation unit 41 thus detects the strength of the component in the fourth direction D41 of the rotating magnetic field MF in the fourth position P4 and generates the seventh detection signal S7 indicative of the strength. Each of this strength and the seventh detection signal S7 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the fourth position P4 forms with respect to the fourth direction D41.
[0091] In the eighth detection signal generation unit 42, the magnetization pinned layers of the MR elements included in the magnetic detection elements R1 and R4 are magnetized in the eighth direction D42, and the magnetization pinned layers of the MR elements included in the magnetic detection elements R2 and R3 are magnetized in the opposite direction to the eighth direction D42. In this case, the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 46 varies depending on the strength of a component in the eighth direction D42 of the rotating magnetic field MF in the fourth position P4. The difference detector 47 outputs a signal corresponding to the potential difference between the output ports E1 and E2 of the Wheatstone bridge circuit 46 as the eighth detection signal S8. The eighth detection signal generation unit 42 thus detects the strength of the component in the eighth direction D42 of the rotating magnetic field MF in the fourth position P4 and generates the eighth detection signal S8 indicative of the strength. Each of this strength and the eighth detection signal S8 has a correspondence with the angle that the direction DM of the rotating magnetic field MF in the fourth position P4 forms with respect to the fourth direction D41.
[0092] The first to the fourth detection unit 10, 20, 30 and 40 may be constructed of four discrete components. The four discrete components may have the same mechanical structure, and be configured so that the magnetizations of the plurality of magnetization pinned layers are in the same relative direction with respect to the mechanical structure. In such a case, the magnetization directions of the magnetization pinned layers of the above-described MR elements can be easily defined by adjusting the layout and the orientations of the four discrete components.
[0093] In the light of the production accuracy of the MR elements and other factors, the magnetization directions of the magnetization pinned layers of the plurality of MR elements in the detection signal generation units 11, 12, 21, 22, 31, 32, 41 and 42 may be slightly different from the above-described directions.
[0094] An example of the configuration of the magnetic detection elements will now be described with reference to
[0095] As mentioned previously, as the direction DM of the rotating magnetic field MF rotates with a predetermined period, all the first to the eighth detection signal S1 to S8 vary periodically with a signal period equal to the predetermined period. Ideally, the first to the eighth detection signal S1 to S8 each have a waveform of a sinusoidal curve (including a sine waveform and a cosine waveform). In actuality, however, there are cases where the waveforms of the first to the eighth detection signal S1 to S8 are distorted from a sinusoidal curve. The causes of distortion of the waveforms of the first to the eighth detection signal S1 to S8 are broadly classified into the following two: a first cause related to the rotating magnetic field MF generated by the magnetic field generation unit 5; and a second cause related to the magnetic detection elements.
[0096] The distortion of the waveforms of the first to the eighth detection signal S1 to S8 means that the first to the eighth detection signal S1 to S8 each contain an ideal component which varies periodically in such a manner as to trace an ideal sinusoidal curve, and an error component other than the ideal component. In such a case, some error may occur in the detected angle value. The error occurring in the detected angle value will hereinafter be referred to as angular error. A detected angle value determined by calculation when each of the first to the eighth detection signal S1 to S8 is composed only of the ideal component corresponds to the true angle to be detected by the angle sensor 2. The detected angle value determined by calculation when each of the first to the eighth detection signal S1 to S8 is composed only of the ideal component will hereinafter be referred to as ideal angle. The angular error is the difference between the ideal angle and the detected angle value. When the waveforms of the first to the eighth detection signal S1 to S8 are distorted due to the first cause, the rotating field angle θM may differ from the ideal angle.
[0097] In the present embodiment, when the direction DM of the rotating magnetic field MF varies with a predetermined period, each of the first to the eighth detection signal S1 to S8 contains the ideal component and a first and a second error component. The first error component is an error component corresponding to an n-th harmonic of the ideal component, n being 5 or more. The second error component is an error component corresponding to an m-th harmonic of the ideal component, m being different from n. In the present embodiment, in particular, m is 3 and n is 5.
[0098] The ideal components of the first and the second detection signal S1 and S2 are different in phase from each other. The ideal components of the third and the fourth detection signal S3 and S4 are different in phase from each other. The ideal components of the fifth and the sixth detection signal S5 and S6 are different in phase from each other. The deal components of the seventh and the eighth detection signal S7 and S8 are different in phase from each other. In the present embodiment, the phase difference between the ideal components of the first and the second detection signal S1 and S2, the phase difference between the ideal components of the third and the fourth detection signal S3 and S4, the phase difference between the ideal components of the fifth and the sixth detection signal S5 and S6, and the phase difference between the ideal components of the seventh and the eighth detection signal S7 and S8 are all 90°.
[0099] Now, parts of the angle sensor 2 other than the first to the fourth detection unit 10, 20, 30 and 40 will be described with reference to
[0100] The angle detection unit 50 includes a first computing circuit 52 for generating a first signal Sa, a second computing circuit 53 for generating a second signal Sb, and an angle computing unit 54 for calculating the detected angle value θs on the basis of the first and the second signal Sa and Sb.
[0101] The angle detection unit 50 further includes analog-to-digital converters (hereinafter, “A/D converters”) 511, 512, 513, 514, 515, 516, 517 and 518. The first computing circuit 52, the second computing circuit 53 and the angle computing unit 54 use digital signals. The A/D converters 511-518 respectively convert the first to the eighth detection signal S1-S8 to digital signals. The first computing circuit 52 generates the first signal Sa by performing operations using the first, the third, the fifth and the seventh detection signal S1, S3, S5 and S7, which have been converted to digital signals by the A/D converters 511, 513, 515 and 517, respectively. The second computing circuit 53 generates the second signal Sb by performing operations using the second, the fourth, the sixth and the eighth detection signal S2, S4, S6 and S8, which have been converted to digital signals by the A/D converters 512, 514, 516 and 518, respectively. The method for generating the first and the second signal Sa and Sb and the method for calculating the detected angle value θs will be described in detail later.
[0102] Now, the positional relationship between the first to the fourth detection unit 10, 20, 30 and 40 will be described in detail. The first to the fourth detection unit 10, 20, 30 and 40 are arranged in a positional relationship that establishes the following plurality of phase relationships. Specifically, the positional relationship establishes a first phase relationship between the ideal components of the first and the third detection signal S1 and S3, a second phase relationship between the ideal components of the second and the fourth detection signal S2 and S4, a third phase relationship between the ideal components of the fifth and the seventh detection signal S5 and S7, a fourth phase relationship between the ideal components of the sixth and the eighth detection signal S6 and S8, a fifth phase relationship between the ideal components of the first and the fifth detection signal S1 and S5, a sixth phase relationship between the ideal components of the second and the sixth detection signal S2 and S6, a seventh phase relationship between the ideal components of the third and the seventh detection signal S3 and S7, and an eighth phase relationship between the ideal components of the fourth and the eighth detection signal S4 and S8.
[0103] The first phase relationship is such a relationship that performing a first operation to obtain the sum of or difference between the first and the third detection signal S1 and S3 yields a signal that is lower in the first error component than the first and the third detection signal S1 and S3.
[0104] The second phase relationship is such a relationship that performing a second operation to obtain the sum of or difference between the second and the fourth detection signal S2 and S4 yields a signal that is lower in the first error component than the second and the fourth detection signal S2 and S4.
[0105] The third phase relationship is such a relationship that performing a third operation to obtain the sum of or difference between the fifth and the seventh detection signal S5 and S7 yields a signal that is lower in the first error component than the fifth and the seventh detection signal S5 and S7.
[0106] The fourth phase relationship is such a relationship that performing a fourth operation to obtain the sum of or difference between the sixth and the eighth detection signal S6 and S8 yields a signal that is lower in the first error component than the sixth and the eighth detection signal S6 and S8.
[0107] The fifth phase relationship is such a relationship that performing a fifth operation to obtain the sum of or difference between the first and the fifth detection signal S1 and S5 yields a signal that is lower in the second error component than the first and the fifth detection signal S1 and S5.
[0108] The sixth phase relationship is such a relationship that performing a sixth operation to obtain the sum of or difference between the second and the sixth detection signal S2 and S6 yields a signal that is lower in the second error component than the second and the sixth detection signal S2 and S6.
[0109] The seventh phase relationship is such a relationship that performing a seventh operation to obtain the sum of or difference between the third and the seventh detection signal S3 and S7 yields a signal that is lower in the second error component than the third and the seventh detection signal S3 and S7.
[0110] The eighth phase relationship is such a relationship that performing an eighth operation to obtain the sum of or difference between the fourth and the eighth detection signal S4 and S8 yields a signal that is lower in the second error component than the fourth and the eighth detection signal S4 and S8.
[0111] A first example and a second example of the present embodiment will be described below. The first example will be described first. In the first example, the first phase relationship is a relationship in which the ideal components of the first and the third detection signal S1 and S3 have a phase difference of 180°/n, and the second phase relationship is a relationship in which the ideal components of the second and the fourth detection signal S2 and S4 have a phase difference of 180°/n. In such a case, the first operation is an operation to obtain the sum of the first and the third detection signal S1 and S3, and the second operation is an operation to obtain the sum of the second and the fourth detection signal S2 and S4. In the first example, the first and the second detection unit 10 and 20 are arranged to establish the first and the second phase relationship described above. To be more specific, the first and the second position P1 and P2 are defined to make the angle θ1 of
[0112] The third phase relationship is a relationship in which the ideal components of the fifth and the seventh detection signal S5 and S7 have a phase difference of 180°/n, and the fourth phase relationship is a relationship in which the ideal components of the sixth and the eighth detection signal S6 and S8 have a phase difference of 180°/n. In such a case, the third operation is an operation to obtain the sum of the fifth and the seventh detection signal S5 and S7, and the fourth operation is an operation to obtain the sum of the sixth and the eighth detection signal S6 and S8. In the first example, the third and the fourth detection unit 30 and 40 are arranged to establish the third and the fourth phase relationship described above. To be more specific, the third and the fourth position P3 and P4 are defined to make the angle θ2 of
[0113] The fifth phase relationship is a relationship in which the ideal components of the first and the fifth detection signal S1 and S5 have a phase difference of 180°/m, and the sixth phase relationship is a relationship in which the ideal components of the second and the sixth detection signal S2 and S6 have a phase difference of 180°/m. In such a case, the fifth operation is an operation to obtain the sum of the first and the fifth detection signal S1 and S5, and the sixth operation is an operation to obtain the sum of the second and the sixth detection signal S2 and S6. In the first example, the first and the third detection unit 10 and 30 are arranged to establish the fifth and the sixth phase relationship described above. To be more specific, the first and the third position P1 and P3 are defined to make the angle θ3 of
[0114] The seventh phase relationship is a relationship in which the ideal components of the third and the seventh detection signal S3 and S7 have a phase difference of 180°/m, and the eighth phase relationship is a relationship in which the ideal components of the fourth and the eighth detection signal S4 and S8 have a phase difference of 180°/m. In such a case, the seventh operation is an operation to obtain the sum of the third and the seventh detection signal S3 and S7, and the eighth operation is an operation to obtain the sum of the fourth and the eighth detection signal S4 and S8. The seventh and the eighth phase relationship described above are achieved by defining the first to the fourth position P1 to P4 in such a way as to establish the first to the sixth phase relationship.
[0115] In the present embodiment, in particular, m is 3 and n is 5. Thus, 180°/m is 60°, and 180°/n is 36°. One period of the first to the eighth detection signal S1 to S8, i.e., an electrical angle of 360°, is equivalent to one rotation of the magnetic field generation unit 5, i.e., a rotational angle of 360° of the magnetic field generation unit 5. Thus, in the first example, the first to the fourth detection unit 10, 20, 30 and 40 are arranged by defining the first to the fourth position P1 to P4 to make both of the angles θ1 and θ2 be 36° and make the angle θ3 be 60°.
[0116] Now, the ideal component of the first detection signal S1 will be denoted by cos θ, and the ideal component of the second detection signal S2 will be denoted by sin θ. The first and the second detection signal S1 and S2 are expressible by the following Eqs. (1) and (2), respectively. In Eq. (1), “a.sub.1.Math.cos(nθ)” represents the first error component of the first detection signal S1, and “b.sub.1.Math.cos(mθ)” represents the second error component of the first detection signal S1. In Eq. (2), “a.sub.2.Math.sin(nθ)” represents the first error component of the second detection signal S2, and “b.sub.2.Math.sin(mθ)” represents the second error component of the second detection signal S2.
S1=cos θ+a.sub.1.Math.cos(nθ)+b.sub.1.Math.cos(mθ) (1)
S2=sin θ+a.sub.2.Math.sin(nθ)+b.sub.2.Math.sin(mθ) (2)
[0117] According to the first example, the third and the fourth detection signal S3 and S4 are expressible by the following Eqs. (3) and (4), respectively.
[0118] The fifth and the sixth detection signal S5 and S6 are expressible by the following Eqs. (5) and (6), respectively.
[0119] The seventh and the eighth detection signal S7 and S8 are expressible by the following Eqs. (7) and (8), respectively.
[0120] As is understood from Eqs. (1) and (3), performing the first operation of the first example, that is, the operation to obtain the sum of the first and the third detection signal S1 and S3, allows the first error component a.sub.1.Math.cos(nθ) of Eq. (1) and the first error component −a.sub.1.Math.cos(nθ) of Eq. (3) to cancel each other out to thereby yield a signal that is lower in the first error component than the first and the third detection signal S1 and S3.
[0121] As is understood from Eqs. (2) and (4), performing the second operation of the first example, that is, the operation to obtain the sum of the second and the fourth detection signal S2 and S4, allows the first error component a.sub.2.Math.sin(nθ) of Eq. (2) and the first error component −a.sub.2.Math.sin(nθ) of Eq. (4) to cancel each other out to thereby yield a signal that is lower in the first error component than the second and the fourth detection signal S2 and S4.
[0122] As is understood from Eqs. (5) and (7), performing the third operation of the first example, that is, the operation to obtain the sum of the fifth and the seventh detection signal S5 and S7, allows the first error component a.sub.1.Math.cos {n(θ+180°/m)} of Eq. (5) and the first error component −a.sub.1.Math.cos {n(θ+180°/m)} of Eq. (7) to cancel each other out to thereby yield a signal that is lower in the first error component than the fifth and the seventh detection signal S5 and S7.
[0123] As is understood from Eqs. (6) and (8), performing the fourth operation of the first example, that is, the operation to obtain the sum of the sixth and the eighth detection signal S6 and S8, allows the first error component a.sub.2.Math.sin {n(θ+180°/m)} of Eq. (6) and the first error component −a.sub.2.Math.sin {n(θ+180°/m)} of Eq. (8) to cancel each other out to thereby yield a signal that is lower in the first error component than the sixth and the eighth detection signal S6 and S8.
[0124] As is understood from Eqs. (1) and (5), performing the fifth operation of the first example, that is, the operation to obtain the sum of the first and the fifth detection signal S1 and S5, allows the second error component b.sub.1.Math.cos(mθ) of Eq. (1) and the second error component −b.sub.1.Math.cos(mθ) of Eq. (5) to cancel each other out to thereby yield a signal that is lower in the second error component than the first and the fifth detection signal S1 and S5.
[0125] As is understood from Eqs. (2) and (6), performing the sixth operation of the first example, that is, the operation to obtain the sum of the second and the sixth detection signal S2 and S6, allows the second error component b.sub.2.Math.sin(mθ) of Eq. (2) and the second error component −b.sub.2.Math.sin(mθ) of Eq. (6) to cancel each other out to thereby yield a signal that is lower in the second error component than the second and the sixth detection signal S2 and S6.
[0126] As is understood from Eqs. (3) and (7), performing the seventh operation of the first example, that is, the operation to obtain the sum of the third and the seventh detection signal S3 and S7, allows the second error component b.sub.1.Math.cos {m(θ+180°/n)} of Eq. (3) and the second error component −b.sub.1.Math.cos {m(θ+180°/n)} of Eq. (7) to cancel each other out to thereby yield a signal that is lower in the second error component than the third and the seventh detection signal S3 and S7.
[0127] As is understood from Eqs. (4) and (8), performing the eighth operation of the first example, that is, the operation to obtain the sum of the fourth and the eighth detection signal S4 and S8, allows the second error component b.sub.2.Math.sin {m(θ+180°/n)} of Eq. (4) and the second error component −b.sub.2.Math.sin {m(θ+180°/n)} of Eq. (8) to cancel each other out to thereby yield a signal that is lower in the second error component than the fourth and the eighth detection signal S4 and S8.
[0128]
[0129] As shown in
[0130] Although not illustrated, the first error component of the second detection signal S2 and the first error component of the fourth detection signal S4 have such a phase relationship that they cancel each other out when the operation to obtain the sum of the second and the fourth detection signal S2 and S4 is performed. The first error component of the sixth detection signal S6 and the first error component of the eighth detection signal S8 have such a phase relationship that they cancel each other out when the operation to obtain the sum of the sixth and the eighth detection signal S6 and S8 is performed. The second error component of the second detection signal S2 and the second error component of the sixth detection signal S6 have such a phase relationship that they cancel each other out when the operation to obtain the sum of the second and the sixth detection signal S2 and S6 is performed. The second error component of the fourth detection signal S4 and the second error component of the eighth detection signal S8 have such a phase relationship that they cancel each other out when the operation to obtain the sum of the fourth and the eighth detection signal S4 and S8 is performed.
[0131] The second example will now be described. In the second example, the first phase relationship is a relationship in which the ideal components of the first and the third detection signal S1 and S3 have a phase difference of 360°/n, and the second phase relationship is a relationship in which the ideal components of the second and the fourth detection signal S2 and S4 have a phase difference of 360°/n. In such a case, the first operation is an operation to obtain the difference between the first and the third detection signal S1 and S3, and the second operation is an operation to obtain the difference between the second and the fourth detection signal S2 and S4. In the second example, the first and the second detection unit 10 and 20 are arranged to establish the first and the second phase relationship described above. To be more specific, the first and the second position P1 and P2 are defined to make the angle θ1 of
[0132] The third phase relationship is a relationship in which the ideal components of the fifth and the seventh detection signal S5 and S7 have a phase difference of 360°/n, and the fourth phase relationship is a relationship in which the ideal components of the sixth and the eighth detection signal S6 and S8 have a phase difference of 360°/n. In such a case, the third operation is an operation to obtain the difference between the fifth and the seventh detection signal S5 and S7, and the fourth operation is an operation to obtain the difference between the sixth and the eighth detection signal S6 and S8. In the second example, the third and the fourth detection unit 30 and 40 are arranged to establish the third and the fourth phase relationship described above. To be more specific, the third and the fourth position P3 and P4 are defined to make the angle θ2 of
[0133] The fifth phase relationship is a relationship in which the ideal components of the first and the fifth detection signal S1 and S5 have a phase difference of 360°/m, and the sixth phase relationship is a relationship in which the ideal components of the second and the sixth detection signal S2 and S6 have a phase difference of 360°/m. In such a case, the fifth operation is an operation to obtain the difference between the first and the fifth detection signal S1 and S5, and the sixth operation is an operation to obtain the difference between the second and the sixth detection signal S2 and S6. In the second example, the first and the third detection unit 10 and 30 are arranged to establish the fifth and the sixth phase relationship described above. To be more specific, the first and the third position P1 and P3 are defined to make the angle θ3 of
[0134] The seventh phase relationship is a relationship in which the ideal components of the third and the seventh detection signal S3 and S7 have a phase difference of 360°/m, and the eighth phase relationship is a relationship in which the ideal components of the fourth and the eighth detection signal S4 and S8 have a phase difference of 360°/m. In such a case, the seventh operation is an operation to obtain the difference between the third and the seventh detection signal S3 and S7, and the eighth operation is an operation to obtain the difference between the fourth and the eighth detection signal S4 and S8. The seventh and the eighth phase relationship described above are achieved by defining the first to the fourth position P1 to P4 in such a way as to establish the first to the sixth phase relationship.
[0135] In the present embodiment, in particular, 360°/n is 72°, and 360°/m is 120°. According to the second example, the first to the fourth detection unit 10, 20, 30 and 40 are arranged by defining the first to the fourth position P1 to P4 to make both of the angles θ1 and θ2 be 72° and make the angle θ3 be 120°.
[0136] If the first and the second detection signal S1 and S2 are expressed by Eqs. (1) and (2) as in the first example, then in the second example the third and the fourth detection signal S3 and S4 are expressible by the following Eqs. (9) and (10), respectively.
[0137] The fifth and the sixth detection signal S5 and S6 are expressible by the following Eqs. (11) and (12), respectively.
[0138] The seventh and the eighth detection signal S7 and S8 are expressible by the following Eqs. (13) and (14), respectively.
[0139] As is understood from Eqs. (1) and (9), performing the first operation of the second example, that is, the operation to obtain the difference between the first and the third detection signal S1 and S3, allows the first error component a.sub.1.Math.cos(nθ) of Eq. (1) and the first error component a.sub.1.Math.cos(nθ) of Eq. (9) to cancel each other out to thereby yield a signal that is lower in the first error component than the first and the third detection signal S1 and S3.
[0140] As is understood from Eqs. (2) and (10), performing the second operation of the second example, that is, the operation to obtain the difference between the second and the fourth detection signal S2 and S4, allows the first error component a.sub.2.Math.sin(nθ) of Eq. (2) and the first error component a.sub.2.Math.sin(nθ) of Eq. (10) to cancel each other out to thereby yield a signal that is lower in the first error component than the second and the fourth detection signal S2 and S4.
[0141] As is understood from Eqs. (11) and (13), performing the third operation of the second example, that is, the operation to obtain the difference between the fifth and the seventh detection signal S5 and S7, allows the first error component a.sub.1.Math.cos {n(θ+360°/m)} of Eq. (11) and the first error component a.sub.1.Math.cos {n(θ+360°/m)} of Eq. (13) to cancel each other out to thereby yield a signal that is lower in the first error component than the fifth and the seventh detection signal S5 and S7.
[0142] As is understood from Eqs. (12) and (14), performing the fourth operation of the second example, that is, the operation to obtain the difference between the sixth and the eighth detection signal S6 and S8, allows the first error component a.sub.2.Math.sin {n(θ+360°/m)} of Eq. (12) and the first error component a.sub.2.Math.sin {n(θ+360°/m)} of Eq. (14) to cancel each other out to thereby yield a signal that is lower in the first error component than the sixth and the eighth detection signal S6 and S8.
[0143] As is understood from Eqs. (1) and (11), performing the fifth operation of the second example, that is, the operation to obtain the difference between the first and the fifth detection signal S1 and S5, allows the second error component b.sub.1.Math.cos(mθ) of Eq. (1) and the second error component b.sub.1.Math.cos(mθ) of Eq. (11) to cancel each other out to thereby yield a signal that is lower in the second error component than the first and the fifth detection signal S1 and S5.
[0144] As is understood from Eqs. (2) and (12), performing the sixth operation of the second example, that is, the operation to obtain the difference between the second and the sixth detection signal S2 and S6, allows the second error component b.sub.2.Math.sin(mθ) of Eq. (2) and the second error component b.sub.2.Math.sin(mθ) of Eq. (12) to cancel each other out to thereby yield a signal that is lower in the second error component than the second and the sixth detection signal S2 and S6.
[0145] As is understood from Eqs. (9) and (13), performing the seventh operation of the second example, that is, the operation to obtain the difference between the third and the seventh detection signal S3 and S7, allows the second error component b.sub.1.Math.cos {m(θ+360°/n)} of Eq. (9) and the second error component b.sub.1.Math.cos {m(θ+360°/n)} of Eq. (13) to cancel each other out to thereby yield a signal that is lower in the second error component than the third and the seventh detection signal S3 and S7.
[0146] As is understood from Eqs. (10) and (14), performing the eighth operation of the second example, that is, the operation to obtain the difference the fourth and the eighth detection signal S4 and S8, allows the second error component b.sub.2.Math.sin {m(θ+360°/n)} of Eq. (10) and the second error component b.sub.2.Math.sin {m(θ+360°/n)} of Eq. (14) to cancel each other out to thereby yield a signal that is lower in the second error component than the fourth and the eighth detection signal S4 and S8.
[0147] According to the present embodiment, regardless of whether the first cause or the second cause distorts the waveform of each of the first to the eighth detection signal S1 to S8, if the first and the second detection signal S1 and S2 are expressed by Eqs. (1) and (2), respectively, then Eqs. (3) to (8) hold in the first example and Eqs. (9) to (14) hold in the second example.
[0148] Now, a method for generating the first and the second signal Sa and Sb and a method for calculating the detected angle value θs will be described. First, a description will be given of the method for generating the first and the second signal Sa and Sb and the method for calculating the detected angle value θs according to the foregoing first example. As described previously, the first computing circuit 52 generates the first signal Sa by performing operations using the first, the third, the fifth and the seventh detection signal S1, S3, S5 and S7. The operations performed by the first computing circuit 52 include the first operation, the third operation, the fifth operation and the seventh operation of the first example. To be more specific, for example, the first computing circuit 52 generates the first signal Sa by the following Eq. (15). Eq. (15) uses the first, the third, the fifth and the seventh detection signal S1, S3, S5 and S7 expressed by Eqs. (1), (3), (5) and (7), respectively. In the following description, α=180°/n and β=180°/m.
[0149] The operations performed by the first computing circuit 52 cause the two first error components of Eqs. (1) and (3) to cancel each other out, causes the two first error components of Eqs. (5) and (7) to cancel each other out, causes the two second error components of Eqs. (1) and (5) to cancel each other out, and causes the two second error components of Eqs. (3) and (7) to cancel each other out. This causes the first signal Sa to be lower in the first and the second error component than the first, the third, the fifth and the seventh detection signal S1, S3, S5 and S7.
[0150] As described previously, the second computing circuit 53 generates the second signal Sb by performing operations using the second, the fourth, the sixth and the eighth detection signal S2, S4, S6 and S8. The operations performed by the second computing circuit 53 include the second operation, the fourth operation, the sixth operation and the eighth operation of the first example. To be more specific, for example, the second computing circuit 53 generates the second signal Sb by the following Eq. (16). Eq. (16) uses the second, the fourth, the sixth and the eighth detection signal S2, S4, S6 and S8 expressed by Eqs. (2), (4), (6) and (8), respectively.
[0151] The operations performed by the second computing circuit 53 cause the two first error components of Eqs. (2) and (4) to cancel each other out, causes the two first error components of Eqs. (6) and (8) to cancel each other out, causes the two second error components of Eqs. (2) and (6) to cancel each other out, and causes the two second error components of Eqs. (4) and (8) to cancel each other out. This causes the second signal Sb to be lower in the first and the second error component than the second, the fourth, the sixth and the eighth detection signal S2, S4, S6 and S8.
[0152] The angle computing unit 54 calculates the detected angle value θs on the basis of the first and the second signal Sa and Sb. More specifically, for example, the angle computing unit 54 calculates θs by the following Eq. (17) using the first and the second signal Sa and Sb generated by Eqs. (15) and (16). Note that “a tan” in Eq. (17) represents arc tangent.
θs=a tan(Sb/Sa)−(α/2+β/2) (17)
[0153] If θs is in the range of 0° to less than 360°, θs in Eq. (17) has two solutions 180° different in value. Which of the two solutions of θs in Eq. (17) is the true value of θs can be determined from the combination of positive and negative signs of Sa and Sb. The angle computing unit 54 determines θs within the range of 0° to less than 360° on the basis of Eq. (17) and the foregoing determination on the combination of positive and negative signs of Sa and Sb.
[0154] Now, a description will be given of the method for generating the first and the second signal Sa and Sb and the method for calculating the detected angle value θ according to the foregoing second example. The operations performed by the first computing circuit 52 include the first operation, the third operation, the fifth operation and the seventh operation of the second example. To be more specific, for example, the first computing circuit 52 generates the first signal Sa by the following Eq. (18). Eq. (18) uses the first, the third, the fifth and the seventh detection signal S1, S3, S5 and S7 expressed by Eqs. (1), (9), (11) and (13), respectively. In the following description, γ=360°/n and δ=360°/m.
[0155] The operations performed by the first computing circuit 52 cause the two first error components of Eqs. (1) and (9) to cancel each other out, causes the two first error components of Eqs. (11) and (13) to cancel each other out, causes the two second error components of Eqs. (1) and (11) to cancel each other out, and causes the two second error components of Eqs. (9) and (13) to cancel each other out. This causes the first signal Sa to be lower in the first and the second error component than the first, the third, the fifth and the seventh detection signal S1, S3, S5 and S7.
[0156] The operations performed by the second computing circuit 53 include the second operation, the fourth operation, the sixth operation and the eighth operation of the second example. To be more specific, for example, the second computing circuit 53 generates the second signal Sb by the following Eq. (19). Eq. (19) uses the second, the fourth, the sixth and the eighth detection signal S2, S4, S6 and S8 expressed by Eqs. (2), (10), (12) and (14), respectively.
[0157] The operations performed by the second computing circuit 53 cause the two first error components of Eqs. (2) and (10) to cancel each other out, causes the two first error components of Eqs. (12) and (14) to cancel each other out, causes the two second error components of Eqs. (2) and (12) to cancel each other out, and causes the two second error components of Eqs. (10) and (14) to cancel each other out. This causes the second signal Sb to be lower in the first and the second error component than the second, the fourth, the sixth and the eighth detection signal S2, S4, S6 and S8.
[0158] The angle computing unit 54 calculates the detected angle value θs on the basis of the first and the second signal Sa and Sb. More specifically, the angle computing unit 54 calculates θs by the following Eq. (20) using the first and the second signal Sa and Sb generated by Eqs. (18) and (19).
θs=a tan(Sb/Sa)−(γ/2+δ/2) (20)
[0159] If θs is in the range of 0° to less than 360°, θs in Eq. (20) has two solutions 180° different in value. Which of the two solutions of θs in Eq. (20) is the true value of θs can be determined from the combination of positive and negative signs of Sa and Sb. The angle computing unit 54 determines θs within the range of 0° to less than 360° on the basis of Eq. (20) and the foregoing determination on the combination of positive and negative signs of Sa and Sb.
[0160] Note that the positional relationship between the first to the fourth detection unit 10, 20, 30 and 40 in the present embodiment is not limited to the first and the second example described above. The first to the fourth detection unit 10, 20, 30 and 40 may be arranged in any positional relationship that establishes the first to the eighth phase relationship.
[0161] For example, the first to the fourth detection unit 10, 20, 30 and 40 may be arranged in a positional relationship that makes the angles θ1 and θ2 have a magnitude equivalent to an electrical angle of 180°/n and makes the angle θ3 have a magnitude equivalent to an electrical angle of 360°/m. In such a case, for example, the first computing circuit 52 generates the first signal Sa by the following Eq. (21) and the second computing circuit 53 generates the second signal Sb by the following Eq. (22). The first and the second signal Sa and Sb thus obtained are lower in the first and the second error component.
Sa=S1+S3−S5−S7 (21)
Sb=S2+S4−S6−S8 (22)
[0162] The first to the fourth detection unit 10, 20, 30 and 40 may be arranged in a positional relationship that makes the angles θ1 and θ2 have a magnitude equivalent to an electrical angle of 360°/n and makes the angle θ3 have a magnitude equivalent to an electrical angle of 180°/m. In such a case, for example, the first computing circuit 52 generates the first signal Sa by the following Eq. (23) and the second computing circuit 53 generates the second signal Sb by the following Eq. (24). The first and the second signal Sa and Sb thus obtained are lower in the first and the second error component.
Sa=S1−S3+S5−S7 (23)
Sb=S2−S4+S6−S8 (24)
[0163] As described above, in the angle sensor 2 and the angle sensor system 1 according to the present embodiment, the first to the fourth detection unit 10, 20, 30 and 40 are arranged in the predetermined positional relationship, and the angle detection unit 50 performs relatively simple operations, such as addition and subtraction, to generate the first and the second signal Sa and Sb which are lower in the first and the second error component. The present embodiment thus enables easy reduction of the angular error resulting from the first error component and the second error component contained in the first to the eighth detection signal S1 to S8, the first error component corresponding to a fifth or higher-order harmonic, the second error component corresponding to a harmonic of the order different from that of the first error component.
[0164] Another conceivable method for reducing the angular error resulting from the first and the second error component is to correct each of the first to the eighth detection signal S1 to S8 by signal processing so as to reduce the first and the second error component contained in each of the first to the eighth detection signal S1 to S8. To be more specific, for example, a Fourier transform may be applied to the waveform of each of the first to the eighth detection signal S1 to S8 to cancel out the first and the second error component contained in each of the first to the eighth detection signal S1 to S8 on the basis of the results. However, such a method requires complicated signal processing. This problem becomes more noticeable as the order of the error components becomes higher.
[0165] In contrast, according to the present embodiment, the first and the second signal Sa and Sb which are lower in the first and the second error component are generated by performing the relatively simple operations as described above. Further, the present embodiment enables reduction of the error component of any given order by adjusting the positional relationship between the first to the fourth detection unit 10, 20, 30 and 40. As a result, the present embodiment makes it easier to reduce the angular error resulting from the first and the second error component than in the case of correcting each of the first to the eighth detection signal S1 to S8 by signal processing.
[0166] Further, the present embodiment enables reduction of the angular error resulting from the first and the second error component when the causes of distortion of the waveform of each of the first to the eighth detection signal S1 to S8 include at least one of the first cause and the second cause.
[0167] Now, the angular-error-reducing effect of the present embodiment will be specifically shown using the following example. First, a value corresponding to the detected angle value θs calculated on the basis of the first detection signal S1 and the second detection signal S2 will be referred to as uncorrected detected angle value, and denoted by the symbol θp. The uncorrected detected angle value θp is expressed by the following Eq. (25).
θp=a tan(S2/S1) (25)
[0168] If θp is in the range of 0° to less than 360°, θp in Eq. (25) has two solutions 180° different in value. Which of the two solutions of θp in Eq. (25) is the true value of θp can be determined from the combination of positive and negative signs of S1 and S2.
[0169] An angular error occurring in the uncorrected detected angle value θp will be denoted by the symbol Ep, and an angular error occurring in the detected angle value θs will be denoted by the symbol Es. The angular errors Ep and Es are calculated by a control unit (not illustrated) outside the angle sensor system 1 under a situation in which the control unit can recognize the true angle to be detected by the angle sensor 2. An example of such a situation is when the control unit commands a change of the true angle to be detected, or when the control unit is able to obtain information about the true angle to be detected. The true angle to be detected is the rotational angle of the magnetic field generation unit 5, for example. The true angle to be detected that the control unit recognizes will hereinafter be referred to as the reference angle θr, in particular. The ideal angle θ corresponds to the true angle to be detected and the reference angle θr. The angular errors Ep and Es are calculated by the following Eqs. (26) and (27), respectively.
Ep=θp−θr (26)
Es=θs−θr (27)
[0170]
[0171] The first and the second detection signal S1 and S2 are signals before the first and the second error component are reduced. The angular error Ep occurring in the uncorrected detected angle value θp mainly results from the first and the second error component. As shown in
[0172] The angle sensor and the angle sensor system of the present invention may be configured to reduce an angular error that results from the first error component only. In such a case, the third and the fourth detection unit 30 and 40 are omitted from the angle sensor 2. Further, in such a case, the first computing circuit 52 generates the first signal Sa by setting S5 and S7 at 0 in the foregoing equations for generating the first signal Sa, and the second computing circuit 53 generates the second signal Sb by setting S6 and S8 at 0 in the foregoing equations for generating the second signal Sb.
Second Embodiment
[0173] A second embodiment of the invention will now be described. First, reference is made to
[0174] The magnetic field generation unit 7 includes a first portion 7A and a second portion 7B magnetized in mutually different directions. The first portion 7A and the second portion 7B are arranged symmetrically with respect to an imaginary plane including the central axis of the cylindrical shape. In
[0175] In the present embodiment, the first to the fourth detection unit 10, 20, 30 and 40 of the angle sensor 2 are arranged to face an end face of the magnetic field generation unit 7. For ease of understanding,
[0176] The angle sensor system 1 according to the present embodiment may be configured in other ways than illustrated in
[0177] Now, the definitions of directions and angles used in the present embodiment will be described with reference to
[0178] As has been described in relation to the first embodiment, the first to the fourth detection unit 10, 20, 30 and 40 detect the rotating magnetic field MF in the first to the fourth position P1, P2, P3 and P4, respectively. In the present embodiment, the first to the fourth position P1 to P4 coincide with each other in the rotational direction D so that the rotating magnetic field MF is in the same direction DM in the first to the fourth position P1 to P4.
[0179] The reference plane in the present embodiment is parallel to one of the end faces of the magnetic field generation unit 7 and perpendicular to the central axis C. In the present embodiment, the first position P1 is the reference position PR, and the X direction is the reference direction DR. Assume that the direction DM of the rotating magnetic field MF rotates clockwise in
[0180] A first direction D11, a second direction D21, a third direction D31, a fourth direction D41, a fifth direction D12, a sixth direction D22, a seventh direction D32, and an eighth direction D42 will be defined as shown in
[0181] The fifth to the eighth direction D12, D22, D32 and D42 are directions that are rotated by a predetermined angle from the first to the fourth direction D11, D21, D31 and D41, respectively. In the present embodiment, the fifth to the eighth direction D12, D22, D32 and D42 are directions that are rotated clockwise by 90° from the first to the fourth direction D11, D21, D31 and D41, respectively.
[0182] In the present embodiment, the first to the fourth detection unit 10, 20, 30 and 40 may be arranged in such a positional relationship that the first to the fourth direction D11, D21, D31 and D41 are different from each other while the rotating magnetic field MF is in the same direction DM in the first to the fourth position P1 to P4.
[0183] The relationships between the magnetization directions of the magnetization pinned layers in the first to the fourth detection unit 10, 20, 30 and 40 and the first to the eighth direction D11, D21, D31, D41, D12, D22, D32 and D42 are the same as those in the first embodiment.
[0184] As in the first embodiment, the first to the fourth detection unit 10, 20, 30 and 40 may be constructed of four discrete components. The four discrete components may have the same mechanical structure and be configured so that the magnetizations of the plurality of magnetization pinned layers are in the same relative direction with respect to the mechanical structure. In such a case, the second detection unit 20 is placed in an orientation rotated counterclockwise by the angle θ1 with respect to the first detection unit 10. The third detection unit 30 is placed in an orientation rotated counterclockwise by the angle θ3 with respect to the first detection unit 10. The fourth detection unit 40 is placed in an orientation rotated counterclockwise by the angle θ2 with respect to the third detection unit 30.
[0185] Alternatively, the first to the fourth detection unit 10, 20, 30 and 40 may have the same mechanical structure and be placed in the same orientation while the magnetization pinned layers of the MR elements included therein have respective magnetization directions determined for the respective corresponding MR elements.
[0186] The first to the fourth detection unit 10, 20, 30 and 40 are arranged in a positional relationship that establishes the first to the eighth phase relationship described in relation to the first embodiment. Now, a description will be given of a first example and a second example of the present embodiment. The first example will be described first. The first to the eighth phase relationship according to the first example of the present embodiment are the same as those according to the first example of the first embodiment. In the first example, the first and the second detection unit 10 and 20 are arranged to establish the first and the second phase relationship according to the first example. To be more specific, the first and the second direction D11 and D21 are defined to make the angle θ1 of
[0187] In the present embodiment, in particular, m is 3 and n is 5. Thus, 180°/m is 60°, and 180°/n is 36°. One period of the first to the eighth detection signal S1 to S8, i.e., an electrical angle of 360°, is equivalent to one rotation of the magnetic field generation unit 7, i.e., a rotational angle of 360° of the magnetic field generation unit 7. Thus, in the first example, the first to the fourth direction D11, D21, D31 and D41 are defined to make both of the angles θ1 and θ2 be 36° and make the angle θ3 be 60°.
[0188] According to the first example, when it is the second cause that distorts the waveform of each of the first to the eighth detection signal S1 to S8, if the first and the second detection signal S1 and S2 are respectively expressed by Eqs. (1) and (2) of the first embodiment, then the third to the eighth detection signal S3 to S8 are respectively expressible by Eqs. (3) to (8) of the first embodiment.
[0189] The second example will now be described. The first to the eighth phase relationship according to the second example of the present embodiment are the same as those according to the second example of the first embodiment. In the second example, the first and the second detection unit 10 and 20 are arranged to establish the first and the second phase relationship according to the second example. To be more specific, the first and the second direction D11 and D21 are defined to make the angle θ1 of
[0190] In the present embodiment, in particular, 360°/n is 72°, and 360°/m is 120°. In the second example, the first to the fourth direction D11, D21, D31 and D41 are defined to make both of the angles θ1 and θ2 be 72° and make the angle θ3 be 120°.
[0191] According to the second example, when it is the second cause that distorts the waveform of each of the first to the eighth detection signal S1 to S8, if the first and the second detection signal S1 and S2 are respectively expressed by Eqs. (1) and (2) of the first embodiment, then the third to the eighth detection signal S3 to S8 are respectively expressible by Eqs. (9) to (14) of the first embodiment.
[0192] The present embodiment enables reduction of the angular error resulting from the first and the second error component when the causes of distortion of the waveform of each of the first to the eighth detection signal S1 to S8 include the second cause.
[0193] The positional relationship between the first to the fourth detection unit 10, 20, 30 and 40 of the present embodiment may be applied to the angle sensor system 1 according to the first embodiment. The other configuration, function and effects of the present embodiment are the same as those of the first embodiment.
Third Embodiment
[0194] A third embodiment of the invention will now be described. First, reference is made to
[0195] In
[0196] The magnetic field generation unit 8 has a side surface 8a parallel to the X direction. In the present embodiment, the first to the fourth detection unit 10, 20, 30 and 40 of the angle sensor 2 are arranged to face the side surface 8a of the magnetic field generation unit 8.
[0197] One of the angle sensor 2 and the magnetic field generation unit 8 moves linearly in response to the movement of a moving body (not illustrated). This varies the relative position of the magnetic field generation unit 8 with respect to the first to the fourth detection unit 10, 20, 30 and 40 in a predetermined direction DL. The direction DL is parallel to the X direction. In the example shown in
[0198] Now, the arrangement of the first to the fourth detection unit 10, 20, 30 and 40 and the definitions of directions and angles in the present embodiment will be described with reference to
[0199] As shown in
[0200] The reference plane in the present embodiment is perpendicular to the Z direction. The reference position PR is located within the reference plane. In the present embodiment, the first position P1 is the reference position PR, and the Y direction is the reference direction DR. Assume that the direction DM of the rotating magnetic field MF rotates clockwise in
[0201] A first direction D11, a second direction D21, a third direction D31, a fourth direction D41, a fifth direction D12, a sixth direction D22, a seventh direction D32, and an eighth direction D42 will be defined as shown in
[0202] The fifth to the eighth direction D12, D22, D32 and D42 are directions that are rotated by a predetermined angle from the first to the fourth direction D11, D21, D31 and D41, respectively. In the present embodiment, the fifth to the eighth direction D12, D22, D32 and D42 are directions that are rotated clockwise by 90° from the first to the fourth direction D11, D21, D31 and D41, respectively.
[0203] The first to the fourth position P1, P2, P3 and P4 are located in the first to the fourth detection unit 10, 20, 30 and 40, respectively. The first to the fourth detection unit 10, 20, 30 and 40 are arranged in such a positional relationship that the first to the fourth position P1, P2, P3 and P4 are different from each other as described above.
[0204] The relationships between the magnetization directions of the magnetization pinned layers in the first to the fourth detection unit 10, 20, 30 and 40 and the first to the eighth direction D11, D21, D31, D41, D12, D22, D32 and D42 are the same as those in the first embodiment.
[0205] As in the first embodiment, the first to the fourth detection unit 10, 20, 30 and 40 may be constructed of four discrete components. The four discrete components may have the same mechanical structure and be configured so that the magnetizations of the plurality of magnetization pinned layers are in the same relative direction with respect to the mechanical structure. Alternatively, the first to the fourth detection unit 10, 20, 30 and 40 may be integrated into one component.
[0206] The first to the fourth detection unit 10, 20, 30 and 40 are arranged in a positional relationship that establishes the first to the eighth phase relationship described in relation to the first embodiment. Now, a description will be given of a first example and a second example of the present embodiment.
[0207] The first example will now be described first. The first to the eighth phase relationship according to the first example of the present embodiment are the same as those according to the first example of the first embodiment. In the first example, the first and the second detection unit 10 and 20 are arranged to establish the first and the second phase relationship according to the first example. To be more specific, the first and the second position P1 and P2 are defined to make the distance L1 of
[0208] In the magnetic field generation unit 8, the distance between the centers of two first portions 8A adjacent to each other with one second portion 8B in between is equal to the distance between the centers of two second portions 8B adjacent to each other with one first portion 8A in between. As shown in
[0209] In the first example, the first to the fourth position P1 to P4 are defined to make both of the distances L1 and L2 be Lp/(2n) and make the distance L3 be Lp/(2m). In the present embodiment, m is 3 and n is 5, in particular. Thus, in the first example, the first to the fourth position P1 to P4 are defined to make both of the distances L1 and L2 be Lp/10 and make the distance L3 be Lp/6.
[0210] According to the first example, regardless of whether the first cause or the second cause distorts the waveform of each of the first to the eighth detection signal S1 to S8, if the first and the second detection signal S1 and S2 are respectively expressed by Eqs. (1) and (2) of the first embodiment, then the third to the eighth detection signal S3 to S8 are respectively expressible by Eqs. (3) to (8) of the first embodiment.
[0211] Next, the second example will be described. The first to the eighth phase relationship according to the second example of the present embodiment are the same as those according to the second example of the first embodiment. In the second example, the first and the second detection unit 10 and 20 are arranged to establish the first and the second phase relationship according to the second example. To be more specific, the first and the second position P1 and P2 are defined to make the distance L1 of
[0212] The magnitude equivalent to an electrical angle of 360°/n is Lp/n, and the magnitude equivalent to an electrical angle of 360°/m is Lp/m. In the second example, the first to the fourth position P1 to P4 are defined to make both of the distances L1 and L2 be Lp/n and make the distance L3 be Lp/m. In the present embodiment, m is 3 and n is 5, in particular. Thus, in the second example, the first to the fourth position P1 to P4 are defined to make both of the distances L1 and L2 be Lp/5 and make the distance L3 be Lp/3.
[0213] According to the second example, regardless of whether the first cause or the second cause distorts the waveform of each of the first to the eighth detection signal S1 to S8, if the first and the second detection signal S1 and S2 are respectively expressed by Eqs. (1) and (2) of the first embodiment, then the third to the eighth detection signal S3 to S8 are respectively expressible by Eqs. (9) to (14) of the first embodiment.
[0214] Like the first embodiment, the present embodiment enables reduction of the angular error resulting from the first and the second error component when the causes of distortion of the waveform of each of the first to the eighth detection signal S1 to S8 include at least one of the first cause and the second cause.
[0215] The other configuration, function and effects of the present embodiment are the same as those of the first embodiment.
Fourth Embodiment
[0216] Reference is now made to
[0217] In the present embodiment, the first to the fourth detection unit 10, 20, 30 and 40 are arranged in such a positional relationship that the first to the fourth direction D11, D21, D31 and D41 are different from each other while the rotating magnetic field MF is in the same direction DM in the positions where the first to the fourth detection unit 10, 20, 30 and 40 are located, as in the second embodiment. The definitions of the first to the fourth direction D11, D21, D31 and D41 are as illustrated in
[0218] The present embodiment enables reduction of the angular error resulting from the first and the second error component when the causes of distortion of the waveform of each of the first to the eighth detection signal S1 to S8 include the second cause.
[0219] The other configuration, function and effects of the present embodiment are the same as those of the second or third embodiment.
[0220] The present invention is not limited to the foregoing embodiments, and various modifications may be made thereto. For example, the angle detection unit of the angle sensor of the present invention may include a part for performing processing for reducing an angular error resulting from an error component other than the first and the second error component contained in each detection signal.
[0221] Obviously, many modifications and variations of the present invention are possible in the light of the above teachings. Thus, it is to be understood that, within the scope of the appended claims and equivalents thereof, the invention may be practiced in other embodiments than the foregoing most preferable embodiments.