# Patent

## Title
Rotation detector and rotation detection method

## Abstract

A rotation detector detecting rotation of a rotor, based on a signal produced according to rotation of the rotor, having a waveform according to a rotational cycle thereof, includes a signal obtaining unit to obtain two signals having phases different from each other; a vector operating unit to determine a vector according to a rotational angle of the rotor, based on the two signals; and a rotation detecting unit to detect rotation of the rotor, based on the vector. The two signals are produced from two elements located at positions farthest in a rotational angle of the rotor among plural rotation detecting elements located at positions different from each other.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This patent application is based on and claims priority pursuant to 35 U.S.C. §119 to Japanese Patent Application No. 2014-081930, filed on Apr. 11, 2014, in the Japan Patent Office, the entire disclosure of which is hereby incorporated by reference herein.
BACKGROUND
Technical Field
The present invention relates to rotation detector and a rotation detection method, and particularly to reduction of detection error due to eccentricity of a rotor.
Description of the Related Art
As a method of detecting an angle of a rotor such as a brushless motor, there is a method of using a magetoelectric transducer such as hall elements producing a signal having an amplitude in accordance with a magnetic field applied. Japanese published unexamined application No. JP-2013-002835-A discloses a method of determining an angle of a rotor generating a magnetic field with a magetoelectric transducer, based on an amplitude of a signal produced in accordance with a rotational angle of the rotor.
In order to reduce an angle error due to due to eccentricity of a rotor, Japanese published unexamined application No. JP-2013-002835-A also discloses a rotor including a magnet having a maximum length in a magnetization direction shorter than a maximum length in a direction perpendicular to a rotational axis of the rotor and the magnetization direction.
In detecting a rotational position of a rotor, it is important to consider an error of the rotor. When the method disclosed in Japanese published unexamined application No. JP-2013-002835-A is used, a design of the rotor is limited. Particularly, the brushless motor is required to increase the number of poles. However, the method disclosed in Japanese published unexamined application No. JP-2013-002835-A limits the number to two.
SUMMARY
Accordingly, one object of the present invention is to provide detection of rotational position of a rotor in consideration of an error due to eccentricity thereof without a limit on the design thereof.
Another object of the present invention is to provide a method of the detection.
These objects and other objects of the present invention, either individually or collectively, have been satisfied by the discovery of a rotation detector detecting rotation of a rotor, based on a signal produced according to rotation of the rotor, having a waveform according to a rotational cycle thereof, including a signal obtaining unit to obtain two signals having phases different from each other; a vector operating unit to determine a vector according to a rotational angle of the rotor, based on the two signals; and a rotation detecting unit to detect rotation of the rotor, based on the vector, wherein the two signals are produced from two elements located at positions farthest in a rotational angle of the rotor among plural rotation detecting elements located at positions different from each other.
These and other objects, features and advantages of the present invention will become apparent upon consideration of the following description of the preferred embodiments of the present invention taken in conjunction with the accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
Various other objects, features and attendant advantages of the present invention will be more fully appreciated as the same becomes better understood from the detailed description when considered in connection with the accompanying drawings in which like reference characters designate like corresponding parts throughout and wherein:
FIG. 1 is a schematic view illustrating a positional relation between a rotor and a magnetic sensor of an embodiment of a brushless motor of the present invention;
FIGS. 2 (a) and 2 (b) are schematic views illustrating an embodiment of a signal produced by the magnetic sensor according to a positional relation with a polarity of the rotor;
FIG. 3 is a schematic view illustrating phase differences of signals produced by the respective magnetic sensors;
FIG. 4 is a block diagram showing functional configuration of an embodiment of the rotation detector of the present invention;
FIG. 5 is a diagram showing an embodiment of a vector angle of the present invention;
FIG. 6 is a diagram showing a conception of angle detection according to an embodiment of a vector angle of the present invention;
FIG. 7 is a flowchart showing operation of an embodiment of a comparator of the present invention;
FIG. 8 is a flowchart showing operation of an embodiment of an angle adjustor of the present invention;
FIG. 9 is a flowchart showing operation of an embodiment of an angle setter of the present invention;
FIG. 10 is a flowchart showing operation of an embodiment of θstep adjustor of the present invention;
FIG. 11 is a block diagram showing functional configuration of another embodiment of the rotation detector of the present invention; and
FIG. 12 is a flowchart showing operation of another embodiment of an angle setter of the present invention.



