JP2020067302A - Angle detection device, error adjustment method, and program - Google Patents

Angle detection device, error adjustment method, and program Download PDF

Info

Publication number
JP2020067302A
JP2020067302A JP2018198673A JP2018198673A JP2020067302A JP 2020067302 A JP2020067302 A JP 2020067302A JP 2018198673 A JP2018198673 A JP 2018198673A JP 2018198673 A JP2018198673 A JP 2018198673A JP 2020067302 A JP2020067302 A JP 2020067302A
Authority
JP
Japan
Prior art keywords
angle
magnetic field
unit
signal
error
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.)
Pending
Application number
JP2018198673A
Other languages
Japanese (ja)
Inventor
剛生 山本
Takeo Yamamoto
剛生 山本
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.)
Asahi Kasei Electronics Co Ltd
Original Assignee
Asahi Kasei Electronics Co Ltd
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 Asahi Kasei Electronics Co Ltd filed Critical Asahi Kasei Electronics Co Ltd
Priority to JP2018198673A priority Critical patent/JP2020067302A/en
Publication of JP2020067302A publication Critical patent/JP2020067302A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

To provide an angle detection device that adjusts an amplitude error and other axis sensitivity error.SOLUTION: An angle detection device detects a detection angle indicative of an angle of a magnetic field on the basis of a first magnetic field signal in accordance with a first direction component of the magnetic field and a second magnetic field signal in accordance with a second direction component of the magnetic field. The angle detection device comprises a loop control unit that performs loop control to cause the detection angle to track the first magnetic field signal and the second magnetic field signal. The loop control unit has a phase difference detection unit that detects a phase difference of the detection angle with respect to an angle the first magnetic field and the second magnetic field. The phase difference detection unit is configured to adjust an error of the detection angle with respect to the angle of the magnetic field on the basis of a first feedback signal in accordance with a correction value corresponding to an amplitude error of the first magnetic field signal and a correction value corresponding to other axis sensitivity error, and a second feedback signal in accordance with a correction value corresponding to an amplitude error of the second magnetic field signal and the correction value of the other axis sensitivity error.SELECTED DRAWING: Figure 4

Description

本発明は、角度検出装置、誤差調整方法およびプログラムに関する。   The present invention relates to an angle detection device, an error adjustment method and a program.

従来、X方向およびY方向の磁場の変化を検出し、当該検出結果に基づき、回転磁石の回転角を検出する非接触回転角センサが知られていた。また、このような回転角センサは、感度ミスマッチ、オフセット誤差、および他軸感度等による角度非線形性誤差を有するので、誤差の調整等が実行されていた(例えば、特許文献1参照)。
特許文献1 国際公開第2017/130984号
Conventionally, there has been known a non-contact rotation angle sensor that detects a change in a magnetic field in the X direction and the Y direction and detects a rotation angle of a rotating magnet based on the detection result. Further, since such a rotation angle sensor has a sensitivity mismatch, an offset error, and an angle non-linearity error due to the sensitivity of another axis, etc., the adjustment of the error has been executed (for example, refer to Patent Document 1).
Patent Document 1 International Publication No. 2017/130984

従来、センサが回転磁石の回転軸方向に配置されない場合、X方向およびY方向の検出磁場のそれぞれに振幅誤差および他軸感度誤差が生じる場合があった。   Conventionally, when the sensor is not arranged in the rotation axis direction of the rotary magnet, an amplitude error and a miscellaneous axis sensitivity error may occur in each of the detected magnetic fields in the X direction and the Y direction.

本発明の第1の態様においては、磁場の第1方向成分に応じた第1磁場信号と、磁場の第2方向成分に応じた第2磁場信号とに基づいて磁場の角度を示す検出角度を算出する角度検出装置であって、検出角度をループ制御により第1磁場信号および第2磁場信号に対して追従させるループ制御部を備え、ループ制御部は、第1磁場信号および第2磁場信号が示す角度に対する検出角度の位相差を検出する位相差検出部を有し、位相差検出部は、第1磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第1フィードバック信号と、第2磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第2フィードバック信号とに基づいて、磁場の角度に対する検出角度の誤差を調整する角度検出装置を提供する。   In the first aspect of the present invention, the detection angle indicating the angle of the magnetic field is determined based on the first magnetic field signal corresponding to the first direction component of the magnetic field and the second magnetic field signal corresponding to the second direction component of the magnetic field. An angle detection device for calculating, comprising a loop control unit that causes the detected angle to follow the first magnetic field signal and the second magnetic field signal by loop control, and the loop control unit is configured to detect the first magnetic field signal and the second magnetic field signal. The phase difference detection unit has a phase difference detection unit that detects a phase difference between the detected angle and the indicated angle, and the phase difference detection unit responds to the correction value corresponding to the amplitude error of the first magnetic field signal and the correction value corresponding to the other axis sensitivity error. The error of the detected angle with respect to the angle of the magnetic field is adjusted based on the first feedback signal and the second feedback signal according to the correction value corresponding to the amplitude error of the second magnetic field signal and the correction value corresponding to the other axis sensitivity error. Angle Out to provide a device.

本発明の第2の態様においては、磁場の第1方向成分に応じた第1磁場信号と、磁場の第2方向成分に応じた第2磁場信号とに基づいて磁場の角度を示す検出角度を算出する誤差調整方法であって、検出角度をループ制御により第1磁場信号および第2磁場信号に対して追従させる段階を備え、追従させる段階は、第1磁場信号および第2磁場信号が示す角度に対する検出角度の位相差を検出する段階を有し、位相差を検出する段階は、第1磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第1フィードバック信号と、第2磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第2フィードバック信号とに基づいて、磁場の角度に対する検出角度の誤差を調整する誤差調整方法を提供する。   In the second aspect of the present invention, the detection angle indicating the angle of the magnetic field is determined based on the first magnetic field signal corresponding to the first direction component of the magnetic field and the second magnetic field signal corresponding to the second direction component of the magnetic field. An error adjusting method for calculating, comprising a step of causing a detected angle to follow a first magnetic field signal and a second magnetic field signal by loop control, wherein the step of following the angle is an angle indicated by the first magnetic field signal and the second magnetic field signal. To detect the phase difference of the detected angle with respect to the first feedback according to the correction value corresponding to the amplitude error of the first magnetic field signal and the correction value corresponding to the other axis sensitivity error. Error adjustment for adjusting the error of the detected angle with respect to the angle of the magnetic field based on the signal and the second feedback signal corresponding to the correction value corresponding to the amplitude error of the second magnetic field signal and the correction value corresponding to the other axis sensitivity error Person To provide.

本発明の第3の態様においては、コンピュータに、本発明の第2の態様の誤差調整方法を実行させるためのプログラムを提供する。   According to a third aspect of the present invention, there is provided a program for causing a computer to execute the error adjusting method according to the second aspect of the present invention.

なお、上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   Note that the above summary of the invention does not enumerate all the necessary features of the invention. Further, a sub-combination of these feature groups can also be an invention.

回転角センサ1000の構成例を示す。The structural example of the rotation angle sensor 1000 is shown. 実施例に係る角度検出装置10の構成の一例を示す。An example of the configuration of the angle detection device 10 according to the embodiment is shown. 実施例に係る回転角センサ1000の他の構成例を示す。7 shows another exemplary configuration of the rotation angle sensor 1000 according to the embodiment. フィードバック部120の具体的な構成の一例を示す。An example of a specific configuration of the feedback unit 120 will be shown. 磁気感度のミスマッチが生じた場合の磁場信号の一例を示す。An example of a magnetic field signal when a magnetic sensitivity mismatch occurs is shown. 他軸感度が含まれる場合の磁場信号の一例を示す。An example of the magnetic field signal when the other axis sensitivity is included is shown. 振幅誤差αが0≦α<1を満たす場合のループ制御部500の構成例を示す。A configuration example of the loop control unit 500 when the amplitude error α satisfies 0 ≦ α <1 is shown. 振幅誤差αが−1<α≦0を満たす場合のループ制御部500の構成例を示す。A configuration example of the loop control unit 500 when the amplitude error α satisfies −1 <α ≦ 0 is shown. 実施例および比較例の角度誤差の差異を説明するための図である。It is a figure for demonstrating the difference of the angle error of an Example and a comparative example. 角度検出装置10として機能するコンピュータ1900のハードウェア構成の一例を示す。An example of a hardware configuration of a computer 1900 that functions as the angle detection device 10 is shown.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. In addition, not all of the combinations of features described in the embodiments are essential to the solving means of the invention.

図1は、回転角センサ1000の構成例を示す。回転角センサ1000は、回転軸を中心に回転する磁場の回転角を非接触で検出する。図1は、XY平面と平行な面において回転する磁場の回転角を検出する例を示す。回転角センサ1000は、角度検出装置10および回転磁石20を備える。   FIG. 1 shows a configuration example of the rotation angle sensor 1000. The rotation angle sensor 1000 detects the rotation angle of the magnetic field rotating around the rotation axis in a non-contact manner. FIG. 1 shows an example of detecting the rotation angle of a magnetic field rotating in a plane parallel to the XY plane. The rotation angle sensor 1000 includes an angle detection device 10 and a rotating magnet 20.

角度検出装置10は、回転磁石20が発生する回転磁場の回転角を検出する。角度検出装置10は、一例として、集積回路等を有する半導体チップ等である。この場合、角度検出装置10は、シリコン等の半導体によって形成され、半導体回路および半導体素子等を含む。角度検出装置10は、複数の端子を備え、外部の基板、回路、および配線等と電気的に接続される。角度検出装置10のより具体的な構成については後述する。   The angle detection device 10 detects the rotation angle of the rotating magnetic field generated by the rotating magnet 20. The angle detection device 10 is, for example, a semiconductor chip having an integrated circuit or the like. In this case, the angle detection device 10 is formed of a semiconductor such as silicon and includes a semiconductor circuit and a semiconductor element. The angle detection device 10 includes a plurality of terminals and is electrically connected to an external board, a circuit, wiring, and the like. A more specific configuration of the angle detection device 10 will be described later.

回転磁石20は、回転磁場を発生させる。回転磁石20は、磁石22と、回転軸24と、モーター26とを有する。磁石22は、回転軸24回りに回転する。図1は、磁石22が角度検出装置10のZ軸の正側に設けられる例を示す。磁石22は、一例として、円盤状の形状を有し、XY平面と略平行な面で回転する。磁石22は、XY平面と略平行な断面がそれぞれ半円形状となる2つの領域に分割されてよく、一方の領域がS極であり、他方の領域がN極である磁石を形成する。   The rotating magnet 20 generates a rotating magnetic field. The rotating magnet 20 has a magnet 22, a rotating shaft 24, and a motor 26. The magnet 22 rotates about the rotation axis 24. FIG. 1 shows an example in which the magnet 22 is provided on the positive side of the Z axis of the angle detection device 10. The magnet 22 has, for example, a disk shape, and rotates in a plane substantially parallel to the XY plane. The magnet 22 may be divided into two regions each having a semicircular shape in a cross section substantially parallel to the XY plane, and one region has a south pole and the other region forms a north pole.

磁石22は、XY平面と略平行な面で回転することにより、例えば、角度検出装置10において、(数1)式で示される回転磁場を発生させる。ここで、Bは、角度検出装置10に置いて検出される磁場の絶対値を示す。本実施形態において、Bは、略一定とし、定数として取り扱うこととする。また、θは、磁場が回転する面における予め定められた方向または基準の方向に対する、回転磁場の磁場方向の回転角度を示す。
(数1)
Bx(θ)=B・cosθ
By(θ)=B・sinθ
By rotating the magnet 22 in a plane substantially parallel to the XY plane, for example, in the angle detection device 10, a rotating magnetic field represented by the equation (1) is generated. Here, B indicates the absolute value of the magnetic field detected by the angle detection device 10. In the present embodiment, B is assumed to be substantially constant and treated as a constant. Further, θ indicates the rotation angle of the rotating magnetic field in the magnetic field direction with respect to a predetermined direction or a reference direction on the surface on which the magnetic field rotates.
(Equation 1)
Bx (θ) = B · cos θ
By (θ) = B · sin θ

