Rotation angle detection device and rotation angle detection method

10690514 ยท 2020-06-23

Assignee

Inventors

Cpc classification

International classification

Abstract

A rotation angle detection device includes: a rotating body having magnetic tracks on which magnetic pole pairs are arranged at even intervals in concentric ring shapes; magnetic sensors each configured to detect a magnetic field of a corresponding one of the magnetic tracks and output a sine signal and a cosine signal; storage configured to store magnetic sensor correction information; a correction calculator configured to correct the sine signal and the cosine signal based on the magnetic sensor correction information; a phase detector configured to calculate a phase of the corrected sine signal and the corrected cosine signal; a phase difference detector configured to calculate a phase difference between a plurality of the phases; and an angle calculator configured to convert the phase difference into an absolute angle.

Claims

1. A rotation angle detection device comprising: a rotating body having a plurality of magnetic tracks on which magnetic pole pairs each including a north pole and a south pole are arranged at even intervals in concentric ring shapes, the magnetic tracks being different from each other in number of the magnetic pole pairs arranged thereon; a plurality of magnetic sensors each configured to detect a magnetic field of a corresponding one of the magnetic tracks and output a sine signal and a cosine signal; storage configured to store magnetic sensor correction information that is preset such that a value of the sine signal output by each of the magnetic sensors corresponding to a rotation angle of the rotating body comes closer to a value of a reference sine signal of the magnetic sensor, or such that a value of the cosine signal output by the magnetic sensor corresponding to the rotation angle of the rotating body comes closer to a value of a reference cosine signal of the magnetic sensor; a correction calculator configured to correct the sine signal and the cosine signal to a corrected sine signal and a corrected cosine signal based on the magnetic sensor correction information; a phase detector configured to calculate a phase of the corrected sine signal and the corrected cosine signal; a phase difference detector configured to calculate a phase difference between a plurality of the phases; and an angle calculator configured to convert the phase difference into an absolute angle, wherein V sin ave denotes an average value of the sine signal; V cos ave denotes an average value of the cosine signal; V sin max denotes a maximum value of the sine signal; V sin min denotes a minimum value of the sine signal; V cos max denotes a maximum value of the cosine signal; V cos min denotes a minimum value of the cosine signal; sin .sub.i and cos .sub.i denote input signal values; sin and cos denote output signal values; and the value V sin ave, the value V cos ave, the value V sin max, the value V sin min, the value V cos max, and the value V cos min are stored as the magnetic sensor correction information in the storage, the correction calculator is configured to use Expressions (5) and (7) below to calculate the value sin and use Expressions (6) and (8) below to calculate the value cos , .sub.ic denotes a sensor phase error between an output phase of the sine signal and an output phase of the cosine signal; sin and cos (+.sub.ic) denote input signal values; sin .sub.o and cos .sub.o denote output signal values; and the error .sub.ic is stored as the magnetic sensor correction information in the storage, and the correction calculator is configured to use Expressions (15) and (17) below to calculate the value sin .sub.o and use Expressions (16) and (18) below to calculate the value cos .sub.o,
sin =sin .sub.iV sin ave(5)
cos =cos .sub.iV cos ave(6)
sin sin /(|V sin maxV sin min|/2)(7)
cos =cos /(|V cos maxV cos min|/2)(8)
sin .sub.o=sin (15)
cos .sub.o=(cos(+.sub.ic)+sin sin .sub.ic)/cos .sub.ic(16)
sin .sub.o=sin .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(17)
cos .sub.o=cos .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(18).

2. The rotation angle detection device according to claim 1, wherein the magnetic tracks are magnetized on one end face in an axial direction of the rotating body.

3. The rotation angle detection device according to claim 1, wherein the magnetic tracks comprise: a first magnetic track; a second magnetic track provided at an outer circumference of the first magnetic track; and a third magnetic track provided at an inner circumference of the first magnetic track, and the rotation angle detection device further comprises: a first magnetic sensor module comprising the magnetic sensor that is configured to detect the magnetic field of the first magnetic track and the magnetic sensor that is configured to detect the magnetic field of the second magnetic track; and a second magnetic sensor module comprising the magnetic sensor that is configured to detect the magnetic field of the first magnetic track and the magnetic sensor that is configured to detect the magnetic field of the third magnetic track.

4. The rotation angle detection device according to claim 3, wherein the first magnetic sensor module and the second magnetic sensor module are arranged so as to be shifted from each other in a circumferential direction of the rotating body.

5. A rotation angle detection device comprising: a rotating body having a plurality of magnetic tracks on which magnetic pole pairs each including a north pole and a south pole are arranged at even intervals in concentric ring shapes, the magnetic tracks being different from each other in number of the magnetic pole pairs arranged thereon; a plurality of magnetic sensors each configured to detect a magnetic field of a corresponding one of the magnetic tracks and output a sine signal and a cosine signal; storage configured to store magnetic sensor correction information that is preset such that a value of the sine signal output by each of the magnetic sensors corresponding to a rotation angle of the rotating body comes closer to a value of a reference sine signal of the magnetic sensor, or such that a value of the cosine signal output by the magnetic sensor corresponding to the rotation angle of the rotating body comes closer to a value of a reference cosine signal of the magnetic sensor; a correction calculator configured to correct the sine signal and the cosine signal to a corrected sine signal and a corrected cosine signal based on the magnetic sensor correction information; a phase detector configured to calculate a phase of the corrected sine signal and the corrected cosine signal; a phase difference detector configured to calculate a phase difference between a plurality of the phases; and an angle calculator configured to convert the phase difference into an absolute angle, wherein V sin ave denotes an average value of the sine signal; V cos ave denotes an average value of the cosine signal; V sin max denotes a maximum value of the sine signal; V sin min denotes a minimum value of the sine signal; V cos max denotes a maximum value of the cosine signal; V cos min denotes a minimum value of the cosine signal; sin .sub.i and cos .sub.i denote input signal values; sin and cos denote output signal values; and the value V sin ave, the value V cos ave, the value V sin max, the value V sin min, the value V cos max, and the value V cos min are stored as the magnetic sensor correction information in the storage, the correction calculator is configured to use Expressions (5) and (7) below to calculate the value sin and use Expressions (6) and (8) below to calculate the value cos , .sub.ic denotes a sensor phase error between an output phase of the sine signal and an output phase of the cosine signal; sin (+.sub.ic) and cos denote input signal values; sin .sub.o and cos .sub.o denote output signal values; and the error .sub.ic is stored as the magnetic sensor correction information in the storage, and the correction calculator is configured to use Expressions (19) and (21) below to calculate the value sin .sub.0 and use Expressions (20) and (22) below to calculate the value cos .sub.o,
sin =sin .sub.iV sin ave(5)
cos =cos .sub.iV cos ave(6)
sin sin /(|V sin maxV sin min|/2)(7)
cos =cos /(|V cos maxV cos min|/2)(8)
sin .sub.o=(sin(+.sub.ic)+cos cos .sub.ic)/sin .sub.ic(19)
cos .sub.o=cos (20)
sin .sub.o=sin .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(21)
cos .sub.o=cos .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(22).

6. The rotation angle detection device according to claim 5, wherein the magnetic tracks are magnetized on one end face in an axial direction of the rotating body.

7. The rotation angle detection device according to claim 5, wherein the magnetic tracks comprise: a first magnetic track; a second magnetic track provided at an outer circumference of the first magnetic track; and a third magnetic track provided at an inner circumference of the first magnetic track, and the rotation angle detection device further comprises: a first magnetic sensor module comprising the magnetic sensor that is configured to detect the magnetic field of the first magnetic track and the magnetic sensor that is configured to detect the magnetic field of the second magnetic track; and a second magnetic sensor module comprising the magnetic sensor that is configured to detect the magnetic field of the first magnetic track and the magnetic sensor that is configured to detect the magnetic field of the third magnetic track.

8. The rotation angle detection device according to claim 7, wherein the first magnetic sensor module and the second magnetic sensor module are arranged so as to be shifted from each other in a circumferential direction of the rotating body.

Description

BRIEF DESCRIPTION OF DRAWINGS

(1) FIG. 1 is a diagram illustrating an example of a rotation angle detection device according to a first embodiment.

(2) FIG. 2 is a diagram illustrating an example of a rotating body of the rotation angle detection device according to the first embodiment.

(3) FIG. 3 is a diagram illustrating an example of magnetic tracks of the rotating body illustrated in FIG. 2.

(4) FIG. 4 is a diagram illustrating an arrangement example of a magnetic sensor module of the rotation angle detection device according to the first embodiment.

(5) FIG. 5 is a sectional view, along IV-IV illustrated in FIG. 4, of the rotation angle detection device according to the first embodiment.

(6) FIG. 6 is a diagram illustrating an example of magnetic sensors of the rotation angle detection device according to the first embodiment.

(7) FIG. 7 is a diagram illustrating waveform examples of respective portions of the rotation angle detection device according to the first embodiment.

(8) FIG. 8 is a diagram illustrating an example of functional blocks of a correction calculator according to the first embodiment.

(9) FIG. 9 is a diagram illustrating an example of a control block of a normalization processor according to the first embodiment.

(10) FIG. 10 is a diagram illustrating an example of a normalization operation performed by the normalization processor illustrated in FIG. 9.

(11) FIG. 11 is a diagram illustrating an example, different from that of FIG. 9, of the control block of the normalization processor according to the first embodiment.

(12) FIG. 12 is a diagram illustrating an example of the normalization operation performed by the normalization processor illustrated in FIG. 11.

(13) FIG. 13 is a diagram illustrating an example of the control block in which the normalization processor according to the first embodiment includes both an offset voltage corrector and an amplitude corrector.

(14) FIG. 14 is a diagram illustrating an example of a correction target of a sensor phase corrector according to the first embodiment.

(15) FIG. 15 is a diagram illustrating an example of a control block of the sensor phase corrector according to the first embodiment.

(16) FIG. 16 is a diagram illustrating an example of a phase correction operation performed by the sensor phase corrector illustrated in FIG. 15.

(17) FIG. 17 is a diagram illustrating an example, different from that of FIG. 14, of the correction target of the sensor phase corrector according to the first embodiment.

(18) FIG. 18 is a diagram illustrating an example, different from that of FIG. 15, of the control block of the sensor phase corrector according to the first embodiment.

(19) FIG. 19 is a diagram illustrating an example of a phase correction operation performed by the sensor phase corrector illustrated in FIG. 18.