DETAILED DESCRIPTION
The present invention provides detection of rotational position of a rotor in consideration of an error due to eccentricity thereof without a limit on the design thereof.
Exemplary embodiments of the present invention are described in detail below with reference to accompanying drawings. In describing exemplary embodiments illustrated in the drawings, specific terminology is employed for the sake of clarity. However, the disclosure of this patent specification is not intended to be limited to the specific terminology so selected, and it is to be understood that each specific element includes all technical equivalents that operate in a similar manner and achieve a similar result.
In the embodiment, a rotation detector detecting a rotational position of a rotor in a 3-phase 12-electrode brushless motor is explained. The rotation detector reduces detection error due to eccentricity of the rotor when detecting an angle, based on a signal produced by a magnetic sensor located according to a rotational position of the rotor.
FIG. 1 is a schematic view illustrating locative embodiments of hall elements relative to a rotor 200 in an embodiment of a 3-phase 12-electrode brushless motor of the present invention. As shown in FIG. 1, in the 3-phase 12-electrode brushless motor, U-phase hall elements 201a, 201b and 201c (hereinafter referred to as “hall elements 201”), W-phase hall elements 202a, 202b and 202c (hereinafter referred to as “hall elements 202”), and V-phase hall elements 203a, 203b and 203c (hereinafter referred to as “hall elements 203”) are located in this order at every 40° on a rotor 200 formed of magnets in the shape of a circle such that S poles and N poles interchange each other at every 30°.
The hall elements are located at every 40° over a round, which is one of embodiments. The 3-phase brushless motor has only to include U-phase, W-phase and V-phase hall elements located at positions shifted by 2π/3 each relative to an angle of one cycle of the S poles and N poles. However, in the embodiment, among the hall elements, outputs of the hall elements located at an angle shifted by as close as possible to 180° in a mechanical angle of the rotor. This is mentioned later.
In FIG. 2 (a), the magnets in a rotational direction of the rotor 200 in FIG. 1 are virtually lined and relevant output signals of the hall elements at respective polarity positions are shown. As FIG. 2 (a), the hall elements 201, 202 and 203 produce signals having the shape of sine curves according to rotation of the rotor 200 so as to have the largest positive amplitude when facing the S pole and largest negative amplitude when facing the N pole.
One cycle of sine curves produced by the hall elements 201, 202 and 203 is one cycle of the S poles and N poles of the magnets included in the rotor 200, i.e., equivalent to a rotational angle of 60° of the rotor. Therefore, when the rotor rotates once, the sine curves produced by the hall elements 201, 202 and 203 are 6 cycles as shown in FIG. 2 (a).
The sine curve of the hall element according to a rotational position of the rotor 200 is ideally the same sine curve when the rotor rotates once. When the rotor 200 eccentrically rotes or includes magnets having magnetization eccentricity, an error according to one cycle when the rotor rotates once. FIG. 2 (b) is an example of the error.
As FIG. 2 (b) shows, the error of the sine curve due to the rotational eccentricity of the rotor 200 and the magnetization eccentricity influences on an amplitude and a wavelength of the sine curve. Namely, the rotational eccentricity and the magnetization eccentricity enlarge the amplitude and shorten the wavelength at a position where variation of a magnetic flux to the hall element per unit time increases, and downsize the amplitude and lengthen the wavelength at a position where variation of a magnetic flux to the hall element per unit time decreases.
When a rotational angle of the rotor 200 is detected, based on the sine curve having the error in FIG. 2 (b), even the detected angle has an error. In the present invention, the error is reduced to detect more precise angle.
FIG. 3 is a schematic view illustrating phase differences of sine curves produced by the hall elements 201, 202 and 203, respectively. In FIG. 3, output signal of the U-phase is denoted by a solid line, output signal of the W-phase is denoted by a broken line, and output signal of the V-phase is denoted by a dotted line. As FIG. 3 shows, the hall elements 201, 202 and 203 produce signals shifted by 120° each other as phases in the shape of sine curves.
An embodiment of the rotation detector 100 of the present invention is explained, referring to FIG. 4. As FIG. 4 shows, the rotation detector 100 obtains sensor signals HA to HI which are single-ended differential output signals of the hall elements 201, 202 and 203 in FIG. 1 by differential amplifiers 204. The rotational position of the rotor 200 is detected, based on two signals having phases different from each other among the signals.
The sensor signals HA to HI entered in the rotation detector 100 are entered in mux (multiplexer) 101X and 101Y. Namely, the mux 101X and 101Y work as signal obtainers. The multiplexer 101X and 101Y select signals having phases different from each other, i.e., signals having different U-phase, V-phase and W-phase, based on select signals sel. The mux 101X and 101Y produce sensor signals H1 and H2 to a summing amplifier 102X and a differential gain amplifier 102Y. The select signals sel are set and entered by an outer CPU (Central Processing Unit) by means of register setting.
The summing amplifier 102X produces X0 signal from the following formula (1).

X0=H1+H2  (1)

The differential gain amplifier 102Y produces Y0 signal from the following formula (2).

Y0=K×(H2−H1)  (2)