回転軸24は、XY平面と略垂直な方向に設けられる。回転軸24は、一端が磁石22に接続され、他端がモーター26に接続される。モーター26は、回転軸24および当該回転軸24に接続された磁石22を回転させる。このように、回転角センサ1000は、XY平面と平行な磁場を検出する角度検出装置10と、Z軸回りに磁石を回転させる回転磁石20と、を組み立てて形成される。   The rotary shaft 24 is provided in a direction substantially perpendicular to the XY plane. The rotating shaft 24 has one end connected to the magnet 22 and the other end connected to the motor 26. The motor 26 rotates the rotating shaft 24 and the magnet 22 connected to the rotating shaft 24. As described above, the rotation angle sensor 1000 is formed by assembling the angle detection device 10 that detects a magnetic field parallel to the XY plane and the rotary magnet 20 that rotates the magnet around the Z axis.

角度検出装置10は、例えば、回転磁石20が発生させる回転磁場のXY平面における第1方向成分および第2方向成分をそれぞれ検出し、検出タイミングにおける回転磁石20の回転角θを、第1方向成分および第2方向成分に基づいて算出して出力する。ここで、第1方向および第2方向は、互いに異なる方向であればよい。なお、第1方向および第2方向は、XY平面において直交する2つの方向であることが望ましい。本実施形態において、第1方向はX軸方向、第2方向はY軸方向として説明する。   The angle detection device 10 detects, for example, the first direction component and the second direction component of the rotating magnetic field generated by the rotating magnet 20 on the XY plane, and determines the rotation angle θ of the rotating magnet 20 at the detection timing as the first direction component. And calculated and output based on the second direction component. Here, the first direction and the second direction may be different from each other. The first direction and the second direction are preferably two directions that are orthogonal to each other on the XY plane. In the present embodiment, the first direction will be described as the X-axis direction and the second direction will be described as the Y-axis direction.

図2は、実施例に係る角度検出装置10の構成の一例を示す。角度検出装置10は、入力する磁場の角度を検出する。本例の角度検出装置10は、第1磁気センス部30と、第2磁気センス部32と、第1増幅部40と、第2増幅部42と、第1AD変換部50と、第2AD変換部52と、補正値算出部60と、ループ制御部100とを備える。   FIG. 2 shows an example of the configuration of the angle detection device 10 according to the embodiment. The angle detection device 10 detects the angle of the input magnetic field. The angle detection device 10 of this example includes a first magnetic sensing unit 30, a second magnetic sensing unit 32, a first amplifying unit 40, a second amplifying unit 42, a first AD converting unit 50, and a second AD converting unit. 52, a correction value calculation unit 60, and a loop control unit 100.

第1磁気センス部30は、入力する磁場の第1方向成分に応じた第1磁場信号V1を出力する。第2磁気センス部32は、入力する磁場の第2方向成分に応じた第2磁場信号V2を出力する。第1磁気センス部30および第2磁気センス部32は、それぞれ、一方向の磁場を検出する磁気センサを有する。例えば、第1磁気センス部30は、(数1)式で示される磁場Bx(θ)に応じた第1磁場信号V1を出力し、第2磁気センス部32は、(数1)式で示される磁場By(θ)に応じた第2磁場信号V2を出力する。第1磁気センス部30および第2磁気センス部32は、それぞれ、入力する磁場に比例した磁場信号を出力することが好ましい。   The first magnetic sensing unit 30 outputs the first magnetic field signal V1 according to the first direction component of the input magnetic field. The second magnetic sensing unit 32 outputs the second magnetic field signal V2 according to the second direction component of the input magnetic field. The first magnetic sensing unit 30 and the second magnetic sensing unit 32 each include a magnetic sensor that detects a magnetic field in one direction. For example, the first magnetic sensing unit 30 outputs the first magnetic field signal V1 according to the magnetic field Bx (θ) expressed by the formula (1), and the second magnetic sensing unit 32 is expressed by the formula (1). The second magnetic field signal V2 corresponding to the generated magnetic field By (θ) is output. It is preferable that each of the first magnetic sensing unit 30 and the second magnetic sensing unit 32 outputs a magnetic field signal proportional to the input magnetic field.

第1磁気センス部30および第2磁気センス部32は、ホール素子、磁気抵抗素子(MR)、巨大磁気抵抗素子(GMR)、トンネル効果磁気抵抗素子(TMR)、マグネトインピーダンス素子(MI素子)、および/またはインダクタンスセンサ等をそれぞれ有してよい。また、第1磁気センス部30および第2磁気センス部32は、入力する磁場を収束させる磁気収束板を更に有してもよい。   The first magnetic sensing unit 30 and the second magnetic sensing unit 32 include a Hall element, a magnetoresistive element (MR), a giant magnetoresistive element (GMR), a tunnel effect magnetoresistive element (TMR), a magnetoimpedance element (MI element), And / or an inductance sensor or the like, respectively. Further, the first magnetic sensing unit 30 and the second magnetic sensing unit 32 may further include a magnetic flux concentrating plate that converges the input magnetic field.

第1増幅部40は、第1磁気センス部30が出力する第1磁場信号V1の信号レベルを増幅する。第1増幅部40は、増幅した信号を第1AD変換部50に供給する。   The first amplification unit 40 amplifies the signal level of the first magnetic field signal V1 output by the first magnetic sensing unit 30. The first amplification unit 40 supplies the amplified signal to the first AD conversion unit 50.

第2増幅部42は、第2磁気センス部32が出力する第2磁場信号V2の信号レベルを増幅する。第2増幅部42は、増幅した信号を第2AD変換部52に供給する。   The second amplification unit 42 amplifies the signal level of the second magnetic field signal V2 output by the second magnetic sensing unit 32. The second amplification unit 42 supplies the amplified signal to the second AD conversion unit 52.

第1AD変換部50は、入力磁場の第1方向成分に応じた第1磁場信号V1をAD変換して第1AD変換信号Vxを出力する。第2AD変換部52は、入力磁場の第2方向成分に応じた第2磁場信号V2をAD変換して第2AD変換信号Vyを出力する。第1AD変換部50および第2AD変換部52は、一例として、予め定められた数の1ビットデータを有するビットストリームを、AD変換信号としてそれぞれ出力する。なお、一例において、第1AD変換信号Vxをcosθ、第2AD変換信号Vyをsinθとする。振幅値は、VxおよびVy振幅の平均値で規格化している。   The 1st AD conversion part 50 AD-converts the 1st magnetic field signal V1 according to the 1st direction component of an input magnetic field, and outputs the 1st AD conversion signal Vx. The second AD conversion unit 52 AD-converts the second magnetic field signal V2 corresponding to the second direction component of the input magnetic field and outputs the second AD conversion signal Vy. As an example, the first AD conversion unit 50 and the second AD conversion unit 52 each output a bit stream having a predetermined number of 1-bit data as an AD conversion signal. In the example, the first AD conversion signal Vx is cos θ and the second AD conversion signal Vy is sin θ. The amplitude value is standardized by the average value of the Vx and Vy amplitudes.

なお、ビットストリームは、予め定められた数の1ビットデータを含み、当該1ビットデータを積算した値が入力信号の振幅値に比例または略一致する信号である。第1AD変換部50は、磁場Bx(θ)に応じたビットストリームを第1AD変換信号Vxとして出力し、第2AD変換部52は、磁場By(θ)に応じたビットストリームを第2AD変換信号Vyとして出力する。   The bit stream is a signal that includes a predetermined number of 1-bit data, and a value obtained by integrating the 1-bit data is proportional or substantially equal to the amplitude value of the input signal. The first AD conversion unit 50 outputs the bitstream corresponding to the magnetic field Bx (θ) as the first AD conversion signal Vx, and the second AD conversion unit 52 outputs the bitstream corresponding to the magnetic field By (θ) to the second AD conversion signal Vy. Output as.

ループ制御部100は、第1AD変換部50および第2AD変換部52が出力する第1AD変換信号Vxおよび第2AD変換信号Vyをそれぞれ受け取り、受け取った第1AD変換信号Vxおよび第2AD変換信号Vyに対応する角度情報を検出角度φとして出力する。ループ制御部100は、クロック信号等に応じて、順次、検出角度φを更新して出力してよい。ループ制御部100は、検出角度φをループ制御により第1AD変換信号Vxおよび第2AD変換信号Vyに対して追従させて、検出角度φを更新して出力してよい。   The loop control unit 100 receives the first AD conversion signal Vx and the second AD conversion signal Vy output from the first AD conversion unit 50 and the second AD conversion unit 52, respectively, and corresponds to the received first AD conversion signal Vx and second AD conversion signal Vy. The angle information to be output is output as the detected angle φ. The loop control unit 100 may sequentially update and output the detection angle φ according to a clock signal or the like. The loop control unit 100 may update the detected angle φ and output it by causing the detected angle φ to follow the first AD converted signal Vx and the second AD converted signal Vy by loop control.

ループ制御部100は、位相差検出部110と、ループフィルタ140と、角度更新部150とを有する。ループ制御部100は、検出角度φを回転角度θに追従させることに加えて、振幅誤差αや他軸感度誤差βに起因する検出角度φの誤差を低減することができる。   The loop controller 100 includes a phase difference detector 110, a loop filter 140, and an angle updater 150. The loop control unit 100 can reduce the error in the detected angle φ due to the amplitude error α and the other-axis sensitivity error β, in addition to making the detected angle φ follow the rotation angle θ.

ここで、角度検出装置10を磁石22の径方向に配置する場合、第1AD変換信号Vxおよび第2AD変換信号Vyのそれぞれに対して、振幅誤差αや他軸感度誤差βが生じる場合がある。例えば、角度検出装置10を磁石22の径方向に配置する場合、次式で示されるように理想値に対して誤差が含まれる場合がある。
(数2)
Vx(θ)=(1−α)・cosθ+β・sinθ
(数3)
Vy(θ)=(1+α)・sinθ+β・cosθ
αは、第1AD変換信号Vxおよび第2AD変換信号Vyの振幅誤差であり、−1<α<+1を満たす。βは、第1AD変換信号Vxおよび第2AD変換信号Vyの他軸感度誤差であり、−1<β<+1を満たす。
Here, when the angle detection device 10 is arranged in the radial direction of the magnet 22, an amplitude error α or another axis sensitivity error β may occur with respect to each of the first AD conversion signal Vx and the second AD conversion signal Vy. For example, when the angle detection device 10 is arranged in the radial direction of the magnet 22, an error may be included in the ideal value as shown by the following equation.
(Equation 2)
Vx (θ) = (1−α) · cos θ + β · sin θ
(Equation 3)
Vy (θ) = (1 + α) · sin θ + β · cos θ
α is an amplitude error between the first AD conversion signal Vx and the second AD conversion signal Vy, and satisfies −1 <α <+1. β is the other axis sensitivity error of the first AD conversion signal Vx and the second AD conversion signal Vy, and satisfies −1 <β <+1.

次に、誤差の補正を行わない場合について考える。この場合、振幅誤差αと他軸感度誤差βに対する補正値γおよびδが0である。外積演算部130が出力する外積Pは次式で示される。
(数4)
P=−Vx・sinφ+Vy・cosφ
=sin(θ−φ)−α・sin(θ+φ)+βcos(θ+φ)
φ=θとすると、外積Pが次式で示される。
(数5)
P=α・sin(2θ)+β・cos(2θ)
Next, consider the case where no error correction is performed. In this case, the correction values γ and δ for the amplitude error α and the other-axis sensitivity error β are 0. The outer product P output by the outer product calculation unit 130 is expressed by the following equation.
(Equation 4)
P = -Vx · sin φ + Vy · cos φ
= Sin (θ−φ) −α · sin (θ + φ) + βcos (θ + φ)
When φ = θ, the outer product P is expressed by the following equation.
(Equation 5)
P = α ・ sin (2θ) + β ・ cos (2θ)

