JP2011169656A - Device for detection of magnetic field - Google Patents
Device for detection of magnetic field Download PDFInfo
- Publication number
- JP2011169656A JP2011169656A JP2010031946A JP2010031946A JP2011169656A JP 2011169656 A JP2011169656 A JP 2011169656A JP 2010031946 A JP2010031946 A JP 2010031946A JP 2010031946 A JP2010031946 A JP 2010031946A JP 2011169656 A JP2011169656 A JP 2011169656A
- Authority
- JP
- Japan
- Prior art keywords
- coordinate points
- magnetic
- vector
- axis
- magnetic field
- 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.)
- Withdrawn
Links
Images
Landscapes
- Measuring Magnetic Variables (AREA)
Abstract
Description
直交する3方向のそれぞれに向けられた磁気センサで地磁気ベクトルなどの磁気ベクトルを検知する磁界検知装置に係り、特に磁気検知部に対して磁気ベクトルが三次元空間内で回動したときに、その回転軌跡を判別して、磁気ベクトルの回転運動を正確に知ることができる磁界検知装置に関する。 The present invention relates to a magnetic field detection device that detects a magnetic vector such as a geomagnetic vector with a magnetic sensor directed in each of three orthogonal directions, particularly when the magnetic vector rotates in a three-dimensional space with respect to a magnetic detection unit. The present invention relates to a magnetic field detection device capable of discriminating a rotation trajectory and accurately knowing the rotational motion of a magnetic vector.
互いに直交する3方向の磁界強度を検知する3軸の磁気センサを使用する磁界検知装置は、地磁気を検知する地磁気検知装置などとして使用される。 A magnetic field detection device using a triaxial magnetic sensor that detects magnetic field strengths in three directions orthogonal to each other is used as a geomagnetic detection device that detects geomagnetism.
特許文献1に記載された磁気式ジャイロは、3軸直交座標上に配置された地磁気を検知する3軸磁気センサを有している。この磁気式ジャイロは、三次元空間内で回転させたときに、3軸の出力データを用いて異なる2時点間の差分ベクトルを求め、その差分ベクトルが予め決められたしきい値よりも小さくなるか否かを判定して、3軸のうちのどの軸を中心として回転しているのかを特定するというものである。
The magnetic gyro described in
特許文献1に記載された磁気式ジャイロは、磁気センサの向きで決められた3軸のいずれの軸を中心として回転したときに、回転状態を検知することができるが、前記3軸以外の軸を中心として回転させたときには回転軸を認識できなくなり、どの回転平面内で回転しているのかを特定できなくなる。つまり、特許文献1に記載された1個の磁気式ジャイロだけで、三次元空間内の任意の軸を中心として回転させたときの角速度を検知できない。
The magnetic gyro described in
特許文献2には、飛行機などに搭載される姿勢センサが開示されている。この姿勢センサは、地磁気検出装置を有しているとともに、負荷おもりとこの負荷おもりに作用する重力を検知する力検出装置が設けられている。飛行機などとともに姿勢センサが傾いたときに、力検出装置の検知出力により重力の方向に対する傾きを検出し、地磁気検出装置で得られる方位出力を、力検出装置で得られた傾き姿勢に関する情報を用いて修正するというものである。
特許文献2に記載された姿勢センサは、地磁気検出装置のみならず負荷おもりとこの負荷おもりに作用する重力を検知する力検出装置が設けられているために、装置が大きくまた重くなり、例えば携帯用の小型機器などに搭載することが難しい。
The posture sensor described in
特許文献3に記載された3軸姿勢検出装置は、目的物体の姿勢を検出するものであるが、3方向の検出が可能な磁気センサと、3方向の検出が可能なジャイロセンサの双方が搭載されている。そのため、携帯用の小型機器などに搭載するのに適しておらず、また、磁気センサとジャイロセンサの双方を搭載しているため、消費電力が多くなる欠点を有している。
The three-axis attitude detection device described in
本発明は上記従来の課題を解決するものであり、直交する3軸の方向に向くセンサで地磁気ベクトルなどの磁気ベクトルを検知するものであり、磁気検知部に対して磁気ベクトルが傾いたときに、その回転運動などを高精度に検知することができる磁界検知装置を提供することを目的としている。 The present invention solves the above-described conventional problems, and detects a magnetic vector such as a geomagnetic vector with a sensor oriented in the directions of three orthogonal axes, and when the magnetic vector is inclined with respect to the magnetic detection unit. An object of the present invention is to provide a magnetic field detection device capable of detecting the rotational motion and the like with high accuracy.
本発明は、互いに直交するX方向とY方向およびZ方向が基準方向として決められた磁気検知部と、演算部とを有し、
前記磁気検知部に、X方向が磁気の方向に向けられたときに検知出力の絶対値が極大値となるX軸センサと、Y方向が磁気の方向に向けられたときに検知出力の絶対値が極大値となるY軸センサ、およびZ方向が磁気の方向に向けられたときに検知出力の絶対値が極大値となるZ軸センサが搭載され、
前記演算部は、三次元座標上に前記極大値を半径とする球面を設定し、間欠的にサンプリングした複数の前記検知出力から求められる磁気ベクトルの向きを前記球面上の座標点として求め、所定の間隔を空けて得られた2つの基準座標点を結ぶ線を基準直線とし、2つの基準座標点の間に得られた複数の座標点のそれぞれを前記基準直線に垂直に降ろした算出用ベクトルを求め、複数の前記算出用ベクトルから代表ベクトルを求め、前記代表ベクトルと前記2つの基準座標点を含む平面を求めて、前記平面と前記球面との交線を座標点の移動軌跡とすることを特徴とするものである。
The present invention includes a magnetic detection unit in which the X direction, the Y direction, and the Z direction orthogonal to each other are determined as reference directions, and a calculation unit.
An X-axis sensor in which the absolute value of the detection output becomes a maximum value when the X direction is directed to the magnetic direction and the absolute value of the detection output when the Y direction is directed to the magnetic direction. Is equipped with a Y-axis sensor in which the maximum value is detected, and a Z-axis sensor in which the absolute value of the detection output is a maximum value when the Z direction is directed to the magnetic direction,
The calculation unit sets a spherical surface having the maximum value as a radius on a three-dimensional coordinate, obtains a direction of a magnetic vector obtained from a plurality of intermittently sampled detection outputs as a coordinate point on the spherical surface, and A calculation vector in which a line connecting two reference coordinate points obtained with an interval is set as a reference straight line, and each of a plurality of coordinate points obtained between the two reference coordinate points is lowered vertically to the reference straight line. And obtaining a representative vector from a plurality of the calculation vectors, obtaining a plane including the representative vector and the two reference coordinate points, and using an intersection line of the plane and the spherical surface as a movement locus of the coordinate points. It is characterized by.
本発明は、X軸センサとY軸センサおよびZ軸センサの検知出力によって特定される磁気ベクトルの情報を球面上の座標点として複数個取得し、座標点のベクトルを用いて計算することで、絶対空間内での磁気ベクトルの移動軌跡などを演算することができる。例えば、磁気検知部のX方向とY方向およびZ方向が、空間内で傾いていても、絶対的な回転運動の検出が可能である。 The present invention obtains a plurality of magnetic vector information specified by detection outputs of the X-axis sensor, the Y-axis sensor, and the Z-axis sensor as coordinate points on the spherical surface, and calculates using the coordinate point vectors, The movement trajectory of the magnetic vector in the absolute space can be calculated. For example, even if the X direction, the Y direction, and the Z direction of the magnetic detection unit are inclined in the space, it is possible to detect an absolute rotational motion.
本発明は、例えば、前記算出用ベクトルの全てまたは一部を平均した平均値ベクトルを求め、前記平均値ベクトルと前記2つの基準座標点を含む平面を求める。あるいは、前記算出用ベクトルのうちの最大値ベクトルを求め、前記最大値ベクトルと前記2つの基準座標点を含む平面を求める。 In the present invention, for example, an average value vector obtained by averaging all or part of the calculation vectors is obtained, and a plane including the average value vector and the two reference coordinate points is obtained. Alternatively, a maximum value vector of the calculation vectors is obtained, and a plane including the maximum value vector and the two reference coordinate points is obtained.
本発明は、前記平面と前記球面との交線で描かれる円の中心と、前記球面の中心とを通る線を演算し、この線をその時点での磁気ベクトルの回転軸として求めることができる。 In the present invention, a line passing through the center of the circle drawn by the intersection line of the plane and the spherical surface and the center of the spherical surface is calculated, and this line can be obtained as the rotation axis of the magnetic vector at that time. .
さらに本発明は、2つの座標点の前記回転軸を中心とする開き角度と、2つの前記座標点が得られる時間とから、その時点での磁気ベクトルの角速度を求めることができる。 Further, according to the present invention, the angular velocity of the magnetic vector at that time can be obtained from the opening angle of the two coordinate points around the rotation axis and the time when the two coordinate points are obtained.
例えば、磁気検知部のX方向とY方向およびZ方向が、空間内で傾いていても、空間内での磁気ベクトルの運動の角速度を正確に知ることができる。さらに、本発明は、算出された角速度を前記時間で微分して角加速度を求めることも可能である。 For example, even if the X direction, the Y direction, and the Z direction of the magnetic detection unit are inclined in the space, the angular velocity of the motion of the magnetic vector in the space can be accurately known. Further, according to the present invention, the angular acceleration can be obtained by differentiating the calculated angular velocity with respect to the time.
本発明は、複数の座標点の演算値をメモリに順に記憶し、メモリから順に引き出された値を使用してその時点での前記交線を求めるものである。 In the present invention, calculation values of a plurality of coordinate points are sequentially stored in a memory, and the intersection line at that time is obtained using values sequentially extracted from the memory.
また本発明は、メモリに記憶された最新の値と、最新の値から所定サンプリング数または所定時間だけ遡った過去の値とから2つの基準座標点を求め、新たな値が得られる度に、2つの基準座標点を順次更新していくものである。 Further, the present invention obtains two reference coordinate points from the latest value stored in the memory and a past value that is a predetermined number of samplings or a predetermined time after the latest value, and each time a new value is obtained, Two reference coordinate points are sequentially updated.
本発明は、直交する3軸方向に向けられたセンサの検知出力を用いて、磁気ベクトルの絶対的な方位や運動の角速度などを高精度に検知できる。 The present invention can detect the absolute direction of a magnetic vector, the angular velocity of a motion, and the like with high accuracy by using detection outputs of sensors directed in three orthogonal directions.
また3軸方向に向けられた磁気のセンサのみで構成されるため、小型化と薄型化ができ、消費電力も少ない磁界検知装置を提供することができる。 In addition, since it is composed of only magnetic sensors directed in the three-axis directions, it is possible to provide a magnetic field detection device that can be reduced in size and thickness and consumes less power.
図1に示す本発明の実施の形態の磁界検知装置1は、地磁気検知装置として使用されるものであり、磁気検知部2を有している。図4に示すように、磁気検知部2は、互いに直交する基準軸であるX軸とY軸およびZ軸が固定軸として決められている。X軸とY軸およびZ軸の交点が、基準原点Oである。磁界検知装置1は携帯用機器などに搭載されており、磁気検知部2は、X軸とY軸およびZ軸の直交関係を維持したまま、空間内で自由に移動できる。
A magnetic
図4に示すように、磁気検知部2には、X軸センサ3がX軸に沿って固定され、Y軸センサ4がY軸に沿って固定され、Z軸センサがZ軸に沿って固定されている。X軸センサ3とY軸センサ4およびZ軸センサ5は、いずれもGMR素子で構成されている。GMR素子は、Ni−Co合金やNi−Fe合金で形成された軟磁性材料で形成された固定磁性層および自由磁性層と、固定磁性層と自由磁性層との間に挟まれた銅などの非磁性導電層とを有している。固定磁性層の下に反強磁性層が積層され、反強磁性層と固定磁性層との反強結合により、固定磁性層の磁化が固定されている。
As shown in FIG. 4, the
X軸センサ3は、地磁気のX方向に向く成分を検知するものであり、固定磁性層の磁化の向きがX軸に沿うPX方向に固定されている。自由磁性層の磁化の向きは地磁気の向きに反応する。自由磁性層の磁化の向きがPX方向と平行になるとX軸センサ3の抵抗値が極小になり、自由磁性層の磁化の向きがPX方向と逆向きになるとX軸センサ3の抵抗値が極大になる。また、自由磁性層の磁化の向きがPX方向と直交すると、抵抗値が前記極大値と極小値との平均値となる。
The
図1に示す磁場データ検知部6では、X軸センサ3と固定抵抗とが直列に接続され、X軸センサ3と固定抵抗との直列回路に電圧が与えられており、X軸センサ3と固定抵抗との間の中点電圧がX軸の検知出力として取り出される。X軸センサ3にX方向に向く磁界が与えられていないとき、またはPXに対して直交する磁界が与えられているときに、X軸の検知出力が原点となる。
In the magnetic field data detection unit 6 shown in FIG. 1, the
磁気検知部2の全体を傾け、X軸センサ3の固定磁性層の磁化の固定方向PXを地磁気ベクトルVと同じ向きにするとX軸センサ3に与えられる磁界成分が極大値となる。このときのX軸の検知出力は、前記原点に対してプラス側の極大値となる。逆に、X軸センサ3の固定磁性層の磁化の固定方向PXを地磁気ベクトルVと反対に向けると、X軸センサ3に与えられる逆向きの磁界成分が極大値となる。このときのX軸の検知出力は、前記原点に対してマイナス側の極大値となる。
When the entire
Y軸センサ4とZ軸センサ5も、それぞれ固定抵抗とが直列に接続され、Y軸センサ4またはZ軸センサ5と固定抵抗との直列回路に電圧が与えられており、各センサと固定抵抗との間の中点電圧がY軸またはZ軸の検知出力として取り出される。
Each of the Y-
Y軸センサ4の固定磁性層の磁化の固定方向PYを地磁気ベクトルVと同じ向きにすると、Y軸の検知出力は、原点に対してプラス側の極大値になる。Y軸センサ4の固定磁性層の磁化の固定方向PYを地磁気ベクトルVと反対に向けると、Y軸の検知出力は、原点に対してマイナス側の極大値となる。同様に、Z軸センサ5の固定磁性層の磁化の固定方向PZを地磁気ベクトルVと同じ向きにすると、Z軸の検知出力は、原点に対してプラス側の極大値になる。Z軸センサ5の固定磁性層の磁化の固定方向PYを地磁気ベクトルVと反対に向けると、Z軸の検知出力は、原点に対してマイナス側の極大値となる。
When the fixed direction PY of the magnetization of the fixed magnetic layer of the Y-
地磁気ベクトルVの大きさが一定であれば、X軸センサ3とY軸センサ4およびZ軸センサ5からの検知出力は、いずれもプラス側の極大値の絶対値と、マイナス側の極大値の絶対値とが同じである。
If the magnitude of the geomagnetic vector V is constant, the detection outputs from the
X軸センサ3としては、地磁気ベクトルの向きによってプラス側の検知出力とマイナス側の検知出力が得られ、プラス側の検知出力の極大値とマイナス側の検知出力の極大値とで絶対値が同じになれば、GMR素子以外の磁気センサで構成することもできる。例えば、X軸に沿ってプラス側の磁界強度のみを検知できるホール素子またはMR素子と、マイナス側の磁界強度のみを検知できるホール素子またはMR素子を組み合わせて、X軸センサ3として使用してもよい。これは、Y軸センサ4とZ軸センサ5においても同じである。
As the
図1に示すように、磁場データ検知部6で検知されたX軸とY軸およびZ軸の検知出力は、演算部10に与えられる。演算部10は、A/D変換部とCPUおよびクロック回路などから構成されている。演算部10のクロック回路の計測時間に応じて、磁場データ検知部6で検知されたX軸とY軸およびZ軸の検知出力が、短いサイクルで間欠的にサンプリングされて演算部10に読み出される。それぞれの検知出力は、演算部内に設けられた前記A/D変換部によってディジタル値に変換される。
As shown in FIG. 1, the detection outputs of the X axis, the Y axis, and the Z axis detected by the magnetic field data detection unit 6 are given to the
演算部10を構成するCPUにはメモリ7が接続されている。メモリ7には、演算処理のためのソフトウエアがプログラミングされて格納されている。演算部10の演算処理は前記ソフトウエアによって実行される。
A memory 7 is connected to the CPU constituting the
図2に示すように、演算部10は、ソフトウエアに基づいて複数段階の演算処理を行う。ディジタルデータに変換されたX軸の検知出力とY軸の検知出力およびZ軸の検知出力は、主演算部15で演算処理され、図5に示すX−Y−Zの三次元座標上の座標点データDに変換されて、データバッファ(バッファメモリ)11に格納される。クロック回路と同期して短いサイクルでサンプリングされて演算された前記座標点データDは、図3に示すデータバッファ11の格納部11aに与えられる。座標点データDが格納部11aに与えられる毎に、座標点データDが格納部11aから11mまで順に送り出され、最終段の格納部11mの座標点データDが捨てられる。磁界検知装置1が動作している間は、磁場データ検知部6から最新のデータが一定時間毎に読み出され続け、演算後の座標点データDがデータバッファ11に順番に格納されていく。
As shown in FIG. 2, the
図5に示す三次元座標のX−Y−Zの各軸は、磁界検知装置1に固定されて設定されており、図4に示すように、X軸センサ3はX軸に沿って固定され、Y軸センサ4はY軸に沿って固定され、Z軸センサ5はZ軸に沿って固定されている。
Each axis of XYZ of the three-dimensional coordinates shown in FIG. 5 is set to be fixed to the magnetic
図5に示すように、磁気検知部2が地球上のいずれかの場所に置かれると、磁気検知部2のX軸センサ3から検知出力xbが得られ、Y軸センサ4から検知出力ybが得られ、Z軸センサ5から検知出力zbが得られる。図2に示す演算部10の主演算部15において、三次元の検知出力から座標点データD(xb,yb,zb)が演算される。座標点データD(xb,yb,zb)はサンプリング周期毎に次々と得られ、データバッファ11に順に格納されていく。
As shown in FIG. 5, when the
この磁界検知装置1は、電源が投入された直後にキャリブレーションを行う必要がある。このキャリブレーションは、磁界検知装置1を搭載した携帯機器などを任意の方向へ数回だけ回転させることで行われる。主演算部15では、キャリブレーションにおいて次々に得られる座標点データDのいくつかをサンプリングする。少なくとも3個の座標点データDを得ることで、その時点での座標点データDの回転軌跡に一致する円を特定できる。この円が複数個求められ、それぞれの円の中心を通る中心線が求められ、さらに中心線の交点が演算される。主演算部10では、キャリブレーションの結果として得られた前記交点が、X−Y−Zの三次元座標の基準原点Oとなるように補正される。
The magnetic
キャリブレーションにより三次元座標の基準原点Oが得られると、その後の検知出力から演算される座標点データD(xb,yb,zb)は、三次元座標上の基準原点Oを中心とする球面G上の点として把握される。この球面Gの半径Rは、X軸センサ3、Y軸センサ4、Z軸センサ5の検知出力の極大値の絶対値に相当する。球面Gの半径Rは、そのときの測定場所によって相違し、検知される地磁気ベクトルVの絶対値の大小に応じて球面Gの半径Rも変化する。
When the reference origin O of the three-dimensional coordinates is obtained by the calibration, the coordinate point data D (xb, yb, zb) calculated from the subsequent detection output is a spherical surface G centered on the reference origin O on the three-dimensional coordinates. It is grasped as the upper point. The radius R of the spherical surface G corresponds to the absolute value of the maximum value of the detection outputs of the
図5は、磁界検知装置1に設定されているZ軸が重力方向に向けられている状態を示している。この場合、検知出力から得られる座標点データD(xb,yb,zb)と、三次元座標の基準原点Oを結ぶ線が地磁気ベクトルVである。この状態で、磁界検知装置1をZ軸を中心として(重力方向に向く軸を中心として)回転させると、次々とサンプリングされていく座標点データD(xb,yb,zb)が、Z軸を中心とし且つX−Y軸と平行な水平緯度線Haに沿って移動する。
FIG. 5 shows a state in which the Z axis set in the magnetic
ここで、演算部10において基準軸Zの方向が重力方向に向けられていることを認識していれば、水平緯度線HaとZ軸との交点を中心とする複数の座標点データDの開き角度と、サンプリング時間とから角速度を求めることが可能である。しかし、実際には、この磁界検知装置1およびこの磁界検知装置1を搭載している携帯用機器に、自らの姿勢を検知する検知装置が搭載されておらず、磁気検知装置1の装置内の基準座標であるX−Y−Zの三次元座標がどの方向に向けられているのか認識できない。
Here, if the
そこで、図2に示す演算部10では、次のソフトウエアを実行することで、磁気検知装置1を任意の軸を中心として回転させたときに、どの向きでどのような回転が行われているのかを演算できるようにしている。
Therefore, in the
図6には、磁界検知装置1が、X−Y−Z以外の任意の軸S0を中心として回転しているときに得られた座標点データD1,D2,・・・,Dnが示されている。この座標点データが得られている時点では、軸S0がどの向きであるか特定されておらず、座標点データD1,D2,・・・,Dnが移動する円の軌跡も特定できていない。
FIG. 6 shows coordinate point data D1, D2,..., Dn obtained when the magnetic
最新の座標点データD1は、図3に示すデータバッファ11の格納部11aに格納され、座標点データD2,D3,・・・,Dnは、格納部11b,11c,・・・に順に格納されている。
The latest coordinate point data D1 is stored in the
図2に示す演算部10の回転平面計算部12では、その時点での最新の座標点データD1と、それよりも過去に得られた座標点データDnを基準座標点データとして抽出し、基準座標点データD1と基準座標点データD2とを結ぶ基準直線L1を設定する。基準座標点データD1と基準座標点データDnの間隔は予め決められている。この間隔は、三次元座標上での基準直線L1の長さで規定されていてもよいし、所定のサンプリング数の前後の座標点データを基準座標点データとしてもよい。または、所定の時間で得られた2つの座標点データを基準座標点データとしてもよい。
In the rotation
基準座標点データD1と基準座標点データDnの間には複数の座標点データD2,D3,D4,・・・が存在している。磁界検知装置1が軸S0を中心として回転していれば、基準座標点データは、軸S0を中心とする円弧軌跡である緯度線H1上に現れるはずであるが、実際には、磁界検知装置1を軸S0がぶれずに回転させることは困難であり、またX軸センサ3とY軸センサ4およびZ軸センサ5にノイズが重畳するため、座標点データD2,D3,D4,・・・が必ずしも緯度線H1上を移動しない。
A plurality of coordinate point data D2, D3, D4,... Exist between the reference coordinate point data D1 and the reference coordinate point data Dn. If the magnetic
そこで、回転平面計算部12では、基準座標点データD1と基準座標点データDnとの間に得られた複数の座標点データD2,D3,D4,・・・のそれぞれから基準直線L1に延びる垂線を求め、この垂線と基準直線L1との交点から、それぞれの座標点データD2,D3,D4,・・・に延びる算出用ベクトルV2,V3,V4,・・・を求める。
Therefore, in the rotation
図9には、基準座標点データD1と基準座標点データDnとを結ぶ基準直線L1と、座標点データD4から基準直線L1に下ろした垂線Lmと、基準直線L1と垂線Lmとの交点Kが示されている。基準座標点データD1はX−Y−Zの三次元座標において(x1,y1,z1)で表され、基準座標点データDnは、(xn,yn,zn)で表される。また座標点データD4は、(x4,y4,z4)で表される。 In FIG. 9, a reference straight line L1 connecting the reference coordinate point data D1 and the reference coordinate point data Dn, a perpendicular line Lm drawn from the coordinate point data D4 to the reference straight line L1, and an intersection point K between the reference straight line L1 and the perpendicular line Lm are shown. It is shown. The reference coordinate point data D1 is represented by (x1, y1, z1) in the three-dimensional coordinates of XYZ, and the reference coordinate point data Dn is represented by (xn, yn, zn). The coordinate point data D4 is represented by (x4, y4, z4).
基準直線L1の式、すなわち基準直線L1上の任意の点の座標(xl,yl,zl)は、Tを変数として、以下で表される。 The formula of the reference straight line L1, that is, the coordinates (xl, yl, zl) of an arbitrary point on the reference straight line L1, is expressed below with T as a variable.
xl=x1+T×(x1−xn)
yl=y1+T×(y1−yn)
zl=z1+T×(z1−zn)
xl = x1 + T * (x1-xn)
yl = y1 + T × (y1-yn)
zl = z1 + T × (z1-zn)
基準直線L1上に位置する前記交点Kでの前記Tを固定値Tkとすると、前記交点Kの座標(xk,yk,zk)は、以下で表される。 Assuming that T at the intersection K located on the reference straight line L1 is a fixed value Tk, the coordinates (xk, yk, zk) of the intersection K are expressed as follows.
xk=x1+Tk×(x1−xn)
yk=y1+Tk×(y1−yn)
zk=z1+Tk×(z1−zn)
xk = x1 + Tk × (x1−xn)
yk = y1 + Tk × (y1-yn)
zk = z1 + Tk * (z1-zn)
次に、垂線Lmの式、すなわち垂線Lm上の任意の点の座標(xm,ym,zm)は、以下で表される。 Next, the expression of the perpendicular Lm, that is, the coordinates (xm, ym, zm) of an arbitrary point on the perpendicular Lm is expressed as follows.
xm={x1+Tk×(x1−xn)}−x4
ym={y1+Tk×(y1−yn)}−y4
zm={z1+Tk×(z1−zn)}−z4
xm = {x1 + Tk × (x1−xn)} − x4
ym = {y1 + Tk * (y1-yn)}-y4
zm = {z1 + Tk × (z1−zn)} − z4
基準直線L1と垂線Lmが直交するための条件は、基準直線L1と垂線Lmの内積演算がゼロとなることである。 The condition for the reference straight line L1 and the perpendicular Lm to be orthogonal is that the inner product operation of the reference straight line L1 and the perpendicular Lm is zero.
〔{x1+Tk×(x1−xn)}−x4〕×(x1−xn)+〔{y1+Tk×(y1−yn)}−y4〕×(y1−yn)+〔{z1+Tk×(z1−zn)}−z4〕×(z1−zn)=0 [{X1 + Tk × (x1−xn)} − x4] × (x1−xn) + [{y1 + Tk × (y1−yn)} − y4] × (y1−yn) + [{z1 + Tk × (z1−zn)} -Z4] * (z1-zn) = 0
上記内積演算でtkを演算することで、交点Kの座標(xk,yk,zk)を求めることができ、算出用ベクトルV4を特定できる。同様にして他の算出用ベクトルV2,V3,V4,・・・を求めることができる。 By calculating tk by the inner product calculation, the coordinates (xk, yk, zk) of the intersection K can be obtained, and the calculation vector V4 can be specified. Similarly, other calculation vectors V2, V3, V4,... Can be obtained.
図8は、基準直線L1の延長線上から、基準直線L1に沿ってそれぞれの算出用ベクトルV2,V3,V4,・・・を見たVIII矢視図である。図8に示すように、それぞれの算出用ベクトルV2,V3,V4,・・・には、ばらつきが生じている。そこで、回転平面計算部12で、基準座標点データD1と基準座標点データDnとの間に得られる全ての算出用ベクトルV2,V3,V4,・・・の平均値を演算し、平均値ベクトルを代表ベクトルとする。図8では、平均値として演算された平均値ベクトルをVaで示している。
FIG. 8 is a VIII arrow view of the calculation vectors V2, V3, V4,... Seen along the reference line L1 from the extended line of the reference line L1. As shown in FIG. 8, the calculation vectors V2, V3, V4,... Vary. Therefore, the rotation
2つの基準座標点データD1,D2と代表ベクトルである平均値ベクトルVaとを含む平面と、三次元座標上の球面Gとの交線を求めると、その時点で地磁気ベクトルの座標点が移動している軌跡となる緯度線H1を推定することができる。そして、演算部10に設けられた回転軸計算部13で軸S0を推定することができる。例えば、推定された緯度線H1上の任意の2つの点を結ぶ円弧に垂直で且つ前記平面に含まれる垂線を求め、さらに緯度線H1上の他の任意の2つの点に関して同様にして垂線を求め、2つの垂線の交点を回転中心O1として推定する。推定された回転中心O1と、X−Y−Z座標の基準原点Oとを結ぶ線が軸S0として推定される。
When the intersecting line between the plane including the two reference coordinate point data D1 and D2 and the average value vector Va which is a representative vector and the spherical surface G on the three-dimensional coordinates is obtained, the coordinate point of the geomagnetic vector moves at that time. It is possible to estimate a latitude line H1 that is a trajectory. Then, the axis S0 can be estimated by the rotation
上記演算により、磁界検知装置1が任意の軸を中心として回転したときに、その軸S0を推定でき、現時点で磁界検知装置1がどのような運動をしているかを知ることができる。例えば、過去に得られた任意の座標点データ(例えばD3とD5)を使用し、この座標点データD3,D5の回転中心O1からの開き角度を求めることができる。さらに演算部10の角速度計算部14では、前記開き角度を、2つの座標点データD3,D5のサンプリング時間で微分することで、角速度を求めることが可能である。
By the above calculation, when the magnetic
演算部10では、所定のサンプリング時間を経て新たな座標点データD1が次々に、データバッファ11の格納部に与えられてくる。したがって、新たなデータバッファ11が得られる度に、または所定のサンプリング数毎に、得られた座標点データを新たな基準座標点データD1とし、この基準座標点データD1を基準として過去の座標点データを選んで基準座標点データDnとし、同じ演算を行う。これにより、推定される緯度線H1と推定される軸S0とが順次更新されて行く。この更新を繰り返すことで、磁界検知装置1の回転運動を正確に把握でき、また常に正確な角速度を演算できるようになる。
In the
なお、回転平面計算部12で緯度線H1を推定する際に、2つの基準座標点データD1,Dnの間に位置する全ての座標点データD2,D3,D4・・・から算出用ベクトルV2,V3,V4,・・・を演算するのではなく、座標点データD2,D3,D4・・・のうちのいずれかの数個を選択して、算出用ベクトルを算出してもよい。
When the rotation
また、代表ベクトルの決め方としては、2つの基準座標点データD1,Dnの間に位置する全ての算出用ベクトルV2,V3,V4,・・・から平均値ベクトルを演算してこれを代表ベクトルとしてもよいし、2つの基準座標点データD1,Dnの間に位置する全ての算出用ベクトルV2,V3,V4,・・・のいずれか数個を選択し、選択された演算用ベクトルの平均値を代表ベクトルとしてもよい。 Further, as a method of determining the representative vector, an average value vector is calculated from all the calculation vectors V2, V3, V4,... Located between the two reference coordinate point data D1, Dn, and this is used as the representative vector. Alternatively, any one of all the calculation vectors V2, V3, V4,... Located between the two reference coordinate point data D1, Dn is selected, and the average value of the selected calculation vectors May be a representative vector.
この場合に、V2やV6のように絶対値の小さい算出用ベクトルを無視し、V4,V5のように絶対値が所定値以上の算出用ベクトルを抽出して平均ベクトルを求め、これを代表ベクトルとすると、代表ベクトルと2つの基準座標点データD1,Dnとから実際の回転平面に近い平面を算出する確率を高くできる。 In this case, a calculation vector having a small absolute value such as V2 or V6 is ignored, a calculation vector having an absolute value equal to or larger than a predetermined value is extracted, such as V4 and V5, and an average vector is obtained. Then, the probability of calculating a plane close to the actual rotation plane from the representative vector and the two reference coordinate point data D1 and Dn can be increased.
あるいは、全ての算出用ベクトルV2,V3,V4,・・・のうちの絶対値が最大である1つの算出用ベクトルを、代表ベクトルとして決めてもよい。この場合、平均値ベクトルを求める手法に比べて、推定された平面と実際の回転平面との間に誤差が生じる可能性があるが、角速度を演算するための中心軸を求める場合に、角速度の誤差をある程度の範囲に収めることができる。 Alternatively, one of the calculation vectors V2, V3, V4,... Having the maximum absolute value may be determined as the representative vector. In this case, there is a possibility that an error may occur between the estimated plane and the actual rotation plane as compared with the method for obtaining the average value vector. However, when obtaining the central axis for calculating the angular velocity, The error can be kept within a certain range.
本発明の磁界検知装置は、重力加速度などの姿勢検知手段を設けなくても、3軸の磁気センサのみで、三次元の回転運動を特定して角速度を算出できる。よって、携帯用のゲーム装置やゲーム装置の入力装置に使用することができる。またロボットの腕や関節などの姿勢の変化を検知する検知部として使用することもできる。 The magnetic field detection apparatus of the present invention can calculate an angular velocity by specifying a three-dimensional rotational motion using only a three-axis magnetic sensor without providing posture detection means such as gravitational acceleration. Therefore, it can be used for a portable game device or an input device of a game device. It can also be used as a detection unit that detects changes in posture of the robot's arms and joints.
さらに、本発明の磁界検知装置は、地磁気以外の外部磁界の磁気ベクトルの向きや動きを検知する装置として使用可能である。例えば磁気検知装置を固定し、外部の磁気ベクトルがどの方向からどのような運動で接近してきているかの検知も可能である。 Furthermore, the magnetic field detection device of the present invention can be used as a device for detecting the direction and movement of a magnetic vector of an external magnetic field other than geomagnetism. For example, it is possible to fix the magnetic detection device and detect the direction in which the external magnetic vector is approaching.
1 磁界検知装置
2 磁気検知部
3 X軸センサ
4 Y軸センサ
5 Z軸センサ
6 磁場データ検知部
7 メモリ
10 演算部
11 データバッファ
12 回転平面計算部
13 回転軸計算部
14 角速度計算部
15 主演算部
D1,Dn 基準座標点データ
D2,D3,D4,・・・ 座標点データ
V2,V3,V4,・・・ 算出用ベクトル
Va 平均値ベクトル
DESCRIPTION OF
Claims (7)
前記磁気検知部に、X方向が磁気の方向に向けられたときに検知出力の絶対値が極大値となるX軸センサと、Y方向が磁気の方向に向けられたときに検知出力の絶対値が極大値となるY軸センサ、およびZ方向が磁気の方向に向けられたときに検知出力の絶対値が極大値となるZ軸センサが搭載され、
前記演算部は、三次元座標上に前記極大値を半径とする球面を設定し、間欠的にサンプリングした複数の前記検知出力から求められる磁気ベクトルの向きを前記球面上の座標点として求め、所定の間隔を空けて得られた2つの基準座標点を結ぶ線を基準直線とし、2つの基準座標点の間に得られた複数の座標点のそれぞれを前記基準直線に垂直に降ろした算出用ベクトルを求め、複数の前記算出用ベクトルから代表ベクトルを求め、前記代表ベクトルと前記2つの基準座標点を含む平面を求めて、前記平面と前記球面との交線を座標点の移動軌跡とすることを特徴とする磁界検知装置。 A magnetic detection unit in which the X direction, the Y direction, and the Z direction orthogonal to each other are determined as reference directions, and a calculation unit;
An X-axis sensor in which the absolute value of the detection output becomes a maximum value when the X direction is directed to the magnetic direction and the absolute value of the detection output when the Y direction is directed to the magnetic direction. Is equipped with a Y-axis sensor in which the maximum value is detected, and a Z-axis sensor in which the absolute value of the detection output is a maximum value when the Z direction is directed to the magnetic direction,
The calculation unit sets a spherical surface having the maximum value as a radius on a three-dimensional coordinate, obtains a direction of a magnetic vector obtained from a plurality of intermittently sampled detection outputs as a coordinate point on the spherical surface, and A calculation vector in which a line connecting two reference coordinate points obtained with an interval is set as a reference straight line, and each of a plurality of coordinate points obtained between the two reference coordinate points is lowered vertically to the reference straight line. And obtaining a representative vector from a plurality of the calculation vectors, obtaining a plane including the representative vector and the two reference coordinate points, and using an intersection line of the plane and the spherical surface as a movement locus of the coordinate points. Magnetic field detector characterized by.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010031946A JP2011169656A (en) | 2010-02-17 | 2010-02-17 | Device for detection of magnetic field |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010031946A JP2011169656A (en) | 2010-02-17 | 2010-02-17 | Device for detection of magnetic field |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011169656A true JP2011169656A (en) | 2011-09-01 |
Family
ID=44683946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010031946A Withdrawn JP2011169656A (en) | 2010-02-17 | 2010-02-17 | Device for detection of magnetic field |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011169656A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005061990A1 (en) * | 2003-12-22 | 2005-07-07 | Asahi Kasei Emd Corporation | Azimuth measurement device |
JP2006033081A (en) * | 2004-07-12 | 2006-02-02 | Yamaha Corp | Correction method of geomagnetic sensor and portable information terminal |
JP2007240270A (en) * | 2006-03-07 | 2007-09-20 | Yamaha Corp | Magnetic data processor, processing method, and program |
JP2008224642A (en) * | 2007-03-09 | 2008-09-25 | Aichi Micro Intelligent Corp | Magnetic gyro |
JP2009002934A (en) * | 2007-04-25 | 2009-01-08 | Commiss Energ Atom | Method and device for detecting substantially invariant rotation axis |
-
2010
- 2010-02-17 JP JP2010031946A patent/JP2011169656A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005061990A1 (en) * | 2003-12-22 | 2005-07-07 | Asahi Kasei Emd Corporation | Azimuth measurement device |
JP2006033081A (en) * | 2004-07-12 | 2006-02-02 | Yamaha Corp | Correction method of geomagnetic sensor and portable information terminal |
JP2007240270A (en) * | 2006-03-07 | 2007-09-20 | Yamaha Corp | Magnetic data processor, processing method, and program |
JP2008224642A (en) * | 2007-03-09 | 2008-09-25 | Aichi Micro Intelligent Corp | Magnetic gyro |
JP2009002934A (en) * | 2007-04-25 | 2009-01-08 | Commiss Energ Atom | Method and device for detecting substantially invariant rotation axis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4890660B2 (en) | Geomagnetic detector | |
US9234754B2 (en) | Geomagnetism sensing device | |
JP4599502B1 (en) | Magnetic gyro | |
JP6474128B2 (en) | Electronic equipment with geomagnetic and acceleration sensors | |
JP5678357B2 (en) | Rotation information calculation method, rotation information calculation program, magnetic gyroscope and moving body | |
JP5374422B2 (en) | Magnetic field detector | |
JP5425671B2 (en) | Magnetic field detector | |
JP5498209B2 (en) | Magnetic field detector | |
JP5475873B2 (en) | Geomagnetic detector | |
JP5144701B2 (en) | Magnetic field detector | |
JP5457890B2 (en) | Orientation detection device | |
JP5341861B2 (en) | Magnetic field detector | |
JP5498208B2 (en) | Magnetic field detector | |
WO2012046508A1 (en) | Travel track sensing device | |
JP5498196B2 (en) | Magnetic field detector | |
JP5490576B2 (en) | Magnetic field detector | |
JP2011169656A (en) | Device for detection of magnetic field | |
JP2011185861A (en) | Geomagnetism detector | |
JP5176537B2 (en) | Motion sensing device, motion sensing method, and motion sensing circuit | |
JP5643547B2 (en) | Magnetic detector | |
Harada et al. | The International Journal of Robotics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Effective date: 20120925 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130621 |
|
A131 | Notification of reasons for refusal |
Effective date: 20130625 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A761 | Written withdrawal of application |
Effective date: 20130708 Free format text: JAPANESE INTERMEDIATE CODE: A761 |