wherein K is determined from a phase difference between H1 and H2 and a coefficient of a gain set such that X0 and Y0 have the same amplitude. The thus produced X0 and Y0 are orthogonal each other.

The X0 signal produced by the summing amplifier 102X is entered in a gain multiplier 105X and an amplitude detector 103X. The amplitude detector 103X detects an amplitude Ax of the X0 signal and enters the amplitude Ax in a gain generator 104X. The amplitude detector 103X is realized by a peak detection circuit. The peak detection is made by positive and negative peak of a signal, and the negative peak is converted to an absolute value.
The gain generator 104X determines a gain Gx from the following formula (3) to accord the amplitude of the signal X0 to a predetermined amplitude Atgt. The gain Gx is entered in the gain multiplier 105X. The gain multiplier 105X makes multiplication of the signal X0 and the gain Gx, and produces a signal X according the amplitude to the predetermined amplitude Atgt.

Gx=Atgt/Ax  (3)

The Y0 signal produced by the differential gain amplifier 102Y is entered in a gain multiplier 105Y and an amplitude detector 103Y. The amplitude detector 103Y detects an amplitude Ay of the Y0 signal and enters the amplitude Ay in a gain generator 104Y. The amplitude detector 103Y is realized by a peak detection circuit. The peak detection is made by positive and negative peak of a signal, and the negative peak is converted to an absolute value.
The gain generator 104Y determines a gain Gy from the following formula (4) to accord the amplitude of the signal Y0 to a predetermined amplitude Atgt. The gain Gy is entered in the gain multiplier 105Y. The gain multiplier 105Y makes multiplication of the signal Y0 and the gain Gy, and produces a signal Y according the amplitude to the predetermined amplitude Atgt.

Gy=Atgt/Ay  (4)

The thus produced signals X and Y are orthogonal each other as the X0 and Y0, and gain-operated to accord a peak of amplitude. Therefore, an angle of vector denoted by X and Y can denote a rotational position θ of the rotor 200 as shown in FIG. 5.
Namely, the summing amplifier 102X, the differential gain amplifier 102Y, the amplitude detectors 103X and 103Y, the gain generators 104X and 104Y, and the gain multipliers 105X and 105Y are connected with each other to work as a vector operator. The signals X and Y are entered in a detective angle multiplier 106.
In the detective angle multiplier 106, the signal X is entered in a sine wave multiplier 106a and a cosine wave multiplier 106b, and the signal Y is entered in a cosine wave multiplier 106c and a sine wave multiplier 106d. sinθp and cosθp based on a detective angle θp set according to an operation of the rotation detector 100 are entered in the detective angle multiplier 106.
The sine wave multiplier 106a multiplies sin θp with the signal X. The cosine wave multiplier 106b multiplies cosθp with the signal X. The cosine wave multiplier 106c multiplies cosθp with the signal Y. The sine wave multiplier 106d multiplies sin θp with the signal Y.
Signals produced from the sine wave multiplier 106a and the cosine wave multiplier 106b are entered in a subtraction amplifier 107. The subtraction amplifier 107 produces Y′ signal from the following formula (5).

Y′=−X×sin θp+Y×cos θp  (5)

Signals produced from the cosine wave multiplier 106c and the sine wave multiplier 106d are entered in a summing amplifier 114. The summing amplifier 114 produces X′ signal from the following formula (6).

X′=X×cos θp+Y×sin θp  (6)