したがって、誤差の補正を行わない場合、検出角度φは振幅誤差αおよび他軸感度誤差βに対応した誤差を有することになる。なお、補正をしないで角度検出を行うことで上記誤差からα、βを算出することができる。本実施形態においては、このようにして振幅誤差αおよび他軸感度誤差βを求め、補正値算出部60に記憶してよい。次に、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差を低減する場合の構成について説明する。   Therefore, when the error is not corrected, the detected angle φ has an error corresponding to the amplitude error α and the other axis sensitivity error β. It should be noted that α and β can be calculated from the above errors by performing angle detection without correction. In the present embodiment, the amplitude error α and the other-axis sensitivity error β may be obtained in this way and stored in the correction value calculation unit 60. Next, a configuration for reducing an error in the detected angle φ due to the amplitude error α and the other-axis sensitivity error β will be described.

位相差検出部110は、第1AD変換信号Vxおよび第2AD変換信号Vyが示す角度θに対する検出角度φの位相差を検出する。位相差検出部110は、ループ制御部100が出力した検出角度φと、第1AD変換信号Vxおよび第2AD変換信号Vyに対応する角度情報θとの位相差を検出し、次にループ制御部100が検出角度φを更新すべく、当該位相差を出力する。位相差検出部110は、フィードバック部120および外積演算部130を含む。   The phase difference detection unit 110 detects the phase difference of the detection angle φ with respect to the angle θ indicated by the first AD conversion signal Vx and the second AD conversion signal Vy. The phase difference detection unit 110 detects the phase difference between the detected angle φ output by the loop control unit 100 and the angle information θ corresponding to the first AD conversion signal Vx and the second AD conversion signal Vy, and then the loop control unit 100. Outputs the phase difference to update the detected angle φ. The phase difference detection unit 110 includes a feedback unit 120 and an outer product calculation unit 130.

補正値算出部60は、検出角度φを調整するための補正値を算出する。補正値算出部60は、算出した補正値を記憶してよい。一例において、補正値算出部60は、第1磁場信号V1と第2磁場信号V2との振幅誤差に対応する補正値γc、γsおよび第1磁場信号V1および第2磁場信号V2におけるそれぞれの他軸感度誤差に対応する補正値δc、δsをそれぞれ算出する。補正値算出部60は、補正値γc、γsおよび補正値δc、δsをループ制御部100に入力する。   The correction value calculation unit 60 calculates a correction value for adjusting the detection angle φ. The correction value calculation unit 60 may store the calculated correction value. In one example, the correction value calculation unit 60 uses the correction values γc and γs corresponding to the amplitude error between the first magnetic field signal V1 and the second magnetic field signal V2 and the other axes of the first magnetic field signal V1 and the second magnetic field signal V2. The correction values δc and δs corresponding to the sensitivity error are calculated. The correction value calculation unit 60 inputs the correction values γc and γs and the correction values δc and δs to the loop control unit 100.

フィードバック部120は、検出角度φの誤差を調整するためのフィードバック信号を生成する。フィードバック部120は、各検出角度φに対応するデータとして、当該角度に対応するsin値およびcos値をフィードバック信号として出力してよい。一例において、フィードバック部120は、補正値γc、γsおよび補正値δc、δsに基づいて、第1フィードバック信号F1および第2フィードバック信号F2を生成する。フィードバック部120は、生成した第1フィードバック信号F1および第2フィードバック信号F2を外積演算部130に入力する。   The feedback unit 120 generates a feedback signal for adjusting the error of the detected angle φ. The feedback unit 120 may output, as data corresponding to each detected angle φ, a sin value and a cos value corresponding to the angle as a feedback signal. In one example, the feedback unit 120 generates the first feedback signal F1 and the second feedback signal F2 based on the correction values γc, γs and the correction values δc, δs. The feedback unit 120 inputs the generated first feedback signal F1 and second feedback signal F2 to the outer product calculation unit 130.

第1フィードバック信号F1は、第1AD変換信号Vxの振幅誤差および他軸感度誤差に対応する補正値γc、δcに応じた信号である。第2フィードバック信号F2は、第2AD変換信号Vyの振幅誤差および他軸感度誤差に対応する補正値γs、δsに応じた信号である。これにより、第1AD変換信号Vxおよび第2AD変換信号Vyのそれぞれについて、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差が低減される。   The first feedback signal F1 is a signal corresponding to the correction values γc and δc corresponding to the amplitude error and the other-axis sensitivity error of the first AD conversion signal Vx. The second feedback signal F2 is a signal corresponding to the correction values γs and δs corresponding to the amplitude error and the other axis sensitivity error of the second AD conversion signal Vy. As a result, the error in the detected angle φ due to the amplitude error α and the other-axis sensitivity error β is reduced for each of the first AD converted signal Vx and the second AD converted signal Vy.

外積演算部130は、フィードバック部120が出力する第1フィードバック信号F1および第2フィードバック信号F2と、第1AD変換信号Vxおよび第2AD変換信号Vyとを用いて、外積を演算する。一例において、外積演算部130は、第1AD変換信号Vxのビットストリームおよび第2AD変換信号Vyのビットストリームをビット毎に順次入力し、第1フィードバック信号F1および第2フィードバック信号F2の組との間でビット毎に外積を演算する。   The outer product calculation unit 130 calculates the outer product using the first feedback signal F1 and the second feedback signal F2 output by the feedback unit 120, and the first AD conversion signal Vx and the second AD conversion signal Vy. In one example, the outer product calculation unit 130 sequentially inputs the bit stream of the first AD conversion signal Vx and the bit stream of the second AD conversion signal Vy bit by bit, and outputs the bit stream between the first feedback signal F1 and the second feedback signal F2. The outer product is calculated for each bit by.

次に、検出角度φを回転角度θに追従させるための角度検出装置10の動作について説明する。本例では、角度検出装置10の基本的な動作を説明するために、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差を考慮しない場合の動作について説明する。この場合、フィードバック部120は、検出角度φの入力に対して、sinφおよびcosφを出力する。そして、外積演算部130は、第1AD変換信号Vxおよび第1フィードバック信号F1を乗じて、Vx・sinφを算出する。外積演算部130は、第2AD変換信号Vyおよび第2フィードバック信号F2を乗じて、Vy・cosφを算出する。そして、外積演算部130は、(数6)式に示す外積Pを演算する。
(数6)
P=−Vx・sinφ+Vy・cosφ=sin(θ−φ)
なお、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差を低減する場合の角度検出装置10の動作については後述する。
Next, the operation of the angle detection device 10 for causing the detection angle φ to follow the rotation angle θ will be described. In this example, in order to describe the basic operation of the angle detection device 10, an operation when the error of the detected angle φ due to the amplitude error α and the other-axis sensitivity error β is not considered will be described. In this case, the feedback unit 120 outputs sin φ and cos φ with respect to the input of the detection angle φ. Then, the outer product calculator 130 multiplies the first AD conversion signal Vx and the first feedback signal F1 to calculate Vx · sin φ. The outer product calculator 130 multiplies the second AD conversion signal Vy and the second feedback signal F2 to calculate Vy · cosφ. Then, the outer product computing unit 130 computes the outer product P shown in Expression (6).
(Equation 6)
P = −Vx · sin φ + Vy · cos φ = sin (θ−φ)
The operation of the angle detection device 10 when reducing the error in the detected angle φ due to the amplitude error α and the other-axis sensitivity error β will be described later.

ループ制御部100は、外積演算部130の外積演算出力sin(θ−φ)を、ループフィルタ140、角度更新部150およびフィードバック部120を通して帰還することにより、ゼロに収束させて安定させる。そして、ループ制御部100は、次式に示すように回転角度θに追従するように検出角度φを出力する。
sin(θ−φ)≒θ−φ≒0
即ち、φ=θとして外積演算した結果がθに対するφの誤差となる。
The loop control unit 100 returns the outer product calculation output sin (θ−φ) of the outer product calculation unit 130 through the loop filter 140, the angle update unit 150, and the feedback unit 120 to converge it to zero and stabilize it. Then, the loop control unit 100 outputs the detected angle φ so as to follow the rotation angle θ as shown in the following equation.
sin (θ−φ) ≈θ−φ≈0
That is, the result of the outer product calculation with φ = θ is the error of φ with respect to θ.

ここで、回転角度θに追随するように検出角度φを出力することにより、θ−φの値は、sin(θ−φ)≒(θ−φ)と近似できる程度に小さな値となる。そして、(数6)式より、P≒θ−φと近似でき、回転角度θに対する検出角度φの位相差に外積Pが比例する。位相差検出部110は、回転角度θおよび検出角度φの位相差(θ−φ)を検出し、検出した位相差をループフィルタ140に供給する。   Here, by outputting the detected angle φ so as to follow the rotation angle θ, the value of θ−φ becomes a small value that can be approximated to sin (θ−φ) ≈ (θ−φ). Then, from equation (6), it can be approximated as P≈θ−φ, and the outer product P is proportional to the phase difference of the detected angle φ with respect to the rotation angle θ. The phase difference detection unit 110 detects the phase difference (θ−φ) between the rotation angle θ and the detection angle φ and supplies the detected phase difference to the loop filter 140.

ループフィルタ140は、位相差検出部110から受け取った位相差(θ−φ)における予め定められた周波数以下の周波数成分を通過させる。ループフィルタ140は、ローパスフィルタでよい。ループフィルタ140は、第1AD変換部50および第2AD変換部52が発生させる量子化ノイズを低減させてよい。また、第1磁気センス部30および第2磁気センス部32が出力する第1磁場信号V1および第2磁場信号V2を変調して、第1磁場信号V1および第2磁場信号V2に含まれるDCオフセット信号を高調波成分に変換した場合、ループフィルタ140は、当該高調波成分も低減させてよい。   The loop filter 140 passes a frequency component equal to or lower than a predetermined frequency in the phase difference (θ−φ) received from the phase difference detection unit 110. The loop filter 140 may be a low pass filter. The loop filter 140 may reduce the quantization noise generated by the first AD converter 50 and the second AD converter 52. Also, the first magnetic field signal V1 and the second magnetic field signal V2 output by the first magnetic sense unit 30 and the second magnetic sense unit 32 are modulated to generate a DC offset included in the first magnetic field signal V1 and the second magnetic field signal V2. When the signal is converted into a harmonic component, the loop filter 140 may reduce the harmonic component as well.

角度更新部150は、ループフィルタを通過した位相差(θ−φ)に応じて検出角度φを増減する。角度更新部150は、位相差(θ−φ)を0に近づけるように、検出角度φを更新する。一例において、角度更新部150は、前回の検出角度φに、今回の位相差(θ−φ)を積算して、今回の磁場の回転角θにより近い検出角度φを算出する。   The angle updating unit 150 increases or decreases the detected angle φ according to the phase difference (θ−φ) that has passed through the loop filter. The angle updating unit 150 updates the detected angle φ so that the phase difference (θ−φ) approaches 0. In one example, the angle update unit 150 integrates the previous detected angle φ with the current phase difference (θ−φ) to calculate the detected angle φ that is closer to the current magnetic field rotation angle θ.

以上の通り、角度検出装置10は、ループ制御部100によるフィードバックループにより、回転角度θに追従させたより正確な検出角度φを出力することができる。振幅誤差αおよび他軸感度誤差βを考慮しない場合、ループ制御部100は、フィードバックループにおいて、検出角度φに対応する正弦波信号sinφおよび余弦波信号cosφを外積演算部130にフィードバックし、第1AD変換信号Vxおよび第2AD変換信号Vyと乗算する。次に、振幅誤差αおよび他軸感度誤差βが生じる場合の構成について説明する。   As described above, the angle detection device 10 can output a more accurate detected angle φ that follows the rotation angle θ by the feedback loop of the loop control unit 100. When the amplitude error α and the other-axis sensitivity error β are not considered, the loop control unit 100 feeds back the sine wave signal sin φ and the cosine wave signal cos φ corresponding to the detected angle φ to the outer product calculation unit 130 in the feedback loop, and the first AD The conversion signal Vx and the second AD conversion signal Vy are multiplied. Next, a configuration when the amplitude error α and the other-axis sensitivity error β occur will be described.