(20) FIG. 20 is a diagram illustrating an example of a specific procedure of a rotation angle detection method according to the first embodiment.

(21) FIG. 21 is a diagram illustrating an example of functional blocks of a correction calculator according to a second embodiment.

(22) FIG. 22 is a diagram illustrating an example of a control block of an amplitude variation reducer according to the second embodiment.

(23) FIG. 23 is a diagram illustrating an example of functional blocks of a correction calculator according to a third embodiment.

(24) FIG. 24 is a diagram illustrating an example of the control block in which the correction calculator according to the third embodiment includes both the sensor phase corrector and the amplitude variation reducer.

(25) FIG. 25 is a diagram illustrating an example, different from that of FIG. 24, of the control block in which the correction calculator according to the third embodiment includes both the sensor phase corrector and the amplitude variation reducer.

(26) FIG. 26 is a diagram illustrating an example of a rotating body of a rotation angle detection device according to a fourth embodiment.

(27) FIG. 27 is a diagram illustrating an example of magnetic tracks of the rotating body illustrated in FIG. 26.

(28) FIG. 28 is a diagram illustrating an arrangement example of magnetic sensor modules of the rotation angle detection device according to the fourth embodiment.

(29) FIG. 29 is a sectional view, along IV-IV illustrated in FIG. 28, of the rotation angle detection device according to the fourth embodiment.

(30) FIG. 30 is a diagram illustrating an arrangement example of the magnetic sensor modules of a rotation angle detection device according to a fifth embodiment.

(31) FIG. 31 is a diagram illustrating a first modification of the magnetic sensor module.

(32) FIG. 32 is a flowchart for describing operations of the magnetic sensor module after a power supply is turned on.

(33) FIG. 33 is a diagram illustrating a second modification of the magnetic sensor module.

(34) FIG. 34 is a diagram illustrating a third modification of the magnetic sensor module.

(35) FIG. 35 is a diagram illustrating a fourth modification of the magnetic sensor module.

DESCRIPTION OF EMBODIMENTS

(36) The following describes modes for carrying out the present invention (hereinafter, referred to as embodiments) in detail with reference to the drawings. The embodiments described below do not limit the present invention. Components in the embodiments described below include those easily conceivable by those skilled in the art, those substantially the same, and those in the range of what are called equivalents. The components disclosed in the embodiments described below can be combined as appropriate.

First Embodiment

(37) Configuration of Rotation Angle Detection Device

(38) FIG. 1 is a diagram illustrating an example of a rotation angle detection device according to a first embodiment. As illustrated in FIG. 1, a rotation angle detection device 1 according to the first embodiment includes a rotating body 100 having a first magnetic track 2A and a second magnetic track 2B, a magnetic sensor module 200, a transmitter 9, and storage 10.

(39) The magnetic sensor module 200 includes a first magnetic sensor 3A, a first correction calculator 4A, a first phase detector 5A, a second magnetic sensor 3B, a second correction calculator 4B, a second phase detector 5B, a phase difference detector 6, an angle calculator 7, and an angle information generator 8.

(40) In the present embodiment, the magnetic sensor module 200 is, for example, integrated into one IC chip. This integration can lead to, for example, a reduction in number of parts constituting the rotation angle detection device 1, an improvement in positional accuracy between the first magnetic sensor 3A and the second magnetic sensor 3B, and reductions in manufacturing cost and assembly cost, and can provide the small and low-cost rotation angle detection device 1. The magnetic sensor module 200 may include, for example, the transmitter 9 and the storage 10. This configuration can further reduce the size and cost of the rotation angle detection device 1.

(41) FIG. 2 is a diagram illustrating an example of the rotating body of the rotation angle detection device according to the first embodiment. FIG. 3 is a diagram illustrating an example of the magnetic tracks of the rotating body illustrated in FIG. 2. FIG. 4 is a diagram illustrating an arrangement example of the magnetic sensor module of the rotation angle detection device according to the first embodiment. FIG. 5 is a sectional view, along IV-IV illustrated in FIG. 4, of the rotation angle detection device according to the first embodiment. FIG. 6 is a diagram illustrating an example of the magnetic sensors of the rotation angle detection device according to the first embodiment.

(42) As illustrated in FIGS. 2 and 3, the first magnetic track 2A along which magnetic pole pairs 2A1 are arranged at even intervals and the second magnetic track 2B along which magnetic pole pairs 2B1 are arranged at even intervals, are provided on the rotating body 100 of the first embodiment so as to be arranged in the radial direction in concentric ring shapes having the axis center at a rotation axis X of the rotating body 100. Each of the magnetic pole pairs has a north pole and a south pole. The first magnetic track 2A and the second magnetic track 2B of the first embodiment are obtained by, for example, circumferentially alternately magnetizing one end face in the axial direction of the rotating body 100 into the north pole and the south pole at even intervals.

(43) Specifically, on the first magnetic track 2A and the second magnetic track 2B, the circumferentially different magnetic poles are alternately arranged at equal intervals, for example, such that, in FIG. 3, shaded portions are the north poles and non-shaded portions are south poles.

(44) In the example illustrated in FIG. 3, the first magnetic track 2A includes 32 pairs of the magnetic pole pairs 2A1. The second magnetic track 2B includes 31 pairs of the magnetic pole pairs 2B1. In other words, when P (P is a natural number) denotes the number of the magnetic pole pairs 2A1 on the first magnetic track 2A, the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is P1.

(45) The rotating body 100 can include, for example, neodymium magnets, ferrite magnets, or samarium-cobalt magnets according to a required magnetic flux density.

(46) The present embodiment has an axial configuration in which the first magnetic track 2A and the second magnetic track 2B are magnetized on one end face in the axial direction of the rotating body 100. Such a configuration can thin the rotation angle detection device 1 in the axial direction thereof, and can enlarge a hollow hole thereof. This configuration can expand the scope of application of the rotation angle detection device 1 according to the first embodiment, including, for example, applications to inner-ring rotating and outer-ring rotating bearings, and applications to structures of devices in which cables are wired through the hollow hole. The configuration can also increase the degree of freedom of designing a device to which the rotation angle detection device 1 according to the first embodiment is applied.

(47) As illustrated in FIGS. 4 and 5, the magnetic sensor module 200 of the first embodiment is provided so as to be opposed in the axial direction to the rotating body 100 that has the first magnetic track 2A and the second magnetic track 2B, with a gap therebetween.

(48) More specifically, the first magnetic sensor 3A of the magnetic sensor module 200 is opposed to the first magnetic track 2A and detects a magnetic field of the first magnetic track 2A. The second magnetic sensor 3B of the magnetic sensor module 200 is opposed to the second magnetic track 2B and detects a magnetic field of the second magnetic track 2B.

(49) The magnetic sensor module 200 is provided at a fixed place that does not rotate in synchronization with the rotating body 100.

(50) As illustrated in FIG. 6, the first magnetic sensor 3A includes two magnetic sensor elements 3A1 and 3A2 arranged separately in the direction of arrangement of the magnetic pole pairs 2A1 so as to have a phase difference therebetween of 90 degrees in terms of electrical angle on the assumption that one period corresponds to a pitch of each of the magnetic pole pairs 2A1 on the first magnetic track 2A. The second magnetic sensor 3B includes two magnetic sensor elements 3B1 and 3B2 arranged separately in the direction of arrangement of the magnetic pole pairs 2B1 so as to have a phase difference therebetween of 90 degrees in terms of electrical angle on the assumption that one period corresponds to a pitch of each of the magnetic pole pairs 2B1 on the second magnetic track 2B.

(51) For example, magnetic sensor elements, such as Hall elements or magnetoresistance (MR) effect sensors, can be used as the magnetic sensor elements 3A1 and 3A2 and the magnetic sensor elements 3B1 and 3B2.

(52) The first magnetic sensor 3A outputs a first sine signal sin .sub.i1 and a first cosine signal cos .sub.i1 corresponding to the phase in the magnetic pole pair 2A1.

(53) The second magnetic sensor 3B outputs a second sine signal sin .sub.i2 and a second cosine signal cos .sub.i2 corresponding to the phase in the magnetic pole pair 2B1.

(54) As illustrated in FIG. 1, the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1 output from the first magnetic sensor 3A are supplied to the first correction calculator 4A. The second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2 output from the second magnetic sensor 3B are supplied to the second correction calculator 4B.

(55) The first correction calculator 4A performs correction calculation processing described later on the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1 thus supplied, and outputs a first corrected sine signal sin .sub.o1 and a first corrected cosine signal cos .sub.o1. The second correction calculator 4B performs the correction calculation processing described later on the second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2 and outputs a second corrected sine signal sin .sub.o2 and a second corrected cosine signal cos .sub.o2. The correction calculation processing performed by the first correction calculator 4A and the second correction calculator 4B will be described in detail later.

(56) FIG. 7 is a diagram illustrating waveform examples of respective portions of the rotation angle detection device according to the first embodiment. Part (a) of FIG. 7 illustrates a magnetic pole pattern of the first magnetic track 2A, and part (b) of FIG. 7 illustrates an example of a magnetic pole pattern of the second magnetic track 2B. Part (c) of FIG. 7 illustrates an input signal waveform of the first phase detector 5A, and part (d) of FIG. 7 illustrates an input signal waveform of the second phase detector 5B. Part (e) of FIG. 7 illustrates a detected phase signal waveform output from the first phase detector 5A, and part (f) of FIG. 7 illustrates a detected phase signal waveform output from the second phase detector 5B. Part (g) of FIG. 7 illustrates a phase difference signal waveform output from the phase difference detector 6.

(57) FIG. 7 illustrates an example in which two of the magnetic pole pairs 2B1 on the second magnetic track 2B correspond to a segment from point a to point b consisting of three of the magnetic pole pairs 2A1 on the first magnetic track 2A. In other words, the phase of a detection signal of the first magnetic sensor 3A coincides with the phase of a detection signal of the second magnetic sensor 38 at point a and point b. In this case, an absolute angle with respect to point a can be detected in any position up to point b. In this manner, the absolute angle can be detected between the two points at which the phase of the detection signal of the first magnetic sensor 3A coincides with the phase of the detection signal of the second magnetic sensor 3B.