The formulae (5) and (6) rotate vectors denoted by X and Y clockwise by θp.
Therefore, the vectors denoted by X and Y are rotated clockwise by θp to be vectors denoted by X′ and Y′ as shown in FIG. 6.
Namely, when θ=θp, Y′ is zero and X′ is the amplitude Atgt in the formulae (3) and (4). In the present embodiment, while θp is controlled such that X′ and Y′ are constantly Atgt and 0, respectively, the detective angle of the rotor is determined, based on θp.
In the present embodiment, a case in which θ=θp, i.e., a case in which the standard angle is 0° is an example. However, angles in FIGS. 5 and 6 themselves do not have meanings and variation thereof corresponds to a rotational angle of the rotor 200. Therefore, the standard angle is not limited to 0°.
The signal Y′ is entered in a comparator 108. The comparator 108 judges whether the signal Y′ is 0, and produces a signal to change θp according to the judgment. The operation of the comparator 108 is explained, referring to FIG. 7.
As FIG. 7 shows, the comparator 108 obtains the signal Y′ from the subtracting amplifier 107 (S701) and judges whether an absolute value of Y′ is over a predetermined threshold α (S702). The predetermined threshold α is to judge whether Y′ is almost zero or not. When Y′ is strictly judged to be zero, θp needs frequently changing even when slightly out of zero and is not stabilized.
In order to avoid this, when Y′ is within a tolerance of the threshold a from zero, it is regarded as zero. α is fixed according to the Atgt, e.g., in a range of 1 to 5% of the Atgt.
When Y′ has an absolute value not greater than α (S702/NO), the comparator 108 judges the present θp precisely denotes a rotational position of the rotor, and finishes operation. On the other hand, when Y′ has an absolute value greater than α (S702/YES), the comparator 108 judges whether Y′ is a positive or a negative value (S703).
When Y′ is a positive value (S703/YES), θp is smaller than θ in a rotation of vector as FIG. 6 shows. Therefore, the comparator 108 produces an UP signal to increase θp (S704), and finishes operation.
When Y′ is a negative value (S703/NO), θp is larger than θ in a rotation of vector as FIG. 6 shows. Therefore, the comparator 108 produces a DN signal to decrease θp (S705), and finishes operation. These UP and DN signals increase and decrease the detective angle θp. The comparator 108 repeated the process at high speed to constantly set θp according to a rotational angle of the rotor. The UP and DN signals produced from the comparator 108 are entered in a θstep adjustor 110 and an angle setter 109.
The signal X′ produced from the summing amplifier 114 is entered in an angle adjustor 115. The angle adjustor 115 is a block assisting to set θp according to the signal Y′. In FIG. 7, even when a vector subjected to a rotational process has an angle of 180° from the formulae (5) and (6), the judgment same as when the angle is 0° is made. Namely, θp possibly has an error of 180°.
Accordingly, the angle adjustor 115 observes X′ to resolve the error of θp. An operation of the angle adjustor 115 is explained, referring to FIG. 8. As FIG. 8 shows, when the angle adjustor 115 obtains the signal X′ from the summing amplifier 114 (S801), it determines whether X′ is positive or negative (S802).
When X′ is positive (S802/NO), the operation in FIG. 7 may be continued to preferably set θp and the angle adjustor 115 finishes operation.
When X′ is negative (S802/YES), a vector after rotation in FIG. 6 is close to 180°. In this case, the angle adjustor 115 produces a +180° signal to rotate θp by 180° (S803), and finishes operation. This operation prevents θp from having an error of 180°. The +180° signal produced by the angle adjustor 115 is entered in the angle setter 109.
The angle setter 109 refers to θstep, based on the UP and DN signals entered from the comparator 108 and the +180° signal entered from the angle adjustor 115 to adjust θp. An operation of the angle setter 109 is explained, referring to FIG. 9.
As FIG. 9 shows, the angle setter 109 obtains θstep from a θstep memory 111 (S901), and starts producing θp from the obtained θstep as an initial value (S902). Then, the angle setter 109 obtains the UP signal produced by the comparator 108 in FIG. 7 (S903/YES) and adds θstep to θp (S904). θp is increased by θstep.
Meanwhile, instead of the UP signal (S903/NO), the angle setter 109 obtains the DN signal produced by the comparator 108 in FIG. 7 (S905/YES) and reduces θstep from θp (S906). θp is decreased by θstep.
After S904 or S906, or when neither of the UP and the DN signals is obtained (S905/NO), the angle adjustor 115 produces a +180° signal in FIG. 8. When the angle setter 109 obtains the +180° signal (S907/YES), the angle setter 109 adds 180° to θp (S908).
Then, the angle setter 109 judges whether θp is not less than 360° (S909). When less than 360° (S907/NO), the angle setter 109 repeats process from S903. When not less than 360° (S907/YES), the angle setter 109 reduces 360° from θp (S910) and produces a cycle count signal T as well (S911). The cycle count signal is explained in detail later.
The angle setter 109 repeats this process to adjust θp according to the operations of the comparator 108 and the angle adjustor 115 and produce θp according to the rotational position of the rotor 200. Namely, the detective angle multiplier 106, the subtraction amplifier 107, the comparator 108, the angle setter 109 and a sine wave generator 113 are connected with each other to work as a rotation detector. The detective angle multiplier 106 and the subtraction amplifier 107 are connected with each to work as a rotation operator, and the comparator 108 and the angle setter 109 are connected with each to work as a detective angle setter.
According to FIG. 9, an angle added to or reduced from θp according to one time UP signal and DN signal is θstep. However, when 0 according to the rotational position of the rotor in FIG. 5 is largely different from θp, addition or reduction of θstep is repeated for plural times, resulting in inefficient process.
The θstep adjustor 110 is to solve this problem. The operation of the θstep adjustor 110 is explained, referring to FIG. 10. As FIG. 10 shows, the θstep adjustor 110 waits until obtaining an UP signal or a DN signal from the comparator 108 (S1001/NO). Obtaining an UP signal or a DN signal (S1001/YES), the θstep adjustor 110 starts count (S1102).
After starting count, without obtaining the same signal obtained in S1001 (S1003/NO), when the count reaches a specific value in a predetermined period (S1006/YES), the θstep adjustor 110 stops and clears count (S1007). The θstep adjustor 110 memorizes θstep in the θstep memory 111 as θstep_def (S1008) which is a default, and repeats process from S1001.
Meanwhile, after starting count, when obtaining the same signal obtained in S1001 (S1003/YES) before counting a specific value equivalent to a predetermined period (S1006/NO), the θstep adjustor 110 clears count and adds θstep_def which is a default to θstep to be memorized in the θstep memory 111 (S1005), and repeats process from S1003.
When the UP signals and DN signals are continuously entered in a predetermined periods, the θstep adjustor 110 judges a difference between the rotational position θ of the rotor and the present θp is large and adjust θstep memorized in the θstep memory 111 to enlarge θstep which is a unit of adjusting θp. This avoid inefficient process of repeating adjustment of θp when a difference between the rotational position θ of the rotor and the present θp is large. Namely, the θstep adjustor 110 works as a unit angle adjustor.
θp produced from the angle setter 109 is entered in the sine wave generator 113 and an angle convertor 112. The sine wave generator 113 produces sinθp and cosθp according to θp, based on sine and cosine lookup table covering various angles. The sinθp and the cosθp are entered in the detective angle multipliers. Multiplication processes in the sine wave multiplier 106a, the cosine wave multiplier 106b, the cosine wave multiplier 106c and the sine wave multiplier 106d are executed.
In addition to θp, the cycle count signal T is entered in the angle convertor 112 from the angle setter 109. The angle convertor 112 converts θp into a rotational angle θR of the rotor 200. As explained in FIGS. 1 and 2, one cycle of the rotor 200 is equivalent to six cycles of sine curves produced by the hall elements 201, 202 and 203. Since θp produced by the angle setter 109 is an angle based on signals produced by the hall elements 201, 202 and 203, θp is not a rotational angle of the rotor 200, but an angle representing a phase in a one cycle of the sine curve in FIG. 2.
Therefore, the angle convertor 112 counts the cycle count signal T with a counter counting 0 to 5 to determine to which cycle of the six sine curve cycles the rotational position of the rotor 200 is equivalent and the detailed rotational position thereof considering θp.
Specifically, when the cycle count signal T is Tcount, the angle convertor 112 converts θp into a rotational angle θR from the following formula (7). Thus, the rotation detector 100 detects and produces the rotational angle θR of the rotor 200.

