JP5708986B2 - Rotation angle detector - Google Patents

Rotation angle detector Download PDF

Info

Publication number
JP5708986B2
JP5708986B2 JP2010290742A JP2010290742A JP5708986B2 JP 5708986 B2 JP5708986 B2 JP 5708986B2 JP 2010290742 A JP2010290742 A JP 2010290742A JP 2010290742 A JP2010290742 A JP 2010290742A JP 5708986 B2 JP5708986 B2 JP 5708986B2
Authority
JP
Japan
Prior art keywords
magnetic
rotation angle
output signal
sensor
peak value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010290742A
Other languages
Japanese (ja)
Other versions
JP2012137415A (en
Inventor
上田 武史
武史 上田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JTEKT Corp
Original Assignee
JTEKT Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JTEKT Corp filed Critical JTEKT Corp
Priority to JP2010290742A priority Critical patent/JP5708986B2/en
Publication of JP2012137415A publication Critical patent/JP2012137415A/en
Application granted granted Critical
Publication of JP5708986B2 publication Critical patent/JP5708986B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、ブラシレスモータのロータ等の回転体の回転角を検出する回転角検出装置に関する。   The present invention relates to a rotation angle detection device that detects a rotation angle of a rotating body such as a rotor of a brushless motor.

電動パワーステアリング装置などに使用されるブラシレスモータを制御するためには、ロータの回転角度に合わせてステータ巻線に電流を通電する必要がある。そこで、ブラシレスモータの回転に応じて回転する検出用ロータを用いて、ブラシレスモータのロータの回転角を検出する回転角検出装置が知られている。具体的には、図9に示すように、検出用ロータ101(以下、「ロータ101」という)は、ブラシレスモータのロータに設けられている磁極対に相当する複数の磁極対を有する円筒状の磁石102を備えている。ロータ101の周囲には、2つの磁気センサ121,122が、ロータ101の回転中心軸を中心として所定の角度間隔をおいて配置されている。各磁気センサ121,122からは、所定の位相差を有する正弦波信号が出力される。これらの2つの正弦波信号に基づいて、ロータ101の回転角(ブラシレスモータのロータの回転角)が検出される。   In order to control a brushless motor used in an electric power steering device or the like, it is necessary to apply a current to the stator winding in accordance with the rotation angle of the rotor. Therefore, a rotation angle detection device that detects a rotation angle of a brushless motor rotor using a detection rotor that rotates in accordance with the rotation of the brushless motor is known. Specifically, as shown in FIG. 9, the detection rotor 101 (hereinafter referred to as “rotor 101”) has a cylindrical shape having a plurality of magnetic pole pairs corresponding to the magnetic pole pairs provided in the rotor of the brushless motor. A magnet 102 is provided. Around the rotor 101, two magnetic sensors 121 and 122 are arranged at a predetermined angular interval around the rotation center axis of the rotor 101. Each magnetic sensor 121, 122 outputs a sine wave signal having a predetermined phase difference. Based on these two sine wave signals, the rotation angle of the rotor 101 (rotation angle of the brushless motor rotor) is detected.

この例では、磁石102は、5組の磁極対を有している。つまり、磁石102は、等角度間隔で配置された10個の磁極を有している。各磁極は、ロータ101の回転中心軸を中心として、36°(電気角では180°)の角度間隔で配置されている。また、2つの磁気センサ121,122は、ロータ101の回転中心軸を中心として18°(電気角では90°)の角度間隔をおいて配置されている。   In this example, the magnet 102 has five pairs of magnetic poles. That is, the magnet 102 has ten magnetic poles arranged at equiangular intervals. The magnetic poles are arranged at an angular interval of 36 ° (180 ° in electrical angle) about the rotation center axis of the rotor 101. The two magnetic sensors 121 and 122 are arranged at an angular interval of 18 ° (90 ° in electrical angle) with the rotation center axis of the rotor 101 as the center.

図9に矢印で示す方向を検出用ロータ101の正方向の回転方向とする。そして、ロータ101が正方向に回転されるとロータ101の回転角が大きくなり、ロータ101が逆方向に回転されると、ロータ101の回転角が小さくなるものとする。各磁気センサ121,122からは、図10に示すように、ロータ101が1磁極対分に相当する角度(72°(電気角では360°))を回転する期間を一周期とする正弦波信号V1,V2が出力される。   A direction indicated by an arrow in FIG. 9 is a positive rotation direction of the detection rotor 101. When the rotor 101 is rotated in the forward direction, the rotation angle of the rotor 101 is increased. When the rotor 101 is rotated in the reverse direction, the rotation angle of the rotor 101 is decreased. As shown in FIG. 10, each magnetic sensor 121, 122 has a sine wave signal having a period during which the rotor 101 rotates an angle corresponding to one magnetic pole pair (72 ° (electrical angle is 360 °)). V1 and V2 are output.

ロータ101の1回転分の角度範囲を、5つの磁極対に対応して5つの区間に分け、各区間の開始位置を0°とし終了位置を360°として表したロータ101の角度を、ロータ101の電気角θeということにする。この場合には、10個の磁極の角度幅は等しいので、ロータ101の電気角θeは、ブラシレスモータのロータの電気角と一致する。
ここでは、第1の磁気センサ121からは、V1=A1・sinθeの出力信号が出力され、第2の磁気センサ122からは、V2=A2・cosθeの出力信号が出力されるものとする。A1,A2は、振幅である。両出力信号V1,V2の振幅A1,A2が互いに等しいとみなすと、ロータ101の電気角θeは、両出力信号V1,V2を用いて、次式(1)に基づいて求めることができる。
The angle range for one rotation of the rotor 101 is divided into five sections corresponding to the five magnetic pole pairs, and the angle of the rotor 101 is represented by setting the start position of each section to 0 ° and the end position to 360 °. It is assumed that the electrical angle θe. In this case, since the angular widths of the ten magnetic poles are equal, the electrical angle θe of the rotor 101 coincides with the electrical angle of the rotor of the brushless motor.
Here, it is assumed that an output signal of V1 = A1 · sin θe is output from the first magnetic sensor 121, and an output signal of V2 = A2 · cos θe is output from the second magnetic sensor 122. A1 and A2 are amplitudes. Assuming that the amplitudes A1 and A2 of the two output signals V1 and V2 are equal to each other, the electrical angle θe of the rotor 101 can be obtained based on the following equation (1) using the two output signals V1 and V2.

θe=tan−1(sinθe/cosθe)
=tan−1(V1/V2) …(1)
このようにして、求められた相対角θeを使って、ブラシレスモータを制御する。
θe = tan −1 (sin θe / cos θe)
= Tan -1 (V1 / V2) (1)
In this way, the brushless motor is controlled using the obtained relative angle θe.

特開2004-325140号公報JP 2004-325140 A

前述したような従来の回転角検出装置をブラシレスモータのロータの回転角を検出するために用いる場合には、ブラシレスモータの制御に用いられる電気角を高精度に検出するために、検出用ロータ101の磁極数とブラシレスモータの磁極数とを等しくすることが好ましい。しかしながら、検出ロータ101に着磁すべき磁極数が多くなると、着磁誤差が発生しやすくなる。そうすると、各磁極の磁束量のばらつきや各磁気センサの温度特性により、各磁気センサ121,122の出力信号の振幅やオフセット電圧が変動する。このため、回転角演算装置によって検出される回転角に誤差が生じる。なお、オフセット電圧とは、磁束量が零のときの電圧である。   When the conventional rotation angle detection device as described above is used to detect the rotation angle of the rotor of the brushless motor, the detection rotor 101 is used to detect the electrical angle used for controlling the brushless motor with high accuracy. It is preferable that the number of magnetic poles of the brushless motor is equal to the number of magnetic poles of the brushless motor. However, when the number of magnetic poles to be magnetized in the detection rotor 101 increases, a magnetization error tends to occur. Then, the amplitude and offset voltage of the output signals of the magnetic sensors 121 and 122 vary due to variations in the magnetic flux amount of the magnetic poles and the temperature characteristics of the magnetic sensors. For this reason, an error occurs in the rotation angle detected by the rotation angle calculation device. The offset voltage is a voltage when the amount of magnetic flux is zero.

そこで、各磁気センサ121,122の出力信号の振幅やオフセット電圧を検出し、検出した振幅やオフセット電圧に基づいて、各磁気センサ121,122の出力信号を補正してから、電気角θeを演算することが考えられる。しかしながら、磁気センサ121,122が組み付けられてしまうと、磁束量が零の状態を判別できないため、オフセット電圧を検出することができない。このため、各磁気センサ121,122の出力信号の振幅やオフセット電圧のばらつきを補正することができない。   Therefore, the amplitude and offset voltage of the output signals of the magnetic sensors 121 and 122 are detected, the output signals of the magnetic sensors 121 and 122 are corrected based on the detected amplitude and offset voltage, and then the electrical angle θe is calculated. It is possible to do. However, if the magnetic sensors 121 and 122 are assembled, the state in which the amount of magnetic flux is zero cannot be determined, so that the offset voltage cannot be detected. For this reason, it is impossible to correct variations in the amplitude and offset voltage of the output signals of the magnetic sensors 121 and 122.

この発明の目的は、オフセット電圧を高精度に検出することができ、回転体の回転角の検出誤差を低減することができる回転角検出装置を提供することである。   An object of the present invention is to provide a rotation angle detection device that can detect an offset voltage with high accuracy and reduce a detection error of a rotation angle of a rotating body.

上記の目的を達成するための請求項1記載の発明は、回転体(10)の回転に応じて回転しかつ周方向に複数の磁極(M0〜M9)が設けられた検出用ロータ(1)と、前記検出用ロータの回転に応じて、所定の位相差を有する複数の正弦波信号(V1,V2)をそれぞれ出力する複数の磁気センサ(21,22)とを含み、これらの磁気センサの出力信号に基づいて前記回転体の回転角を検出する回転角検出装置であって、前記磁気センサ毎に、その出力信号の前記磁極毎のピーク値を検出するピーク値検出手段(20,S5)と、前記ピーク値検出手段によって前記磁気センサ毎に検出される前記磁極毎のピーク値と、前記各磁極の角度幅と、前記検出用ロータに設けられた磁極数とに基づいて、前記磁気センサ毎にオフセット電圧を演算するオフセット電圧演算手段(50,S11)と、前記ピーク値検出手段によって前記磁気センサ毎に検出される前記磁極毎のピーク値と、前記オフセット電圧演算手段によって演算される前記磁気センサ毎のオフセット電圧とに基づいて、前記各磁気センサの出力信号を補正する信号補正手段(50,S11)と、前記信号補正手段によって補正された前記各磁気センサの出力信号に基づいて、前記回転体の回転角を演算する回転角演算手段(50,S12)と、を含む回転角検出装置である。なお、括弧内の英数字は、後述の実施形態における対応構成要素等を表すが、むろん、この発明の範囲は当該実施形態に限定されない。以下、この項において同じ。   The invention according to claim 1 for achieving the above object is a detection rotor (1) which is rotated according to the rotation of the rotating body (10) and provided with a plurality of magnetic poles (M0 to M9) in the circumferential direction. And a plurality of magnetic sensors (21, 22) that respectively output a plurality of sine wave signals (V1, V2) having a predetermined phase difference in accordance with the rotation of the detection rotor. A rotation angle detecting device for detecting a rotation angle of the rotating body based on an output signal, and for each magnetic sensor, a peak value detecting means (20, S5) for detecting a peak value for each magnetic pole of the output signal. The magnetic sensor based on the peak value for each magnetic pole detected for each magnetic sensor by the peak value detection means, the angular width of each magnetic pole, and the number of magnetic poles provided in the rotor for detection. An offset voltage is displayed every time Offset voltage calculation means (50, S11), a peak value for each magnetic pole detected for each magnetic sensor by the peak value detection means, and an offset voltage for each magnetic sensor calculated by the offset voltage calculation means Based on the above, the signal correction means (50, S11) for correcting the output signal of each magnetic sensor, and the rotation angle of the rotating body based on the output signal of each magnetic sensor corrected by the signal correction means And a rotation angle calculation means (50, S12). In addition, although the alphanumeric character in parentheses represents a corresponding component in an embodiment described later, of course, the scope of the present invention is not limited to the embodiment. The same applies hereinafter.

上記構成では、磁気センサ毎に、その出力信号の磁極毎のピーク値が検出される。磁気センサ毎に検出される磁極毎のピーク値と、各磁極の角度幅と、検出用ロータに設けられた磁極数とに基づいて、磁気センサ毎にオフセット電圧が演算される。これにより、各磁気センサの出力信号のオフセット電圧を正確に求めることができる。
磁気センサ毎に検出される磁極毎のピーク値と、磁気センサ毎のオフセット電圧とに基づいて、各磁気センサの出力信号が補正される。これにより、各磁極の磁束量のばらつきや各磁気センサの温度特性に起因する、各磁気センサの出力信号の振幅およびオフセット電圧のばらつきを補正することができる。そして、補正された各磁気センサの出力信号に基づいて、回転体の回転角が演算される。これにより、回転体の回転角の検出誤差を低減することができる。
In the above configuration, the peak value for each magnetic pole of the output signal is detected for each magnetic sensor. Based on the peak value of each magnetic pole detected for each magnetic sensor, the angular width of each magnetic pole, and the number of magnetic poles provided in the detection rotor, an offset voltage is calculated for each magnetic sensor. Thereby, the offset voltage of the output signal of each magnetic sensor can be accurately obtained.
The output signal of each magnetic sensor is corrected based on the peak value for each magnetic pole detected for each magnetic sensor and the offset voltage for each magnetic sensor. As a result, it is possible to correct variations in the amplitude and offset voltage of the output signal of each magnetic sensor due to variations in the magnetic flux amount of each magnetic pole and the temperature characteristics of each magnetic sensor. Then, the rotation angle of the rotating body is calculated based on the corrected output signal of each magnetic sensor. Thereby, the detection error of the rotation angle of the rotating body can be reduced.

前記オフセット電圧演算手段は、オフセット電圧の演算対象である磁気センサを演算対象センサとし、前記各磁極のうちのN極の各磁極に対応する前記演算対象センサの出力信号のピーク値の総和をΣP、前記各磁極のうちのS極の各磁極に対応する前記演算対象センサの出力信号のピーク値の総和をΣP、前記各磁極の角度幅の総和をΣW、前記各磁極のうちのN極の各磁極の角度幅の総和をΣW、前記各磁極のうちのS極の各磁極の角度幅の総和をΣW、前記各磁極の総数をKとすると、次式(a)に基づいて、前記演算対象センサの出力信号のオフセット電圧Vosを演算するように構成されていてもよい。 The offset voltage calculation means uses the magnetic sensor that is the target of calculation of the offset voltage as the calculation target sensor, and calculates the sum of the peak values of the output signals of the calculation target sensor corresponding to the N magnetic poles of the magnetic poles as ΣP N , ΣP S is the sum of the peak values of the output signals of the calculation target sensors corresponding to the S magnetic poles of the magnetic poles, ΣW is the sum of the angular widths of the magnetic poles, and N of the magnetic poles When the sum of the angular widths of the magnetic poles is ΣW N , the sum of the angular widths of the S magnetic poles of the magnetic poles is ΣW S , and the total number of the magnetic poles is K, The offset voltage Vos of the output signal of the calculation target sensor may be calculated.

Vos=[{ΣP×((ΣW/2)/ΣW)÷(K/2)}
+{ΣP×((ΣW/2)/ΣW)÷(K/2)}]/2 …(a)
前記信号補正手段は、前記演算対象センサが感知している磁極のピーク値をPxとし、前記演算対象センサの出力信号値をVとし、予め設定された基準振幅をAoとすると、次式(b)に基づいて、前記演算対象センサの出力信号の補正値V’を演算するように構成されていてもよい。
Vos = [{ΣP N × ((ΣW / 2) / ΣW N ) ÷ (K / 2)}
+ {ΣP S × ((ΣW / 2) / ΣW S ) ÷ (K / 2)}] / 2 (a)
The signal correction means is represented by the following equation (b) where Px is the peak value of the magnetic pole sensed by the calculation target sensor, V is the output signal value of the calculation target sensor, and Ao is a preset reference amplitude. ), The correction value V ′ of the output signal of the calculation target sensor may be calculated.