(58) In the example illustrated in FIG. 3, the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is 32 (P=32) while the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is 31 (P1=31), and the magnetic pole phase of the first magnetic track 2A coincides with the magnetic pole phase of the second magnetic track 2B at point A. In other words, the magnetic sensor module 200 can detect the absolute angle in the entire circumference of the rotating body 100 with respect to point A serving as the origin position where the phase of the detection signal of the first magnetic sensor 3A coincides with the phase of the detection signal of the second magnetic sensor 3B.

(59) The relation between the number of the magnetic pole pairs 2A1 on the first magnetic track 2A and the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is not limited to that of the example illustrated in FIG. 3. For example, the configuration may be such that the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is P+1 when the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is P.

(60) The first phase detector 5A outputs the detected phase signal exemplified in part (e) of FIG. 7 based on the input signal exemplified in part (c) of FIG. 7. Specifically, the first phase detector 5A calculates the phase (.sub.o1=arctan (sin .sub.o1/cos .sub.o1)) in the magnetic pole pair 2A1 from the first corrected sine signal sin .sub.o1 and the first corrected cosine signal cos .sub.o1 that are the outputs from the first correction calculator 4A.

(61) The second phase detector 5B outputs the detected phase signal exemplified in part (f) of FIG. 7 based on the input signal exemplified in part (d) of FIG. 7. Specifically, the second phase detector 5B calculates the phase (.sub.o2=arctan (sin .sub.o2/cos .sub.o2)) in the magnetic pole pair 231 from the second corrected sine signal sin .sub.o2 and the second corrected cosine signal cos .sub.o2 that are the outputs from the second correction calculator 43.

(62) The phase difference detector 6 outputs the phase difference signal exemplified in part (g) of FIG. 7 based on the respective detected phase signals output from the first phase detector 5A and the second phase detector 5B.

(63) The angle calculator 7 performs processing to convert the phase difference obtained by the phase difference detector 6 into the absolute angle in accordance with a preset calculation parameter. The calculation parameter used by the angle calculator 7 is stored in the storage 10.

(64) In the present embodiment, the angle information generator 8 is further provided at the subsequent stage of the angle calculator 7.

(65) The angle information generator 8 generates, for example, a phase ABZ signal composed of a phase A signal and a phase B signal different from each other in phase by 90 degrees, and a phase Z signal indicating the origin position, as information including the absolute angle calculated by the angle calculator 7 (hereinafter, also called absolute angle information). The phase A signal and the phase B signal only need to be obtained using, for example, either one set of a set of the first corrected sine signal and the first corrected cosine signal, which are the outputs from the first correction calculator 4A, and a set of the second corrected sine signal and the second corrected cosine signal, which are the outputs of the second correction calculator 4B.

(66) The transmitter 9 converts the absolute angle information generated by the angle information generator 8 into an appropriate signal (for example, a phase ABZ signal, a parallel signal, serial data, an analog voltage, or a pulse-width modulated (PWM) signal) and outputs the result to an external control device.

(67) In this manner, the configuration of outputting the absolute angle information converted into the appropriate signal can reduce the number of electrical connection lines to the external control device.

(68) An aspect may be employed in which, for example, an output request signal for the absolute angle information is transmitted from the external control device to the transmitter 9. In this case, the rotation angle detection device 1 may be configured to operate in response to the output request signal for the absolute angle information and output the absolute angle information from the transmitter 9.

(69) The storage 10 stores, in addition to the calculation parameter used by the angle calculator 7, information required for the operation of the rotation angle detection device 1, including, for example, the number (P) of the magnetic pole pairs 2A1 on the first magnetic track 2A, the number (P+1) of the magnetic pole pairs 2B1 on the second magnetic track 2B, first magnetic sensor correction information used by the first correction calculator 4A, which will be described later, second magnetic sensor correction information used by the second correction calculator 4B, which will be described later, and a reference position of the absolute angle. Examples of the storage 10 include a nonvolatile memory.

(70) In the present embodiment, the storage 10 stores parameters and arithmetic expressions used by the first correction calculator 4A and the second correction calculator 4B as the first magnetic sensor correction information and the second magnetic sensor correction information.

(71) The parameters and the arithmetic expressions used by the first correction calculator 4A include information used for correcting the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1, which are the detection signals of the first magnetic sensor 3A. The parameters and the arithmetic expressions are set as the first magnetic sensor correction information such that the detection signal of the first magnetic sensor 3A comes closer to a pre-assumed reference value of the sine signal or the cosine signal of the first magnetic sensor 3A.

(72) The parameters and the arithmetic expressions used by the second correction calculator 4B include information used for correcting the second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2, which are the detection signals of the second magnetic sensor 3B. The parameters and the arithmetic expressions are set as the second magnetic sensor correction information such that the detection signal of the second magnetic sensor 3B comes closer to a pre-assumed reference value of the sine signal or the cosine signal of the second magnetic sensor 3B.

(73) The various parameters and information stored in the storage 10 may be configured to be updatable, for example, from the external control device through the transmitter 9. This configuration allows setting of the rotation angle detection device 1 according to the use situation thereof.

(74) Configuration and Operation of Correction Calculator

(75) The first magnetic track 2A and the second magnetic track 2B are the same in configuration and operation, the first magnetic sensor 3A and the second magnetic sensor 3B are the same in configuration and operation, and the first correction calculator 4A and the second correction calculator 4B are the same in configuration and operation. Therefore, in the following description, each of the first magnetic track 2A and the second magnetic track 2B is also called a magnetic track 2; each of the first magnetic sensor 3A and the second magnetic sensor 3B is also called a magnetic sensor 3; each of the first correction calculator 4A and the second correction calculator 4B is also called a correction calculator 4; and each of the first magnetic sensor correction information and the second magnetic sensor correction information is also called magnetic sensor correction information.

(76) FIG. 9 is a diagram illustrating an example of functional blocks of the correction calculator according to the first embodiment. As illustrated on FIG. 8, the correction calculator 4 includes a normalization processor 41 and a sensor phase corrector 42.

(77) The correction calculator 4 receives the sine signal sin .sub.i and the cosine signal cos .sub.i output from the magnetic sensor 3. The correction calculator 4 acquires the magnetic sensor correction information to be applied to the normalization processor 41 and the sensor phase corrector 42 from the storage 10.

(78) The normalization processor 41 normalizes the sine signal sin .sub.i and the cosine signal cos .sub.i output from the magnetic sensor 3 and outputs a normalized sine signal sin and a normalized cosine signal cos to the sensor phase corrector 42.

(79) The sensor phase corrector 42 corrects the phases of the normalized sine signal sin and the normalized cosine signal cos and outputs a corrected sine signal sin .sub.o and a corrected cosine signal cos .sub.o.

(80) The following describes each component of the correction calculator 4 according to the first embodiment.

(81) The normalization processor 41 according to the first embodiment will first be described. FIG. 9 is a diagram illustrating an example of a control block of the normalization processor according to the first embodiment. FIG. 10 is a diagram illustrating an example of a normalization operation performed by the normalization processor illustrated in FIG. 9.

(82) In the example illustrated in FIG. 9, the normalization processor 41 includes an offset voltage corrector 411. In the example illustrated in FIG. 10, a dashed line indicates the sine signal sin .sub.i (cosine signal cos .sub.i), and a solid line indicates the normalized sine signal sin (normalized cosine signal cos ).

(83) The example illustrated in FIGS. 9 and 10 assumes a case where an offset voltage is superimposed on the detection signal of the magnetic sensor 3.

(84) For the offset voltage corrector 411 illustrated in FIG. 9, an average value V sin ave (V cos ave) of the sine signal (cosine signal), which is the detection signal of the magnetic sensor 3, is set as the magnetic sensor correction information and stored in the storage 10 in advance. The average value V sin ave may be, for example, an average value of a predetermined number of cycles of the sine signal, or an average value of any one cycle of the sine signal in terms of electrical angle on the magnetic track 2. The average value V cos ave may be, for example, an average value of a predetermined number of cycles of the cosine signal, or an average value of any one cycle of the cosine signal in terms of electrical angle on the magnetic track 2. The average value V sin ave (V cos ave) of the sine signal (cosine signal) may be, for example, a value measured at a shipping inspection of the rotation angle detection device 1.

(85) In the example illustrated in FIG. 9, the offset voltage corrector 411 uses the average value V sin ave, which is the detection signal of the magnetic sensor 3, to normalize the offset voltage of the sine signal sin .sub.i. Specifically, the normalized sine signal sin is calculated by subtracting V sin ave from the sine signal sin .sub.i, that is, using Expression (1) below.
sin =sin .sub.iV sin ave(1)

(86) For the offset voltage corrector 411 illustrated in FIG. 9, Expression (1) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The offset voltage corrector 411 uses Expression (1) above to normalize the offset voltage of the sine signal sin .sub.i, and thereby outputs the normalized sine signal sin indicated by the solid line in FIG. 10.

(87) In the example illustrated in FIG. 9, the offset voltage corrector 411 uses the average value V cos ave of the cosine signal, which is the detection signal of the magnetic sensor 3, to normalize the offset voltage of the cosine signal cos .sub.i. Specifically, the normalized cosine signal cos is calculated by subtracting V cos ave from the cosine signal cos .sub.i, that is, using Expression (2) below.
cos =cos .sub.iV cos ave(2)

(88) For the offset voltage corrector 411 illustrated in FIG. 9, Expression (2) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The offset voltage corrector 411 uses Expression (2) above to normalize the offset voltage of the cosine signal cos .sub.i, and thereby outputs the normalized cosine signal cos indicated by the solid line in FIG. 10.

(89) FIG. 11 is a diagram illustrating an example, different from that of FIG. 9, of the control block of the normalization processor according to the first embodiment. FIG. 12 is a diagram illustrating an example of the normalization operation performed by the normalization processor illustrated in FIG. 11. In the example illustrated in FIG. 11, the normalization processor 41 includes an amplitude corrector 412. In the example illustrated in FIG. 12, a dashed line indicates the sine signal sin .sub.i (cosine signal cos .sub.i), and a solid line indicates the normalized sine signal sin (normalized cosine signal cos ).

(90) The example illustrated in FIGS. 11 and 12 assumes a case where a variation in output amplitude is present in the detection signal of the magnetic sensor 3.