θR=(360°×Tcount+θp)/6  (7)

In the embodiment of the rotation detector 100, as FIG. 1 shows, the rotational position of the rotor 200 is detected, based on the signals produced from the two hall elements selected from the hall elements 201 to 203 located along the rotation of the rotor 200.
The signals produced from the hall elements are theoretically sine curves as FIGS. 2 and 3 show. When the rotor 200 has eccentricity, the cycle and the amplitude partially have distortions according to the phase of the sine curve. When the rotation detector 100 determines θR, based on the signals including the distortions, the resultant θR includes an error according thereto.
The distortion of the signal due to the eccentricity is a cyclic error having cyclicity for one cycle of the rotor 200. When the two hall elements located at a shift of 180° in the rotational position of the rotor 200 are selected, θR including an error can be cancelled.
However, in FIG. 1, there are no hall elements located at a complete shift of 180°. In the 12-pole brushless motor, signals produced from hall elements located at a shift of 180° have the same phase, which influences on the basic function of detecting an angle of the rotor 200, based on to signals having phases different from each other of the rotation detector 100.
Therefore, in the embodiment of the rotation detector 100, when the two hall elements having phases different from each other are selected, the hall elements located at a shift of an angle as close to 180° as possible are selected. In other words, the two hall elements located as far as possible from each other are selected.
In FIG. 1, when the hall element 201a is selected as one hall element, the hall element 202b or 203b is selected as the other. Thus, the cyclic errors included in the signals having the shape of sine curves produced from the two hall elements cancel each other. Therefore, the resultant θp and θR decrease in cyclic errors due to the eccentricity.
When there is an error in as shown in FIG. 2 (b), one hall element produces a signal at a position having a large amplitude and a short wavelength, and the other hall element produces a signal at a position having a small amplitude and a long wavelength. Therefore, X0 and Y0 determined from the two signals decrease in error of wavelength, i.e., error of phase.
Error of amplitude in FIG. 2 (b) remains. The error of amplitude appears as errors of X0 and Y0. In the embodiment, X0 and Y0 are used as original values representing a vector component as explained in FIG. 5. When X0 and Y0 have errors, the vector angle has an error, resulting in an error of θp.
In the embodiment of the rotation detector 100, the error of amplitude is corrected by the amplitude detectors 103X and 103Y, the gain generators 104X and 104Y, and the gain multipliers 105X and 105Y in FIG. 1. Namely, an amplitude having an ideal sine curve is FIG. 2 (a) can be used as the amplitude Atgt. Thus, the influence of cyclic error to the rotation of the rotor 200 as explained in FIG. 2 (b) is reduced, and an angle of the rotor 200 can be preferably detected.
In order to further improve effect of reducing the cyclic error, the selected two hall elements are preferably shifted at least 90° or more relative to the rotational position of the rotor 200. In other words, the selected two hall elements preferably have an angle of from 90 to 270°, more preferably from 120 to 240°, and furthermore preferably from 150 to 210° in the rotational angle of the rotor 200.
On the other hand, the hall elements 201, 202 and 203 as shown in FIG. 1 are located in a line. The location of the hall element according to configuration of the brushless motor applied in the rotation detector 100. Therefore, when the two hall elements producing signals having phases different from each other are selected, the hall elements located at a shift of an angle as close to 180° as possible, as far as possible from each other, possibly farthest from each other are preferably selected.
As mentioned above, the embodiment of the rotation detector 100 can detect a rotational position of a rotor in consideration of an error due to eccentricity thereof without a limit on the design thereof.
In the embodiment, the vector rotates anticlockwise in FIG. 5 according to the rotation of the rotor 200. Therefore, θp becomes large according to the rotation of the rotor 200. In S909 in FIG. 9, whether θp is over 360° or not is judged, and in S910, 360° is reduced.
On the contrary, the vector possibly rotates clockwise in FIG. 5 according to the rotation of the rotor 200. In this case, θp becomes small according to the rotation of the rotor 200. In S909 in FIG. 9, whether θp is below 0° or not is judged, and in S910, 360° is added.
In the embodiment, as explained in FIG. 1, all the signals produced by the hall elements are entered in both mux 101X and 101Y, the signals are selected according to select signal sel. Therefore, the above-mentioned two signals reducing a cyclic error can be selected without changing terminals and wirings, and a detector having higher versatility can be provided.
The two signals having phases different from each other need selecting from U-phase, W-phase and V-phase. Namely, in FIG. 1, the signals of the hall element 201a and the hall element 201b cannot be selected. Therefore, when mux 101X selects U-phase, mux 101Y does not select U-phase.
In FIG. 1, all the signals are entered in both of mux 101X and 101Y. The signals to be entered can be reduced if combinations thereof are considered. For examples, U-phase and W-phase signals are entered in mux 101X, and W-phase and V-phase signals are entered in mux 101Y. Thus, all combinations of the signals can be made, and signals lines required to enter the signal the bit number of the select signal sel can be reduced.
On the other hand, when a signal used for detecting the rotational position is previously fixed, the two signal may be directly entered in the summing amplifier 102X and the differential gain amplifier 102Y. This can reduce the circuit scale.
In the embodiment, the maximum value of θp produced by the angle setter 109 is 360°. When beyond 360°, the cycle count signal T is produced. As an angle representing one cyclic angle of the rotor 200 in FIG. 1 with a sine curve phase, 360°×6=2160° may be the maximum value of θp produced by the angle setter 109.
In this case, the angle convertor 112 simply divides θp with 6 to determine the rotational angle θR of the rotor. On the other hand, the sine wave generator 113 reduces 360° from θp to be less than 360°, and produces sine and cosine of the extra angle, based on a lookup table. Thus, the same effect as above can be obtained.
In the embodiment, the functions after the detective angle multiplier 106 in the signal flow explained in FIG. 4 determines θp according to the rotational position of the rotor, using the rotation of the vector as explained in FIG. 6. Only simple functions can realize the modules, the clock number of the circuit and the circuit scale can be reduced.
Based on signals X and Y produced by the gain multipliers 105X and 105Y, respectively, θp can also be determined by the following formula (8).