図3は、実施例に係る回転角センサ1000の他の構成例を示す。本例の回転角センサ1000は、角度検出装置10を磁石22の径方向に配置している。磁石22の径方向に配置するとは、回転軸方向に角度検出装置10を配置しない場合を指す。角度検出装置10を磁石22の径方向に配置する場合、角度検出装置10は、回転軸24が回転する軸上に配置されておらず、磁石22から回転軸24の径方向に離れて配置される。   FIG. 3 shows another configuration example of the rotation angle sensor 1000 according to the embodiment. In the rotation angle sensor 1000 of this example, the angle detection device 10 is arranged in the radial direction of the magnet 22. Arranging in the radial direction of the magnet 22 means a case where the angle detecting device 10 is not arranged in the rotation axis direction. When the angle detection device 10 is arranged in the radial direction of the magnet 22, the angle detection device 10 is not arranged on the axis around which the rotation shaft 24 rotates, but is arranged apart from the magnet 22 in the radial direction of the rotation shaft 24. It

図4は、フィードバック部120の具体的な構成の一例を示す。フィードバック部120は、加算部121と、加算部122と、減算部123と、第1フィードバック信号生成部161と、第2フィードバック信号生成部162とを含む。   FIG. 4 shows an example of a specific configuration of the feedback unit 120. The feedback unit 120 includes an addition unit 121, an addition unit 122, a subtraction unit 123, a first feedback signal generation unit 161, and a second feedback signal generation unit 162.

フィードバック部120は、振幅誤差αに対応する補正値および他軸感度誤差βに対応する補正値に基づいて、磁場の角度に対する検出角度φの誤差を調整する。フィードバック部120は、補正値算出部60から補正値δs、γs、δc、γcが入力される。フィードバック部120は、入力された補正値δs、γs、δc、γcに基づいて、振幅誤差α、他軸感度誤差βを補正する。   The feedback unit 120 adjusts the error of the detected angle φ with respect to the angle of the magnetic field based on the correction value corresponding to the amplitude error α and the correction value corresponding to the other-axis sensitivity error β. The correction values δs, γs, δc, γc are input to the feedback unit 120 from the correction value calculation unit 60. The feedback unit 120 corrects the amplitude error α and the other-axis sensitivity error β based on the input correction values δs, γs, δc, and γc.

補正値δsは、他軸感度誤差βに対応する補正値であって、正弦波生成部に入力される第1調整角度の一例である。補正値γsは、振幅誤差αに対応する補正値であって、正弦波生成部に入力される第2調整角度の一例である。補正値δcは、他軸感度誤差βに対応する補正値であって、余弦波生成部に入力される第3調整角度の一例である。補正値γcは、振幅誤差αに対応する補正値であって、余弦波生成部に入力される第4調整角度の一例である。   The correction value δs is a correction value corresponding to the other-axis sensitivity error β, and is an example of the first adjustment angle input to the sine wave generation unit. The correction value γs is a correction value corresponding to the amplitude error α, and is an example of the second adjustment angle input to the sine wave generation unit. The correction value δc is a correction value corresponding to the other-axis sensitivity error β and is an example of the third adjustment angle input to the cosine wave generation unit. The correction value γc is a correction value corresponding to the amplitude error α, and is an example of the fourth adjustment angle input to the cosine wave generation unit.

加算部121sは、検出角度φに角度δsを加算して、角度φ+δsを出力する。加算部122sは、加算部121sが出力した角度φ+δsと角度γsとを加算して、角度φ+δs+γsを出力する。減算部123sは、加算部121sが出力した角度φ+δsから角度γsを減算して、角度φ+δs−γsを出力する。なお、加算部121sは、第1加算部の一例である。加算部122sは、第2加算部の一例である。減算部123sは、第1角度減算部の一例である。   The addition unit 121s adds the angle δs to the detected angle φ and outputs the angle φ + δs. The addition unit 122s adds the angle φ + δs and the angle γs output by the addition unit 121s, and outputs the angle φ + δs + γs. The subtraction unit 123s subtracts the angle γs from the angle φ + δs output by the addition unit 121s, and outputs the angle φ + δs−γs. The addition unit 121s is an example of a first addition unit. The addition unit 122s is an example of a second addition unit. The subtraction unit 123s is an example of a first angle subtraction unit.

第1フィードバック信号生成部161は、第1AD変換信号Vxの振幅誤差αおよび他軸感度誤差βを調整するための第1フィードバック信号F1を生成する。第1フィードバック信号生成部161は、正弦波生成部124と、正弦波生成部125と、加算部128sと、増幅部129sとを含む。本例の第1フィードバック信号生成部161は、加算部122sが出力する角度に応じたsin値および減算部123sが出力する角度に応じたsin値を用いて、第1フィードバック信号F1を生成する。   The first feedback signal generation unit 161 generates a first feedback signal F1 for adjusting the amplitude error α and the other axis sensitivity error β of the first AD conversion signal Vx. The first feedback signal generation unit 161 includes a sine wave generation unit 124, a sine wave generation unit 125, an addition unit 128s, and an amplification unit 129s. The first feedback signal generation unit 161 in the present example generates the first feedback signal F1 using the sin value corresponding to the angle output by the adding unit 122s and the sin value corresponding to the angle output by the subtracting unit 123s.

正弦波生成部124は、加算部122sが出力した角度φ+δs+γsに基づいて、正弦波を生成する。正弦波生成部125は、減算部123sが出力した角度φ+δs−γsに基づいて、正弦波を生成する。加算部128sは、正弦波生成部124の正弦波と正弦波生成部125の正弦波を加算する。   The sine wave generation unit 124 generates a sine wave based on the angle φ + δs + γs output by the addition unit 122s. The sine wave generation unit 125 generates a sine wave based on the angle φ + δs−γs output by the subtraction unit 123s. The addition unit 128s adds the sine wave of the sine wave generation unit 124 and the sine wave of the sine wave generation unit 125.

増幅部129sは、加算部128sの加算結果を予め定められた一定の倍率で増幅する。増幅部129sは、一例として、加算部128sの加算結果を0.5倍に増幅してよい。即ち、第1フィードバック信号生成部161は、sin(φ+δs+γs)およびsin(φ+δs−γs)の和を1/2にした信号を、第1フィードバック信号F1として生成する。これにより、本例の第1フィードバック信号F1は、cos(γs)・sin(φ+δs)となる。なお、デジタル演算における0.5倍はビットシフトで実現できるため、0.5倍の演算を行う上記構成を採用しても増幅部129sの回路面積の増加にはならない。   The amplification unit 129s amplifies the addition result of the addition unit 128s at a predetermined constant rate. For example, the amplification unit 129s may amplify the addition result of the addition unit 128s by a factor of 0.5. That is, the first feedback signal generation unit 161 generates a signal in which the sum of sin (φ + δs + γs) and sin (φ + δs−γs) is halved as the first feedback signal F1. As a result, the first feedback signal F1 in this example becomes cos (γs) · sin (φ + δs). Since 0.5 times in the digital operation can be realized by bit shift, the circuit area of the amplification unit 129s does not increase even if the above-described configuration for performing the 0.5 times operation is adopted.

加算部121cは、検出角度φに角度δcを加算して、角度φ+δcを出力する。加算部122cは、加算部121cが出力した角度φ+δcと角度γcとを加算して、角度φ+δc+γcを出力する。減算部123cは、加算部121cが出力した角度φ+δcから角度γcを減算して、角度φ+δc−γcを出力する。なお、加算部121cは、第3加算部の一例である。加算部122cは、第4加算部の一例である。減算部123cは、第2角度減算部の一例である。   The adding unit 121c adds the angle δc to the detected angle φ and outputs the angle φ + δc. The addition unit 122c adds the angle φ + δc and the angle γc output by the addition unit 121c, and outputs the angle φ + δc + γc. The subtraction unit 123c subtracts the angle γc from the angle φ + δc output by the addition unit 121c and outputs the angle φ + δc−γc. The addition unit 121c is an example of a third addition unit. The addition unit 122c is an example of a fourth addition unit. The subtraction unit 123c is an example of a second angle subtraction unit.

第2フィードバック信号生成部162は、加算部122cが出力する角度を用いて、第2AD変換信号Vyの振幅誤差αおよび他軸感度誤差βを調整するための第2フィードバック信号を生成する。第2フィードバック信号生成部162は、余弦波生成部126と、余弦波生成部127と、加算部128cと、増幅部129cとを含む。本例の第2フィードバック信号生成部162は、加算部122cが出力する角度に応じたcos値および減算部123cが出力する角度に応じたcos値を用いて、第2フィードバック信号F2を生成する。   The second feedback signal generation unit 162 uses the angle output by the addition unit 122c to generate a second feedback signal for adjusting the amplitude error α and the other-axis sensitivity error β of the second AD conversion signal Vy. The second feedback signal generator 162 includes a cosine wave generator 126, a cosine wave generator 127, an adder 128c, and an amplifier 129c. The second feedback signal generation unit 162 of this example generates the second feedback signal F2 using the cos value according to the angle output by the addition unit 122c and the cos value according to the angle output by the subtraction unit 123c.

余弦波生成部126は、加算部122cが出力した角度φ+δc+γcに基づいて、余弦波を生成する。余弦波生成部127は、減算部123cが出力した角度φ+δc−γcに基づいて、余弦波を生成する。加算部128cは、余弦波生成部126の余弦波と余弦波生成部127の余弦波を加算する。   The cosine wave generation unit 126 generates a cosine wave based on the angle φ + δc + γc output by the addition unit 122c. The cosine wave generation unit 127 generates a cosine wave based on the angle φ + δc−γc output by the subtraction unit 123c. The addition unit 128c adds the cosine wave of the cosine wave generation unit 126 and the cosine wave of the cosine wave generation unit 127.

増幅部129cは、加算部128cの加算結果を予め定められた一定の倍率で増幅する。増幅部129cは、一例として、加算部128cの加算結果を0.5倍に増幅してよい。即ち、第2フィードバック信号生成部162は、cos(φ+δc+γc)およびcos(φ+δc−γc)の和を1/2にした信号を、第2フィードバック信号F2として生成する。これにより、第2フィードバック信号F2は、cos(γc)・cos(φ+δc)となる。なお、デジタル演算における0.5倍はビットシフトで実現できるため、0.5倍の演算を行う上記構成を採用しても増幅部129cの回路面積の増加にはならない。   The amplification unit 129c amplifies the addition result of the addition unit 128c at a predetermined constant rate. For example, the amplification unit 129c may amplify the addition result of the addition unit 128c by a factor of 0.5. That is, the second feedback signal generation unit 162 generates, as the second feedback signal F2, a signal in which the sum of cos (φ + δc + γc) and cos (φ + δc−γc) is halved. As a result, the second feedback signal F2 becomes cos (γc) · cos (φ + δc). Since 0.5 times in digital calculation can be realized by bit shift, the circuit area of the amplification unit 129c does not increase even if the above-described configuration for performing 0.5 times calculation is adopted.

ここで、フィードバック部120で生成される補正値δs、γs、δc、γcは、振幅誤差αおよび他軸感度誤差βを用いて、次式で示される。

Figure 2020067302
Figure 2020067302
Figure 2020067302
Figure 2020067302
Here, the correction values δs, γs, δc, and γc generated by the feedback unit 120 are expressed by the following equation using the amplitude error α and the other-axis sensitivity error β.
Figure 2020067302
Figure 2020067302
Figure 2020067302
Figure 2020067302

この場合、外積演算部130が出力する外積Pは、次式で示される。

Figure 2020067302
ここで、φ=θとすると、外積Pが次式で示される。
Figure 2020067302
In this case, the outer product P output by the outer product calculation unit 130 is expressed by the following equation.
Figure 2020067302
Here, when φ = θ, the outer product P is expressed by the following equation.
Figure 2020067302

以上のように、実施例に係る角度検出装置10は、補正値γおよび補正値δを用いて位相差(θ−φ)を0にすることにより、外積Pを0にすることができる。したがって、角度検出装置10は、検出角度φをθに追従させることで、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差を低減させることができる。   As described above, the angle detection device 10 according to the embodiment can set the outer product P to 0 by setting the phase difference (θ−φ) to 0 using the correction value γ and the correction value δ. Therefore, the angle detection device 10 can reduce the error in the detected angle φ caused by the amplitude error α and the other-axis sensitivity error β by making the detected angle φ follow θ.