(91) For the amplitude corrector 412 illustrated in FIG. 11, a maximum value V sin max (V cos max) and a minimum value V sin min (V cos min) of the sine signal (cosine signal), which is the detection signal of the magnetic sensor 3, are set as the magnetic sensor correction information and stored in the storage 10 in advance. The maximum value V sin max of the sine signal may be, for example, the average value of maximum values of the sine signal in respective cycles of a predetermined number of cycles, or a maximum value of the sine signal in any one cycle, in terms of electrical angle on the magnetic track 2. The minimum value V sin min of the sine signal may be, for example, the average value of minimum values of the sine signal in respective cycles of a predetermined number of cycles, or a minimum value of the sine signal in any one cycle, in terms of electrical angle on the magnetic track 2. The maximum value V cos max of the cosine signal may be, for example, the average value of maximum values of the cosine signal in respective cycles of a predetermined number of cycles, or a maximum value of the cosine signal in any one cycle, in terms of electrical angle on the magnetic track 2. The minimum value V cos min of the cosine signal may be, for example, the average value of minimum values of the cosine signal in respective cycles of a predetermined number of cycles, or a minimum value of the cosine signal in any one cycle, in terms of electrical angle on the magnetic track 2. The maximum value V sin max (V cos max) and the minimum value V sin min (V cos min) of the sine signal (cosine signal) may be, for example, values measured at the shipping inspection of the rotation angle detection device 1.

(92) In the example illustrated in FIG. 11, the amplitude corrector 412 uses the maximum value V sin max and the minimum value V sin min of the sine signal to normalize the amplitude of the sine signal sin .sub.i. Specifically, the normalized sine signal sin is calculated by dividing the sine signal sin .sub.i by a value obtained by dividing the absolute value of a value obtained by subtracting V sin min from V sin max by two, that is, using Expression (3) below.
sin =sin .sub.i/(|V sin maxV sin min|/2)(3)

(93) For the amplitude corrector 412 illustrated in FIG. 11, Expression (3) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude corrector 412 uses Expression (3) above to normalize the amplitude of the sine signal sin .sub.i, and thereby outputs the normalized sine signal sin having the normalized amplitude indicated by the solid line in FIG. 12.

(94) In the example illustrated in FIG. 11, the amplitude corrector 412 uses the maximum value V cos max and the minimum value V cos min of the cosine signal to normalize the amplitude of the cosine signal cos .sub.i. Specifically, the normalized cosine signal cos is calculated by dividing the cosine signal cos .sub.i by a value obtained by dividing the absolute value of a value obtained by subtracting V cos min from V cos max by two, that is, using Expression (4) below.
cos =cos .sub.i/(|V cos maxV cos min|/2)(4)

(95) For the amplitude corrector 412 illustrated in FIG. 11, Expression (4) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude corrector 412 uses Expression (4) above to normalize the amplitude of the cosine signal cos .sub.i, and thereby outputs the normalized cosine signal cos having the normalized amplitude indicated by the solid line in FIG. 12.

(96) In the examples described above, for convenience of explanation, the offset voltage corrector 411 and the amplitude corrector 412 included in the normalization processor 41 have been individually described. However, the normalization processor 41 preferably has a configuration including both the offset voltage corrector 411 and the amplitude corrector 412. FIG. 13 is a diagram illustrating an example of the control block in which the normalization processor according to the first embodiment includes both the offset voltage corrector and the amplitude corrector.

(97) In the example illustrated in FIG. 13, the offset voltage corrector 411 uses the average value V sin ave, which is the detection signal of the magnetic sensor 3, to normalize the offset voltage of the sine signal sin .sub.i. Specifically, a normalized sine signal sin is calculated by subtracting V sin ave from the sine signal sin .sub.i, that is, using Expression (5) below.
sin =sin .sub.iV sin ave(5)

(98) For the offset voltage corrector 411 illustrated in FIG. 13, Expression (5) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The offset voltage corrector 411 uses Expression (5) above to normalize the offset voltage of the sine signal sin .sub.i.

(99) In the example illustrated in FIG. 13, the offset voltage corrector 411 uses the average value V cos ave of the cosine signal, which is the detection signal of the magnetic sensor 3, to normalize the offset voltage of the cosine signal cos .sub.i. Specifically, a normalized cosine signal cos is calculated by subtracting V cos ave from the cosine signal cos .sub.i, that is, using Expression (6) below.
cos =cos .sub.iV cos ave(6)

(100) For the offset voltage corrector 411 illustrated in FIG. 13, Expression (6) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The offset voltage corrector 411 uses Expression (6) above to normalize the offset voltage of the cosine signal cos .sub.i.

(101) In the example illustrated in FIG. 13, the amplitude corrector 412 uses the maximum value V sin max and the minimum value V sin min of the sine signal to normalize the amplitude of the normalized sine signal sin . Specifically, the normalized sine signal sin is calculated by dividing the normalized sine signal sin by the value obtained by dividing the absolute value of the value obtained by subtracting V sin min from V sin max by two, that is, using Expression (7) below.
sin sin /(|V sin maxV sin min|/2)(7)

(102) For the amplitude corrector 412 illustrated in FIG. 13, Expression (7) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude corrector 412 uses Expression (7) above to normalize the amplitude of the normalized sine signal sin .

(103) In the example illustrated in FIG. 13, the amplitude corrector 412 uses the maximum value V cos max and the minimum value V cos min of the cosine signal to normalize the amplitude of the normalized cosine signal cos . Specifically, the normalized cosine signal cos is calculated by dividing the normalized cosine signal cos by the value obtained by dividing the absolute value of the value obtained by subtracting V cos min from V cos max by two, that is, using Expression (8) below.
cos =cos /(|V cos maxV cos min|/2)(8)

(104) For the amplitude corrector 412 illustrated in FIG. 13, Expression (8) above is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude corrector 412 uses Expression (8) above to normalize the amplitude of the normalized cosine signal cos .

(105) In other words, in the example illustrated in FIG. 13, the offset voltage corrector 411 first calculates the normalized sine signal sin and the normalized cosine signal cos , respectively, by normalizing the offset voltages of the sine signal sin .sub.i and the cosine signal cos .sub.i, and then the amplitude corrector 412 calculates the normalized sine signal sin and the normalized cosine signal cos , respectively, by normalizing the amplitude values of the normalized sine signal sin and the normalized cosine signal cos . These operations can obtain the normalized sine signal sin having both the normalized offset voltage and the normalized amplitude value of the sine signal sin .sub.i and the normalized cosine signal cos having both the normalized offset voltage and the normalized amplitude value of the cosine signal cos .sub.i.

(106) The following describes the sensor phase corrector 42 according to the first embodiment. FIG. 14 is a diagram illustrating an example of a correction target of the sensor phase corrector according to the first embodiment.

(107) As described above, the magnetic sensor elements 3A1 and 3A2 of the first magnetic sensor 3A are arranged separately from each other in the direction of arrangement of the magnetic pole pairs 2A1 so as to have a phase difference therebetween of 90 degrees in terms of electrical angle on the assumption that one period corresponds to a pitch of each of the magnetic pole pairs 2A1 on the first magnetic track 2A, and the magnetic sensor elements 3B1 and 3B2 of the second magnetic sensor 3B are arranged separately from each other in the direction of arrangement of the magnetic pole pairs 2B1 so as to have a phase difference therebetween of 90 degrees in terms of electrical angle on the assumption that one period corresponds to a pitch of each of the magnetic pole pairs 2B1 on the second magnetic track 2B. The present embodiment assumes a case where an error (hereinafter, called a sensor phase error) .sub.ic is included between an output phase of the magnetic sensor element 3A1 (3B1) and an output phase of the magnetic sensor element 3A2 (3B2). Such an assumption can be applied to cases including, for example, a case where a variation is present in the intervals between the magnetic poles provided on the magnetic track 2 and a case where the radial position of the magnetic sensor 3 on the magnetic track 2 varies during one turn of the rotating body 100, such as a case where the rotation axis X of the rotating body 100 is off the center thereof.

(108) Examples illustrated in FIG. 14 and FIGS. 15 and 16 explained below represent an example of correcting the output phase of the magnetic sensor element 3A2 (3B2) using the magnetic sensor element 3A1 (3B1) as a reference.

(109) FIG. 15 is a diagram illustrating an example of a control block of the sensor phase corrector according to the first embodiment. FIG. 16 is a diagram illustrating an example of a phase correction operation performed by the sensor phase corrector illustrated in FIG. 15. In the example illustrated in FIG. 16, a dashed line indicates the normalized cosine signal cos , and a solid line indicates the corrected cosine signal cos .sub.o.

(110) For the sensor phase corrector 42 illustrated in FIG. 15, the sensor phase error ic between the output phase of the magnetic sensor element 3A1 (3B1) and the output phase of the magnetic sensor element 3A2 (3B2) is set as the first magnetic sensor correction information (second magnetic sensor correction information), and stored in the storage 10 in advance. The sensor phase error .sub.ic may be, for example, a value measured at the shipping inspection of the rotation angle detection device 1.

(111) In the example illustrated in FIG. 15, the sensor phase corrector 42 uses the sensor phase error .sub.ic to correct the phase of the normalized cosine signal cos using the normalized sine signal sin as a reference. However, the sensor phase corrector 42 does not correct the normalized sine signal sin serving as the reference. In other words, the corrected sine signal sin .sub.o in the sensor phase corrector 42 can be represented by Expression (9) below.
sin .sub.o=sin (9)

(112) The corrected cosine signal cos .sub.o is represented by Expression (10) below.
cos .sub.o=(cos(+.sub.ic)+sin sin .sub.ic)/cos .sub.ic(10)

(113) The sensor phase corrector 42 uses Expression (10) above to calculate the corrected cosine signal cos .sub.o. Hereinafter, Expression (10) above is also called a first phase correction arithmetic expression.

(114) For the sensor phase corrector 42 illustrated in FIG. 15, Expression (10) above, that is, the first phase correction arithmetic expression is stored in the storage 10 and set as the first magnetic sensor correction information (second magnetic sensor correction information) in advance. The sensor phase corrector 42 uses Expression (10) above, that is, the first phase correction arithmetic expression to correct the phase of the normalized cosine signal cos , and thereby outputs the corrected cosine signal cos .sub.o indicated by the solid line in FIG. 16.

(115) FIG. 17 is a diagram illustrating an example, different from that of FIG. 14, of the correction target of the sensor phase corrector according to the first embodiment.

(116) Examples illustrated in FIG. 17 and FIGS. 18 and 19 explained below represent an example of correcting the output phase of the magnetic sensor element 3A1 (3B1) using the magnetic sensor element 3A2 (3B2) as a reference.