V’={(V−Vos)/Px}×Ao …(b)   V '= {(V-Vos) / Px} * Ao (b)

この発明の一実施形態に係る回転角検出装置を、ブラシレスモータのロータの回転角を検出するための回転角検出装置に適用した場合の構成を示す模式図である。It is a schematic diagram which shows the structure at the time of applying the rotation angle detection apparatus which concerns on one Embodiment of this invention to the rotation angle detection apparatus for detecting the rotation angle of the rotor of a brushless motor. 検出用ロータの構成を示す模式図である。It is a schematic diagram which shows the structure of the rotor for a detection. 第1の磁気センサの出力信号波形および第2の磁気センサの出力信号波形を示す模式図である。It is a schematic diagram which shows the output signal waveform of a 1st magnetic sensor, and the output signal waveform of a 2nd magnetic sensor. 図4は、不揮発性メモリに記憶されたピーク値テーブルの内容を示す模式図であある。FIG. 4 is a schematic diagram showing the contents of the peak value table stored in the nonvolatile memory. 回転角演算装置による回転角演算処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the rotation angle calculation process by a rotation angle calculating device. メモリ内の第1のピーク値記憶領域および第2のピーク値記憶領域を示す模式図である。It is a schematic diagram which shows the 1st peak value storage area and 2nd peak value storage area in memory. 相対的極番号の設定処理の詳細な手順を示すフローチャートである。It is a flowchart which shows the detailed procedure of the setting process of a relative pole number. 相対的極番号の設定処理を説明するための模式図である。It is a schematic diagram for demonstrating the setting process of a relative pole number. 従来の回転角検出装置による回転角検出方法を説明するための模式図である。It is a schematic diagram for demonstrating the rotation angle detection method by the conventional rotation angle detection apparatus. 第1の磁気センサの出力信号波形および第2の磁気センサの出力信号波形を示す模式図である。It is a schematic diagram which shows the output signal waveform of a 1st magnetic sensor, and the output signal waveform of a 2nd magnetic sensor.

以下では、この発明を、ブラシレスモータのロータの回転角を検出するための回転角検出装置に適用した場合の実施形態について、添付図面を参照して詳細に説明する。
図1は、この発明の一実施形態に係る回転角検出装置を、ブラシレスモータのロータの回転角を検出するための回転角検出装置に適用した場合の構成を示す模式図である。
この回転角検出装置は、ブラシレスモータ10の回転に応じて回転する検出用ロータ(以下、単に「ロータ1」という)を有している。図2に示すように、ロータ1は、ブラシレスモータ10のロータに設けられている磁極対に相当する複数の磁極対を有する円筒状の磁石2を含んでいる。つまり、ロータ1には、周方向に並んだ複数の磁極が設けられている。この例では、磁石2は、5組の磁極対(M0,M1),(M2,M3),(M4,M5),(M6,M7),(M8,M9)を有している。つまり、磁石2は、10個の磁極M0〜M9を有している。
Hereinafter, an embodiment in which the present invention is applied to a rotation angle detection device for detecting the rotation angle of a rotor of a brushless motor will be described in detail with reference to the accompanying drawings.
FIG. 1 is a schematic diagram showing a configuration when a rotation angle detection device according to an embodiment of the present invention is applied to a rotation angle detection device for detecting the rotation angle of a rotor of a brushless motor.
This rotation angle detection device has a detection rotor (hereinafter simply referred to as “rotor 1”) that rotates in accordance with the rotation of the brushless motor 10. As shown in FIG. 2, the rotor 1 includes a cylindrical magnet 2 having a plurality of magnetic pole pairs corresponding to the magnetic pole pairs provided in the rotor of the brushless motor 10. That is, the rotor 1 is provided with a plurality of magnetic poles arranged in the circumferential direction. In this example, the magnet 2 includes five magnetic pole pairs (M0, M1), (M2, M3), (M4, M5), (M6, M7), (M8, M9). That is, the magnet 2 has ten magnetic poles M0 to M9.

ブラシレスモータ10のロータに設けられた各磁極の周方向の長さは、全て同じである。つまり、ブラシレスモータ10のロータに設けられた各磁極の角度幅は全て同じであり、36°である。したがって、このブラシレスモータ10では、1磁極対の角度幅は、機械角で72°であり、これが電気角の360°に相当する。
これに対し、図2に示すように、ロータ1に設けられている各磁極M0〜M9の角度幅には、ばらつきがある。この実施形態では、ロータ1に設けられている各磁極M0〜M9のうち、N極の磁極M0,M2,M4,M6,M8の角度幅(a,c,e,g,i)は、それぞれ異なっている。つまり、N極の磁極間では、その着磁面積が異なっている。S極の磁極M1,M3,M5,M7,M9のうち、磁極M9以外の4つの磁極M1,M3,M5,M7は、それぞれ異なっている。磁極M9の角度幅(j)は、磁極M7の角度幅(f)と等しい。
The circumferential lengths of the magnetic poles provided on the rotor of the brushless motor 10 are all the same. That is, the angular widths of the magnetic poles provided on the rotor of the brushless motor 10 are all the same and are 36 °. Therefore, in this brushless motor 10, the angular width of one magnetic pole pair is 72 ° in mechanical angle, which corresponds to 360 ° in electrical angle.
On the other hand, as shown in FIG. 2, the angular widths of the magnetic poles M0 to M9 provided in the rotor 1 vary. In this embodiment, among the magnetic poles M0 to M9 provided on the rotor 1, the angular widths (a, c, e, g, i) of the N magnetic poles M0, M2, M4, M6, M8 are respectively Is different. That is, the magnetized areas differ between the N poles. Of the S magnetic poles M1, M3, M5, M7, and M9, the four magnetic poles M1, M3, M5, and M7 other than the magnetic pole M9 are different from each other. The angular width (j) of the magnetic pole M9 is equal to the angular width (f) of the magnetic pole M7.