以上の通り、角度検出装置10は、磁石22の径方向に配置される場合であっても、振幅誤差αや他軸感度誤差βに起因する検出角度φの誤差を低減することができる。角度検出装置10は、主に、加算回路および減算回路で構成されるので、簡便な回路構成で検出角度φの誤差を調整することができる。次に、磁気感度のミスマッチや他軸感度について、比較例を用いて説明する。   As described above, the angle detection device 10 can reduce the error of the detected angle φ caused by the amplitude error α and the other-axis sensitivity error β even when the angle detection device 10 is arranged in the radial direction of the magnet 22. Since the angle detection device 10 is mainly composed of an addition circuit and a subtraction circuit, it is possible to adjust the error of the detected angle φ with a simple circuit configuration. Next, the magnetic sensitivity mismatch and the other-axis sensitivity will be described using a comparative example.

図5Aは、磁気感度のミスマッチが生じた場合の磁場信号の一例を示す。横軸が第1方向(X軸方向)を検出する第1磁気センス部30の第1磁場信号V1を示し、縦軸が第2方向(Y軸方向)を検出する第2磁気センス部32の第2磁場信号V2を示す。点線で示す信号は、理想的な磁場信号であり、XY平面において略円形の形状を有する信号となる。即ち、理想的な第1磁場信号V1をB・cosθとし、理想的な第2磁場信号V2をB・sinθとした例を示す。   FIG. 5A shows an example of a magnetic field signal when a magnetic sensitivity mismatch occurs. The horizontal axis represents the first magnetic field signal V1 of the first magnetic sensing unit 30 that detects the first direction (X-axis direction), and the vertical axis of the second magnetic sensing unit 32 that detects the second direction (Y-axis direction). The second magnetic field signal V2 is shown. The signal indicated by the dotted line is an ideal magnetic field signal and has a substantially circular shape on the XY plane. That is, an example is shown in which the ideal first magnetic field signal V1 is B · cos θ and the ideal second magnetic field signal V2 is B · sin θ.

実線で示す信号は、第1磁気センス部30および第2磁気センス部32に磁気感度のミスマッチが生じた場合の磁場信号を示す。図5Aは、第1磁気センス部30が第2磁気センス部32と比較して磁気感度が大きい場合の磁場信号を示す。この場合、第1磁場信号V1は、B・A・cosθとし、A>1と示すことができる。このように、第1磁気センス部30および第2磁気センス部32に磁気感度のミスマッチが生じると、正確な検出角度φを出力することができなくなる。   The signal indicated by the solid line indicates a magnetic field signal when a magnetic sensitivity mismatch occurs between the first magnetic sensing unit 30 and the second magnetic sensing unit 32. FIG. 5A shows a magnetic field signal when the magnetic sensitivity of the first magnetic sensing unit 30 is higher than that of the second magnetic sensing unit 32. In this case, the first magnetic field signal V1 can be represented by B · A · cos θ and A> 1. In this way, if a magnetic sensitivity mismatch occurs between the first magnetic sensing unit 30 and the second magnetic sensing unit 32, it becomes impossible to output an accurate detection angle φ.

例えば、回転角度θが、0<θ<π/2(およびπ<θ<3π/2)の範囲の場合、第1磁場信号V1が第2磁場信号V2よりも大きくなるので、角度検出装置10は、θよりも小さい検出角度φを出力する。同様に、回転角度θが、π/2<θ<π(および3π/2<θ<2π)の範囲の場合、第1磁場信号V1が第2磁場信号V2よりも小さくなるので、角度検出装置10は、θよりも大きい検出角度φを出力する。   For example, when the rotation angle θ is in the range of 0 <θ <π / 2 (and π <θ <3π / 2), the first magnetic field signal V1 becomes larger than the second magnetic field signal V2. Outputs a detection angle φ smaller than θ. Similarly, when the rotation angle θ is in the range of π / 2 <θ <π (and 3π / 2 <θ <2π), the first magnetic field signal V1 becomes smaller than the second magnetic field signal V2, so the angle detection device 10 outputs a detection angle φ larger than θ.

より具体的には、(数6)式で示す外積Pが、(数13)式のようになる。
(数13)
P=−Vx・sinφ+Vy・cosφ
=−A・cosθ・sinφ+sinθ・cosφ
=A・sin(θ−φ)+(1−A)・sinθ・cosφ
≒(−1+A)sin(2θ)
ここで、θ≒φであることから、sin(θ−φ)=0および2・cosφ・sinθ=sin2θとした。
More specifically, the outer product P shown in the expression (6) is as shown in the expression (13).
(Equation 13)
P = -Vx · sin φ + Vy · cos φ
= -A · cos θ · sin φ + sin θ · cos φ
= A ・ sin (θ-φ) + (1-A) ・ sinθ ・ cosφ
≒ (-1 + A) sin (2θ)
Since θ≈φ, sin (θ−φ) = 0 and 2 · cosφ · sinθ = sin2θ are set.

以上のように、外積Pは、位相差(θ−φ)を0にしても値を有する場合が生じるので、検出角度φは、磁気感度のミスマッチに応じた誤差が含まれてしまうことになる。   As described above, since the outer product P may have a value even when the phase difference (θ−φ) is 0, the detected angle φ includes an error corresponding to the magnetic sensitivity mismatch. .

図5Bは、他軸感度が含まれる場合の磁場信号の一例を示す。横軸が第1方向(X軸方向)を検出する第1磁気センス部30の第1磁場信号V1を示し、縦軸が第2方向(Y軸方向)を検出する第2磁気センス部32の第2磁場信号V2を示す。点線で示す信号は、理想的な磁場信号であり、XY平面において略円形の形状を有する信号となる。即ち、理想的な第1磁場信号V1をB・cosθとし、理想的な第2磁場信号V2をB・sinθとした例を示す。   FIG. 5B shows an example of the magnetic field signal when the other axis sensitivity is included. The horizontal axis represents the first magnetic field signal V1 of the first magnetic sensing unit 30 that detects the first direction (X-axis direction), and the vertical axis of the second magnetic sensing unit 32 that detects the second direction (Y-axis direction). The second magnetic field signal V2 is shown. The signal indicated by the dotted line is an ideal magnetic field signal and has a substantially circular shape on the XY plane. That is, an example is shown in which the ideal first magnetic field signal V1 is B · cos θ and the ideal second magnetic field signal V2 is B · sin θ.

実線で示す信号は、第1磁気センス部30および第2磁気センス部32に他軸感度が生じた場合の磁場信号を示す。図5Bは、第1磁場信号V1に+B・β・sinθ、第2磁場信号V2に+B・β・cosθの他軸感度が含まれる場合の磁場信号を示す。このように、第1磁気センス部30および第2磁気センス部32に他軸感度が生じると、角度検出装置10は、正確な検出角度φを出力することができなくなる。   The signal indicated by the solid line indicates the magnetic field signal when the other-axis sensitivity occurs in the first magnetic sensing unit 30 and the second magnetic sensing unit 32. FIG. 5B shows a magnetic field signal when the first magnetic field signal V1 includes + B · β · sin θ and the second magnetic field signal V2 includes + B · β · cos θ other axis sensitivity. As described above, when the other-axis sensitivity occurs in the first magnetic sensing unit 30 and the second magnetic sensing unit 32, the angle detection device 10 cannot output the accurate detected angle φ.

ここで、他軸感度が含まれる場合の磁場信号を次式のように近似する。なお、次式における近似は他軸感度による角度誤差が5度程度であることを前提としている。
(数14)
Vx=cosθ+β・sinθ
≒cosβ・cosθ+sinβ・sinθ
=cos(θ−β)
Vy=sinθ+β・cosθ
≒cosβ・sinθ+sinβ・cosθ
=sin(θ+β)
Here, the magnetic field signal in the case where the other axis sensitivity is included is approximated by the following equation. The approximation in the following equation is premised on that the angular error due to the sensitivity of the other axis is about 5 degrees.
(Equation 14)
Vx = cos θ + β · sin θ
≒ cos β · cos θ + sin β · sin θ
= Cos (θ−β)
Vy = sin θ + β · cos θ
≈ cos β · sin θ + sin β · cos θ
= Sin (θ + β)

この場合、(数6)式で示す外積Pは、γ≒δ≒0 と近似して、(数15)式のように算出される。
(数15)
P=−cos(θ−β)・sin(φ+δ)+sin(θ+β)・cos(φ−δ)
=[−0.5・{sin(θ−β+φ)−sin(θ−β−φ)}
+0.5・{sin(θ+β+φ)+sin(θ+β−φ)}]
=[0.5・{−sin(θ+φ−β)+sin(θ+β+φ)}
+0.5・{sin(θ−φ−β)+sin(θ−φ+β)}]
={cos(θ+φ)・sinβ+sin(θ−φ)・cosβ}
≒{cos(θ+φ)・β+sin(θ−φ)・1}
=β・cos2θ
In this case, the outer product P shown by the equation (6) is approximated by γ≈δ≈0 and calculated as the equation (15).
(Equation 15)
P = −cos (θ−β) · sin (φ + δ) + sin (θ + β) · cos (φ−δ)
= [-0.5 · {sin (θ-β + φ) -sin (θ-β-φ)}
+ 0.5 · {sin (θ + β + φ) + sin (θ + β−φ)}]
= [0.5 · {-sin (θ + φ-β) + sin (θ + β + φ)}
+ 0.5 · {sin (θ−φ−β) + sin (θ−φ + β)}]
= {Cos (θ + φ) · sinβ + sin (θ−φ) · cosβ}
≈ {cos (θ + φ) ・ β + sin (θ−φ) ・ 1}
= Β · cos2θ

以上のように、外積Pは、位相差(θ−φ)を0にしても値を有する場合が生じるので、出角度φは、他軸感度に応じた角度誤差が含まれてしまうことになる。次に、比較例に係る角度検出装置により、振幅誤差αおよび他軸感度誤差βを調整する場合について説明する。   As described above, since the outer product P may have a value even if the phase difference (θ−φ) is 0, the output angle φ includes an angular error according to the sensitivity of the other axis. . Next, a case will be described in which the angle detection device according to the comparative example adjusts the amplitude error α and the other-axis sensitivity error β.

図6Aおよび図6Bは、比較例に係る角度検出装置510の構成の一例を示す。図6Aは、振幅誤差αが0≦α<1を満たす場合のループ制御部500の構成例を示す。本例では、実施例に係るループ制御部100と相違する点について特に説明する。   6A and 6B show an example of the configuration of an angle detection device 510 according to a comparative example. FIG. 6A shows a configuration example of the loop control unit 500 when the amplitude error α satisfies 0 ≦ α <1. In this example, points different from the loop control unit 100 according to the example will be particularly described.

ループ制御部500は、補正値算出部60から入力された振幅誤差αに対応する補正値γおよび他軸感度誤差βに対応する補正値δに応じて、検出角度φをループ制御する。外積演算部530の出力は、ループフィルタ540を通過して、角度更新部550で更新して検出角度φとして出力される。   The loop control unit 500 loop-controls the detected angle φ according to the correction value γ corresponding to the amplitude error α input from the correction value calculation unit 60 and the correction value δ corresponding to the other-axis sensitivity error β. The output of the outer product calculation unit 530 passes through the loop filter 540, is updated by the angle update unit 550, and is output as the detected angle φ.

余弦波生成部524aには、加算部520および加算部521で加減算された角度φ−δ+γが入力される。余弦波生成部524bには、加算部520および加算部522で加減算された角度φ−δ−γが入力される。余弦波生成部524aおよび余弦波生成部524bの出力は、加算部528で加算されて、増幅部529で増幅される。これにより、増幅部529は、cos値として、cosγ・cos(φ−δ)を外積演算部530に入力する。   The angle φ−δ + γ added and subtracted by the adder 520 and the adder 521 is input to the cosine wave generator 524a. The angle φ-δ-γ added and subtracted by the adder 520 and the adder 522 is input to the cosine wave generator 524b. The outputs of the cosine wave generation unit 524a and the cosine wave generation unit 524b are added by the addition unit 528 and amplified by the amplification unit 529. As a result, the amplification unit 529 inputs cosγ · cos (φ−δ) as the cos value to the outer product calculation unit 530.