(117) FIG. 18 is a diagram illustrating an example, different from that of FIG. 15, of the control block of the sensor phase corrector according to the first embodiment. FIG. 19 is a diagram illustrating an example of a phase correction operation performed by the sensor phase corrector illustrated in FIG. 18. In the example illustrated in FIG. 19, a dashed line indicates the normalized sine signal sin , and a solid line indicates the corrected sine signal sin .sub.o.

(118) For a sensor phase corrector 42a illustrated in FIG. 18, the sensor phase error .sub.ic between the output phase of the magnetic sensor element 3A1 (3B1) and the output phase of the magnetic sensor element 3A2 (3B2) is set as the first magnetic sensor correction information (second magnetic sensor correction information), and stored in the storage 10 in advance. The sensor phase error .sub.ic may be, for example, a value measured at the shipping inspection of the rotation angle detection device 1.

(119) In the example illustrated in FIG. 18, the sensor phase corrector 42a uses the sensor phase error .sub.ic to correct the phase of the normalized sine signal sin using the normalized cosine signal cos as a reference. However, the sensor phase corrector 42a does not correct the normalized cosine signal cos serving as the reference. In other words, the corrected cosine signal cos .sub.o in the sensor phase corrector 42a can be represented by Expression (11) below.
cos .sub.o=cos (11)

(120) The corrected sine signal sin .sub.o is represented by Expression (12) below.
sin .sub.o=(sin(+.sub.ic)+cos cos .sub.ic)/sin .sub.ic(12)

(121) The sensor phase corrector 42 uses Expression (12) above to calculate the corrected sine signal sin .sub.o. Hereinafter, Expression (12) above is also called a second phase correction arithmetic expression.

(122) For the sensor phase corrector 42a illustrated in FIG. 18, Expression (12) above, that is, the second phase correction arithmetic expression is stored in the storage 10 and set as the first magnetic sensor correction information (second magnetic sensor correction information) in advance. The sensor phase corrector 42a uses Expression (12) above, that is, the second phase correction arithmetic expression to correct the phase of the normalized sine signal sin , and thereby outputs the corrected sine signal sin .sub.o indicated by the solid line in FIG. 19.

(123) The first correction calculator 4A includes the sensor phase corrector 42 or the sensor phase corrector 42a and thus can correct the output phase of the first magnetic sensor 3A. The second correction calculator 4B includes the sensor phase corrector 42 or the sensor phase corrector 42a and thus can correct the output phase of the second magnetic sensor 3B.

(124) The following describes a specific procedure of a rotation angle detection method according to the first embodiment. FIG. 20 is a diagram illustrating an example of the specific procedure of the rotation angle detection method according to the first embodiment.

(125) First, the first correction calculator 4A corrects the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1 to the first corrected sine signal sin .sub.o1 and the first corrected cosine signal cos .sub.o1, respectively, based on the first magnetic sensor correction information; and the second correction calculator 4B corrects the second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2 to the second corrected sine signal sin .sub.o2 and the second corrected cosine signal cos .sub.o2, respectively, based on the second magnetic sensor correction information (Step S3101).

(126) Subsequently, the first phase detector 5A calculates a phase of the first corrected sine signal sin .sub.o1 and the first corrected cosine signal cos .sub.o1, and the second phase detector 5B calculates a phase of the second corrected sine signal sin .sub.o2 and the second corrected cosine signal cos .sub.o2 (Step S102).

(127) Subsequently, the phase difference detector 6 calculates the phase difference between the first magnetic sensor 3A and the second magnetic sensor 3B based on the detected phase of the first magnetic sensor 3A and the detected phase of the second magnetic sensor 3B (Step S103).

(128) Then, the angle calculator 7 converts the phase difference output from the phase difference detector 6 into the absolute angle (Step S104).

(129) As described above, the rotation angle detection device 1 according to the first embodiment includes the rotating body 100, the first magnetic sensor 3A, the second magnetic sensor 3B, the storage 10, the first correction calculator 4A, the second correction calculator 4B, the first phase detector 5A, the second phase detector 5B, the phase difference detector 6, and the angle calculator 7. The rotating body 100 is a body on which the first magnetic track 2A along which the magnetic pole pairs 2A1 are arranged at even intervals and the second magnetic track 2B along which the magnetic pole pairs 2B1 are arranged at even intervals, are provided so as to be arranged in the radial direction in concentric ring shapes having the axis center at the rotation axis X. Each of the magnetic pole pairs has the north pole and the south pole. When the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is P (P is a natural number), the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is P1 or P+1. The first magnetic sensor 3A detects the magnetic field of the first magnetic track 2A and outputs the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1. The second magnetic sensor 3B detects the magnetic field of the second magnetic track 2B and outputs the second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2. The storage 10 stores the first magnetic sensor correction information and the second magnetic sensor correction information that are preset. The first magnetic sensor correction information is preset such that the value of the first sine signal sin .sub.i1 output by the first magnetic sensor 3A corresponding to the rotation angle of the first magnetic track 2A comes closer to the reference value of the sine signal of the first magnetic sensor 3A, or such that the value of the first cosine signal cos .sub.i1 output by the first magnetic sensor 3A corresponding to the rotation angle of the first magnetic track 2A comes closer to the reference value of the cosine signal of the first magnetic sensor 3A. The second magnetic sensor correction information is preset such that the value of the second sine signal sin .sub.i2 output by the second magnetic sensor 3B corresponding to the rotation angle of the second magnetic track 2B comes closer to the reference value of the sine signal of the second magnetic sensor 3B, or such that the value of the second cosine signal cos .sub.i2 output by the second magnetic sensor 3B corresponding to the rotation angle of the second magnetic track 2B comes closer to the reference value of the cosine signal of the second magnetic sensor 3B. The first correction calculator 4A corrects the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1 to the first corrected sine signal sin .sub.o1 and the first corrected cosine signal cos .sub.o1 based on the first magnetic sensor correction information. The second correction calculator 4B corrects the second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2 to the second corrected sine signal sin .sub.o2 and the second corrected cosine signal cos .sub.o2 based on the second magnetic sensor correction information. The first phase detector 5A calculates the phase of the first corrected sine signal sin .sub.o1 and the first corrected cosine signal cos .sub.o1. The second phase detector 5B calculates the phase of the second corrected sine signal sin .sub.o2 and the second corrected cosine signal cos .sub.o2. The phase difference detector 6 calculates the phase difference between the first magnetic sensor 3A and the second magnetic sensor 3B based on the detected phase of the first magnetic sensor 3A and the detected phase of the second magnetic sensor 3B. The angle calculator 7 converts the phase difference into the absolute angle.

(130) With this configuration, the rotation angle detection device 1 can correct in real time the sine signals and the cosine signals before the phases are calculated by the first phase detector 5A and the second phase detector 5B. The phases are calculated using the corrected sine signals and the corrected cosine signals that have been corrected from the sine signals and the cosine signals based on the known preset magnetic sensor correction information. Therefore, the detection accuracy of the absolute angle of the rotating body 100 is improved. Accordingly, the rotation angle detection device 1 according to the present embodiment can accurately detect the absolute angle of the rotating body 100.

(131) For each of the correction calculators 4 (the first correction calculator 4A and the second correction calculator 4B), the average values V sin ave and V cos ave of the sine signal and the cosine signal that are the detection signals of the first magnetic sensor 3A (second magnetic sensor 3B), are stored in advance as the first magnetic sensor correction information (second magnetic sensor correction information) in the storage 10; and the offset voltage corrector 411 uses the average value V sin ave of the sine signal to correct the sine signal and uses the average value V cos ave of the cosine signal to correct the cosine signal. With this configuration, the offset voltages of the sine signal and the cosine signal can be normalized.

(132) For each of the correction calculators 4 (the first correction calculator 4A and the second correction calculator 4B), the maximum values V sin max and V cos max and the minimum values V sin min and V cos min of the sine signal and the cosine signal that are the detection signals of the first magnetic sensor 3A (second magnetic sensor 3B), are stored in advance as the first magnetic sensor correction information (second magnetic sensor correction information) in the storage 10; and the amplitude corrector 412 uses the maximum value V sin max and the minimum value V sin min of the sine signal to correct the sine signal and uses the maximum value V cos max and the minimum value V cos min of the cosine signal to correct the cosine signal. With this configuration, the amplitude values of the sine signal and the cosine signal can be normalized.

(133) With the configuration in which each of the correction calculators 4 (the first correction calculator 4A and the second correction calculator 4B) includes both the offset voltage corrector 411 and the amplitude corrector 412, the correction calculators 4 can normalize both the offset voltages and the amplitude values of the sine signal and the cosine signal.

(134) For each of the correction calculators 4 (the first correction calculator 4A and the second correction calculator 4B), the sensor phase error .sub.ic between the output phase of the magnetic sensor element 3A1 (3B1) and the output phase of the magnetic sensor element 3A2 (3B2) in the first magnetic sensor 3A (second magnetic sensor 3B) and the first phase correction arithmetic expression are stored in advance as the first magnetic sensor correction information (second magnetic sensor correction information) in the storage 10, and the sensor phase corrector 42 uses the sensor phase error .sub.ic and the first phase correction arithmetic expression to correct the cosine signal. With this configuration, the output phase of the magnetic sensor element 3A2 (3B2) can be corrected using the magnetic sensor element 3A1 (3B1) as the reference. Alternatively, the sensor phase error .sub.ic between the output phase of the magnetic sensor element 3A1 (3B1) and the output phase of the magnetic sensor element 3A2 (3B2) in the first magnetic sensor 3A (second magnetic sensor 3B) and the second phase correction arithmetic expression are stored in advance as the first magnetic sensor correction information (second magnetic sensor correction information) in the storage 10, and the sensor phase corrector 42a uses the sensor phase error .sub.ic and the second phase correction arithmetic expression to correct the sine signal. With this configuration, the output phase of the magnetic sensor element 3A1 (3B1) can be corrected using the magnetic sensor element 3A2 (3B2) as the reference.

(135) This configuration can improve the accuracy of position detection by the rotation angle detection device, and as a result, can contribute to an improvement in rotation control performance of various devices.