この実施形態においては、各磁極M0〜M9の角度幅は、表1に示すようになっている。ただし、表1では、角度幅は、その角度幅に対応する機械角に磁極対数(この実施形態では”5”)を乗算した値で表されている。なお、図2において、破線は、ロータ1を周方向に36°(電気角では180°)間隔で分割した場合の各領域を示している。   In this embodiment, the angular widths of the magnetic poles M0 to M9 are as shown in Table 1. However, in Table 1, the angle width is represented by a value obtained by multiplying the mechanical angle corresponding to the angle width by the number of magnetic pole pairs (“5” in this embodiment). In FIG. 2, broken lines indicate regions when the rotor 1 is divided at intervals of 36 ° (180 ° in electrical angle) in the circumferential direction.

Figure 0005708986
Figure 0005708986

磁石2の各磁極M0〜M9の角度幅は、たとえば、次のようにして求めることができる。磁石2を単体で回転させながら、磁束測定器で回転角毎に磁束量を測定する。そして、磁束量が零の角度間隔(電気角)を演算する。これにより、各磁極M0〜M9の角度幅が求められる。
ロータ1の周囲には、2つの磁気センサ21,22が、ロータ1の回転中心軸を中心として、所定角度(18°(電気角では90°))の角度間隔をおいて配置されている。これら2つの磁気センサ21,22を、それぞれ第1の磁気センサ21および第2の磁気センサ22という場合がある。磁気センサとしては、たとえば、ホール素子、磁気抵抗素子(MR素子)等、磁界の作用により電気的特性が変化する特性を有する素子を備えたものを用いることができる。
The angular width of each of the magnetic poles M0 to M9 of the magnet 2 can be obtained as follows, for example. While rotating the magnet 2 alone, the magnetic flux amount is measured for each rotation angle with a magnetic flux measuring device. Then, an angular interval (electrical angle) where the amount of magnetic flux is zero is calculated. Thereby, the angular width of each magnetic pole M0-M9 is calculated | required.
Around the rotor 1, two magnetic sensors 21 and 22 are arranged with an angular interval of a predetermined angle (18 ° (90 ° in electrical angle)) around the rotation center axis of the rotor 1. These two magnetic sensors 21 and 22 may be referred to as a first magnetic sensor 21 and a second magnetic sensor 22, respectively. As the magnetic sensor, for example, a sensor provided with an element having a characteristic in which an electrical characteristic is changed by the action of a magnetic field, such as a Hall element or a magnetoresistive element (MR element) can be used.

図2に矢印で示す方向をロータ1の正方向の回転方向とする。そして、ロータ1が正方向に回転されるとロータ1の回転角が大きくなり、ロータ1が逆方向に回転されると、ロータ1の回転角が小さくなるものとする。各磁気センサ21,22からは、図3に示すように、ロータ1の回転にともなって、正弦波状の信号(以下、「正弦波信号」という)V1,V2が出力される。なお、図3における横軸のロータ角度[deg]は、機械角に磁極対数(この実施形態では”5”)を乗算することにより得られた角度を表している。また、図3には、正弦波信号V1における各磁極M0〜M9のピーク値が、P0〜P9で示されている。   A direction indicated by an arrow in FIG. 2 is a positive rotation direction of the rotor 1. When the rotor 1 is rotated in the forward direction, the rotation angle of the rotor 1 is increased. When the rotor 1 is rotated in the reverse direction, the rotation angle of the rotor 1 is decreased. As shown in FIG. 3, the magnetic sensors 21 and 22 output sinusoidal signals (hereinafter referred to as “sine wave signals”) V1 and V2 as the rotor 1 rotates. Note that the rotor angle [deg] on the horizontal axis in FIG. 3 represents an angle obtained by multiplying the mechanical angle by the number of magnetic pole pairs (“5” in this embodiment). In FIG. 3, the peak values of the magnetic poles M0 to M9 in the sine wave signal V1 are indicated by P0 to P9.

ロータ1が1つの磁極に相当する角度を回転すると、各磁気センサ21,22からは、半周期分の正弦波信号が出力される。ただし、この実施形態では、各磁極の角度幅は一定幅ではないため、1つの磁気センサから出力される正弦波信号における各磁極に対応する半周期は一定ではない。また、磁極M7および磁極M9を除いて、各磁気センサ21,22の出力信号V1,V2の磁極毎のピーク値は、磁極ごとに異なる。第1の磁気センサ21の出力信号V1を第1の出力信号V1といい、第2の磁気センサ22の出力信号V2を第2の出力信号V2という場合がある。   When the rotor 1 rotates an angle corresponding to one magnetic pole, each magnetic sensor 21, 22 outputs a sine wave signal for a half cycle. However, in this embodiment, since the angular width of each magnetic pole is not constant, the half cycle corresponding to each magnetic pole in the sine wave signal output from one magnetic sensor is not constant. Also, except for the magnetic pole M7 and the magnetic pole M9, the peak values for the magnetic poles of the output signals V1, V2 of the magnetic sensors 21, 22 are different for each magnetic pole. The output signal V1 of the first magnetic sensor 21 may be referred to as a first output signal V1, and the output signal V2 of the second magnetic sensor 22 may be referred to as a second output signal V2.

ロータ1の1回転分の角度範囲を、5つの磁極対の角度幅に対応して、5つの区間(a+b,c+d,e+f,g+h,i+j)に分け、各区間の開始位置を0°とし終了位置を360°として表したロータ1の角度を、ロータ1の電気角θeということにする。なお、この実施形態では、これらの5つの区間の角度幅は一定幅ではないが、ロータ1の電気角θeをブラシレスモータの電気角とみなすことにする。   The angle range for one rotation of the rotor 1 is divided into five sections (a + b, c + d, e + f, g + h, i + j) corresponding to the angular width of the five magnetic pole pairs, and the start position of each section is set to 0 ° and the end. The angle of the rotor 1 expressed as a position of 360 ° is referred to as an electrical angle θe of the rotor 1. In this embodiment, the angular widths of these five sections are not constant, but the electrical angle θe of the rotor 1 is regarded as the electrical angle of the brushless motor.

ここでは、第1の磁気センサ21からは、5つの磁極対に対応する区間毎に、V1=A1・sinθeの出力信号が出力され、第2の磁気センサ22からは、5つの磁極対に対応する区間毎に、V2=A2・cosθeの出力信号が出力されるものとする。A1,A2は、それぞれ振幅を表している。ただし、振幅A1は、磁極毎に異なる。同様に、振幅A2も磁極ごとに異なる。また、θeは、対応する区間における電気角θeを表している。   Here, the first magnetic sensor 21 outputs an output signal of V1 = A1 · sin θe for each section corresponding to five magnetic pole pairs, and the second magnetic sensor 22 corresponds to five magnetic pole pairs. It is assumed that an output signal of V2 = A2 · cos θe is output for each interval. A1 and A2 each represent an amplitude. However, the amplitude A1 is different for each magnetic pole. Similarly, the amplitude A2 is different for each magnetic pole. Θe represents the electrical angle θe in the corresponding section.

両出力信号V1,V2の振幅A1,A2が互いに等しいとみなすと、対応する区間におけるロータ1の電気角θeは、両出力信号V1,V2を用いて、次式(2)に基づいて求めることができる。
θe=tan−1(sinθe/cosθe)
=tan−1(V1/V2) …(2)
図1に戻り、各磁気センサ21,22の出力信号V1,V2は、回転角演算装置20に入力される。回転角演算装置20は、磁気センサ21,22毎に、その出力信号V1,V2の磁極M0〜M9毎のピーク値を検出する。そして、回転角演算装置20は、磁気センサ21,22毎に得られた各磁極M0〜M9のピーク値、各磁極M0〜M9の角度幅およびロータ1に設けられている磁極数に基づいて、各磁気センサ21,22の出力信号V1,V2のオフセット電圧V1os,V2osを演算する。回転角演算装置20は、演算されたオフセット電圧V1os,V2osおよび磁気センサ21,22毎に得られた各磁極M0〜M9のピーク値に基づいて、各出力信号V1,V2の振幅およびオフセット電圧のばらつきを補正する。回転角演算装置20は、補正後の出力信号V1’,V2’に基づいて、ロータ1の電気角θeを演算する。回転角演算装置20は、たとえば、マイクロコンピュータから構成され、CPU(中央演算処理装置)およびメモリ(ROM,RAM,書き換え可能な不揮発性メモリ等)を含んでいる。
Assuming that the amplitudes A1 and A2 of both output signals V1 and V2 are equal to each other, the electrical angle θe of the rotor 1 in the corresponding section is obtained based on the following equation (2) using both output signals V1 and V2. Can do.
θe = tan −1 (sin θe / cos θe)
= Tan -1 (V1 / V2) (2)
Returning to FIG. 1, the output signals V <b> 1 and V <b> 2 of the magnetic sensors 21 and 22 are input to the rotation angle calculation device 20. The rotation angle calculation device 20 detects the peak value for each of the magnetic poles M0 to M9 of the output signals V1 and V2 for each of the magnetic sensors 21 and 22. Then, the rotation angle calculation device 20 is based on the peak values of the magnetic poles M0 to M9 obtained for the magnetic sensors 21 and 22, the angular widths of the magnetic poles M0 to M9, and the number of magnetic poles provided in the rotor 1. The offset voltages V1os and V2os of the output signals V1 and V2 of the magnetic sensors 21 and 22 are calculated. Based on the calculated offset voltages V1os and V2os and the peak values of the magnetic poles M0 to M9 obtained for each of the magnetic sensors 21 and 22, the rotation angle calculation device 20 calculates the amplitude and offset voltage of each output signal V1 and V2. Correct variations. The rotation angle calculation device 20 calculates the electrical angle θe of the rotor 1 based on the corrected output signals V1 ′ and V2 ′. The rotation angle calculation device 20 is composed of, for example, a microcomputer, and includes a CPU (Central Processing Unit) and a memory (ROM, RAM, rewritable nonvolatile memory, etc.).

回転角演算装置20によって演算された電気角θeは、ブラシレスモータの電気角として、モータコントローラ30に与えられる。モータコントローラ30は、回転角演算装置20から与えられた電気角θeと、所与の指令値とに基づいて、ブラシレスモータ10を制御する。
以下、回転角演算装置20の動作について説明する。回転角演算装置20内の書き換え可能な不揮発性メモリには、図4に示すように、ピーク値テーブルが記憶されている。
The electrical angle θe calculated by the rotation angle calculation device 20 is given to the motor controller 30 as the electrical angle of the brushless motor. The motor controller 30 controls the brushless motor 10 based on the electrical angle θe given from the rotation angle computing device 20 and a given command value.
Hereinafter, the operation of the rotation angle calculation device 20 will be described. As shown in FIG. 4, a peak value table is stored in the rewritable nonvolatile memory in the rotation angle calculation device 20.