θp=tan−1(Y/X)  (8)

As shown in FIG. 11, an angle operator 116 performs an operation of the formula (8), based on productions from the gain multipliers 105X and 105Y. When θp exceeds 360° and returns to 0°, a cycle count signal T is produced as above.
However, a high clock process is needed to execute the operation of the formula (8) in real time, following the rotation of the rotor 200. In FIG. 4, lower clock than operating the formula (8) is sufficient.
In the embodiment, the angle steer 109 and the angle convertor 112 determine and produce the rotational angle θR. However, this is an example, and the rotation detector 100 detects the rotation of the rotor. Namely, the detector does not produce an angle, but may produce a pulse every time when detecting rotation having a predetermined angle. In this case, the number of bit produced can effectively be reduced.
When a pulse is produced every time when a rotation at a predetermined angle, the angle convertor 112 is not needed and the angle setter 109 suffices. The operation of the angle setter 109 in this case is explained according to a flowchart in FIG. 12. FIG. 12 is a flowchart showing the operation of the angle setter 109 when the rotor 200 produces a pulse every time when rotating at a predetermined angle.
In FIG. 12, S1201 to 1210 are the same as S901 to 910 in FIG. 9. In FIG. 12, when neither of UP signals and DN signals is obtained (S1203/NO) and (S1205/NO), the angle setter 109 judges whether the signals are stabilized (S1211).
At the beginning of starting operation of the rotation detector 100, a difference between the vector angle θ X and Y produce according to the rotational position of the rotor and θp by is large, and +180° signal, UP signal and DN signal are thought to continuously be produced.
When θp follows the vector angle θ X and Y produce, every time when the vector angle θ X and Y produce rotates by θstep according to the rotation of the rotor 200, UP signals are produced. When the rotor 200 rotates reverse, DN signals are produced. This is thought to be a stable status.
Namely, the angle setter 109 judges θp follows the rotation of the rotor 200 and the signal is stabilized (S1211/YES) when obtaining neither of +180° signal, UP signal and DN signal for a predetermined period or more since an UP signal or a DN signal is produced in S1211.
When judging the signal is stabilized, the angle setter 109 produces a pulse (S1213) every time when obtaining an UP signal or a DN signal from the comparator 108 (S1212/YES). In the module having received a pulse, it can be detected that the rotor 200 has rotated by a predetermined angle. θstep is an angle relevant to the phase of a sine curve. Therefore, an angle detecting rotation with a pulse is six times of θstep in the embodiment.
In the embodiment, as explained in FIG. 1, the two hall elements producing signals cancelling the cyclic error of the rotor 200 of the brushless motor are selected. The hall elements in the brushless motor may be located to reduce the cyclic error.
In a 3-phase brushless motor, magnets for 2 poles located according to the number of poles are one cycle, and at least each one of hall elements of U-phase, W-phase and V-phase may be located so as to be shifted at an electric angle of 120° each other. When the number of poles is determined, θhall which is as close to 180° as possible for one cycle of the rotor 200, and a mounting angle of the hall elements of the U-phase, W-phase and V-phase can be determined by the following formula (9).