一方、正弦波生成部525には、加算部523で加算された角度φ+δが入力される。正弦波生成部525は、sin値として、sin(φ+δ)を外積演算部530に入力する。   On the other hand, the angle φ + δ added by the adder 523 is input to the sine wave generator 525. The sine wave generation unit 525 inputs sin (φ + δ) as the sin value to the outer product calculation unit 530.

ここで、補正値γおよびδについて次式が成立する。

Figure 2020067302
Here, the following expressions hold for the correction values γ and δ.
Figure 2020067302

そして、外積演算部530が出力する外積Pは、次式で示される。
(数17)
P=−Vx・sin(φ+δ)+Vy・cos(γ)・cos(φ−δ)
=−(cosθ−αcos+βsinθ)・sin(φ+β)
+(sinθ+α・sinθ+βcosθ)・cosγ・cos(φ−δ)
=−(cosθ−αcos+βsinθ)・sin(φ+β)
+(sinθ+α・sinθ+βcosθ)・(1−α)/(1+α)・cos(φ−δ)
φ=θとして、次式を満たす。

Figure 2020067302
そして、β≪1とすると、δが0に近似され、誤差が低減される。但し、βが上記の前提よりも大きい場合は、実施例に係るループ制御部100と比べると、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差の低減が十分ではない。 Then, the outer product P output by the outer product calculation unit 530 is expressed by the following equation.
(Equation 17)
P = −Vx · sin (φ + δ) + Vy · cos (γ) · cos (φ−δ)
= − (Cos θ−α cos + β sin θ) · sin (φ + β)
+ (Sinθ + α ・ sinθ + βcosθ) ・ cosγ ・ cos (φ-δ)
= − (Cos θ−α cos + β sin θ) · sin (φ + β)
+ (Sinθ + α ・ sinθ + βcosθ) ・ (1-α) / (1 + α) ・ cos (φ-δ)
The following equation is satisfied with φ = θ.
Figure 2020067302
Then, when β << 1, δ is approximated to 0, and the error is reduced. However, when β is larger than the above assumption, the error in the detected angle φ due to the amplitude error α and the other-axis sensitivity error β is not sufficiently reduced as compared with the loop control unit 100 according to the embodiment.

図6Bは、振幅誤差αが−1<α≦0を満たす場合のループ制御部500の構成例を示す。本例では、図6Aの構成と相違する点について特に説明する。   FIG. 6B shows a configuration example of the loop control unit 500 when the amplitude error α satisfies −1 <α ≦ 0. In this example, differences from the configuration of FIG. 6A will be particularly described.

正弦波生成部526aには、加算部520および加算部521で加算された角度φ+δ+γが入力される。正弦波生成部526bには、加算部520および加算部522で加減算された角度φ+δ−γが入力される。正弦波生成部526aおよび正弦波生成部526bの出力は、加算部528で加算されて、増幅部529で増幅される。これにより、増幅部529は、sin値として、cosγ・sin(φ+δ)を外積演算部530に入力する。   The angle φ + δ + γ added by the adder 520 and the adder 521 is input to the sine wave generator 526a. The sine wave generation unit 526b receives the angles φ + δ−γ that have been added / subtracted by the addition unit 520 and the addition unit 522. The outputs of the sine wave generation unit 526a and the sine wave generation unit 526b are added by the addition unit 528 and amplified by the amplification unit 529. As a result, the amplification unit 529 inputs cos γ · sin (φ + δ) as the sin value to the outer product calculation unit 530.

一方、余弦波生成部527には、加算部523で加減算された角度φ−δが入力される。余弦波生成部527は、cos値として、cos(φ−δ)を外積演算部530に入力する。   On the other hand, the cosine wave generation unit 527 receives the angle φ−δ that has been added / subtracted by the addition unit 523. The cosine wave generation unit 527 inputs cos (φ−δ) as the cos value to the outer product calculation unit 530.

ここで、図6Bの回路構成についても図6Aの場合と同様の計算によって、(数18)式と同等の結果が得られる。即ち、図6Bについても、実施例に係るループ制御部100と比べると、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差の低減が十分ではない。   Here, also for the circuit configuration of FIG. 6B, the same result as the expression (18) can be obtained by the same calculation as in the case of FIG. That is, also in FIG. 6B, the error in the detected angle φ due to the amplitude error α and the other-axis sensitivity error β is not sufficiently reduced as compared with the loop control unit 100 according to the embodiment.

例えば、比較例に係るループ制御部500は、補正すべき誤差がある程度小さい場合、補正後の誤差は無視できるほど小さくすることができる。しかしながら、例えば、図3に示すように磁石22の径方向側に検出面を有する角度検出装置が配置される場合、誤差が大きくなる。このような場合、近似による誤差の影響が無視できない程度に大きくなり、十分な補正効果が得られない。   For example, if the error to be corrected is small to some extent, the loop control unit 500 according to the comparative example can make the corrected error so small that it can be ignored. However, for example, when the angle detection device having the detection surface on the radial side of the magnet 22 is arranged as shown in FIG. 3, the error becomes large. In such a case, the effect of the error due to the approximation becomes so large that it cannot be ignored, and a sufficient correction effect cannot be obtained.

図7は、実施例および比較例の角度誤差の差異を説明するための図である。縦軸は角度誤差(deg)を示し、横軸は回転角度(deg)を示す。図7においては、α=−0.4、γ=−0.2とした。   FIG. 7 is a diagram for explaining the difference in angle error between the example and the comparative example. The vertical axis represents the angular error (deg), and the horizontal axis represents the rotation angle (deg). In FIG. 7, α = −0.4 and γ = −0.2.

角度検出装置の角度出力の線形性が性能指標となる。即ち、補正後角度誤差の最大値と最小値の差分であるピークツーピーク値が性能指標となる。   The performance index is the linearity of the angle output of the angle detection device. That is, the peak-to-peak value that is the difference between the maximum value and the minimum value of the corrected angle error is the performance index.

未補正時においては、角度誤差のピークツーピーク値が51.2°となる。比較例においては、角度誤差のピークツーピーク値が6.3°となる。これに対して実施例においては、角度誤差のピークツーピーク値が0.0°となっている。このように、実施例における検出角度φの線形性が向上している。   When uncorrected, the peak-to-peak value of the angular error is 51.2 °. In the comparative example, the peak-to-peak value of the angle error is 6.3 °. On the other hand, in the embodiment, the peak-to-peak value of the angle error is 0.0 °. In this way, the linearity of the detection angle φ in the embodiment is improved.

以上の通り、角度検出装置10は、第1AD変換信号Vxと第2AD変換信号Vyのそれぞれについて、振幅誤差αおよび他軸感度誤差βを調整するための補正値に基づいて、角度θに追従させたより正確な検出角度φを出力することができる。これにより、角度検出装置10が磁石22の径方向に配置される場合であっても、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差を低減することができる。   As described above, the angle detection device 10 causes the first AD converted signal Vx and the second AD converted signal Vy to follow the angle θ based on the correction values for adjusting the amplitude error α and the other axis sensitivity error β. It is possible to output a more accurate detected angle φ. Thereby, even when the angle detection device 10 is arranged in the radial direction of the magnet 22, it is possible to reduce the error of the detected angle φ due to the amplitude error α and the other-axis sensitivity error β.

図8は、角度検出装置10として機能するコンピュータ1900のハードウェア構成の一例を示す。また、複数のコンピュータが協働して角度検出装置10として機能してもよい。   FIG. 8 shows an example of the hardware configuration of a computer 1900 that functions as the angle detection device 10. In addition, a plurality of computers may work together to function as the angle detection device 10.

実施例に係るコンピュータ1900は、ホスト・コントローラ2082により相互に接続されるCPU2000、RAM2020、グラフィック・コントローラ2075、および表示装置2080を有するCPU周辺部と、入出力コントローラ2084によりホスト・コントローラ2082に接続される通信インターフェイス2030、ハードディスクドライブ2040、およびDVDドライブ2060を有する入出力部と、入出力コントローラ2084に接続されるROM2010、フレキシブルディスク・ドライブ2050、および入出力チップ2070を有するレガシー入出力部と、を備える。   The computer 1900 according to the embodiment is connected to the host controller 2082 by an input / output controller 2084 and a CPU peripheral unit having a CPU 2000, a RAM 2020, a graphic controller 2075, and a display device 2080 which are mutually connected by a host controller 2082. An input / output unit having a communication interface 2030, a hard disk drive 2040, and a DVD drive 2060, and a legacy input / output unit having a ROM 2010 connected to the input / output controller 2084, a flexible disk drive 2050, and an input / output chip 2070. Prepare

ホスト・コントローラ2082は、RAM2020と、高い転送レートでRAM2020をアクセスするCPU2000およびグラフィック・コントローラ2075とを接続する。CPU2000は、ROM2010およびRAM2020に格納されたプログラムに基づいて動作し、各部の制御を行う。グラフィック・コントローラ2075は、CPU2000等がRAM2020内に設けたフレーム・バッファ上に生成する画像データを取得し、表示装置2080上に表示させる。これに代えて、グラフィック・コントローラ2075は、CPU2000等が生成する画像データを格納するフレーム・バッファを、内部に含んでもよい。   The host controller 2082 connects the RAM 2020 to the CPU 2000 and the graphic controller 2075 that access the RAM 2020 at a high transfer rate. The CPU 2000 operates based on the programs stored in the ROM 2010 and the RAM 2020, and controls each unit. The graphic controller 2075 acquires image data generated by the CPU 2000 or the like on a frame buffer provided in the RAM 2020 and displays it on the display device 2080. Instead of this, the graphic controller 2075 may internally include a frame buffer that stores image data generated by the CPU 2000 or the like.

入出力コントローラ2084は、ホスト・コントローラ2082と、比較的高速な入出力装置である通信インターフェイス2030、ハードディスクドライブ2040、DVDドライブ2060を接続する。通信インターフェイス2030は、ネットワークを介して他の装置と通信する。ハードディスクドライブ2040は、コンピュータ1900内のCPU2000が使用するプログラムおよびデータを格納する。DVDドライブ2060は、DVD−ROM2095からプログラムまたはデータを読み取り、RAM2020を介してハードディスクドライブ2040に提供する。   The input / output controller 2084 connects the host controller 2082 to the communication interface 2030, hard disk drive 2040, and DVD drive 2060, which are relatively high-speed input / output devices. The communication interface 2030 communicates with other devices via the network. The hard disk drive 2040 stores programs and data used by the CPU 2000 in the computer 1900. The DVD drive 2060 reads a program or data from the DVD-ROM 2095 and provides it to the hard disk drive 2040 via the RAM 2020.

また、入出力コントローラ2084には、ROM2010と、フレキシブルディスク・ドライブ2050、および入出力チップ2070の比較的低速な入出力装置とが接続される。ROM2010は、コンピュータ1900が起動時に実行するブート・プログラム、および/または、コンピュータ1900のハードウェアに依存するプログラム等を格納する。フレキシブルディスク・ドライブ2050は、フレキシブルディスク2090からプログラムまたはデータを読み取り、RAM2020を介してハードディスクドライブ2040に提供する。入出力チップ2070は、フレキシブルディスク・ドライブ2050を入出力コントローラ2084へと接続すると共に、例えばパラレル・ポート、シリアル・ポート、キーボード・ポート、マウス・ポート等を介して各種の入出力装置を入出力コントローラ2084へと接続する。   Further, the input / output controller 2084 is connected to the ROM 2010, the flexible disk drive 2050, and the input / output chip 2070, which is a relatively low-speed input / output device. The ROM 2010 stores a boot program executed by the computer 1900 at startup, and / or a program dependent on the hardware of the computer 1900. The flexible disk drive 2050 reads a program or data from the flexible disk 2090 and provides it to the hard disk drive 2040 via the RAM 2020. The input / output chip 2070 connects the flexible disk drive 2050 to the input / output controller 2084, and inputs / outputs various input / output devices via, for example, a parallel port, a serial port, a keyboard port, a mouse port, or the like. Connect to controller 2084.