ピーク値テーブルには、各磁極M0〜M9の磁極番号0〜9毎に、その磁極の角度幅[deg]と、その磁極に対応する第1の磁気センサ21の出力信号V1のピーク値(極大値または極小値)と、その磁極に対応する第2の磁気センサ22の出力信号V2のピーク値(極大値または極小値)が記憶されている。ただし、角度幅は、表1で説明したように、その角度幅に対応する機械角に磁極対数(この実施形態では”5”)を乗算した値である。図4では、説明の便宜上、各磁極に対する第2の磁気センサ22のピーク値は、対応する磁極に対する第1の磁気センサ21のピーク値と同じ値となっているが、実際には互いに異なる場合もある。   In the peak value table, for each magnetic pole number 0 to 9 of each magnetic pole M0 to M9, the angular width [deg] of the magnetic pole and the peak value (maximum) of the output signal V1 of the first magnetic sensor 21 corresponding to the magnetic pole. Value or minimum value) and the peak value (maximum value or minimum value) of the output signal V2 of the second magnetic sensor 22 corresponding to the magnetic pole. However, as described in Table 1, the angular width is a value obtained by multiplying the mechanical angle corresponding to the angular width by the number of magnetic pole pairs (“5” in this embodiment). In FIG. 4, for convenience of explanation, the peak value of the second magnetic sensor 22 for each magnetic pole is the same value as the peak value of the first magnetic sensor 21 for the corresponding magnetic pole, but is actually different from each other. There is also.

前記ピーク値テーブルへの各磁極の角度幅およびピーク値の記憶は、たとえば、ブラシレスモータ10の出荷前に行われる。前記振幅補正用ピーク値テーブルに記憶されるピーク値は、1周期分のデータから求めてもよいし、複数周期分のデータの平均値から求めてもよい。
図5は、回転角演算装置20による回転角演算処理の手順を示すフローチャートである。
The storage of the angle width and the peak value of each magnetic pole in the peak value table is performed, for example, before shipping the brushless motor 10. The peak value stored in the amplitude correction peak value table may be obtained from data for one period or may be obtained from an average value of data for a plurality of periods.
FIG. 5 is a flowchart showing a procedure of rotation angle calculation processing by the rotation angle calculation device 20.

図5に示される回転角演算処理は、所定の演算周期毎に繰り返し行なわれる。
回転角演算処理開始時において第1の磁気センサ21が感知している磁極を基準磁極として、各磁極に相対的な番号を割り当てた場合の各磁極の番号を相対的極番号と定義する。第1の磁気センサ21が感知している磁極の相対的極番号(以下、「第1の相対的極番号」という)を変数q1で表し、第2の磁気センサ22が感知している磁極の相対的極番号(以下、「第2の相対的極番号」という)を変数q2で表すことにする。この実施形態では、回転角演算処理開始時において第1の磁気センサ21が感知している磁極(基準磁極)がN極の磁極である場合には、当該磁極に”0”の相対的極番号が割り当てられる。一方、回転角演算処理の開始時において第1の磁気センサ21が感知している磁極(基準磁極)がS極の磁極である場合には、当該磁極に”1”の相対的極番号が割り当てられる。
The rotation angle calculation process shown in FIG. 5 is repeatedly performed every predetermined calculation cycle.
Using the magnetic pole sensed by the first magnetic sensor 21 at the start of the rotation angle calculation process as a reference magnetic pole, the number of each magnetic pole when a relative number is assigned to each magnetic pole is defined as a relative pole number. The relative pole number (hereinafter referred to as “first relative pole number”) of the magnetic pole sensed by the first magnetic sensor 21 is represented by a variable q1, and the magnetic pole sensed by the second magnetic sensor 22 is represented by the variable q1. A relative pole number (hereinafter referred to as “second relative pole number”) is represented by a variable q2. In this embodiment, when the magnetic pole (reference magnetic pole) sensed by the first magnetic sensor 21 at the start of the rotation angle calculation process is an N-pole magnetic pole, the relative pole number “0” is assigned to the magnetic pole. Is assigned. On the other hand, when the magnetic pole (reference magnetic pole) sensed by the first magnetic sensor 21 at the start of the rotation angle calculation process is an S pole, a relative pole number of “1” is assigned to the magnetic pole. It is done.

回転角演算装置20のメモリ(たとえば、RAM)には、図6に示すように、第1の相対的極番号q1(0〜9)毎に、その相対的極番号q1に対応する磁極に対して最新に検出された第1の出力信号V1のピーク値を記憶する第1のピーク値記憶領域R1と、第2の相対的極番号q2(0〜9)毎に、その相対的極番号q2に対応する磁極に対して最新に検出された第2の出力信号V2のピーク値を記憶する第2のピーク値記憶領域R2が設けられている。第1のピーク値記憶領域R1および第2のピーク値記憶領域R2内のピーク値の初期値は、たとえば、0に設定される。   In the memory (for example, RAM) of the rotation angle computing device 20, as shown in FIG. 6, for each first relative pole number q1 (0 to 9), the magnetic pole corresponding to the relative pole number q1 is stored. For each of the first peak value storage area R1 for storing the peak value of the first output signal V1 detected most recently and the second relative pole number q2 (0 to 9), the relative pole number q2 A second peak value storage region R2 for storing the peak value of the second output signal V2 detected most recently for the magnetic pole corresponding to is provided. The initial value of the peak value in the first peak value storage area R1 and the second peak value storage area R2 is set to 0, for example.

回転角演算処理が開始されると、回転角演算装置20は、各磁気センサ21,22の出力信号(センサ値)V1,V2を読み込む(ステップS1)。なお、回転角演算装置20のメモリ(たとえば、RAM)には、所定回数前に読み込まれたセンサ値から最新に読み込まれたセンサ値までの、複数回数分のセンサ値が記憶されるようになっている。
また、この実施形態では、センサ値V1のピーク値(極大値および極小値)を検出するために、読み込まれたセンサ値V1のうち絶対値がより大きいセンサ値が、センサ値V1のピーク値候補としてメモリに保存される。同様に、センサ値V2のピーク値(極大値および極小値)を検出するために、読み込まれたセンサ値V2のうち絶対値がより大きいセンサ値が、センサ値V2のピーク値候補としてメモリに保存される。ただし、これらのピーク値候補は、対応する出力信号のゼロクロスが検出されたときには、後述するような所定のタイミングで零にリセットされる。
When the rotation angle calculation process is started, the rotation angle calculation device 20 reads the output signals (sensor values) V1 and V2 of the magnetic sensors 21 and 22 (step S1). The memory (for example, RAM) of the rotation angle calculation device 20 stores sensor values for a plurality of times from the sensor value read a predetermined number of times to the sensor value read most recently. ing.
In this embodiment, in order to detect the peak value (maximum value and minimum value) of the sensor value V1, a sensor value having a larger absolute value among the read sensor values V1 is a peak value candidate of the sensor value V1. Is stored in memory. Similarly, in order to detect the peak value (maximum value and minimum value) of the sensor value V2, a sensor value having a larger absolute value among the read sensor values V2 is stored in the memory as a peak value candidate of the sensor value V2. Is done. However, these peak value candidates are reset to zero at a predetermined timing, which will be described later, when a zero cross of the corresponding output signal is detected.

前記ステップS1で各センサ値V1,V2が読み込まれると、回転角演算装置20は、今回の処理が回転角演算処理開始後の初回の処理であるか否かを判別する(ステップS2)。今回の処理が回転角演算処理開始後の初回の処理である場合には(ステップS2:YES)、回転角演算装置20は、相対的極番号の設定処理を行う(ステップS3)。
図7は、相対的極番号の設定処理の詳細な手順を示している。
When the sensor values V1 and V2 are read in step S1, the rotation angle calculation device 20 determines whether or not the current process is the first process after the start of the rotation angle calculation process (step S2). If the current process is the first process after the start of the rotation angle calculation process (step S2: YES), the rotation angle calculation device 20 performs a relative pole number setting process (step S3).
FIG. 7 shows the detailed procedure of the relative pole number setting process.

回転角演算装置20は、まず、第1の出力信号V1が0より大きいか否かを判別する(ステップS21)。第1の出力信号V1が0より大きい場合には(ステップS21:YES)、回転角演算装置20は、第1の磁気センサ21が感知している磁極(基準磁極)がN極の磁極であると判別し、第1の相対的極番号q1を0に設定する(ステップS24)。そして、ステップS26に進む。   First, the rotation angle calculation device 20 determines whether or not the first output signal V1 is greater than 0 (step S21). When the first output signal V1 is greater than 0 (step S21: YES), the rotation angle calculation device 20 has an N-pole magnetic pole (reference magnetic pole) sensed by the first magnetic sensor 21. And the first relative pole number q1 is set to 0 (step S24). Then, the process proceeds to step S26.

一方、第1の出力信号V1が0以下である場合には(ステップS21:NO)、回転角演算装置20は、第1の出力信号V1が0より小さいか否かを判別する(ステップS22)。第1の出力信号V1が0より小さい場合には(ステップS22:YES)、第1の磁気センサ21が感知している磁極(基準磁極)がS極の磁極であると判別し、第1の相対的極番号q1を1に設定する。そして、ステップS26に進む。   On the other hand, when the first output signal V1 is 0 or less (step S21: NO), the rotation angle calculation device 20 determines whether or not the first output signal V1 is smaller than 0 (step S22). . If the first output signal V1 is smaller than 0 (step S22: YES), it is determined that the magnetic pole (reference magnetic pole) sensed by the first magnetic sensor 21 is the S magnetic pole, and the first The relative pole number q1 is set to 1. Then, the process proceeds to step S26.

前記ステップS22において、第1の出力信号V1が0以上であると判別された場合には(ステップS22:NO)、つまり、第1の出力信号V1が0である場合には、回転角演算装置20は、ロータ回転角(電気角)が0°付近であるか180°付近であるかを判別するために、第2の出力信号V2が0より大きいか否かを判別する(ステップS23)。第2の出力信号V2が0より大きい場合には(ステップS23:YES)、回転角演算装置20は、ロータ回転角(電気角)が0°であると判別し、第1の相対的極番号p1を0に設定する(ステップS24)。そして、ステップS26に進む。   If it is determined in step S22 that the first output signal V1 is equal to or greater than 0 (step S22: NO), that is, if the first output signal V1 is 0, the rotation angle calculation device. 20 determines whether the second output signal V2 is greater than 0 in order to determine whether the rotor rotation angle (electrical angle) is near 0 ° or near 180 ° (step S23). When the second output signal V2 is greater than 0 (step S23: YES), the rotation angle calculation device 20 determines that the rotor rotation angle (electrical angle) is 0 °, and the first relative pole number is determined. p1 is set to 0 (step S24). Then, the process proceeds to step S26.