θhall=180°−360°/(n/2×3)  (9)

Therefore, mounting angles of the two hall elements from the U-phase, W-phase and V-phase are selected, based on the formula (9), preferable signals can be obtained in the embodiment of the rotation detector 100 of the present invention, and the cyclic error can be more efficiently reduced.
In the embodiment, detection of the rotation of the rotor 200 on a brushless motor is explained. However, this is an example, and when a waveform in FIG. 2 is produced according to the rotational cycle of a rotor, the embodiment of the rotation detector 100 of the present invention is applicable.
Even in that case, based on the two waveforms having phases different from each other, which have been produced from detection result at a position they are shifted at almost 180°, the above process is executed to precisely detect an angle, reducing a cyclic error due to eccentricity of the rotor.
The rotor may be a magnetic material, and instead of the hall element, a TMR (Tunnel Magneto-Resistance) effect element, a Wheatstone Bridge Circuit using GMR (Giant Magneto Resistive) effect element, or an AMR (Anisotropic-Magneto-Resistive) effect element may be used as a magnetic sensor.
As an example of producing a waveform according to the rotational cycle of a rotor, a rotation detector with an optical encoder can be used. Specifically, a marking formed at a predetermined angle over a circumference of a rotor is optically detected to produce a pulse according to the detection thereof. The pulse is converted into a sine curve according to the cycle of the rotor to similarly apply the embodiment and reduce a cyclic error according thereto.
As another example of producing a waveform according to the rotational cycle of a rotor, a rotation detector with a slit rotation disc, a light source and an optical sensor can be used as well. Specifically, quantity of light from the light source is changed through the slit of the rotation disc to produce a sine curve according to the cycle of the rotor.
Having now fully described the invention, it will be apparent to one of ordinary skill in the art that many changes and modifications can be made thereto without departing from the spirit and scope of the invention as set forth therein.

## Claims

1. A rotation detector for detecting rotation of a rotor, based on a signal produced according to rotation of the rotor, having a waveform according to a rotational cycle thereof, comprising:
a signal obtaining unit configured to select from signals produced from plural rotation detecting elements including plural sets of rotation detecting elements and individual rotation detecting elements in each set of the plural sets of the rotation detecting elements being located at different positions relative to a rotation angle of the rotor and having a same phase, two signals having different phases produced from two of the plural rotation detecting elements located farthest relative to the rotation angle of the rotor;
a vector operating unit configured to determine a vector according to a rotational angle of the rotor, based on the two signals; and
a rotation detecting unit configured to detect rotation of the rotor, based on the vector.

2. The rotation detector of claim 1, wherein the vector operating unit determines two orthogonal components by addition and subtraction of the two signals and performs a gain operation for determining equal peak values of the two orthogonal components with which to determine a vector according to a rotational angle of the rotor.

