The present application is based on and claims priority from Japanese Patent Application 2006-291157, filed Oct. 26, 2006, the contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to a rotation angle detecting device that detects a rotation angle of a rotating object.
2. Description of the Related Art
JP-2003-75108-A discloses a rotation angle detecting device that includes a pair of magnetic sensors and a magnetic field forming member. When a rotating object rotates, the pair of magnetic sensors of such a rotation angle detecting device is arranged to rotate relative to a magnetic field formed by the magnetic field forming member, thereby providing a pair of output signals, which is converted into a rotation angle of the rotating object.
However, if the phase difference between the output signals varies, it is difficult to detect an accurate rotation angle of the rotating object.
Therefore, an object of the invention is to provide a rotation angle detecting device that can detect a rotation angle of a rotating object with a minimum margin of error caused by the phase difference.
Another object of the invention is to provide a rotation angle detecting device that prevents the detection error from increasing after such a rotation angle detecting device is put to use.
According to a feature of the invention, a rotation angle detecting device for detecting a rotation angle of a rotating object includes a magnetic field forming means for forming a magnetic field, a pair of magnetic sensor elements disposed in the magnetic field to provide a pair of output signals when the magnetic field changes as the rotating object rotates and a rotation angle calculating means for calculating a rotation angle of the rotating object from the pair of output signals. In the above rotation angle detecting device, the rotation angle calculating means calculates a phase difference between the pair of output signals from a magnitude of the output signal of one of the magnetic sensor elements when detecting a specific magnitude of the output signal of the other magnetic sensor elements whose phase angle is known.
Thus, the rotation angle can be calculated from the phase difference and the known phase angle. The phase difference between the output signals of the magnetic sensor elements does not include any error caused by mechanical errors.
Therefore, the phase difference can be detected accurately even after the rotation angle detecting device is shipped or installed to a vehicle. When the rotation angle detecting device is shipped, the output signals of the pair of magnetic sensors are measured to find out a variation in the phase difference to adjust the magnitude of the output signals. This measurement can be taken after shipment. That is, the detection error can be prevented for a long period.
According to another feature of the invention, a rotation angle detecting device for detecting a rotation angle of a rotating object includes a magnetic field forming means for a forming magnetic field, a pair of magnetic sensor elements disposed in the magnetic field to provide a pair of output signals when the magnetic field changes as the rotating object rotates and a rotation angle calculating means for calculating a rotation angle of the rotating object from the pair of output signals. In this device, the rotation angle calculating means calculates a phase difference between the pair of output signals from a magnitude of the output signal of one of the magnetic sensor elements when detecting that magnitudes of the output signals of the pair of magnetic sensor elements are same to each other.
Therefore, the phase difference can be detected even after the rotation angle detecting device is shipped or installed to a vehicle, and the detection error can be prevented for a long period.
According to another feature of the invention, a rotation angle detecting device for detecting a rotation angle of a rotating object includes a magnetic field forming means for forming magnetic field, a pair of magnetic sensor elements disposed in the magnetic field to provide a pair of output signals when the magnetic field changes as the rotating object rotates; and a rotation angle calculating means for calculating a rotation angle of the rotating object from the pair of output signals. In this device, the rotation angle calculating means calculates a phase difference between the pair of output signals from magnitudes of the output signals of the pair of magnetic sensor elements.
Therefore, the phase difference can be detected even after the rotation angle detecting device is shipped or installed to a vehicle, and the detection error can be prevented for a long period.
In one of the above defined rotation angle detecting devices, the rotation angle calculating means may correct an offset of the output signals before calculating the phase difference or make the output signals the same amplitude before calculating the phase difference. The phase difference may be updated after the magnitude of the output signals becomes a preset value certain times or a certain time after the magnitude of the output signals becomes a preset value.
Other objects, features and characteristics of the present invention as well as the functions of related parts of the present invention will become clear from a study of the following detailed description, the appended claims and the drawings. In the drawings:
Some preferred embodiments according to the present invention will be described with reference to the appended drawings.
A rotation angle detecting device 10 according to the first embodiment of the invention will be described with reference to
The rotation angle detecting device 10 according to the first embodiment is a device for detecting rotation angle of an engine crankshaft of a vehicle or a steering wheel thereof. As shown in
The permanent magnets 12, 14 form a magnetic field forming member that provides a parallel magnetic field of a uniform magnetic flux density and rotates together with a rotating object. The Hall elements 21, 22 incline to each other at an angle α to form a magnetic sensor, which is connected to the ECU 30 to be operated thereby. The ECU 30 has a memory that is installed a rotation angle calculation program, which will be described later. When the permanent magnets 12, 14 of the field forming member rotates together with a rotating object, the Hall elements 21, 22 output a pair of sinusoidal voltage signals 100, 102 whose phase difference is α, as shown in
Assuming that: the rotation angle of a rotating object is θ; the output voltage of the output voltage signal 100 is Va; the output voltage of the output voltage signal 102 is Vb; the sensitivity coefficient of the Hall elements is k; the initial phase angle of the output voltage signals of the Hall elements 21, 22 are, respectively, β and γ; the magnetic flux density of the magnetic field that is formed by the permanent magnets 12, 14 is B; and the amount of constant current is I, Va, Vb and α can be expressed as follows.
Va=kBI·sin(θ+β) (1)
Vb=kBI·sin(θ+γ) (2)
α=γ−β (3)
Here, an operation angle θ′ is defined as an angle that corresponds to the rotation angle of a rotating object in a cycle of 180 degrees. The operation angle θ′ is expressed as follows.
θ′=arctan(cot(α/2)×(Va−Vb)/(Va+Vb)) (4)
If, for example, the amplitude of the output voltage signal 102 is 1% smaller than the amplitude of the output voltage signal 100 as shown in
If a negative offset voltage is applied to the output voltage signal 102 as shown in
If, on the other hand, the phase difference between two of the output voltage signals changes by 1.0°, an angle error is produced as shown in
The operation of the rotation angle detecting device 10 will be described with reference to
At first, whether an offset correction is necessary or not is examined. For this purpose, the ECU 30 reads each of the output voltages Va, Vb of the output voltage signals 100, 102 of the Hall elements 21, 22 at step S100. Then, whether the output voltages Va, Vb are respectively higher than maximum values Vamax, Vbmax is examined at S102. If the result is NO, whether the output voltages Va, Vb are respectively lower than minimum values Vamin, Vbmin is examined at S104.
If the output voltages Va, Vb respectively fall within a range between the maximum values and the minimum values, an offset value correction and an amplitude correction are carried out at S114 and S116.
If, on the other hand, the output voltages Va, Vb are higher than the maximum values Vamax, Vbmax, the output voltages Va, Vb are updated by the maximum values Vamax, Vbmax at S106. If, on the other hand, the output voltages Va, Vb are lower than the minimum values Vamin, Vbmin, the output voltages Va, Vb are updated by the minimum values Vamin, Vbmin at S108.
Thereafter, offset correction values Vaoff, Vboff are updated according to the maximum values Vamax, Vbmax and the minimum values Vamin, Vbmin at S110. The offset correction is carried out according to the following expressions.
Vaoff=(Vamax+Vamin)/2 (5),
Vboff=(Vbmax+Vbmin)/2 (6)
Then, the amplitude correction is carried out according to the maximum values Vamax, Vbmax and the minimum values Vamin, Vbmin at S112. Amplitude correction values Vagain, Vbgain are expressed as follows.
Vagain=Vamax−Vaoff (7)
Vbgain=Vbmax−Vboff (8)
Subsequently, the offsets of the output voltage signals are corrected according to the offset correction values at S114, where the offsets are corrected according to the following expressions,
Va′=Va−Vaoff (9)
Vb′=Vb−Vboff (10)
Next, the amplitudes of the output voltage signals Va, Vb are corrected at S116 according to the following expressions.
Va″=Va′ (11)
Vb″=Vb′×Vagain/Vbgain (12)
As a result, the output voltage signals 100, 102 shown in
Va″=k″·sin(θ+β″) (13)
Vb″=k″·sin(θ+γβ″) (14)
α″=γ″−β″ (15)
θ′=arctan(cot(α″/2)×(Va″−Vb″)/(Va″+Vb″)) (16)
Thereafter, whether the voltage of each of the corrected output voltage signals of the Hall elements 21, 22 is 0 or not is examined at S118.
If the value of the output voltage signal is 0, the phase of the output voltage signal is 0° or 180°.
Therefore, the following expressions are given.
θ+β=0 (17)
θ+β=180 (18)
Accordingly, the following expressions are given by the expressions (14), (15) and (17).
The following expression are also given by the expressions (14), (16) and (18).
Therefore, the phase difference α″ can be calculated at S120, as follows.
α″=|−a sin(Vb″/k″)| (23)
α″=|−a sin(Va″/k″)| (24)
Thus, the phase difference α″ can be updated at S120.
Next, the operation angle θ′ is calculated by the expression (16).
Thereafter, whether each of the output voltage signals Va″, Vb″ is plus (+) or minus (−) is examined so as to discriminate a rotation angle position from angles in the range of 360 degrees, as shown in
As a variation-1 the phase difference of the output voltage signals can be calculated when the value of the output voltage signal is “1”.
If the value of the output voltage signal is 1, the following expressions are given.
The following expression is also given in the same manner as above.
α″=90−a sin(Va″/k″) (28)
As a variation-2 the phase difference of the output voltage signals can be calculated when the value of the output voltage signal is “−1”.
If the value of the output voltage signal is −1, the following expressions are given.
The following expression is also given in the same manner as above.
α″=90+a sin(Va″/k″) (32)
As a variation-3, the phase difference of the output voltage signals can be calculated when the values of the two output voltage signals are the same.
If the values of the two output voltage signals are the same, the following expressions are given by the expressions (13) and (14).
θ+β″=θ+γ″ (33)
If both Va″ and Vb″ are larger than 0, the following expressions are given.
If, on the other hand, both Va″ and Vb″ are smaller than 0, the following expression (37) is given, and expressions (35) and (36) are given by the expressions (37) and (13)-(15).
180−(θ+β″)=(θ+γ″) (37)
Vb″/k″=sin(½×(−180+α″)) (38)
α″=180+2×a sin(Vb″/k″) (39)
A rotation angle detecting device 210 according to the second embodiment of the invention will be described with reference to
The rotation angle detecting device 210 according to the second embodiment is a device for detecting rotation angle of an engine crankshaft of a vehicle or a steering wheel thereof. As shown in
The permanent magnet 212 is magnetized in a diametric direction thereof. The permanent magnet has a rotary shaft 250 that rotates together with a rotating object. The Hall IC 220 is disposed radially or axially outside the permanent magnet 212 to confront the same. The Hall IC 220 is a one chip IC that includes a pair of Hall elements 221 and 222. Each of the Hall elements 221, 222 has a sensing surface that inclines to the other at an angle α. The sensing surface also incline to the center axis 252 of the rotary shaft so that the output voltage signals of the Hall elements 221, 222 respectively change in sinusoidal curves when a rotating object rotates, as the Hall elements 21, 22 of the first embodiment.
A rotation angle detecting device 310 according to the third embodiment of the invention will be described with reference to
The rotation angle detecting device 310 includes a disk-shaped permanent magnet 212, a pair of Hall elements 321, 322 and the ECU 30.
The Hall elements 321, 322 are disposed away from each other at portions along the periphery of the permanent magnet 212. The Hall IC 220 is a one chip IC that includes a pair of Hall elements 221 and 222. Each of the Hall elements 221, 222 has a sensing surface that inclines to the other at an angle α. The sensing surface also incline to the center axis 252 of the rotary shaft so that the output voltage signals of the Hall elements 221, 222 respectively change in sinusoidal curves when a rotating object rotates, as the Hall elements 21, 22 of the first embodiment.
In the preceding embodiments, the phase difference α″ is updated every time the output voltage signals become a preset magnitude. The phase difference α″ can be updated after the magnitude of the output voltage signals certain times becomes a preset value or a certain time after the magnitude of the output voltage signals becomes a preset value.
The phase difference α″ can be obtained from the expressions (13) and (14) by use of the following expression.
α″=(θ+γ″)−(θ+β″)=γ″=β″ (40)
The Hall elements used in the preceding embodiments can be replaced by other magnetic sensors such as magneto-resistance elements.
In the preceding embodiments, the phase difference of the output voltage signals are calculated when the value of the output voltage signal is “1”, when the value of the output voltage signal is “−1” or when the values of the two output voltage signals are the same. The phase difference can be calculated by another significant point that is a value corresponding to a known phase angle, by using the expressions (24), (27) (28), (31) and/or (32).
In the foregoing description of the present invention, the invention has been disclosed with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made to the specific embodiments of the present invention without departing from the scope of the invention as set forth in the appended claims. Accordingly, the description of the present invention is to be regarded in an illustrative, rather than a restrictive, sense.
Number | Date | Country | Kind |
---|---|---|---|
2006-291157 | Oct 2006 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6019086 | Schneider et al. | Feb 2000 | A |
7202659 | Ushihara et al. | Apr 2007 | B2 |
20050242802 | Matsumoto et al. | Nov 2005 | A1 |
20060028204 | Oohira | Feb 2006 | A1 |
Number | Date | Country |
---|---|---|
2003-075108 | Mar 2003 | JP |
2005-315764 | Nov 2005 | JP |
Number | Date | Country | |
---|---|---|---|
20080100285 A1 | May 2008 | US |