一方、第2の出力信号V2が0以下である場合には(ステップS23:NO)、回転角演算装置20は、ロータ回転角(電気角)が180°であると判別し、第1の相対的極番号p1を1に設定する(ステップS25)。そして、ステップS26に進む。
ステップS26では、回転角演算装置20は、「V1≧0かつV2≦0」または「V1<0かつV2≧0」の条件を満たしているか否かを判別する。この条件を満たしている場合には(ステップS26:YES)、回転角演算装置20は、第1の磁気センサ21が感知している磁極と第2の磁気センサ22が感知している磁極とが異なると判別し、第2の相対的極番号q2に、第1の相対的極番号q1より1だけ大きい番号を設定する(ステップS28)。そして、図5のステップS4に戻る。
On the other hand, when the second output signal V2 is 0 or less (step S23: NO), the rotation angle calculation device 20 determines that the rotor rotation angle (electrical angle) is 180 °, and the first relative The target pole number p1 is set to 1 (step S25). Then, the process proceeds to step S26.
In step S26, the rotation angle calculation device 20 determines whether or not the condition of “V1 ≧ 0 and V2 ≦ 0” or “V1 <0 and V2 ≧ 0” is satisfied. When this condition is satisfied (step S26: YES), the rotation angle calculation device 20 has a magnetic pole sensed by the first magnetic sensor 21 and a magnetic pole sensed by the second magnetic sensor 22. It discriminate | determines that it is different, and sets a number 1 larger than the 1st relative pole number q1 to the 2nd relative pole number q2 (step S28). Then, the process returns to step S4 in FIG.

一方、前記ステップS26の条件を満たしていない場合には(ステップS26:NO)、回転角演算装置20は、第1の磁気センサ21が感知している磁極と第2の磁気センサ22が感知している磁極とが同じであると判別し、第2の相対的極番号p2に第1の相対的極番号p1と同じ番号を設定する(ステップS27)。そして、図5のステップS4に戻る。   On the other hand, when the condition of step S26 is not satisfied (step S26: NO), the rotation angle calculation device 20 detects the magnetic pole sensed by the first magnetic sensor 21 and the second magnetic sensor 22. And the same number as the first relative pole number p1 is set as the second relative pole number p2 (step S27). Then, the process returns to step S4 in FIG.

前記ステップS26の条件を満たしている場合に、第1の磁気センサ21が感知している磁極と第2の磁気センサ22が感知している磁極とが異なると判別し、前記ステップS26の条件を満たしていない場合に、第1の磁気センサ21が感知している磁極と第2の磁気センサ22が感知している磁極とが同じであると判別している理由について説明する。   When the condition of step S26 is satisfied, it is determined that the magnetic pole sensed by the first magnetic sensor 21 is different from the magnetic pole sensed by the second magnetic sensor 22, and the condition of step S26 is set as follows. The reason why it is determined that the magnetic pole sensed by the first magnetic sensor 21 and the magnetic pole sensed by the second magnetic sensor 22 are the same when the condition is not satisfied will be described.

たとえば、ロータ1の磁極M0と磁極M1とからなる磁極対が第1の磁気センサ21を通過する際の、第1および第2の磁気センサ21,22の出力信号V1,V2の信号波形を模式的に表すと、図8(a)(b)に示すようになる。
図8(a)(b)において、S1で示す領域は、第1の磁気センサ21および第2の磁気センサ22が共に磁極M0を感知している領域である。S2で示す領域は、第1の磁気センサ21が磁極M0を感知し、第2の磁気センサ22が磁極M1を感知している領域である。S3で示す領域は、第1の磁気センサ21および第2の磁気センサ22が共に磁極M1を感知している領域である。S4で示す領域は、第1の磁気センサ21が磁極M1を感知し、第2の磁気センサ22が磁極M2を感知している領域である。
For example, the signal waveforms of the output signals V1 and V2 of the first and second magnetic sensors 21 and 22 when the magnetic pole pair composed of the magnetic pole M0 and the magnetic pole M1 of the rotor 1 passes through the first magnetic sensor 21 are schematically shown. If it represents, it will come to show to Fig.8 (a) (b).
8A and 8B, the region indicated by S1 is a region where both the first magnetic sensor 21 and the second magnetic sensor 22 sense the magnetic pole M0. The region indicated by S2 is a region where the first magnetic sensor 21 senses the magnetic pole M0 and the second magnetic sensor 22 senses the magnetic pole M1. The region indicated by S3 is a region where both the first magnetic sensor 21 and the second magnetic sensor 22 sense the magnetic pole M1. The region indicated by S4 is a region where the first magnetic sensor 21 senses the magnetic pole M1 and the second magnetic sensor 22 senses the magnetic pole M2.

つまり、領域S1およびS3では、第2の磁気センサ22が感知している磁極の極番号は、第1の磁気センサ21が感知している磁極の極番号と等しくなる。一方、領域S2およびS4では、第2の磁気センサ22が感知している磁極の極番号は、第1の磁気センサ21が感知している磁極の極番号より1だけ大きくなる。
領域S1においては、両センサ値V1,V2は、V1≧0かつV2>0の第1条件を満たす。領域S2においては、両センサ値V1,V2は、V1≧0かつV2≦0の第2条件を満たす。領域S3においては、両センサ値V1,V2は、V1<0かつV2<0の第3条件を満たす。領域S4においては、両センサ値V1,V2は、V1<0かつV2≧0の第4条件を満たす。
That is, in the regions S1 and S3, the pole number of the magnetic pole sensed by the second magnetic sensor 22 is equal to the pole number of the magnetic pole sensed by the first magnetic sensor 21. On the other hand, in the regions S2 and S4, the pole number of the magnetic pole sensed by the second magnetic sensor 22 is larger by 1 than the pole number of the magnetic pole sensed by the first magnetic sensor 21.
In the region S1, the sensor values V1 and V2 satisfy the first condition of V1 ≧ 0 and V2> 0. In the region S2, both sensor values V1 and V2 satisfy the second condition of V1 ≧ 0 and V2 ≦ 0. In the region S3, both sensor values V1 and V2 satisfy the third condition of V1 <0 and V2 <0. In the region S4, both sensor values V1 and V2 satisfy the fourth condition of V1 <0 and V2 ≧ 0.

そこで、回転角演算装置20は、前記第2条件(V1≧0かつV2≦0)または前記第4条件(V1<0かつV2≧0)を満たしている場合には、第1の磁気センサ21が感知している磁極と第2の磁気センサ22が感知している磁極とが異なると判別し、前記第2条件および前記第4条件のいずれの条件も満たしていない場合に、第1の磁気センサ21が感知している磁極と第2の磁気センサ22が感知している磁極とが同じであると判別している。   Therefore, when the rotation angle calculation device 20 satisfies the second condition (V1 ≧ 0 and V2 ≦ 0) or the fourth condition (V1 <0 and V2 ≧ 0), the first magnetic sensor 21 is provided. If the magnetic pole sensed by the second magnetic sensor 22 is different from the magnetic pole sensed by the second magnetic sensor 22, and the first and second conditions are not satisfied, the first magnetic field is detected. It is determined that the magnetic pole sensed by the sensor 21 and the magnetic pole sensed by the second magnetic sensor 22 are the same.

図5に戻り、前記ステップS2において、今回の処理が回転角演算処理開始後の初回の処理ではないと判別された場合には(ステップS2:NO)、ステップS4に移行する。
ステップS4では、回転角演算装置20は、メモリに記憶されているセンサ値V1,V2に基づいて、センサ値V1,V2毎に、センサ値の符号が反転するゼロクロスを検出したか否かを判別する。ゼロクロスが検出されなかったときには(ステップS4:NO)、回転角演算装置20は、ステップS8に移行する。
Returning to FIG. 5, if it is determined in step S2 that the current process is not the first process after the start of the rotation angle calculation process (step S2: NO), the process proceeds to step S4.
In step S4, the rotation angle calculation device 20 determines, based on the sensor values V1 and V2 stored in the memory, whether or not a zero cross where the sign of the sensor value is inverted is detected for each of the sensor values V1 and V2. To do. When the zero cross is not detected (step S4: NO), the rotation angle calculation device 20 proceeds to step S8.

前記ステップS4において、いずれかのセンサ値V1,V2に対してゼロクロスが検出された場合には(ステップS4:YES)、回転角演算装置20は、ゼロクロスが検出された出力信号のピーク値(極大値または極小値)を検出したか否かを判定する(ステップS5)。以下において、ステップS5の判定処理を、ピーク値検出処理という場合がある。   If a zero cross is detected for one of the sensor values V1 and V2 in step S4 (step S4: YES), the rotation angle calculation device 20 causes the peak value (maximum) of the output signal from which the zero cross is detected. It is determined whether or not a value or a minimum value has been detected (step S5). Hereinafter, the determination process in step S5 may be referred to as a peak value detection process.

ピーク値検出処理について具体的に説明する。前記ステップS4でゼロクロスが検出された出力信号に対応する磁気センサをピーク値検出対象の磁気センサということにする。回転角演算装置20は、まず、ピーク値検出対象の磁気センサが感知している磁極が変化したか否かを判別する。つまり、回転角演算装置20は、ピーク値検出対象の磁気センサが感知している磁極位置が、当該磁気センサの出力信号のゼロクロスが前回検出された時点と、今回検出された時点とで、異なっているか同じであるかを判定する。ロータ1の回転方向が逆転した場合には、前記両時点での磁極位置が同じになる可能性がある。   The peak value detection process will be specifically described. The magnetic sensor corresponding to the output signal in which the zero cross is detected in step S4 will be referred to as a peak value detection target magnetic sensor. First, the rotation angle calculation device 20 determines whether or not the magnetic pole sensed by the magnetic sensor that is the peak value detection target has changed. In other words, the rotation angle calculation device 20 differs in the magnetic pole position sensed by the peak value detection target magnetic sensor between the time when the zero cross of the output signal of the magnetic sensor was detected last time and the time when it was detected this time. Or whether they are the same. When the rotation direction of the rotor 1 is reversed, the magnetic pole positions at both time points may be the same.

この判定は、たとえば、前回ゼロクロスが検出されたときのロータ1の回転方向と、現在のロータ1の回転方向が同じ方向であるか否かに基づいて行うことができる。すなわち、回転角演算装置20は、ロータ1の回転方向が同じ方向であれば、ピーク値検出対象の磁気センサが感知している磁極が変化したと判定する。一方、ロータ1の回転方向が異なっていれば、回転角演算装置20は、ピーク値検出対象の磁気センサが感知している磁極が変化していないと判定する。   This determination can be made, for example, based on whether or not the rotation direction of the rotor 1 when the previous zero cross was detected and the current rotation direction of the rotor 1 are the same direction. That is, if the rotation direction of the rotor 1 is the same direction, the rotation angle calculation device 20 determines that the magnetic pole sensed by the peak value detection target magnetic sensor has changed. On the other hand, if the rotation direction of the rotor 1 is different, the rotation angle calculation device 20 determines that the magnetic pole sensed by the magnetic sensor that is the peak value detection target has not changed.