RAM2020を介してハードディスクドライブ2040に提供されるプログラムは、フレキシブルディスク2090、DVD−ROM2095、またはICカード等の記録媒体に格納されて利用者によって提供される。プログラムは、記録媒体から読み出され、RAM2020を介してコンピュータ1900内のハードディスクドライブ2040にインストールされ、CPU2000において実行される。プログラムは、コンピュータ1900にインストールされ、コンピュータ1900を、角度検出装置10の各構成として機能させる。   The program provided to the hard disk drive 2040 via the RAM 2020 is stored in a recording medium such as the flexible disk 2090, the DVD-ROM 2095, or an IC card and provided by the user. The program is read from the recording medium, installed in the hard disk drive 2040 in the computer 1900 via the RAM 2020, and executed by the CPU 2000. The program is installed in the computer 1900, and causes the computer 1900 to function as each component of the angle detection device 10.

プログラムに記述された情報処理は、コンピュータ1900に読込まれることにより、ソフトウェアと上述した各種のハードウェア資源とが協働した具体的手段である位相差検出部110、ループフィルタ140および角度更新部150の少なくとも一部として機能する。そして、この具体的手段によって、本実施形態におけるコンピュータ1900の使用目的に応じた情報の演算または加工を実現することにより、使用目的に応じた特有の角度検出装置10が構築される。   When the information processing described in the program is read by the computer 1900, the phase difference detection unit 110, the loop filter 140, and the angle update unit, which are specific means in which software and the various hardware resources described above cooperate with each other. It functions as at least a part of 150. The specific means realizes the calculation or processing of information according to the purpose of use of the computer 1900 in the present embodiment, thereby constructing the unique angle detection device 10 according to the purpose of use.

一例として、コンピュータ1900と外部の装置等との間で通信を行う場合には、CPU2000は、RAM2020上にロードされた通信プログラムを実行し、通信プログラムに記述された処理内容に基づいて、通信インターフェイス2030に対して通信処理を指示する。通信インターフェイス2030は、CPU2000の制御を受けて、RAM2020、ハードディスクドライブ2040、フレキシブルディスク2090、またはDVD−ROM2095等の記憶装置上に設けた送信バッファ領域等に記憶された送信データを読み出してネットワークへと送信し、もしくは、ネットワークから受信した受信データを記憶装置上に設けた受信バッファ領域等へと書き込む。このように、通信インターフェイス2030は、DMA(ダイレクト・メモリ・アクセス)方式により記憶装置との間で送受信データを転送してもよく、これに代えて、CPU2000が転送元の記憶装置または通信インターフェイス2030からデータを読み出し、転送先の通信インターフェイス2030または記憶装置へとデータを書き込むことにより送受信データを転送してもよい。   As an example, when communication is performed between the computer 1900 and an external device or the like, the CPU 2000 executes the communication program loaded on the RAM 2020, and based on the processing content described in the communication program, the communication interface. Instructing 2030 to perform communication processing. Under the control of the CPU 2000, the communication interface 2030 reads out the transmission data stored in the transmission buffer area or the like provided on the storage device such as the RAM 2020, the hard disk drive 2040, the flexible disk 2090, or the DVD-ROM 2095, and transfers it to the network. The received data transmitted or received from the network is written to a reception buffer area or the like provided on the storage device. As described above, the communication interface 2030 may transfer the transmission / reception data to / from the storage device by the DMA (Direct Memory Access) method. Instead, the CPU 2000 transfers the storage device or the communication interface 2030 of the transfer source. The transmission / reception data may be transferred by reading the data from the device and writing the data to the communication interface 2030 or the storage device of the transfer destination.

また、CPU2000は、ハードディスクドライブ2040、DVDドライブ2060(DVD−ROM2095)、フレキシブルディスク・ドライブ2050(フレキシブルディスク2090)等の外部記憶装置に格納されたファイルまたはデータベース等の中から、全部または必要な部分をDMA転送等によりRAM2020へと読み込ませ、RAM2020上のデータに対して各種の処理を行う。そして、CPU2000は、処理を終えたデータを、DMA転送等により外部記憶装置へと書き戻す。このような処理において、RAM2020は、外部記憶装置の内容を一時的に保持するものとみなせるから、本実施形態においてはRAM2020および外部記憶装置等をメモリ、記憶部、または記憶装置等と総称する。本実施形態における各種のプログラム、データ、テーブル、データベース等の各種の情報は、このような記憶装置上に格納されて、情報処理の対象となる。なお、CPU2000は、RAM2020の一部をキャッシュメモリに保持し、キャッシュメモリ上で読み書きを行うこともできる。このような形態においても、キャッシュメモリはRAM2020の機能の一部を担うから、本実施形態においては、区別して示す場合を除き、キャッシュメモリもRAM2020、メモリ、および/または記憶装置に含まれるものとする。   Further, the CPU 2000 is a whole or a necessary part from files or databases stored in an external storage device such as a hard disk drive 2040, a DVD drive 2060 (DVD-ROM 2095), a flexible disk drive 2050 (flexible disk 2090). Is read into the RAM 2020 by DMA transfer or the like, and various processing is performed on the data in the RAM 2020. Then, the CPU 2000 writes the processed data back to the external storage device by DMA transfer or the like. In such a process, the RAM 2020 can be regarded as temporarily holding the contents of the external storage device, and thus the RAM 2020, the external storage device, and the like are collectively referred to as a memory, a storage unit, a storage device, or the like in this embodiment. Various information such as various programs, data, tables, and databases according to the present embodiment is stored in such a storage device and is a target of information processing. Note that the CPU 2000 can also hold part of the RAM 2020 in the cache memory and read / write on the cache memory. Even in such a form, the cache memory plays a part of the function of the RAM 2020. Therefore, in the present embodiment, the cache memory is also included in the RAM 2020, the memory, and / or the storage device unless otherwise indicated. To do.

また、CPU2000は、RAM2020から読み出したデータに対して、プログラムの命令列により指定された、本実施形態中に記載した各種の演算、情報の加工、条件判断、情報の検索・置換等を含む各種の処理を行い、RAM2020へと書き戻す。例えば、CPU2000は、条件判断を行う場合においては、本実施形態において示した各種の変数が、他の変数または定数と比較して、大きい、小さい、以上、以下、等しい等の条件を満たすかどうかを判断し、条件が成立した場合(または不成立であった場合)に、異なる命令列へと分岐し、またはサブルーチンを呼び出す。   Further, the CPU 2000 performs various operations specified in the instruction sequence of the program on the data read from the RAM 2020, including various calculations, information processing, condition determination, information search / replacement, and the like. Process and write back to the RAM 2020. For example, when the CPU 2000 makes a condition determination, whether or not various variables shown in this embodiment satisfy a condition such as being large, small, above, below, or equal to other variables or constants. If the condition is satisfied (or not satisfied), the process branches to a different instruction sequence or calls a subroutine.

また、CPU2000は、記憶装置内のファイルまたはデータベース等に格納された情報を検索することができる。例えば、第1属性の属性値に対し第2属性の属性値がそれぞれ対応付けられた複数のエントリが記憶装置に格納されている場合において、CPU2000は、記憶装置に格納されている複数のエントリの中から第1属性の属性値が指定された条件と一致するエントリを検索し、そのエントリに格納されている第2属性の属性値を読み出すことにより、所定の条件を満たす第1属性に対応付けられた第2属性の属性値を得ることができる。   Further, the CPU 2000 can search for information stored in a file or database in the storage device. For example, when a plurality of entries in which the attribute values of the second attribute are associated with the attribute values of the first attribute are stored in the storage device, the CPU 2000 determines that the entries of the plurality of entries stored in the storage device are stored. Corresponding to the first attribute satisfying a predetermined condition by searching an entry in which the attribute value of the first attribute matches the specified condition and reading the attribute value of the second attribute stored in the entry. The attribute value of the obtained second attribute can be obtained.

以上に示したプログラムまたはモジュールは、外部の記録媒体に格納されてもよい。記録媒体としては、フレキシブルディスク2090、DVD−ROM2095の他に、DVD、Blu−ray(登録商標)、またはCD等の光学記録媒体、MO等の光磁気記録媒体、テープ媒体、ICカード等の半導体メモリ等を用いることができる。また、専用通信ネットワークまたはインターネットに接続されたサーバシステムに設けたハードディスクまたはRAM等の記憶装置を記録媒体として使用し、ネットワークを介してプログラムをコンピュータ1900に提供してもよい。   The programs or modules described above may be stored in an external recording medium. As the recording medium, in addition to the flexible disk 2090 and the DVD-ROM 2095, an optical recording medium such as a DVD, a Blu-ray (registered trademark) or a CD, a magneto-optical recording medium such as an MO, a tape medium, a semiconductor such as an IC card, etc. A memory or the like can be used. Further, a storage device such as a hard disk or a RAM provided in a server system connected to a dedicated communication network or the Internet may be used as a recording medium, and the program may be provided to the computer 1900 via the network.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   Although the present invention has been described using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. It is apparent to those skilled in the art that various modifications and improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such modifications or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、および図面中において示した装置、システム、プログラム、および方法における動作、手順、ステップ、および段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。   The execution order of each process such as operation, procedure, step, and step in the device, system, program, and method shown in the claims, the specification, and the drawings is, in particular, “before” or “prior to”. It should be noted that the output of the previous process can be realized in any order unless the output of the previous process is used in the subsequent process. The operation flow in the claims, the specification, and the drawings is described using “first,” “next,” and the like for convenience, but it is essential that the operations are performed in this order. Not a thing.

10・・・角度検出装置、20・・・回転磁石、22・・・磁石、24・・・回転軸、26・・・モーター、30・・・第1磁気センス部、32・・・第2磁気センス部、40・・・第1増幅部、42・・・第2増幅部、50・・・第1AD変換部、52・・・第2AD変換部、60・・・補正値算出部、100・・・ループ制御部、110・・・位相差検出部、120・・・フィードバック部、121・・・加算部、122・・・加算部、123・・・減算部、124・・・正弦波生成部、125・・・正弦波生成部、126・・・余弦波生成部、127・・・余弦波生成部、128・・・加算部、129・・・増幅部、130・・・外積演算部、140・・・ループフィルタ、150・・・角度更新部、161・・・第1フィードバック信号生成部、162・・・第2フィードバック信号生成部、500・・・ループ制御部、510・・・角度検出装置、520・・・加算部、521・・・加算部、522・・・加算部、523・・・加算部、524・・・余弦波生成部、525・・・正弦波生成部、526・・・正弦波生成部、527・・・余弦波生成部、528・・・加算部、529・・・増幅部、530・・・外積演算部、540・・・ループフィルタ、550・・・角度更新部、1000・・・回転角センサ、1900・・・コンピュータ、2000・・・CPU、2010・・・ROM、2020・・・RAM、2030・・・通信インターフェイス、2040・・・ハードディスクドライブ、2050・・・フレキシブルディスク・ドライブ、2060・・・DVDドライブ、2070・・・入出力チップ、2075・・・グラフィック・コントローラ、2080・・・表示装置、2082・・・ホスト・コントローラ、2084・・・入出力コントローラ、2090・・・フレキシブルディスク、2095・・・DVD−ROM 10 ... Angle detection device, 20 ... Rotating magnet, 22 ... Magnet, 24 ... Rotating shaft, 26 ... Motor, 30 ... First magnetic sensing unit, 32 ... Second Magnetic sense section, 40 ... First amplification section, 42 ... Second amplification section, 50 ... First AD conversion section, 52 ... Second AD conversion section, 60 ... Correction value calculation section, 100 ... loop control unit, 110 ... phase difference detection unit, 120 ... feedback unit, 121 ... addition unit, 122 ... addition unit, 123 ... subtraction unit, 124 ... sine wave Generator, 125 ... Sine wave generator, 126 ... Cosine wave generator, 127 ... Cosine wave generator, 128 ... Adder, 129 ... Amplifier, 130 ... Outer product operation Part, 140 ... Loop filter, 150 ... Angle updating part, 161, ... First feedback No. generator, 162 ... Second feedback signal generator, 500 ... Loop controller, 510 ... Angle detector, 520 ... Adder, 521 ... Adder, 522 ... Addition Unit, 523 ... Addition unit, 524 ... Cosine wave generation unit, 525 ... Sine wave generation unit, 526 ... Sine wave generation unit, 527 ... Cosine wave generation unit, 528 ... Addition Unit, 529 ... Amplifying unit, 530 ... Outer product calculating unit, 540 ... Loop filter, 550 ... Angle updating unit, 1000 ... Rotation angle sensor, 1900 ... Computer, 2000 ... CPU, 2010 ... ROM, 2020 ... RAM, 2030 ... Communication interface, 2040 ... Hard disk drive, 2050 ... Flexible disk drive, 2060 ... DV Drive, 2070 ... I / O chip, 2075 ... Graphic controller, 2080 ... Display device, 2082 ... Host controller, 2084 ... I / O controller, 2090 ... Flexible disk, 2095. ..DVD-ROM

