JP2020067302A - Angle detection device, error adjustment method, and program - Google Patents
Angle detection device, error adjustment method, and program Download PDFInfo
- 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
Links
Images
Landscapes
- Transmission And Conversion Of Sensor Element Output (AREA)
Abstract
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).
従来、センサが回転磁石の回転軸方向に配置されない場合、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.
以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。 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
角度検出装置10は、回転磁石20が発生する回転磁場の回転角を検出する。角度検出装置10は、一例として、集積回路等を有する半導体チップ等である。この場合、角度検出装置10は、シリコン等の半導体によって形成され、半導体回路および半導体素子等を含む。角度検出装置10は、複数の端子を備え、外部の基板、回路、および配線等と電気的に接続される。角度検出装置10のより具体的な構成については後述する。
The
回転磁石20は、回転磁場を発生させる。回転磁石20は、磁石22と、回転軸24と、モーター26とを有する。磁石22は、回転軸24回りに回転する。図1は、磁石22が角度検出装置10のZ軸の正側に設けられる例を示す。磁石22は、一例として、円盤状の形状を有し、XY平面と略平行な面で回転する。磁石22は、XY平面と略平行な断面がそれぞれ半円形状となる2つの領域に分割されてよく、一方の領域がS極であり、他方の領域がN極である磁石を形成する。
The rotating
磁石22は、XY平面と略平行な面で回転することにより、例えば、角度検出装置10において、(数1)式で示される回転磁場を発生させる。ここで、Bは、角度検出装置10に置いて検出される磁場の絶対値を示す。本実施形態において、Bは、略一定とし、定数として取り扱うこととする。また、θは、磁場が回転する面における予め定められた方向または基準の方向に対する、回転磁場の磁場方向の回転角度を示す。
(数1)
Bx(θ)=B・cosθ
By(θ)=B・sinθ
By rotating the
(Equation 1)
Bx (θ) = B · cos θ
By (θ) = B · sin θ
回転軸24は、XY平面と略垂直な方向に設けられる。回転軸24は、一端が磁石22に接続され、他端がモーター26に接続される。モーター26は、回転軸24および当該回転軸24に接続された磁石22を回転させる。このように、回転角センサ1000は、XY平面と平行な磁場を検出する角度検出装置10と、Z軸回りに磁石を回転させる回転磁石20と、を組み立てて形成される。
The
角度検出装置10は、例えば、回転磁石20が発生させる回転磁場のXY平面における第1方向成分および第2方向成分をそれぞれ検出し、検出タイミングにおける回転磁石20の回転角θを、第1方向成分および第2方向成分に基づいて算出して出力する。ここで、第1方向および第2方向は、互いに異なる方向であればよい。なお、第1方向および第2方向は、XY平面において直交する2つの方向であることが望ましい。本実施形態において、第1方向はX軸方向、第2方向はY軸方向として説明する。
The
図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
第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
第1磁気センス部30および第2磁気センス部32は、ホール素子、磁気抵抗素子(MR)、巨大磁気抵抗素子(GMR)、トンネル効果磁気抵抗素子(TMR)、マグネトインピーダンス素子(MI素子)、および/またはインダクタンスセンサ等をそれぞれ有してよい。また、第1磁気センス部30および第2磁気センス部32は、入力する磁場を収束させる磁気収束板を更に有してもよい。
The first
第1増幅部40は、第1磁気センス部30が出力する第1磁場信号V1の信号レベルを増幅する。第1増幅部40は、増幅した信号を第1AD変換部50に供給する。
The
第2増幅部42は、第2磁気センス部32が出力する第2磁場信号V2の信号レベルを増幅する。第2増幅部42は、増幅した信号を第2AD変換部52に供給する。
The
第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
なお、ビットストリームは、予め定められた数の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
ループ制御部100は、第1AD変換部50および第2AD変換部52が出力する第1AD変換信号Vxおよび第2AD変換信号Vyをそれぞれ受け取り、受け取った第1AD変換信号Vxおよび第2AD変換信号Vyに対応する角度情報を検出角度φとして出力する。ループ制御部100は、クロック信号等に応じて、順次、検出角度φを更新して出力してよい。ループ制御部100は、検出角度φをループ制御により第1AD変換信号Vxおよび第2AD変換信号Vyに対して追従させて、検出角度φを更新して出力してよい。
The
ループ制御部100は、位相差検出部110と、ループフィルタ140と、角度更新部150とを有する。ループ制御部100は、検出角度φを回転角度θに追従させることに加えて、振幅誤差αや他軸感度誤差βに起因する検出角度φの誤差を低減することができる。
The
ここで、角度検出装置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
(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
(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
位相差検出部110は、第1AD変換信号Vxおよび第2AD変換信号Vyが示す角度θに対する検出角度φの位相差を検出する。位相差検出部110は、ループ制御部100が出力した検出角度φと、第1AD変換信号Vxおよび第2AD変換信号Vyに対応する角度情報θとの位相差を検出し、次にループ制御部100が検出角度φを更新すべく、当該位相差を出力する。位相差検出部110は、フィードバック部120および外積演算部130を含む。
The phase
補正値算出部60は、検出角度φを調整するための補正値を算出する。補正値算出部60は、算出した補正値を記憶してよい。一例において、補正値算出部60は、第1磁場信号V1と第2磁場信号V2との振幅誤差に対応する補正値γc、γsおよび第1磁場信号V1および第2磁場信号V2におけるそれぞれの他軸感度誤差に対応する補正値δc、δsをそれぞれ算出する。補正値算出部60は、補正値γc、γsおよび補正値δc、δsをループ制御部100に入力する。
The correction
フィードバック部120は、検出角度φの誤差を調整するためのフィードバック信号を生成する。フィードバック部120は、各検出角度φに対応するデータとして、当該角度に対応するsin値およびcos値をフィードバック信号として出力してよい。一例において、フィードバック部120は、補正値γc、γsおよび補正値δc、δsに基づいて、第1フィードバック信号F1および第2フィードバック信号F2を生成する。フィードバック部120は、生成した第1フィードバック信号F1および第2フィードバック信号F2を外積演算部130に入力する。
The
第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
次に、検出角度φを回転角度θに追従させるための角度検出装置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
(Equation 6)
P = −Vx · sin φ + Vy · cos φ = sin (θ−φ)
The operation of the
ループ制御部100は、外積演算部130の外積演算出力sin(θ−φ)を、ループフィルタ140、角度更新部150およびフィードバック部120を通して帰還することにより、ゼロに収束させて安定させる。そして、ループ制御部100は、次式に示すように回転角度θに追従するように検出角度φを出力する。
sin(θ−φ)≒θ−φ≒0
即ち、φ=θとして外積演算した結果がθに対するφの誤差となる。
The
sin (θ−φ) ≈θ−
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
ループフィルタ140は、位相差検出部110から受け取った位相差(θ−φ)における予め定められた周波数以下の周波数成分を通過させる。ループフィルタ140は、ローパスフィルタでよい。ループフィルタ140は、第1AD変換部50および第2AD変換部52が発生させる量子化ノイズを低減させてよい。また、第1磁気センス部30および第2磁気センス部32が出力する第1磁場信号V1および第2磁場信号V2を変調して、第1磁場信号V1および第2磁場信号V2に含まれるDCオフセット信号を高調波成分に変換した場合、ループフィルタ140は、当該高調波成分も低減させてよい。
The
角度更新部150は、ループフィルタを通過した位相差(θ−φ)に応じて検出角度φを増減する。角度更新部150は、位相差(θ−φ)を0に近づけるように、検出角度φを更新する。一例において、角度更新部150は、前回の検出角度φに、今回の位相差(θ−φ)を積算して、今回の磁場の回転角θにより近い検出角度φを算出する。
The
以上の通り、角度検出装置10は、ループ制御部100によるフィードバックループにより、回転角度θに追従させたより正確な検出角度φを出力することができる。振幅誤差αおよび他軸感度誤差βを考慮しない場合、ループ制御部100は、フィードバックループにおいて、検出角度φに対応する正弦波信号sinφおよび余弦波信号cosφを外積演算部130にフィードバックし、第1AD変換信号Vxおよび第2AD変換信号Vyと乗算する。次に、振幅誤差αおよび他軸感度誤差βが生じる場合の構成について説明する。
As described above, the
図3は、実施例に係る回転角センサ1000の他の構成例を示す。本例の回転角センサ1000は、角度検出装置10を磁石22の径方向に配置している。磁石22の径方向に配置するとは、回転軸方向に角度検出装置10を配置しない場合を指す。角度検出装置10を磁石22の径方向に配置する場合、角度検出装置10は、回転軸24が回転する軸上に配置されておらず、磁石22から回転軸24の径方向に離れて配置される。
FIG. 3 shows another configuration example of the
図4は、フィードバック部120の具体的な構成の一例を示す。フィードバック部120は、加算部121と、加算部122と、減算部123と、第1フィードバック信号生成部161と、第2フィードバック信号生成部162とを含む。
FIG. 4 shows an example of a specific configuration of the
フィードバック部120は、振幅誤差αに対応する補正値および他軸感度誤差βに対応する補正値に基づいて、磁場の角度に対する検出角度φの誤差を調整する。フィードバック部120は、補正値算出部60から補正値δs、γs、δc、γcが入力される。フィードバック部120は、入力された補正値δs、γs、δc、γcに基づいて、振幅誤差α、他軸感度誤差βを補正する。
The
補正値δ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
第1フィードバック信号生成部161は、第1AD変換信号Vxの振幅誤差αおよび他軸感度誤差βを調整するための第1フィードバック信号F1を生成する。第1フィードバック信号生成部161は、正弦波生成部124と、正弦波生成部125と、加算部128sと、増幅部129sとを含む。本例の第1フィードバック信号生成部161は、加算部122sが出力する角度に応じたsin値および減算部123sが出力する角度に応じたsin値を用いて、第1フィードバック信号F1を生成する。
The first feedback
正弦波生成部124は、加算部122sが出力した角度φ+δs+γsに基づいて、正弦波を生成する。正弦波生成部125は、減算部123sが出力した角度φ+δs−γsに基づいて、正弦波を生成する。加算部128sは、正弦波生成部124の正弦波と正弦波生成部125の正弦波を加算する。
The sine
増幅部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
加算部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
第2フィードバック信号生成部162は、加算部122cが出力する角度を用いて、第2AD変換信号Vyの振幅誤差αおよび他軸感度誤差βを調整するための第2フィードバック信号を生成する。第2フィードバック信号生成部162は、余弦波生成部126と、余弦波生成部127と、加算部128cと、増幅部129cとを含む。本例の第2フィードバック信号生成部162は、加算部122cが出力する角度に応じたcos値および減算部123cが出力する角度に応じたcos値を用いて、第2フィードバック信号F2を生成する。
The second feedback
余弦波生成部126は、加算部122cが出力した角度φ+δc+γcに基づいて、余弦波を生成する。余弦波生成部127は、減算部123cが出力した角度φ+δc−γcに基づいて、余弦波を生成する。加算部128cは、余弦波生成部126の余弦波と余弦波生成部127の余弦波を加算する。
The cosine
増幅部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
ここで、フィードバック部120で生成される補正値δs、γs、δc、γcは、振幅誤差αおよび他軸感度誤差βを用いて、次式で示される。
この場合、外積演算部130が出力する外積Pは、次式で示される。
以上のように、実施例に係る角度検出装置10は、補正値γおよび補正値δを用いて位相差(θ−φ)を0にすることにより、外積Pを0にすることができる。したがって、角度検出装置10は、検出角度φをθに追従させることで、振幅誤差αおよび他軸感度誤差βに起因する検出角度φの誤差を低減させることができる。
As described above, the
以上の通り、角度検出装置10は、磁石22の径方向に配置される場合であっても、振幅誤差αや他軸感度誤差βに起因する検出角度φの誤差を低減することができる。角度検出装置10は、主に、加算回路および減算回路で構成されるので、簡便な回路構成で検出角度φの誤差を調整することができる。次に、磁気感度のミスマッチや他軸感度について、比較例を用いて説明する。
As described above, the
図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
実線で示す信号は、第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
例えば、回転角度θが、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
より具体的には、(数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
実線で示す信号は、第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
ここで、他軸感度が含まれる場合の磁場信号を次式のように近似する。なお、次式における近似は他軸感度による角度誤差が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
ループ制御部500は、補正値算出部60から入力された振幅誤差αに対応する補正値γおよび他軸感度誤差βに対応する補正値δに応じて、検出角度φをループ制御する。外積演算部530の出力は、ループフィルタ540を通過して、角度更新部550で更新して検出角度φとして出力される。
The
余弦波生成部524aには、加算部520および加算部521で加減算された角度φ−δ+γが入力される。余弦波生成部524bには、加算部520および加算部522で加減算された角度φ−δ−γが入力される。余弦波生成部524aおよび余弦波生成部524bの出力は、加算部528で加算されて、増幅部529で増幅される。これにより、増幅部529は、cos値として、cosγ・cos(φ−δ)を外積演算部530に入力する。
The angle φ−δ + γ added and subtracted by the
一方、正弦波生成部525には、加算部523で加算された角度φ+δが入力される。正弦波生成部525は、sin値として、sin(φ+δ)を外積演算部530に入力する。
On the other hand, the angle φ + δ added by the
ここで、補正値γおよびδについて次式が成立する。
そして、外積演算部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(φ−δ)
φ=θとして、次式を満たす。
(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 φ = θ.
図6Bは、振幅誤差αが−1<α≦0を満たす場合のループ制御部500の構成例を示す。本例では、図6Aの構成と相違する点について特に説明する。
FIG. 6B shows a configuration example of the
正弦波生成部526aには、加算部520および加算部521で加算された角度φ+δ+γが入力される。正弦波生成部526bには、加算部520および加算部522で加減算された角度φ+δ−γが入力される。正弦波生成部526aおよび正弦波生成部526bの出力は、加算部528で加算されて、増幅部529で増幅される。これにより、増幅部529は、sin値として、cosγ・sin(φ+δ)を外積演算部530に入力する。
The angle φ + δ + γ added by the
一方、余弦波生成部527には、加算部523で加減算された角度φ−δが入力される。余弦波生成部527は、cos値として、cos(φ−δ)を外積演算部530に入力する。
On the other hand, the cosine
ここで、図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
例えば、比較例に係るループ制御部500は、補正すべき誤差がある程度小さい場合、補正後の誤差は無視できるほど小さくすることができる。しかしながら、例えば、図3に示すように磁石22の径方向側に検出面を有する角度検出装置が配置される場合、誤差が大きくなる。このような場合、近似による誤差の影響が無視できない程度に大きくなり、十分な補正効果が得られない。
For example, if the error to be corrected is small to some extent, the
図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
図8は、角度検出装置10として機能するコンピュータ1900のハードウェア構成の一例を示す。また、複数のコンピュータが協働して角度検出装置10として機能してもよい。
FIG. 8 shows an example of the hardware configuration of a
実施例に係るコンピュータ1900は、ホスト・コントローラ2082により相互に接続されるCPU2000、RAM2020、グラフィック・コントローラ2075、および表示装置2080を有するCPU周辺部と、入出力コントローラ2084によりホスト・コントローラ2082に接続される通信インターフェイス2030、ハードディスクドライブ2040、およびDVDドライブ2060を有する入出力部と、入出力コントローラ2084に接続されるROM2010、フレキシブルディスク・ドライブ2050、および入出力チップ2070を有するレガシー入出力部と、を備える。
The
ホスト・コントローラ2082は、RAM2020と、高い転送レートでRAM2020をアクセスするCPU2000およびグラフィック・コントローラ2075とを接続する。CPU2000は、ROM2010およびRAM2020に格納されたプログラムに基づいて動作し、各部の制御を行う。グラフィック・コントローラ2075は、CPU2000等がRAM2020内に設けたフレーム・バッファ上に生成する画像データを取得し、表示装置2080上に表示させる。これに代えて、グラフィック・コントローラ2075は、CPU2000等が生成する画像データを格納するフレーム・バッファを、内部に含んでもよい。
The
入出力コントローラ2084は、ホスト・コントローラ2082と、比較的高速な入出力装置である通信インターフェイス2030、ハードディスクドライブ2040、DVDドライブ2060を接続する。通信インターフェイス2030は、ネットワークを介して他の装置と通信する。ハードディスクドライブ2040は、コンピュータ1900内のCPU2000が使用するプログラムおよびデータを格納する。DVDドライブ2060は、DVD−ROM2095からプログラムまたはデータを読み取り、RAM2020を介してハードディスクドライブ2040に提供する。
The input /
また、入出力コントローラ2084には、ROM2010と、フレキシブルディスク・ドライブ2050、および入出力チップ2070の比較的低速な入出力装置とが接続される。ROM2010は、コンピュータ1900が起動時に実行するブート・プログラム、および/または、コンピュータ1900のハードウェアに依存するプログラム等を格納する。フレキシブルディスク・ドライブ2050は、フレキシブルディスク2090からプログラムまたはデータを読み取り、RAM2020を介してハードディスクドライブ2040に提供する。入出力チップ2070は、フレキシブルディスク・ドライブ2050を入出力コントローラ2084へと接続すると共に、例えばパラレル・ポート、シリアル・ポート、キーボード・ポート、マウス・ポート等を介して各種の入出力装置を入出力コントローラ2084へと接続する。
Further, the input /
RAM2020を介してハードディスクドライブ2040に提供されるプログラムは、フレキシブルディスク2090、DVD−ROM2095、またはICカード等の記録媒体に格納されて利用者によって提供される。プログラムは、記録媒体から読み出され、RAM2020を介してコンピュータ1900内のハードディスクドライブ2040にインストールされ、CPU2000において実行される。プログラムは、コンピュータ1900にインストールされ、コンピュータ1900を、角度検出装置10の各構成として機能させる。
The program provided to the
プログラムに記述された情報処理は、コンピュータ1900に読込まれることにより、ソフトウェアと上述した各種のハードウェア資源とが協働した具体的手段である位相差検出部110、ループフィルタ140および角度更新部150の少なくとも一部として機能する。そして、この具体的手段によって、本実施形態におけるコンピュータ1900の使用目的に応じた情報の演算または加工を実現することにより、使用目的に応じた特有の角度検出装置10が構築される。
When the information processing described in the program is read by the
一例として、コンピュータ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
また、CPU2000は、ハードディスクドライブ2040、DVDドライブ2060(DVD−ROM2095)、フレキシブルディスク・ドライブ2050(フレキシブルディスク2090)等の外部記憶装置に格納されたファイルまたはデータベース等の中から、全部または必要な部分をDMA転送等によりRAM2020へと読み込ませ、RAM2020上のデータに対して各種の処理を行う。そして、CPU2000は、処理を終えたデータを、DMA転送等により外部記憶装置へと書き戻す。このような処理において、RAM2020は、外部記憶装置の内容を一時的に保持するものとみなせるから、本実施形態においてはRAM2020および外部記憶装置等をメモリ、記憶部、または記憶装置等と総称する。本実施形態における各種のプログラム、データ、テーブル、データベース等の各種の情報は、このような記憶装置上に格納されて、情報処理の対象となる。なお、CPU2000は、RAM2020の一部をキャッシュメモリに保持し、キャッシュメモリ上で読み書きを行うこともできる。このような形態においても、キャッシュメモリはRAM2020の機能の一部を担うから、本実施形態においては、区別して示す場合を除き、キャッシュメモリもRAM2020、メモリ、および/または記憶装置に含まれるものとする。
Further, the
また、CPU2000は、RAM2020から読み出したデータに対して、プログラムの命令列により指定された、本実施形態中に記載した各種の演算、情報の加工、条件判断、情報の検索・置換等を含む各種の処理を行い、RAM2020へと書き戻す。例えば、CPU2000は、条件判断を行う場合においては、本実施形態において示した各種の変数が、他の変数または定数と比較して、大きい、小さい、以上、以下、等しい等の条件を満たすかどうかを判断し、条件が成立した場合(または不成立であった場合)に、異なる命令列へと分岐し、またはサブルーチンを呼び出す。
Further, the
また、CPU2000は、記憶装置内のファイルまたはデータベース等に格納された情報を検索することができる。例えば、第1属性の属性値に対し第2属性の属性値がそれぞれ対応付けられた複数のエントリが記憶装置に格納されている場合において、CPU2000は、記憶装置に格納されている複数のエントリの中から第1属性の属性値が指定された条件と一致するエントリを検索し、そのエントリに格納されている第2属性の属性値を読み出すことにより、所定の条件を満たす第1属性に対応付けられた第2属性の属性値を得ることができる。
Further, the
以上に示したプログラムまたはモジュールは、外部の記録媒体に格納されてもよい。記録媒体としては、フレキシブルディスク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
以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。 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磁場信号および前記第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加算部が出力する角度に応じた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.
前記第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:
磁場の前記第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:
前記第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.
請求項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磁場信号および前記第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.
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) |
-
2018
- 2018-10-22 JP JP2018198673A patent/JP2020067302A/en active Pending
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 |