当該磁気センサが感知している磁極が変化したと判定された場合には、回転角演算装置20は、ピーク値を検出したと判別するとともに、当該磁気センサに対応するピーク値候補をピーク値として特定する。一方、当該磁気センサが感知している磁極が変化していないと判定された場合には、回転角演算装置20は、ピーク値を検出しなかったと判定する。   When it is determined that the magnetic pole sensed by the magnetic sensor has changed, the rotation angle calculation device 20 determines that the peak value has been detected, and sets the peak value candidate corresponding to the magnetic sensor as the peak value. Identify. On the other hand, when it is determined that the magnetic pole sensed by the magnetic sensor has not changed, the rotation angle calculation device 20 determines that the peak value has not been detected.

なお、ロータ1の回転方向は、ゼロクロスが検出された一方の出力信号の前回値および今回値と、他方の出力信号の今回値とに基づいて判定することができる。具体的には、ゼロクロスが検出された一方の出力信号が第1の出力信号V1である場合には、「第1の出力信号V1の前回値が0より大きくかつその今回値が0以下であり、第2の出力信号V2が0未満である」という条件、または「第1の出力信号V1の前回値が0未満でかつその今回値が0以上であり、第2の出力信号V2が0以上である」という条件を満たしている場合には、回転方向は正方向(図2に矢印で示す方向)であると判定される。一方、「第1の出力信号V1の前回値が0以上でかつその今回値が0未満であり、第2の出力信号V2が0より大きい」という条件、または「第1の出力信号V1の前回値が0以下でかつその今回値が0より大きく、第2の出力信号V2が0未満である」という条件を満たしている場合には、回転方向は逆方向であると判定される。   Note that the rotation direction of the rotor 1 can be determined based on the previous value and current value of one output signal in which zero crossing is detected and the current value of the other output signal. Specifically, when the one output signal in which the zero cross is detected is the first output signal V1, “the previous value of the first output signal V1 is larger than 0 and the current value is not more than 0. Or the condition that the second output signal V2 is less than 0, or “the previous value of the first output signal V1 is less than 0 and its current value is 0 or more, and the second output signal V2 is 0 or more. Is satisfied, the rotation direction is determined to be the positive direction (the direction indicated by the arrow in FIG. 2). On the other hand, the condition that “the previous value of the first output signal V1 is greater than or equal to 0 and the current value is less than 0 and the second output signal V2 is greater than 0” or “the previous time of the first output signal V1. When the condition that the value is 0 or less and the current value is greater than 0 and the second output signal V2 is less than 0 is satisfied, the rotation direction is determined to be the reverse direction.

ゼロクロスが検出された一方の出力信号が第2の出力信号V2である場合には、「第2の出力信号V2の前回値が0より大きくかつその今回値が0以下であり、第1の出力信号V1が0以上である」という条件、または「第2の出力信号V2の前回値が0未満でかつその今回値が0以上であり、第1の出力信号V1が0未満である」という条件を満たしている場合には、回転方向は正方向(図2に矢印で示す方向)であると判定される。一方、「第2の出力信号V2の前回値が0以上でかつその今回値が0未満であり、第1の出力信号V1が0より小さい」という条件、または「第2の出力信号V2の前回値が0以下でかつその今回値が0より大きく、第1の出力信号V1が0より大きい」という条件を満たしている場合には、回転方向は逆方向であると判定される。   When the one output signal in which the zero cross is detected is the second output signal V2, “the previous value of the second output signal V2 is greater than 0 and the current value is less than or equal to 0, and the first output signal The condition that the signal V1 is 0 or more, or the condition that the previous value of the second output signal V2 is less than 0 and its current value is 0 or more, and the first output signal V1 is less than 0. Is satisfied, the rotation direction is determined to be the positive direction (the direction indicated by the arrow in FIG. 2). On the other hand, the condition that “the previous value of the second output signal V2 is 0 or more and the current value is less than 0 and the first output signal V1 is less than 0” or “the previous time of the second output signal V2” When the condition that the value is 0 or less and the current value is greater than 0 and the first output signal V1 is greater than 0 is satisfied, the rotation direction is determined to be the reverse direction.

前記ステップS5でピーク値が検出されなかった場合には、回転角演算装置20は、前記ステップS4でゼロクロスが検出された出力信号に対応するピーク値候補を零にリセットした後、ステップS8に移行する。一方、前記ステップS5において、ピーク値が検出されたときには(ステップS5:YES)、回転角演算装置20は、前記ステップS4でゼロクロスが検出された出力信号に対応するピーク値候補を零にリセットした後、ピーク値更新処理を行なう(ステップS6)。   If the peak value is not detected in step S5, the rotation angle calculation device 20 resets the peak value candidate corresponding to the output signal in which the zero cross is detected in step S4 to zero, and then proceeds to step S8. To do. On the other hand, when the peak value is detected in step S5 (step S5: YES), the rotation angle calculation device 20 resets the peak value candidate corresponding to the output signal in which the zero cross is detected in step S4 to zero. Thereafter, a peak value update process is performed (step S6).

ピーク値更新処理では、回転角演算装置20は、メモリ内のピーク値記憶領域R1,R2(図6参照)内のピーク値のうち、前記ステップS5でピーク値が検出された方の磁気センサに対して現在設定されている相対的極番号q1またはq2に対応するピーク値を、前記ステップS5で検出されたピーク値に更新する。
この後、回転角演算装置20は、相対的極番号の更新処理を行なう(ステップS7)。具体的には、前記ステップS5でピーク値が検出された方の磁気センサに対して現在設定されている相対的極番号q1またはq2を、ロータ1の回転方向に基づいて更新する。より具体的には、回転角演算装置20は、当該磁気センサに対して現在設定されている相対的極番号q1またはq2を、ロータ1の回転方向に応じて、1だけ多い番号または1だけ少ない番号に変更する。
In the peak value update process, the rotation angle calculation device 20 applies the peak value in the peak value storage areas R1 and R2 (see FIG. 6) in the memory to the magnetic sensor whose peak value has been detected in step S5. On the other hand, the peak value corresponding to the currently set relative pole number q1 or q2 is updated to the peak value detected in step S5.
Thereafter, the rotation angle calculation device 20 performs a relative pole number update process (step S7). Specifically, the relative pole number q1 or q2 currently set for the magnetic sensor whose peak value is detected in step S5 is updated based on the rotation direction of the rotor 1. More specifically, the rotation angle calculation device 20 increases the relative pole number q1 or q2 currently set for the magnetic sensor by one more or less by 1 depending on the rotation direction of the rotor 1. Change to a number.

ロータ1の回転方向が正方向(図2に矢印で示す方向)である場合には、前記ステップS5でピーク値が検出された方の磁気センサに対して現在設定されている相対的極番号q1またはq2を、1だけ多い番号に更新し、ロータ1の回転方向が逆方向である場合には、当該磁気センサに対して現在設定されている相対的極番号q1またはq2を、1だけ少ない番号に更新する。ただし、”0”の相対的極番号に対して、1だけ少ない相対的極番号は、”9”となる。また、”9”の相対的極番号に対して、1だけ多い相対的極番号は、”0”となる。   When the rotation direction of the rotor 1 is the positive direction (the direction indicated by the arrow in FIG. 2), the relative pole number q1 currently set for the magnetic sensor whose peak value is detected in step S5. Alternatively, when q2 is updated to a number that is increased by 1, and the rotation direction of the rotor 1 is reverse, the relative pole number q1 or q2 that is currently set for the magnetic sensor is decreased by one. Update to However, the relative pole number that is less by 1 than the relative pole number of “0” is “9”. Further, a relative pole number that is 1 more than the relative pole number of “9” is “0”.

前記ステップS7の相対的極番号の更新処理が終了すると、回転角演算装置20は、ステップS8に移行する。
ステップS8では、回転角演算装置20は、回転角演算処理開始後に、全ての磁極M0〜M9に対する第1および第2の出力信号V1,V2のピーク値が検出されているか否かを判別する。つまり、回転角演算装置20は、回転角演算処理開始後に、0〜9の相対的極番号q1に対応する第1の出力信号V1のピーク値および0〜9の相対的極番号q2に対応する第2の出力信号V2が検出されているか否かを判別する。
When the relative pole number update process in step S7 is completed, the rotation angle calculation device 20 proceeds to step S8.
In step S8, the rotation angle calculation device 20 determines whether or not the peak values of the first and second output signals V1 and V2 for all the magnetic poles M0 to M9 have been detected after the rotation angle calculation processing is started. That is, after the rotation angle calculation process is started, the rotation angle calculation device 20 corresponds to the peak value of the first output signal V1 corresponding to the relative pole number q1 of 0 to 9 and the relative pole number q2 of 0 to 9. It is determined whether or not the second output signal V2 is detected.

全ての磁極M0〜M9に対する第1および第2の出力信号V1,V2のピーク値が検出されている場合には(ステップS8:YES)、検出されたピーク値に基づく信号補正処理を行なう(ステップS10)。具体的には、回転角演算装置20は、まず、メモリ内のピーク値記憶領域R1,R2(図6参照)に記憶されているピーク値を用い、次式(3)(4)に基づいて、第1の出力信号V1のオフセット電圧V1osおよび第2の出力信号V2のオフセット電圧V2osを演算する。   When the peak values of the first and second output signals V1 and V2 for all the magnetic poles M0 to M9 are detected (step S8: YES), signal correction processing based on the detected peak values is performed (step S8). S10). Specifically, the rotation angle calculation device 20 first uses the peak values stored in the peak value storage areas R1 and R2 (see FIG. 6) in the memory, based on the following equations (3) and (4). The offset voltage V1os of the first output signal V1 and the offset voltage V2os of the second output signal V2 are calculated.

V1os=[{ΣP1×((ΣW/2)/ΣW)÷(K/2)}
+{ΣP1×((ΣW/2)/ΣW)÷(K/2)}]/2 …(3)
V2os=[{ΣP2×((ΣW/2)/ΣW)÷(K/2)}
+{ΣP2×((ΣW/2)/ΣW)÷(K/2)}]/2 …(4)
前記式(3)において、ΣP1は、N極の各磁極M0,M2,M4,M6,M8に対応する第1の出力信号V1のピーク値の総和である。第1の出力信号V1が図3に示されるような信号V1である場合には、ΣP1=P0+P2+P4+P6+P8となる。より具体的には、ΣP1は、メモリ内の第1のピーク値記憶領域R1(図6参照)において、相対的極番号q1が0,2,4,6,8に対応して記憶されているピーク値の総和となる。
V1os = [{ΣP1 N × ((ΣW / 2) / ΣW N ) ÷ (K / 2)}
+ {ΣP1 S × ((ΣW / 2) / ΣW S ) ÷ (K / 2)}] / 2 (3)
V2os = [{ΣP2 N × ((ΣW / 2) / ΣW N ) ÷ (K / 2)}
+ {ΣP2 S × ((ΣW / 2) / ΣW S ) ÷ (K / 2)}] / 2 (4)
In the equation (3), ΣP1 N is the sum of the peak values of the first output signal V1 corresponding to the N magnetic poles M0, M2, M4, M6, and M8. When the first output signal V1 is a signal V1 as shown in FIG. 3, ΣP1 N = P0 + P2 + P4 + P6 + P8. More specifically, ΣP1 N is stored in the first peak value storage region R1 (see FIG. 6) in the memory, with the relative pole number q1 corresponding to 0, 2, 4, 6, and 8. The sum of the peak values.