Claims (11)

磁場の第1方向成分に応じた第1磁場信号と、前記磁場の第2方向成分に応じた第2磁場信号とに基づいて前記磁場の角度を示す検出角度を算出する角度検出装置であって、
前記検出角度をループ制御により前記第1磁場信号および前記第2磁場信号に対して追従させるループ制御部を備え、
前記ループ制御部は、前記第1磁場信号および前記第2磁場信号が示す角度に対する前記検出角度の位相差を検出する位相差検出部を有し、
前記位相差検出部は、
前記第1磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第1フィードバック信号と、前記第2磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第2フィードバック信号とに基づいて、前記磁場の角度に対する前記検出角度の誤差を調整する
角度検出装置。
An angle detection device for calculating a detection angle indicating an angle of the magnetic field based on a first magnetic field signal corresponding to a first direction component of the magnetic field and a second magnetic field signal corresponding to a second direction component of the magnetic field. ,
A loop control unit that causes the detected angle to follow the first magnetic field signal and the second magnetic field signal by loop control,
The loop control unit includes a phase difference detection unit that detects a phase difference of the detected angle with respect to an angle indicated by the first magnetic field signal and the second magnetic field signal,
The phase difference detection unit,
A first feedback signal according to a correction value corresponding to an amplitude error of the first magnetic field signal and a correction value corresponding to another axis sensitivity error, and a correction value and another axis sensitivity error corresponding to an amplitude error of the second magnetic field signal. An angle detection device that adjusts the error of the detected angle with respect to the angle of the magnetic field based on a second feedback signal corresponding to the correction value corresponding to.
前記位相差検出部は、
前記検出角度に第1調整角度を加算する第1加算部と、
前記第1加算部が加算した角度に第2調整角度を加算する第2加算部と、
前記第2加算部が出力する角度を用いて、前記第1磁場信号の振幅誤差および他軸感度誤差を調整するための第1フィードバック信号を生成する第1フィードバック信号生成部と
を含む請求項1に記載の角度検出装置。
The phase difference detection unit,
A first addition unit that adds a first adjustment angle to the detected angle;
A second adder for adding a second adjustment angle to the angle added by the first adder;
A first feedback signal generation unit that generates a first feedback signal for adjusting the amplitude error and the other-axis sensitivity error of the first magnetic field signal by using the angle output by the second addition unit. The angle detection device described in.
前記位相差検出部は、前記第1加算部が加算した角度に第2調整角度を減算する第1角度減算部を更に含み、
前記第1フィードバック信号生成部は、
前記第2加算部が出力する角度に応じたsin値および前記第1角度減算部が出力する角度に応じたsin値を用いて、前記第1磁場信号の振幅誤差および他軸感度誤差を調整するための前記第1フィードバック信号を生成する
請求項2に記載の角度検出装置。
The phase difference detection unit further includes a first angle subtraction unit that subtracts a second adjustment angle from the angle added by the first addition unit,
The first feedback signal generation unit,
The amplitude error and the other axis sensitivity error of the first magnetic field signal are adjusted using the sin value corresponding to the angle output by the second adder and the sin value corresponding to the angle output by the first angle subtractor. The angle detection device according to claim 2, wherein the first feedback signal for generating is generated.
前記位相差検出部は、
前記検出角度に第3調整角度を加算する第3加算部と、
前記第3加算部が加算した角度に第4調整角度を加算する第4加算部と、
前記第4加算部が出力する角度を用いて、前記第2磁場信号の振幅誤差および他軸感度誤差を調整するための前記第2フィードバック信号を生成する第2フィードバック信号生成部と
を含む請求項1から3のいずれか一項に記載の角度検出装置。
The phase difference detection unit,
A third adder for adding a third adjustment angle to the detected angle;
A fourth adder for adding a fourth adjustment angle to the angle added by the third adder,
A second feedback signal generation unit that generates the second feedback signal for adjusting the amplitude error and the other-axis sensitivity error of the second magnetic field signal using the angle output by the fourth addition unit. The angle detection device according to any one of 1 to 3.
前記位相差検出部は、前記第3加算部が加算した角度に第4調整角度を減算する第2角度減算部を更に含み、
前記第2フィードバック信号生成部は、
前記第4加算部が出力する角度に応じたcos値および前記第2角度減算部が出力する角度に応じたcos値を用いて、前記第2磁場信号の振幅誤差および他軸感度誤差を調整するための前記第2フィードバック信号を生成する
請求項4に記載の角度検出装置。
The phase difference detection unit further includes a second angle subtraction unit that subtracts the fourth adjustment angle from the angle added by the third addition unit,
The second feedback signal generation unit,
The amplitude error and the other axis sensitivity error of the second magnetic field signal are adjusted using the cos value according to the angle output by the fourth adder and the cos value according to the angle output by the second angle subtractor. The angle detection device according to claim 4, wherein the second feedback signal for generating the second feedback signal is generated.
前記ループ制御部は、
前記位相差における予め定められた周波数以下の周波数成分を通過させるループフィルタと、
前記ループフィルタを通過した前記位相差に応じて前記検出角度を増減する角度更新部と、
を有する請求項5に記載の角度検出装置。
The loop control unit,
A loop filter that passes a frequency component having a predetermined frequency or less in the phase difference,
An angle updating unit that increases or decreases the detected angle according to the phase difference that has passed through the loop filter,
The angle detection device according to claim 5, further comprising:
磁場の前記第1方向成分に応じた前記第1磁場信号を出力する第1磁気センス部と、
磁場の前記第2方向成分に応じた前記第2磁場信号を出力する第2磁気センス部と、
を更に備える請求項1から6のいずれか一項に記載の角度検出装置。
A first magnetic sensing unit that outputs the first magnetic field signal according to the first direction component of the magnetic field;
A second magnetic sensing unit that outputs the second magnetic field signal according to the second direction component of the magnetic field;
The angle detection device according to any one of claims 1 to 6, further comprising:
前記第1磁場信号をAD変換して第1AD変換信号を出力する第1AD変換部と、
前記第2磁場信号をAD変換して第2AD変換信号を出力する第2AD変換部と
を備える
請求項1から7のいずれか一項に記載の角度検出装置。
A first AD conversion unit that AD-converts the first magnetic field signal and outputs a first AD conversion signal;
The 2nd AD conversion part which AD-converts the 2nd magnetic field signal, and outputs the 2nd AD conversion signal is provided. The angle detecting device according to any one of claims 1 to 7.
前記位相差検出部は、前記第1AD変換信号のビットストリームおよび前記第2AD変換信号のビットストリームをビット毎に順次入力し、前記第1フィードバック信号および前記第2フィードバック信号の組との間でビット毎に外積を演算する外積演算部を含む
請求項8に記載の角度検出装置。
The phase difference detection unit sequentially inputs the bit stream of the first AD converted signal and the bit stream of the second AD converted signal bit by bit, and outputs a bit between the first feedback signal and the second feedback signal pair. The angle detection device according to claim 8, further comprising an outer product calculation unit that calculates an outer product for each.
磁場の第1方向成分に応じた第1磁場信号と、前記磁場の第2方向成分に応じた第2磁場信号とに基づいて前記磁場の角度を示す検出角度を算出する誤差調整方法であって、
前記検出角度をループ制御により前記第1磁場信号および前記第2磁場信号に対して追従させる段階を備え、
前記追従させる段階は、前記第1磁場信号および前記第2磁場信号が示す角度に対する前記検出角度の位相差を検出する段階を有し、
前記位相差を検出する段階は、前記第1磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第1フィードバック信号と、前記第2磁場信号の振幅誤差に対応する補正値および他軸感度誤差に対応する補正値に応じた第2フィードバック信号とに基づいて、前記磁場の角度に対する前記検出角度の誤差を調整する
誤差調整方法。
An error adjusting method for calculating a detection angle indicating an angle of the magnetic field based on a first magnetic field signal corresponding to a first direction component of the magnetic field and a second magnetic field signal corresponding to a second direction component of the magnetic field. ,
Looping the detected angle with respect to the first magnetic field signal and the second magnetic field signal,
The following step includes the step of detecting the phase difference of the detected angle with respect to the angle indicated by the first magnetic field signal and the second magnetic field signal,
The step of detecting the phase difference includes the first feedback signal according to the correction value corresponding to the amplitude error of the first magnetic field signal and the correction value corresponding to the other axis sensitivity error, and the amplitude error of the second magnetic field signal. An error adjusting method for adjusting an error of the detected angle with respect to an angle of the magnetic field based on a corresponding correction value and a second feedback signal according to a correction value corresponding to another axis sensitivity error.
コンピュータに、請求項10に記載の誤差調整方法を実行させるためのプログラム。   A program for causing a computer to execute the error adjustment method according to claim 10.
JP2018198673A 2018-10-22 2018-10-22 Angle detection device, error adjustment method, and program Pending JP2020067302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018198673A JP2020067302A (en) 2018-10-22 2018-10-22 Angle detection device, error adjustment method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018198673A JP2020067302A (en) 2018-10-22 2018-10-22 Angle detection device, error adjustment method, and program

Publications (1)

Publication Number Publication Date
JP2020067302A true JP2020067302A (en) 2020-04-30

Family

ID=70390040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018198673A Pending JP2020067302A (en) 2018-10-22 2018-10-22 Angle detection device, error adjustment method, and program

Country Status (1)

Country Link
JP (1) JP2020067302A (en)

Similar Documents

Publication Publication Date Title
WO2021128424A1 (en) Absolute electrical angle measurement method and system, and computer-readable storage medium
WO2016031674A1 (en) Error correction device, rotational-angle detection device, rotational-angle sensor, error correction method, and program
JP6530245B2 (en) Detection device, magnetic sensor, detection method, and program
US20220075008A1 (en) Stray field immune angle sensor
JP6352540B2 (en) Detection device, rotation angle detection device, detection method, and program
JP2017181026A (en) Fault diagnosis device, rotational angle sensor, failure diagnosis method, and program
US11187823B2 (en) Correcting distortions
US20030214749A1 (en) Magnetic disk apparatus
US11243095B2 (en) Rotational angle detection apparatus and rotational angle detection method
JP2021001879A (en) Rotation angle sensor, and method and program for calculating angle signal
EP2972683A1 (en) Dynamically calibrating magnetic sensors
US20060250257A1 (en) Sensor orientation for environmental error reduction
JP6535292B2 (en) Abnormality diagnosis device, abnormality diagnosis method, and program
JP7134059B2 (en) ROTATING ANGLE DETECTION DEVICE, ROTATING ANGLE DETECTION METHOD AND PROGRAM
JP2019028037A (en) Rotation angle sensor calibration method, module calibration method, calibration parameter generation device, rotation angle sensor, rotation angle sensor module and program
WO2009064804A1 (en) Mitigating the effects of disturbances of a disk drive
JP2020067302A (en) Angle detection device, error adjustment method, and program
JP2019035629A (en) Calibration device, calibration method, rotational angle detector, and program
WO2016056136A1 (en) Current detection method, current detection device, signal correction method for current detection device, and signal correction device for current detection device
JP6653336B2 (en) Angle detecting device and method
CN103210277A (en) Electronic device
Qin et al. Attitude measurement system based on micro-silicon accelerometer array
JP2019184608A (en) Rotation angle detection device, rotation angle detection method and program
CN114665778A (en) Motor rotor position measurement precision compensation method and device and storage medium
JP4721919B2 (en) Correction method and correction apparatus