(136) The rotation angle detection method according to the first embodiment includes; correcting the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1 to the first corrected sine signal sin .sub.o1 and the first corrected cosine signal cos .sub.o1 based on the first magnetic sensor correction information that is preset such that the value of the first sine signal sin .sub.i1 output by the first magnetic sensor 3A, which detects the magnetic field of the first magnetic track 2A and outputs the first sine signal sin .sub.i1 and the first cosine signal cos .sub.i1 corresponding to the rotation angle of the first magnetic track 2A along which the magnetic pole pairs 2A1 each having the north pole and the south pole are arranged at even intervals, comes closer to the reference value of the sine signal of the first magnetic sensor 3A, or such that the value of the first cosine signal cos .sub.i1 output by the first magnetic sensor 3A corresponding to the rotation angle of the first magnetic track 2A comes closer to the reference value of the cosine signal of the first magnetic sensor 3A (signal correction step); correcting the second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2 to the second corrected sine signal sin .sub.o2 and the second corrected cosine signal cos .sub.o2 based on the second magnetic sensor correction information that is preset such that the value of the second sine signal sin .sub.i2 output by the second magnetic sensor 3B, which detects the magnetic field of the second magnetic track 2B and outputs the second sine signal sin .sub.i2 and the second cosine signal cos .sub.i2 corresponding to the rotation angle of the second magnetic track 2B along which the magnetic pole pairs 2B1 are arranged at even intervals, comes closer to the reference value of the sine signal of the second magnetic sensor 3B, or such that the value of the second cosine signal cos .sub.i2 output by the second magnetic sensor 3B corresponding to the rotation angle of the second magnetic track 2B comes closer to the reference value of the cosine signal of the second magnetic sensor 3B (signal correction step); calculating the phase of the first corrected sine signal sin .sub.o1 and the first corrected cosine signal cos .sub.o1 (phase calculation step); calculating the phase of the second corrected sine signal sin .sub.o2 and the second corrected cosine signal cos .sub.o2 (phase calculation step); calculating the phase difference between the first magnetic sensor 3A and the second magnetic sensor 3B based on the detected phase of the first magnetic sensor 3A and the detected phase of the second magnetic sensor 3B (phase difference calculation step); and converting phase difference into the absolute angle (absolute angle calculation step).

(137) With this method, the sine signals and the cosine signals can be corrected in real time before the phases are calculated by the first phase detector 5A and the second phase detector 5B. The phases are calculated using the corrected sine signals and the corrected cosine signals that have been corrected from the sine signals and the cosine signals based on the known preset magnetic sensor correction information. Therefore, the detection accuracy of the absolute angle of the rotating body 100 is improved. Accordingly, with the rotation angle detection method according to the present embodiment, the absolute angle of the rotating body 100 can be accurately detected.

(138) The first embodiment described above exemplifies the axial configuration in which the first magnetic track 2A and the second magnetic track 2B are magnetized on one end face in the axial direction of the rotating body 100. The configuration is, however, not limited thereto, and may be, for example, a radial configuration in which the first magnetic track 2A and the second magnetic track 2B are magnetized on the outer circumferential surface of the rotating body 100 and provided so as to be arranged in the axial direction.

Second Embodiment

(139) For example, a configuration, a rotating body, magnetic tracks, and an arrangement of a magnetic sensor module of a rotation angle detection device according to a second embodiment are the same as those of the first embodiment, and therefore description thereof will not be repeated. The same components as those described above in the first embodiment are denoted by the same reference signs, and the description thereof will not be repeated. In the following description, each of the first magnetic track 2A and the second magnetic track 2B is also called a magnetic track 2; each of the first magnetic sensor 3A and the second magnetic sensor 3B is also called a magnetic sensor 3; each of the first correction calculator 4A and the second correction calculator 4B is also called a correction calculator 4a; and each of the first magnetic sensor correction information and the second magnetic sensor correction information is also called magnetic sensor correction information.

(140) FIG. 21 is a diagram illustrating an example of functional blocks of the correction calculator according to the second embodiment. As illustrated in FIG. 21, the correction calculator 4a according to the second embodiment includes the normalization processor 41 described in the first embodiment and an amplitude variation reducer 43.

(141) The correction calculator 4a receives the sine signal sin .sub.i and the cosine signal cos .sub.i output from the magnetic sensor 3. The correction calculator 4a acquires the magnetic sensor correction information to be applied to the normalization processor 41 and the amplitude variation reducer 43 from the storage 10.

(142) The normalization processor 41 normalizes the sine signal sin .sub.i and the cosine signal cos .sub.i output from the magnetic sensor 3 and outputs the normalized sine signal sin and the normalized cosine signal cos to the sensor phase corrector 42.

(143) The amplitude variation reducer 43 corrects amplitude variations of the normalized sine signal sin and the normalized cosine signal cos and outputs the corrected sine signal sin .sub.o and the corrected cosine signal cos .sub.o.

(144) FIG. 22 is a diagram illustrating an example of a control block of the amplitude variation reducer according to the second embodiment. The control block of the normalization processor 41 is the same as that of the first embodiment, and therefore description thereof will not be repeated.

(145) The present embodiment assumes a case where the output amplitude of the magnetic sensor 3 varies. Such an assumption can be applied to cases including, for example, a case where an axial surface provided with the magnetic track 2 of the rotating body 100 is not smooth and a case where the axial distance between the magnetic sensor 3 and the magnetic track 2 varies during one turn of the rotating body 100, such as a case where the rotation axis X of the rotating body 100 is tilted.

(146) The amplitude variation reducer 43 illustrated in FIG. 22 uses Expression (13) below to calculate the corrected sine signal sin .sub.o. Hereinafter, Expression (13) below is also called a first amplitude variation correction arithmetic expression.
sin .sub.o=sin /(1(1sin.sup.2 +cos.sup.2 )/2)(13)

(147) For the amplitude variation reducer 43 illustrated in FIG. 22, Expression (13) above, that is, the first amplitude variation correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude variation reducer 43 uses Expression (13) above, that is, the first amplitude variation correction arithmetic expression to calculate the corrected sine signal sin .sub.o by reducing the cyclic amplitude variation of the normalized sine signal sin and outputs the result.

(148) The amplitude variation reducer 43 illustrated in FIG. 22 uses Expression (14) below to calculate the corrected cosine signal cos .sub.o. Hereinafter, Expression (14) below is also called a second amplitude variation correction arithmetic expression.
cos .sub.o=cos /(1(1sin.sup.2 +cos.sup.2 )/2)(14)

(149) For the amplitude variation reducer 43 illustrated in FIG. 22, Expression (14) above, that is, the second amplitude variation correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude variation reducer 43 uses Expression (14) above, that is, the second amplitude variation correction arithmetic expression to calculate the corrected cosine signal cos .sub.o by reducing the cyclic amplitude variation of the normalized cosine signal cos and outputs the result.

(150) The first correction calculator 4A includes the amplitude variation reducer 43 and thus can correct the variation in the output amplitude of the first magnetic sensor 3A. The second correction calculator 4B includes the amplitude variation reducer 43 and thus can correct the variation in the output amplitude of the second magnetic sensor 3B.

(151) As described above, for each of the correction calculators 4a (the first correction calculator 4A and the second correction calculator 4B), the first amplitude variation correction arithmetic expression and the second amplitude variation correction arithmetic expression are stored in advance as the first sensor correction information in the storage 10, and the amplitude variation reducer 43 uses the first amplitude variation correction arithmetic expression and the second amplitude variation correction arithmetic expression to correct the sine signal and the cosine signal. With this configuration, the variation in the output amplitude of the first magnetic sensor 3A (second magnetic sensor 3B) can be corrected.

(152) The above-described configuration can improve the accuracy of position detection by the rotation angle detection device, and as a result, can contribute to an improvement in rotation control performance of various devices.

Third Embodiment

(153) For example, a configuration, a rotating body, magnetic tracks, and an arrangement of a magnetic sensor module of a rotation angle detection device according to a third embodiment are the same as those of the first and second embodiments, and therefore description thereof will not be repeated. The same components as those described above in the first and second embodiments are denoted by the same reference signs, and the description thereof will not be repeated. In the following description, each of the first magnetic track 2A and the second magnetic track 2B is also called a magnetic track 2; each of the first magnetic sensor 3A and the second magnetic sensor 3B is also called a magnetic sensor 3; each of the first correction calculator 4A and the second correction calculator 4B is also called a correction calculator 4b; and each of the first magnetic sensor correction information and the second magnetic sensor correction information is also called magnetic sensor correction information.

(154) FIG. 23 is a diagram illustrating an example of functional blocks of the correction calculator according to the third embodiment. FIG. 24 is a diagram illustrating an example of the control block in which the correction calculator according to the third embodiment includes both the sensor phase corrector and the amplitude variation reducer. FIG. 25 is a diagram illustrating an example, different from that of FIG. 24, of the control block in which the correction calculator according to the third embodiment includes both the sensor phase corrector and the amplitude variation reducer.

(155) As illustrated in FIGS. 23 to 25, the correction calculator 4b according to the third embodiment includes the normalization processor 41 and the sensor phase corrector 42 (or the sensor phase corrector 42a) described in the first embodiment and the amplitude variation reducer 43 described in the second embodiment.

(156) The correction calculator 4b receives the sine signal sin .sub.i and the cosine signal cos .sub.i output from the magnetic sensor 3. The correction calculator 4b acquires the magnetic sensor correction information to be applied to the normalization processor 41 and the amplitude variation reducer 43 from the storage 10.

(157) The normalization processor 41 normalizes the sine signal sin .sub.i and the cosine signal cos .sub.i output from the magnetic sensor 3 and outputs the normalized sine signal sin and the normalized cosine signal cos to the sensor phase corrector 42 or 42a.

(158) The sensor phase corrector 42 or 42a corrects the phase of the normalized sine signal sin or the normalized cosine signal cos and outputs a corrected sine signal sin .sub.o and a corrected cosine signal cos .sub.o.

(159) The sensor phase corrector 42 illustrated in FIG. 24 does not correct the normalized sine signal sin serving as the reference. In other words, the corrected sine signal sin .sub.o in the sensor phase corrector 42 can be represented by Expression (15) below.
sin .sub.o=sin (15)

(160) The sensor phase corrector 42 illustrated in FIG. 24 uses Expression (16) below to calculate the corrected cosine signal cos .sub.o. Hereinafter, Expression (16) below is also called a first phase correction arithmetic expression in the same manner as Expression (10) above.
cos .sub.o=(cos(+.sub.ic)+sin sin .sub.ic)/cos .sub.ic(16)

(161) For the sensor phase corrector 42 illustrated in FIG. 24, Expression (16) above, that is, the first phase correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The sensor phase corrector 42 uses Expression (16) above, that is, the first phase correction arithmetic expression to calculate the corrected cosine signal cos .sub.o by correcting the phase of the normalized cosine signal cos and outputs the result.

(162) The amplitude variation reducer 43 corrects the amplitude variations of the corrected sine signal sin .sub.o and the corrected cosine signal cos .sub.o and outputs the corrected sine signal sin .sub.o and the corrected cosine signal cos .sub.o.

(163) Specifically, the amplitude variation reducer 43 illustrated in FIG. 24 uses Expression (17) below to calculate the corrected sine signal sin .sub.o. Hereinafter, Expression (17) below is also called a first amplitude variation correction arithmetic expression in the same manner as Expression (13) above.
sin .sub.o=sin .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(17)

(164) For the amplitude variation reducer 43 illustrated in FIG. 24, Expression (17) above, that is, the first amplitude variation correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude variation reducer 43 uses Expression (17) above, that is, the first amplitude variation correction arithmetic expression to calculate the corrected sine signal sin .sub.o by reducing the cyclic amplitude variation of the corrected sine signal sin .sub.o and outputs the result.

(165) The amplitude variation reducer 43 illustrated in FIG. 24 uses Expression (18) below to calculate the corrected cosine signal cos .sub.o. Hereinafter, Expression (18) below is also called a second amplitude variation correction arithmetic expression in the same manner as Expression (14) above.
cos .sub.o=cos .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(18)

(166) For the amplitude variation reducer 43 illustrated in FIG. 24, Expression (18) above, that is, the second amplitude variation correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude variation reducer 43 uses Expression (18) above, that is, the second amplitude variation correction arithmetic expression to calculate the corrected cosine signal cos .sub.o by reducing the cyclic amplitude variation of the corrected cosine signal cos .sub.o and outputs the result.

(167) The sensor phase corrector 42a illustrated in FIG. 25 uses Expression (19) below to calculate the corrected sine signal sin .sub.o. Hereinafter, Expression (19) below is also called a second phase correction arithmetic expression in the same manner as Expression (12) above.
sin .sub.o=(sin(+.sub.ic)+cos cos .sub.ic)/sin .sub.ic(19)

(168) For the sensor phase corrector 42a illustrated in FIG. 25, Expression (19) above, that is, the second phase correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The sensor phase corrector 42a uses Expression (19) above, that is, the second phase correction arithmetic expression to calculate the corrected sine signal sin .sub.o by correcting the phase of the normalized sine signal sin and outputs the result.

(169) The sensor phase corrector 42a illustrated in FIG. 25 does not correct the normalized cosine signal cos serving as the reference. In other words, the corrected cosine signal cos .sub.o in the sensor phase corrector 42a can be represented by Expression (20) below.
cos .sub.o=cos (20)

(170) The amplitude variation reducer 43 corrects the amplitude variations of the corrected sine signal sin .sub.o and the corrected cosine signal cos .sub.o and outputs the corrected sine signal sin .sub.o and the corrected cosine signal cos .sub.o.

(171) Specifically, the amplitude variation reducer 43 illustrated in FIG. 25 uses Expression (21) below to calculate the corrected sine signal sin .sub.o. Hereinafter, Expression (21) below is also called a first amplitude variation correction arithmetic expression in the same manner as Expressions (13) and (17) above.
sin .sub.o=sin .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(21)

(172) For the amplitude variation reducer 43 illustrated in FIG. 25, Expression (21) above, that is, the first amplitude variation correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude variation reducer 43 uses Expression (21) above, that is, the first amplitude variation correction arithmetic expression to calculate the corrected sine signal sin .sub.o by reducing the cyclic amplitude variation of the corrected sine signal sin .sub.o and outputs the result.

(173) The amplitude variation reducer 43 illustrated in FIG. 25 uses Expression (22) below to calculate the corrected cosine signal cos .sub.o. Hereinafter, Expression (22) below is also called a second amplitude variation correction arithmetic expression in the same manner as Expressions (14) and (18) above.
cos .sub.o=cos .sub.o/(1(1sin.sup.2 .sub.o+cos.sup.2 .sub.o)/2)(22)

(174) For the amplitude variation reducer 43 illustrated in FIG. 25, Expression (22) above, that is, the second amplitude variation correction arithmetic expression is stored in the storage 10 and set as the magnetic sensor correction information in advance. The amplitude variation reducer 43 uses Expression (22) above, that is, the second amplitude variation correction arithmetic expression to calculate the corrected cosine signal cos .sub.o by reducing the cyclic amplitude variation of the corrected cosine signal cos .sub.o and outputs the result.

(175) With the configuration in which the first correction calculator 4A includes both the sensor phase corrector 42 or the sensor phase corrector 42a described in the first embodiment and the amplitude variation reducer 43 described in the second embodiment, the first correction calculator 4A can correct both the output phase and the variation in the output amplitude of the first magnetic sensor 3A. With the configuration in which the second correction calculator 4B includes both the sensor phase corrector 42 or the sensor phase corrector 42a described in the first embodiment and the amplitude variation reducer 43 described in the second embodiment, the second correction calculator 4B can correct both the output phase and the variation in the output amplitude of the second magnetic sensor 3B.

(176) As described above, each of the correction calculators 4b (the first correction calculator 4A and the second correction calculator 4B) includes both the sensor phase corrector 42 or the sensor phase corrector 42a and the amplitude variation reducer 43. Therefore, both the output phase and the variation in the output amplitude of the first magnetic sensor 3A (second magnetic sensor 3B) can be corrected, and thus, the absolute angle of the rotating body 100 can be more accurately detected than in the first and second embodiments.

(177) This configuration can more greatly improve the accuracy of position detection by the rotation angle detection device than in the first and second embodiments, and as a result, can more greatly contribute to the improvement in rotation control performance of various devices than in the first and second embodiments.

Fourth Embodiment

(178) FIG. 26 is a diagram illustrating an example of a rotating body of a rotation angle detection device according to a fourth embodiment. FIG. 27 is a diagram illustrating an example of magnetic tracks of the rotating body illustrated in FIG. 26. FIG. 28 is a diagram illustrating an arrangement example of magnetic sensor modules of the rotation angle detection device according to the fourth embodiment. FIG. 29 is a sectional view, along IV-IV illustrated in FIG. 28, of the rotation angle detection device according to the fourth embodiment.

(179) As illustrated in FIGS. 26 and 27, a rotating body 100a of a rotation angle detection device 1a according to the fourth embodiment has a third magnetic track 2C along which magnetic pole pairs 2C1 arranged at even intervals, in addition to the configuration of the first embodiment.

(180) In the example illustrated in FIG. 27, the third magnetic track 2C includes 28 pairs of the magnetic pole pairs 2C1.

(181) The present embodiment has an axial configuration in which the first magnetic track 2A, the second magnetic track 2B, and the third magnetic track 2C are provided on one end face in the axial direction of the rotating body 100a, but is not limited to this configuration, and may have a radial configuration in which the first magnetic track 2A, the second magnetic track 2B, and the third magnetic track 2C are provided, for example, so as to be arranged in the axial direction on the outer circumferential surface of the rotating body 100a.

(182) As illustrated in FIGS. 28 and 29, in the fourth embodiment, two modules of a first magnetic sensor module 200a and a second magnetic sensor module 200b are provided so as to be arranged in the radial direction of the rotating body 100a. These two modules of the first magnetic sensor module 200a and the second magnetic sensor module 200b each have substantially the same configuration and function as those of the magnetic sensor module 200 described in the first, second, and third embodiments.

(183) The first magnetic sensor module 200a and the second magnetic sensor module 200b are each provided so as to be opposed in the axial direction to the rotating body 100a that has the first magnetic track 2A, the second magnetic track 2B, and the third magnetic track 2C, with a gap therebetween.

(184) More specifically, the first magnetic sensor 3A of the first magnetic sensor module 200a is opposed to the first magnetic track 2A and detects a magnetic field of the first magnetic track 2A. The second magnetic sensor 3B of the first magnetic sensor module 200a is opposed to the second magnetic track 2B and detects the magnetic field of the second magnetic track 2B. The first magnetic sensor 3A of the second magnetic sensor module 200b is opposed to the first magnetic track 2A and detects a magnetic field of the first magnetic track 2A. The second magnetic sensor 3B of the second magnetic sensor module 200b is opposed to the third magnetic track 2C and detects a magnetic field of the third magnetic track 2C.

(185) The first magnetic sensor module 200a and the second magnetic sensor module 200b are provided at fixed places that do not rotate in synchronization with the rotating body 100a.

(186) In the example illustrated in FIG. 27, the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is 32 (P=32, where P is a natural number) while the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is 31 (P1=31), and the magnetic pole phase of the first magnetic track 2A coincides with the magnetic pole phase of the second magnetic track 2B at point A. In other words, the first magnetic sensor module 200a can detect the absolute angle in the entire circumference of the rotating body 100a with respect to point A serving as the origin position where the phase of the detection signal of the first magnetic sensor 3A coincides with the phase of the detection signal of the second magnetic sensor 3B.

(187) The relation between the number of the magnetic pole pairs 2A1 on the first magnetic track 2A and the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is not limited to that described above. For example, the configuration may be such that the number of the magnetic pole pairs 2B1 on the second magnetic track 2B is P+1 when the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is P.

(188) In the example illustrated in FIG. 27, the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is 32 (=48) while the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is 28 (=47), and the magnetic pole phase of the first magnetic track 2A coincides with the magnetic pole phase of the third magnetic track 2C at each point of point A, point B, point C, and point D that divide the rotating body 100a in the circumferential direction thereof into four equal parts. In other words, the second magnetic sensor module 200b can detect the absolute angle in each segment obtained by dividing the entire circumference of the rotating body 100a into the four equal parts with respect to a corresponding one of point A, point B, point C, and point D serving as an origin position where the phase of the detection signal of the first magnetic sensor 3A coincides with the phase of the detection signal of the second magnetic sensor 3B.