前記式(3)において、ΣP1は、S極の各磁極M1,M3,M5,M7,M9に対応する第1の出力信号V1のピーク値の総和である。第1の出力信号V1が図3に示されるような信号V1である場合には、ΣP1=P1+P3+P5+P7+P9となる。より具体的には、ΣP1は、メモリ内の第1のピーク値記憶領域R1(図6参照)において、相対的極番号q1が1,3,5,7,9に対応して記憶されているピーク値の総和となる。 In the equation (3), ΣP1 S is the sum of the peak values of the first output signal V1 corresponding to the magnetic poles M1, M3, M5, M7, and M9 of the S pole. When the first output signal V1 is a signal V1 as shown in FIG. 3, ΣP1 N = P1 + P3 + P5 + P7 + P9. More specifically, ΣP1 N is stored in the first peak value storage area R1 (see FIG. 6) in the memory, with the relative pole number q1 corresponding to 1, 3, 5, 7, and 9. The sum of the peak values.

前記式(3)において、ΣWは前記各磁極の角度幅の総和であり、この実施形態では1800°となる。また、ΣWは、N極の各磁極M0,M2,M4,M6,M8の角度幅の総和であり、この実施形態では920°となる。また、ΣWは、S極の各磁極M1,M3,M5,M7,M9の角度幅の総和であり、この実施形態では880°となる。また、Kは、各磁極M0〜M9の総数であり、この実施形態では10となる。 In the equation (3), ΣW is the sum of the angular widths of the magnetic poles, and in this embodiment is 1800 °. ΣW N is the sum of the angular widths of the N magnetic poles M0, M2, M4, M6, and M8, and is 920 ° in this embodiment. Further, .SIGMA.W S, each pole M1 S pole, M3, M5, M7, is the sum of the angular width of the M9, in this embodiment the 880 °. K is the total number of magnetic poles M0 to M9, and is 10 in this embodiment.

前記式(4)において、ΣP2は、N極の各磁極M0,M2,M4,M6,M8に対応する第2の出力信号V2のピーク値の総和である。具体的には、ΣP2は、メモリ内の第2のピーク値記憶領域R2(図6参照)において、相対的極番号q2が0,2,4,6,8に対応して記憶されているピーク値の総和となる。
前記式(4)において、ΣP2は、S極の各磁極M1,M3,M5,M7,M9に対応する第2の出力信号V2のピーク値の総和である。具体的には、ΣP2は、メモリ内の第2のピーク値記憶領域R2(図6参照)において、相対的極番号q2が1,3,5,7,9に対応して記憶されているピーク値の総和となる。
In the equation (4), ΣP2 N is the sum of the peak values of the second output signal V2 corresponding to the N magnetic poles M0, M2, M4, M6, and M8. Specifically, ΣP2 N is stored in the second peak value storage region R2 (see FIG. 6) in the memory in correspondence with the relative pole number q2 being 0, 2, 4, 6, 8. Sum of peak values.
In the equation (4), ΣP2 S is the sum of the peak values of the second output signal V2 corresponding to the magnetic poles M1, M3, M5, M7, and M9 of the S pole. Specifically, ΣP2 N is stored in the second peak value storage area R2 (see FIG. 6) in the memory, with the relative pole number q2 corresponding to 1, 3, 5, 7, and 9. Sum of peak values.

第1および第2の出力信号V1,V2のオフセット電圧V1os,V2osが演算されると、回転角演算装置20は、第1および第2の出力信号V1,V2毎に、その出力信号の振幅およびオフセット電圧のばらつきを補正する。具体的には、回転角演算装置20は、第1の出力信号V1、第1の出力信号V1のオフセット電圧V1os、第1の磁気センサ21が感知している磁極のピーク値P1xおよび予め設定された基準振幅Aoに基づいて、第1の出力信号V1を補正する。ピーク値P1xは、メモリ内の第1のピーク値記憶領域R1において、現在設定されている相対的極番号q1に対応して記憶されているピーク値である。   When the offset voltages V1os and V2os of the first and second output signals V1 and V2 are calculated, the rotation angle calculation device 20 determines the amplitude and the output signal for each of the first and second output signals V1 and V2. Correct offset voltage variation. Specifically, the rotation angle computing device 20 is preset with the first output signal V1, the offset voltage V1os of the first output signal V1, the peak value P1x of the magnetic pole sensed by the first magnetic sensor 21, and the preset value. The first output signal V1 is corrected based on the reference amplitude Ao. The peak value P1x is a peak value stored corresponding to the currently set relative pole number q1 in the first peak value storage region R1 in the memory.

また、回転角演算装置20は、第2の出力信号V2、第2の出力信号V2のオフセット電圧V2os、第2の磁気センサ22が感知している磁極のピーク値P2xおよび予め設定された基準振幅Aoに基づいて、第2の出力信号V2を補正する。ピーク値P2xは、メモリ内の第2のピーク値記憶領域R2において、現在設定されている相対的極番号q2に対応して記憶されているピーク値である。第1の出力信号V1の補正後の信号をV1’とし、補正後の第2の出力信号V2の補正後の信号をV2’とすると、補正後の第1の出力信号V1’および補正後の第2の出力信号V2’は、それぞれ次式 (5)(6)に基づいて演算される。   In addition, the rotation angle calculation device 20 includes the second output signal V2, the offset voltage V2os of the second output signal V2, the peak value P2x of the magnetic pole sensed by the second magnetic sensor 22, and a preset reference amplitude. Based on Ao, the second output signal V2 is corrected. The peak value P2x is a peak value stored corresponding to the currently set relative pole number q2 in the second peak value storage region R2 in the memory. If the corrected signal of the first output signal V1 is V1 ′ and the corrected signal of the corrected second output signal V2 is V2 ′, the corrected first output signal V1 ′ and the corrected signal The second output signal V2 ′ is calculated based on the following equations (5) and (6), respectively.

V1’={(V1−V1os)/P1x}×Ao …(5)
V2’={(V2−V2os)/P2x}×Ao …(6)
前記ステップS10の信号補正処理が終了すると、ステップS11に移行する。
前記ステップS8において、回転角演算処理開始後に、全ての磁極M0〜M9に対する第1および第2の出力信号V1,V2のピーク値が検出されていないと判別された場合には(ステップS8:NO)、予め設定されたピーク値に基づく信号補正処理を行なう(ステップS9)。具体的には、回転角演算装置20は、まず、不揮発性メモリ内のピーク値テーブル(図4参照)に記憶されているピーク値を用い、前記式(3)(4)に基づいて、第1の出力信号V1のオフセット電圧V1osおよび第2の出力信号V2のオフセット電圧V2osを演算する。
V1 ′ = {(V1−V1os) / P1x} × Ao (5)
V2 ′ = {(V2−V2os) / P2x} × Ao (6)
When the signal correction process in step S10 ends, the process proceeds to step S11.
If it is determined in step S8 that the peak values of the first and second output signals V1 and V2 for all the magnetic poles M0 to M9 have not been detected after the rotation angle calculation process is started (step S8: NO) ), Signal correction processing based on a preset peak value is performed (step S9). Specifically, the rotation angle calculation device 20 first uses the peak values stored in the peak value table (see FIG. 4) in the non-volatile memory, and based on the equations (3) and (4), The offset voltage V1os of the first output signal V1 and the offset voltage V2os of the second output signal V2 are calculated.

ただし、この場合には、前記式(3)内のΣP1は、ピーク値テーブルにおいて、極番号が0,2,4,6,8に対応して記憶されている第1の出力信号V1のピーク値の総和となる。また、前記式(3)内のΣP1は、ピーク値テーブルにおいて、極番号が1,3,5,7,9に対応して記憶されている第1の出力信号V1のピーク値の総和となる。また、前記式(4)内のΣP2は、ピーク値テーブルにおいて、極番号が0,2,4,6,8に対応して記憶されている第2の出力信号V2のピーク値の総和となる。また、前記式(4)内のΣP2は、ピーク値テーブルにおいて、極番号が1,3,5,7,9に対応して記憶されている第2の出力信号V2のピーク値の総和となる。 However, in this case, ΣP1 N in the equation (3) is the first output signal V1 stored in the peak value table corresponding to the pole numbers 0, 2, 4, 6, and 8. Sum of peak values. In addition, ΣP1 S in the equation (3) is the sum of the peak values of the first output signal V1 stored in correspondence with the pole numbers 1, 3, 5, 7, and 9 in the peak value table. Become. In addition, ΣP2 N in the above equation (4) is the sum of the peak values of the second output signal V2 stored corresponding to the pole numbers 0, 2, 4, 6, and 8 in the peak value table. Become. In addition, ΣP2 S in the equation (4) is the sum of the peak values of the second output signal V2 stored in correspondence with the pole numbers 1, 3, 5, 7, and 9 in the peak value table. Become.

このようにして、第1および第2の出力信号V1,V2のオフセット電圧V1os,V2osが演算されると、回転角演算装置20は、前記式 (5)(6)に基づいて、第1の出力信号V1および第2の出力信号V2を補正する。この場合において、各磁気センサ11,12が現在感知している磁極のピーク値(前記式(5)(6)のP1x,P2x)が不明であるときには、これらのピーク値P1x,P2xとして、たとえば、予め設定されたデフォルト値が用いられる。各磁気センサ11,12が現在感知している磁極のピーク値P1x,P2xのデフォルト値としては、それぞれ、不揮発性メモリ内のピーク値テーブル(図4参照)内の第1の出力信号V1のピーク値の平均値および第2の出力信号V1のピーク値の平均値を用いることができる。また、これらのデフォルト値を温度別に設定しておき、現在の温度に対応したデフォルト値を用いるようにしてもよい。   When the offset voltages V1os and V2os of the first and second output signals V1 and V2 are calculated in this way, the rotation angle calculation device 20 calculates the first voltage based on the equations (5) and (6). The output signal V1 and the second output signal V2 are corrected. In this case, when the peak values (P1x and P2x in the equations (5) and (6)) currently detected by the magnetic sensors 11 and 12 are unknown, the peak values P1x and P2x are, for example, A preset default value is used. As the default values of the peak values P1x and P2x of the magnetic poles currently detected by the magnetic sensors 11 and 12, the peak of the first output signal V1 in the peak value table (see FIG. 4) in the nonvolatile memory, respectively. The average value and the average value of the peak values of the second output signal V1 can be used. Further, these default values may be set for each temperature, and the default values corresponding to the current temperature may be used.