3. The rotation detector of claim 1, wherein the rotation detecting unit comprises:
a rotation operating part configured to perform rotation operation on the vector for a detective angle set; and
a detective angle setting part configured to set the detective angle such that the vector after subjected to the rotation operation follows a specified standard angle to detect rotation of the rotor, based on the detective angle.

4. The rotation detector of claim 3, wherein the detective angle setting part performs addition and subtraction with a predetermined unit angle to change the detective angle such that the vector after subjected to the rotation operation follows the specified standard angle when a difference between the vector after subjected to the rotation operation and the specified standard angle is not less than the specified standard angle.

5. The rotation detector of claim 4, further comprising a unit angle adjusting part configured to enlarge the unit angle when a difference between the vector after subjected to the rotation operation and the specified standard angle is not less than the specified standard angle.

6. The rotation detector of claim 5,
wherein the detective angle setting part is further configured to produce a signal for ordering the detective angle to be subject to addition and subtraction when a difference between the vector after subjected to the rotation operation and the specified standard angle is not less than the specified standard angle, and
wherein the unit angle adjusting part is further configured to enlarge the unit angle when a signal for ordering the detective angle to be subject to addition or a signal for ordering the detective angle to be subject to subtraction is continuously entered in a specified period.

7. The rotation detector of claim 3, wherein the detective angle setting part is further configured to determine whether the vector after subjected to the rotation operation follows the specified standard angle, based on at least one of components forming the vector subjected to the rotation operation.

8. The rotation detector of claim 1, wherein the rotor is an element of a 3-phase motor.

9. The rotation detector of claim 1, wherein the two signals are produced from two elements located at positions substantially circumferentially opposing each other about a diametric of the rotor.

10. The rotation detector of claim 9, wherein each of the individual rotation detecting elements is positioned on the rotor about forty degrees from each other.

11. A rotation detector for detecting rotation of a rotor, based on a signal produced according to rotation of the rotor, having a waveform according to a rotational cycle thereof, comprising:
a signal obtaining unit configured to select from signals produced from plural rotation detecting elements including plural sets of rotation detecting elements and individual rotation detecting elements in each set of the plural sets of the rotation detecting elements being located at different positions relative to a rotation angle of the rotor and having a same phase, two signals having different phases produced from two of the plural rotation detecting elements located farthest relative to the rotation angle of the rotor;
a vector operating unit configured to determine a vector according to a rotational angle of the rotor, based on the two signals; and
a rotation detecting unit configured to detect rotation of the rotor, based on the vector,
wherein each of the two signals is produced when the rotation of the rotor is detected in each of positions far from each other by 90 to 270° in a rotational angle of the rotor.

12. The rotation detector of claim 11, wherein the rotor is an element of a 3-phase motor.

13. The rotation detector of claim 11, wherein the two signals are produced from two elements located at positions substantially circumferentially opposing each other about a diametric of the rotor.

14. The rotation detector of claim 13, wherein each of the individual rotation detecting elements is positioned on the rotor about forty degrees from each other.

15. A method of detecting rotation of a rotor, based on signals produced from plural rotation detecting elements located at positions different from each other in a rotational angle of a rotor, having a waveform according to a rotational cycle thereof, comprising:
selecting from signals produced from plural rotation detecting elements including plural sets of rotation detecting elements and individual rotation detecting elements in each set of the plural sets of the rotation detecting elements being located at different positions relative to a rotation angle of the rotor and having a same phase, two signals having different phases produced from two of the plural rotation detecting elements located farthest relative to the rotation angle of the rotor;
determining a vector according to a rotational angle of the rotor, based on the two signals; and
detecting rotation of the rotor, based on the vector.

16. The method of detecting rotation of claim 15, wherein the rotor is an element of a 3-phase motor.

17. The rotation detector of claim 15, wherein the two signals are produced from two elements located at positions substantially circumferentially opposing each other about a diametric of the rotor.

18. The method of detecting rotation of claim 17, wherein the individual rotation detecting elements is positioned on the rotor about forty degrees from each other.

19. A rotation detector detecting rotation of a rotor, based on a signal produced according to rotation of the rotor, having a waveform according to a rotational cycle thereof, comprising:
a signal obtaining unit configured to obtain two signals having phases different from each other;
a vector operating unit configured to determine a vector according to a rotational angle of the rotor, based on the two signals; and
a rotation operating part configured to perform rotation operation on the vector for a detective angle set; and
a detective angle setting part configured to set the detective angle such that the vector after subjected to the rotation operation follows a specified standard angle to detect rotation of the rotor, based on the detective angle;
wherein the detective angle setting part is further configured to determine whether the vector after subjected to the rotation operation follows the specified standard angle, based on at least one of components forming the vector subjected to the rotation operation.