(189) The relation between the number of the magnetic pole pairs 2A1 on the first magnetic track 2A and the number of the magnetic pole pairs 2C1 on the third magnetic track 2C, illustrated in FIG. 27, is generalized as follows: when the second magnetic sensor module 200b is configured such that the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is nQ (where n and Q are natural numbers) while the number of the magnetic pole pairs 201 on the third magnetic track 2C is n(Q1), and the magnetic pole phase of the first magnetic track 2A coincides with the magnetic pole phase of the third magnetic track 2C at all points that divide the rotating body 100a in the circumferential direction thereof into n equal parts, the second magnetic sensor module 200b can detect the absolute angle in each segment obtained by dividing the entire circumference of the rotating body 100a into the n equal parts with respect to a corresponding one of the points serving as an origin position where the phase of the detection signal of the first magnetic sensor 3A coincides with the phase of the detection signal of the second magnetic sensor 3B.

(190) The relation between the number of the magnetic pole pairs 2A1 on the first magnetic track 2A and the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is not limited to that described above. For example, the configuration may be such that the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is n(Q+1) when the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is nQ.

(191) In this manner, reliability in the detection of the absolute angle of the rotating body 100a can be increased by adding the configuration of detecting the absolute angle in each segment obtained by dividing the entire circumference of the rotating body 100a into the n equal parts to the configuration of detecting the absolute angle in the entire circumference of the rotating body 100a.

(192) As described above, the rotation angle detection device 1a according to the fourth embodiment further includes the third magnetic track 2C having the axis center at the rotation axis X; when the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is set to nQ (where n and Q are natural numbers), the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is set to n(Q1) or n(Q+1); and the rotation angle detection device 1a includes the first magnetic sensor module 200a that detects the magnetic field of the first magnetic track 2A and the magnetic field of the second magnetic track 2B to detect the absolute angle in the entire circumference of the rotating body 100a and the second magnetic sensor module 200b that detects the magnetic field of the first magnetic track 2A and the magnetic field of the third magnetic track 2C to detect the absolute angle in each segment obtained by dividing the entire circumference of the rotating body 100a into the n equal parts.

(193) This configuration can increase the reliability in the detection of the absolute angle of the rotating body 100a.

(194) When the first magnetic sensor module 200a and the second magnetic sensor module 200b each have a configuration including the correction calculator 4, 4a, or 4b (the first correction calculator 4A and the second correction calculator 4B) in the same manner as in the first, second, and third embodiments, the absolute angle of the rotating body 100a can be accurately detected.

(195) The above-described configuration can improve the accuracy of position detection by the rotation angle detection device, and as a result, can contribute to an improvement in rotation control performance of various devices.

Fifth Embodiment

(196) FIG. 30 is a diagram illustrating an arrangement example of the magnetic sensor modules of a rotation angle detection device according to a fifth embodiment.

(197) In the present embodiment, a rotating body 100b of a rotation angle detection device 1b according to the fifth embodiment has the first magnetic track 2A, the second magnetic track 2B, and the third magnetic track 2C, in the same manner as the rotating body 100a of the rotation angle detection device 1a according to the fourth embodiment.

(198) In the present embodiment, the number of the magnetic pole pairs on the first magnetic track 2A, the number of the magnetic pole pairs on the second magnetic track 2B, and the number of the magnetic pole pairs on the third magnetic track 2C are the same as those of the fourth embodiment.

(199) In other words, in the same manner as in the fourth embodiment, the first magnetic sensor module 200a can detect the absolute angle in the entire circumference of the rotating body 100b with respect to point A serving as the origin position where the phase of the detection signal of the first magnetic sensor 3A coincides with the phase of the detection signal of the second magnetic sensor 3B (refer to FIG. 27).

(200) In the same manner as in the fourth embodiment, the relation between the number of the magnetic pole pairs 2A1 on the first magnetic track 2A and the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is generalized as follows: in the configuration in which the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is nQ (where n and Q are natural numbers) while the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is n(Q1), and the magnetic pole phase of the first magnetic track 2A coincides with the magnetic pole phase of the third magnetic track 2C at all points that divide the rotating body 100a in the circumferential direction thereof into n equal parts, the second magnetic sensor module 200b can detect the absolute angle in each segment obtained by dividing the entire circumference of the rotating body 100b into the n equal parts with respect to a corresponding one of the points serving as an origin position where the phase of the detection signal of the first magnetic sensor 3A coincides with the phase of the detection signal of the second magnetic sensor 3B.

(201) In the same manner as in the fourth embodiment, the relation between the number of the magnetic pole pairs 2A1 on the first magnetic track 2A and the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is also not limited to that described above. For example, the configuration may be such that the number of the magnetic pole pairs 2C1 on the third magnetic track 2C is n(Q+1) when the number of the magnetic pole pairs 2A1 on the first magnetic track 2A is nQ.

(202) In the fourth embodiment, the example has been described in which the first magnetic sensor module 200a and the second magnetic sensor module 200b are provided so as to be arranged in the radial direction of the rotating body 100a (refer to FIG. 28). In this case, the first magnetic sensor 3A of the first magnetic sensor module 200a and the first magnetic sensor 3A of the second magnetic sensor module 200b that detect the magnetic field of the first magnetic track 2A are arranged in the radial direction of the rotating body 100a. Therefore, the width in the radial direction of the first magnetic track 2A needs to be greater than the width in the radial direction of each of the second magnetic track 2B and the third magnetic track 2C.

(203) In the present embodiment, as illustrated in FIG. 30, the first magnetic sensor module 200a and the second magnetic sensor module 200b are arranged so as to be shifted from each other by an angle in the circumferential direction of the rotating body 100b. With this arrangement, the first magnetic sensor 3A of the first magnetic sensor module 200a and the first magnetic sensor 3A of the second magnetic sensor module 200b are arranged in the circumferential direction of the rotating body 100b. Therefore, a width W1 in the radial direction of the first magnetic track 2A can be less than that of the fourth embodiment. Specifically, the width W1 in the radial direction of the first magnetic track 2A can be, for example, equal to a width W2 in the radial direction of the second magnetic track 2B and a width W3 in the radial direction of the third magnetic track 2C (W1W2W3). As a result, a diameter of a hollow hole of the rotating body 100b can be greater than that of the fourth embodiment. This configuration can provide a higher degree of freedom of designing the device to which the rotation angle detection device 1b according to the fifth embodiment is applied than in the case of the fourth embodiment.

(204) As described above, in the rotation angle detection device 1b according to the fifth embodiment, the first magnetic sensor module 200a and the second magnetic sensor module 200b are arranged so as to be shifted from each other by the angle in the circumferential direction of the rotating body 100b. With this configuration, the width W1 in the radial direction of the first magnetic track 2A can be less than that of the fourth embodiment. This, in turn, can make the diameter of the hollow hole of the rotating body 100b greater than that of the fourth embodiment, and can provide a higher degree of freedom of designing the device to which the rotation angle detection device 1b according to the fifth embodiment is applied than in the case of the fourth embodiment.

(205) The following describes modifications of the magnetic sensor module of the rotation angle detection device. In the following description, the same components as those described above in any one of the first to third embodiments are denoted by the same reference signs, or are not denoted by any reference sign and will not be described again.

(206) FIG. 31 is a diagram illustrating a first modification of the magnetic sensor module. The rotation angle detection device 1 illustrated in FIG. 1 is exemplified to include the magnetic sensor module 200 integrated into the IC chip, and the transmitter 9 and the storage 10 provided outside the IC chip. In contrast, a rotation angle detection device 1A illustrated in FIG. 31 represents an example in which the magnetic sensor module 200, the transmitter 9, and the storage 10 are integrated into one IC chip.

(207) Specifically, the magnetic sensor module 200 includes the first magnetic sensor 3A, the first correction calculator 4A, the first phase detector 5A, the second magnetic sensor 3B, the second correction calculator 4B, the second phase detector 5B, the phase difference detector 6, the angle calculator 7, the angle information generator 8, a processor 11, and a random access memory (RAM) 12.

(208) After a power supply is turned on, the processor 11 reads various types of information from the storage 10 and stores the various types of information thus read in the RAM 12. The various types of information is information required to operate the rotation angle detection device 1, including, for example, the calculation parameter used by the angle calculator 7, the number (P) of the magnetic pole pairs 2A1 on the first magnetic track 2A, the number (P+1) of the magnetic pole pairs 2B1 on the second magnetic track 2B, the first magnetic sensor correction information used by the first correction calculator 4A, the second magnetic sensor correction information used by the second correction calculator 4B, and the reference position of the absolute angle.

(209) The angle calculator 7 reads, for example, the calculation parameter from the RAM 12. The first correction calculator 4A reads, for example, the first magnetic sensor correction information from the RAM 12. The second correction calculator 4B reads, for example, the second magnetic sensor correction information from the RAM 12. Accordingly, the magnetic sensor module 200 has a shorter access distance from the angle calculator 7, the first correction calculator 4A, and the second correction calculator 4B, and can more quickly read and write the information.

(210) The following describes operations after the power supply has been turned on in the magnetic sensor module 200. FIG. 32 is a flowchart for describing the operations of the magnetic sensor module 200 after the power supply has been turned on.

(211) At Step S201 after the power supply has been turned on, the processor 11 accesses the storage 10 to read the various types of information from the storage 10.

(212) At Step S202, the processor 11 stores the various types of information thus read in the RAM 12.

(213) FIG. 33 is a diagram illustrating a second modification of the magnetic sensor module. A rotation angle detection device 1B illustrated in FIG. 33 represents an example in which the magnetic sensor module 200 and the transmitter 9 are integrated into one IC chip.

(214) FIG. 34 is a diagram illustrating a third modification of the magnetic sensor module. FIG. 35 is a diagram illustrating a fourth modification of the magnetic sensor module. A rotation angle detection device 1C illustrated in FIG. 34 and a rotation angle detection device 1D illustrated in FIG. 35 represent examples each including a first transmitter 9A that converts the absolute angle information generated by the angle information generator 8 into an appropriate signal (for example, a phase ABZ signal, a parallel signal, serial data, an analog voltage, or a PWM signal) and outputs the result, and a second transmitter 9B that converts the appropriate signal output from the first transmitter 9A into an appropriate protocol recognizable by the external control device.

(215) The rotation angle detection device 1C illustrated in FIG. 34 represents an example in which the magnetic sensor module 200, the first transmitter 9A, and the storage 10 are integrated into one IC chip.

(216) The rotation angle detection device 1D illustrated in FIG. 35 represents an example in which the magnetic sensor module 200 and the first transmitter 9A are integrated into one IC chip.

(217) The integration into one IC chip may be made in any one of the aspects illustrated in FIGS. 1 and 31 to 35.