ステップS11では、回転角演算装置20は、次式(7)に基づいて、ロータ1の電気角θeを演算して、モータコントローラ30に与える。そして、今演算周期の処理を終了する。
θe=tan(V1’/V2’) …(7)
前記実施形態では、全ての磁極M0〜M9に対する第1および第2の出力信号V1,V2のピーク値が検出された後においては、第1の出力信号V1のオフセット電圧V1osおよび第2の出力信号V2のオフセット電圧V2osを正確に検出することができる。これにより、各磁極の磁束量のばらつきや各磁気センサ21,22の温度特性に起因する、各出力信号V1,V2の振幅およびオフセット電圧のばらつきを補正することができる。そして、補正後の各出力信号V1’,V2’に基づいて、ロータ1の電気角θeが演算されるので、ブラシレスモータの回転角の検出誤差を低減することができる。
In step S <b> 11, the rotation angle calculation device 20 calculates the electrical angle θe of the rotor 1 based on the following equation (7), and gives it to the motor controller 30. Then, the processing of the current calculation cycle is finished.
θe = tan - (V1 '/ V2') ... (7)
In the embodiment, after the peak values of the first and second output signals V1, V2 for all the magnetic poles M0 to M9 are detected, the offset voltage V1os and the second output signal of the first output signal V1 are detected. The offset voltage V2os of V2 can be accurately detected. As a result, it is possible to correct variations in the amplitudes and offset voltages of the output signals V1 and V2, which are caused by variations in the magnetic flux amount of the magnetic poles and temperature characteristics of the magnetic sensors 21 and 22. Since the electrical angle θe of the rotor 1 is calculated based on the corrected output signals V1 ′ and V2 ′, the detection error of the rotation angle of the brushless motor can be reduced.

この発明は、ブラシレスモータのロータ以外の回転体の回転角を検出する場合にも、適用することができる。
その他、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。
The present invention can also be applied when detecting the rotation angle of a rotating body other than the rotor of a brushless motor.
In addition, various design changes can be made within the scope of matters described in the claims.

1…ロータ、21,22…磁気センサ、10…ブラシレスモータ、20…回転角演算装置、M0〜M9…磁極   DESCRIPTION OF SYMBOLS 1 ... Rotor, 21, 22 ... Magnetic sensor, 10 ... Brushless motor, 20 ... Rotation angle arithmetic unit, M0-M9 ... Magnetic pole

Claims (3)

回転体の回転に応じて回転しかつ周方向に複数の磁極が設けられた検出用ロータと、前記検出用ロータの回転に応じて、所定の位相差を有する複数の正弦波信号をそれぞれ出力する複数の磁気センサとを含み、これらの磁気センサの出力信号に基づいて前記回転体の回転角を検出する回転角検出装置であって、
前記磁気センサ毎に、その出力信号の前記磁極毎のピーク値を検出するピーク値検出手段と、
前記ピーク値検出手段によって前記磁気センサ毎に検出される前記磁極毎のピーク値と、前記各磁極の角度幅と、前記検出用ロータに設けられた磁極数とに基づいて、前記磁気センサ毎にオフセット電圧を演算するオフセット電圧演算手段と、
前記ピーク値検出手段によって前記磁気センサ毎に検出される前記磁極毎のピーク値と、前記オフセット電圧演算手段によって演算される前記磁気センサ毎のオフセット電圧とに基づいて、前記各磁気センサの出力信号を補正する信号補正手段と、
前記信号補正手段によって補正された前記各磁気センサの出力信号に基づいて、前記回転体の回転角を演算する回転角演算手段と、
を含む回転角検出装置。
A detection rotor that rotates according to the rotation of the rotating body and is provided with a plurality of magnetic poles in the circumferential direction, and outputs a plurality of sine wave signals having a predetermined phase difference according to the rotation of the detection rotor. A rotation angle detection device that includes a plurality of magnetic sensors and detects a rotation angle of the rotating body based on output signals of these magnetic sensors,
For each magnetic sensor, a peak value detecting means for detecting a peak value for each magnetic pole of the output signal;
For each magnetic sensor based on the peak value for each magnetic pole detected by the peak value detection means for each magnetic sensor, the angular width of each magnetic pole, and the number of magnetic poles provided in the detection rotor. Offset voltage calculation means for calculating the offset voltage;
Based on the peak value for each magnetic pole detected for each magnetic sensor by the peak value detection means and the offset voltage for each magnetic sensor calculated by the offset voltage calculation means, the output signal of each magnetic sensor Signal correcting means for correcting
A rotation angle calculating means for calculating a rotation angle of the rotating body based on the output signal of each magnetic sensor corrected by the signal correcting means;
Rotation angle detection device.
前記オフセット電圧演算手段は、
オフセット電圧の演算対象である磁気センサを演算対象センサとし、前記各磁極のうちのN極の各磁極に対応する前記演算対象センサの出力信号のピーク値の総和をΣP、前記各磁極のうちのS極の各磁極に対応する前記演算対象センサの出力信号のピーク値の総和をΣP、前記各磁極の角度幅の総和をΣW、前記各磁極のうちのN極の各磁極の角度幅の総和をΣW、前記各磁極のうちのS極の各磁極の角度幅の総和をΣW、前記各磁極の総数をKとすると、
次式(a)に基づいて、前記演算対象センサの出力信号のオフセット電圧Vosを演算する請求項1に記載の回転角検出装置。
Vos=[{ΣP×((ΣW/2)/ΣW)÷(K/2)}
+{ΣP×((ΣW/2)/ΣW)÷(K/2)}]/2 …(a)
The offset voltage calculation means includes
The magnetic sensor that is the calculation target of the offset voltage is the calculation target sensor, and the sum of the peak values of the output signals of the calculation target sensor corresponding to the N magnetic poles of the magnetic poles is ΣP N , ΣP S is the sum of the peak values of the output signals of the calculation target sensor corresponding to each of the magnetic poles of the S pole, ΣW is the sum of the angular widths of the magnetic poles, and the angular width of each of the N magnetic poles ΣW N , the sum of the angular widths of the S poles of the magnetic poles is ΣW S , and the total number of the magnetic poles is K,
The rotation angle detection device according to claim 1, wherein an offset voltage Vos of an output signal of the calculation target sensor is calculated based on the following equation (a).
Vos = [{ΣP N × ((ΣW / 2) / ΣW N ) ÷ (K / 2)}
+ {ΣP S × ((ΣW / 2) / ΣW S ) ÷ (K / 2)}] / 2 (a)
前記信号補正手段は、
前記演算対象センサが感知している磁極のピーク値をPxとし、前記演算対象センサの出力信号値をVとし、予め設定された基準振幅をAoとすると、
次式(b)に基づいて、前記演算対象センサの出力信号の補正値V’を演算する請求項2に記載の回転角検出装置。
V’={(V−Vos)/Px}×Ao …(b)
The signal correction means includes
When the peak value of the magnetic pole sensed by the calculation target sensor is Px, the output signal value of the calculation target sensor is V, and a preset reference amplitude is Ao,
The rotation angle detection device according to claim 2, wherein a correction value V 'of the output signal of the calculation target sensor is calculated based on the following equation (b).
V ′ = {(V−Vos) / Px} × Ao (b)
JP2010290742A 2010-12-27 2010-12-27 Rotation angle detector Expired - Fee Related JP5708986B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010290742A JP5708986B2 (en) 2010-12-27 2010-12-27 Rotation angle detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010290742A JP5708986B2 (en) 2010-12-27 2010-12-27 Rotation angle detector

Publications (2)

Publication Number Publication Date
JP2012137415A JP2012137415A (en) 2012-07-19
JP5708986B2 true JP5708986B2 (en) 2015-04-30

Family

ID=46674944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010290742A Expired - Fee Related JP5708986B2 (en) 2010-12-27 2010-12-27 Rotation angle detector

Country Status (1)

Country Link
JP (1) JP5708986B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10094890B2 (en) 2014-10-09 2018-10-09 Panasonic Intellectual Property Management Co., Ltd. Magnetic sensor

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014219364A (en) * 2013-05-10 2014-11-20 株式会社ジェイテクト Rotation angle detection apparatus
JP5839238B2 (en) * 2013-04-11 2016-01-06 株式会社デンソー Rotation angle detector

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2670193B2 (en) * 1991-02-25 1997-10-29 オークマ株式会社 Position detector
JP3188964B2 (en) * 1993-01-19 2001-07-16 本田技研工業株式会社 Rotating magnetic field detector
JP3177796B2 (en) * 1993-01-19 2001-06-18 本田技研工業株式会社 Rotating magnetic field detector
JP2003232655A (en) * 2002-02-06 2003-08-22 Koyo Seiko Co Ltd Rotation detecting device
JP2003240598A (en) * 2002-02-13 2003-08-27 Asahi Kasei Corp Digital angle measuring system
JP2006177865A (en) * 2004-12-24 2006-07-06 Ntn Corp Magnetic encoder and bearing for wheel equipped with it
JP2007093569A (en) * 2005-08-30 2007-04-12 Hitachi Metals Ltd Permanent magnet used for measurement of displacement, displacement amount sensor unit, and manufacturing method therefor
JP2007155668A (en) * 2005-12-08 2007-06-21 Asahi Kasei Electronics Co Ltd Rotation angle sensor, and rotational angle detection method
JP2006313166A (en) * 2006-06-08 2006-11-16 Nsk Ltd Rolling bearing
JP2008096164A (en) * 2006-10-06 2008-04-24 Nippon Yusoki Co Ltd Detector for rotation angle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10094890B2 (en) 2014-10-09 2018-10-09 Panasonic Intellectual Property Management Co., Ltd. Magnetic sensor

Also Published As

Publication number Publication date
JP2012137415A (en) 2012-07-19

Similar Documents

Publication Publication Date Title
JP5776925B2 (en) Rotation angle detector
JP5725377B2 (en) Rotation angle detector
JP5716954B2 (en) Rotation angle detector
JP2012189377A (en) Rotation angle detection device
JP5720932B2 (en) Rotation angle detector
JP5674053B2 (en) Rotation angle detector
JP5333863B2 (en) Rotation angle detector
BR112017013581B1 (en) POSITION ESTIMATION METHOD, POSITION ESTIMATION DEVICE AND POSITION CONTROL DEVICE
JP2012189376A (en) Rotation angle detection device and torque detection device
US10006789B2 (en) Correction apparatus for angle sensor, and angle sensor
JP6086205B2 (en) Phase difference detection device and rotation angle detection device including the same
JP5892359B2 (en) Rotation angle detector
JP5708986B2 (en) Rotation angle detector
JP6024970B2 (en) Rotation angle detection device and electric power steering device having the same
JP2013088181A (en) Sensor output correction device
JP2011047735A (en) Rotational angle detecting device
JP2012237619A (en) Rotational angle detector
US20200158535A1 (en) Ascertaining a relative movement direction
JP2014142322A (en) Rotation angle detection device
JP2021071444A (en) Rotation angle detector

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140626

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150218

R150 Certificate of patent or registration of utility model

Ref document number: 5708986

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees