JP2011169656A - Device for detection of magnetic field - Google Patents

Device for detection of magnetic field Download PDF

Info

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
Application number
JP2010031946A
Other languages
Japanese (ja)
Inventor
Yukimitsu Yamada
幸光 山田
Kiyo Hirobe
希世 廣部
Masanori Kawaharada
勝之 川原田
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP2010031946A priority Critical patent/JP2011169656A/en
Publication of JP2011169656A publication Critical patent/JP2011169656A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Measuring Magnetic Variables (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a magnetic field detection device that uses sensors for three axes for detecting a magnetism such as terrestrial magnetism, and calculates rotation operation and the angular velocity of a magnetic vector accurately. <P>SOLUTION: Based on detection outputs from the three magnetic sensors for detecting a magnetic vector, coordinate points of the magnetic vector are calculated. D1 and Dn out of data on the calculated coordinate points are used as data on reference coordinate points. A straight line connecting the data on the reference coordinate points D1 and Dn is used as a reference straight line L1. Perpendicular lines are drawn down to the reference straight line L1 from data on coordinate points D2, D3, D4, ... obtained between the data on the reference coordinate points D1 and Dn, and those perpendicular lines are used as vectors for calculation V2, V3, V4, .... The average value of these vectors for calculation is acquired, and it is presumed that a latitude line H1 of an arc trajectory on which the coordinate points move exists in a plane comprising the acquired mean vector and the data on the two reference coordinate points D1 and Dn. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

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 Patent Document 1 has a three-axis magnetic sensor that detects geomagnetism arranged on three-axis orthogonal coordinates. When this magnetic gyroscope is rotated in a three-dimensional space, a difference vector between two different time points is obtained using output data of three axes, and the difference vector becomes smaller than a predetermined threshold value. It is determined whether or not one of the three axes is rotating as a center.

特許文献1に記載された磁気式ジャイロは、磁気センサの向きで決められた3軸のいずれの軸を中心として回転したときに、回転状態を検知することができるが、前記3軸以外の軸を中心として回転させたときには回転軸を認識できなくなり、どの回転平面内で回転しているのかを特定できなくなる。つまり、特許文献1に記載された1個の磁気式ジャイロだけで、三次元空間内の任意の軸を中心として回転させたときの角速度を検知できない。   The magnetic gyro described in Patent Document 1 can detect the rotation state when rotating around any of the three axes determined by the orientation of the magnetic sensor. When it is rotated about the rotation axis, the rotation axis cannot be recognized, and it cannot be specified in which rotation plane it is rotating. That is, the angular velocity when rotating around an arbitrary axis in the three-dimensional space cannot be detected with only one magnetic gyro described in Patent Document 1.

特許文献2には、飛行機などに搭載される姿勢センサが開示されている。この姿勢センサは、地磁気検出装置を有しているとともに、負荷おもりとこの負荷おもりに作用する重力を検知する力検出装置が設けられている。飛行機などとともに姿勢センサが傾いたときに、力検出装置の検知出力により重力の方向に対する傾きを検出し、地磁気検出装置で得られる方位出力を、力検出装置で得られた傾き姿勢に関する情報を用いて修正するというものである。   Patent Document 2 discloses an attitude sensor mounted on an airplane or the like. This attitude sensor has a geomagnetic detection device, and is provided with a load weight and a force detection device that detects gravity acting on the load weight. When the attitude sensor is tilted with an airplane, etc., the inclination with respect to the direction of gravity is detected by the detection output of the force detection device, and the azimuth output obtained by the geomagnetism detection device is used as information on the inclination posture obtained by the force detection device. To correct.

特許文献2に記載された姿勢センサは、地磁気検出装置のみならず負荷おもりとこの負荷おもりに作用する重力を検知する力検出装置が設けられているために、装置が大きくまた重くなり、例えば携帯用の小型機器などに搭載することが難しい。   The posture sensor described in Patent Document 2 includes not only a geomagnetic detection device but also a load weight and a force detection device that detects gravity acting on the load weight. It is difficult to install in small equipment for the purpose.

特許文献3に記載された3軸姿勢検出装置は、目的物体の姿勢を検出するものであるが、3方向の検出が可能な磁気センサと、3方向の検出が可能なジャイロセンサの双方が搭載されている。そのため、携帯用の小型機器などに搭載するのに適しておらず、また、磁気センサとジャイロセンサの双方を搭載しているため、消費電力が多くなる欠点を有している。   The three-axis attitude detection device described in Patent Document 3 detects the attitude of a target object, and is equipped with both a magnetic sensor capable of detecting in three directions and a gyro sensor capable of detecting in three directions. Has been. For this reason, it is not suitable for mounting on a portable small device or the like, and both the magnetic sensor and the gyro sensor are mounted.

特開2008−224642号公報JP 2008-224642 A 特開平2−238336号公報JP-A-2-238336 特開平11−248456号公報JP 11-248456 A

本発明は上記従来の課題を解決するものであり、直交する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.

本発明の実施の形態の磁界検知装置の回路ブロック図、The circuit block diagram of the magnetic field detection apparatus of embodiment of this invention, 図1に示す磁界検知装置に設けられた演算部の機能を説明するブロック図、The block diagram explaining the function of the calculating part provided in the magnetic field detection apparatus shown in FIG. データバッファの処理動作を示す説明図、Explanatory drawing showing the processing operation of the data buffer, 地磁気検知部に設けられたX軸センサとY軸センサおよびZ軸センサの説明図、Explanatory drawing of the X-axis sensor, the Y-axis sensor and the Z-axis sensor provided in the geomagnetism detection unit, Z軸が重力方向に向けられた状態での地磁気ベクトルの検知状態を示す三次元座標の説明図、Explanatory drawing of three-dimensional coordinates showing the detection state of the geomagnetic vector with the Z-axis oriented in the direction of gravity, 磁気検知部が任意の軸を中心として回転しているときの地磁気ベクトルの検知動作を示す三次元座標の説明図、Explanatory drawing of three-dimensional coordinates showing the detection operation of the geomagnetic vector when the magnetic detection unit is rotating around an arbitrary axis, 地磁気ベクトルの演算方法を説明する説明図、Explanatory drawing explaining the calculation method of a geomagnetic vector, 地磁気ベクトルの演算方法を説明する説明図、Explanatory drawing explaining the calculation method of a geomagnetic vector, 地磁気ベクトルの演算方法を説明する説明図、Explanatory drawing explaining the calculation method of a geomagnetic vector,

図1に示す本発明の実施の形態の磁界検知装置1は、地磁気検知装置として使用されるものであり、磁気検知部2を有している。図4に示すように、磁気検知部2は、互いに直交する基準軸であるX軸とY軸およびZ軸が固定軸として決められている。X軸とY軸およびZ軸の交点が、基準原点Oである。磁界検知装置1は携帯用機器などに搭載されており、磁気検知部2は、X軸とY軸およびZ軸の直交関係を維持したまま、空間内で自由に移動できる。   A magnetic field detection device 1 according to an embodiment of the present invention shown in FIG. 1 is used as a geomagnetism detection device and has a magnetic detection unit 2. As shown in FIG. 4, in the magnetic detection unit 2, the X axis, the Y axis, and the Z axis, which are reference axes orthogonal to each other, are determined as fixed axes. The intersection of the X axis, the Y axis, and the Z axis is the reference origin O. The magnetic field detection device 1 is mounted on a portable device or the like, and the magnetic detection unit 2 can freely move in the space while maintaining the orthogonal relationship between the X axis, the Y axis, and the Z axis.

図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-axis sensor 3 is fixed along the X-axis, the Y-axis sensor 4 is fixed along the Y-axis, and the Z-axis sensor is fixed along the Z-axis. Has been. The X-axis sensor 3, the Y-axis sensor 4, and the Z-axis sensor 5 are all composed of GMR elements. The GMR element includes a pinned magnetic layer and a free magnetic layer formed of a soft magnetic material formed of a Ni—Co alloy or a Ni—Fe alloy, and copper sandwiched between the pinned magnetic layer and the free magnetic layer. And a nonmagnetic conductive layer. An antiferromagnetic layer is laminated under the pinned magnetic layer, and the magnetization of the pinned magnetic layer is pinned by antiferromagnetic coupling between the antiferromagnetic layer and the pinned magnetic layer.

X軸センサ3は、地磁気のX方向に向く成分を検知するものであり、固定磁性層の磁化の向きがX軸に沿うPX方向に固定されている。自由磁性層の磁化の向きは地磁気の向きに反応する。自由磁性層の磁化の向きがPX方向と平行になるとX軸センサ3の抵抗値が極小になり、自由磁性層の磁化の向きがPX方向と逆向きになるとX軸センサ3の抵抗値が極大になる。また、自由磁性層の磁化の向きがPX方向と直交すると、抵抗値が前記極大値と極小値との平均値となる。   The X-axis sensor 3 detects a component of the geomagnetism facing in the X direction, and the magnetization direction of the pinned magnetic layer is fixed in the PX direction along the X axis. The direction of magnetization of the free magnetic layer responds to the direction of geomagnetism. When the magnetization direction of the free magnetic layer is parallel to the PX direction, the resistance value of the X-axis sensor 3 is minimized, and when the magnetization direction of the free magnetic layer is opposite to the PX direction, the resistance value of the X-axis sensor 3 is maximized. become. Further, when the magnetization direction of the free magnetic layer is orthogonal to the PX direction, the resistance value is an average value of the maximum value and the minimum value.

図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 X-axis sensor 3 and the fixed resistance are connected in series, and a voltage is applied to the series circuit of the X-axis sensor 3 and the fixed resistance. The midpoint voltage between the resistors is taken out as the X axis detection output. When a magnetic field directed in the X direction is not applied to the X axis sensor 3, or when a magnetic field orthogonal to PX is applied, the X axis detection output is the origin.

磁気検知部2の全体を傾け、X軸センサ3の固定磁性層の磁化の固定方向PXを地磁気ベクトルVと同じ向きにするとX軸センサ3に与えられる磁界成分が極大値となる。このときのX軸の検知出力は、前記原点に対してプラス側の極大値となる。逆に、X軸センサ3の固定磁性層の磁化の固定方向PXを地磁気ベクトルVと反対に向けると、X軸センサ3に与えられる逆向きの磁界成分が極大値となる。このときのX軸の検知出力は、前記原点に対してマイナス側の極大値となる。   When the entire magnetic detection unit 2 is tilted and the fixed direction PX of the magnetization of the fixed magnetic layer of the X-axis sensor 3 is set in the same direction as the geomagnetic vector V, the magnetic field component applied to the X-axis sensor 3 becomes a maximum value. At this time, the detection output of the X axis becomes a maximum value on the plus side with respect to the origin. Conversely, when the fixed direction PX of the magnetization of the fixed magnetic layer of the X-axis sensor 3 is directed opposite to the geomagnetic vector V, the reverse magnetic field component applied to the X-axis sensor 3 has a maximum value. At this time, the detection output of the X axis is a maximum value on the minus side with respect to the origin.

Y軸センサ4とZ軸センサ5も、それぞれ固定抵抗とが直列に接続され、Y軸センサ4またはZ軸センサ5と固定抵抗との直列回路に電圧が与えられており、各センサと固定抵抗との間の中点電圧がY軸またはZ軸の検知出力として取り出される。   Each of the Y-axis sensor 4 and the Z-axis sensor 5 is also connected to a fixed resistor in series, and a voltage is applied to the Y-axis sensor 4 or a series circuit of the Z-axis sensor 5 and the fixed resistor. Is taken out as a Y-axis or Z-axis detection output.

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-axis sensor 4 is set to the same direction as the geomagnetic vector V, the detection output of the Y-axis becomes a maximum value on the plus side with respect to the origin. When the fixed direction PY of the magnetization of the fixed magnetic layer of the Y-axis sensor 4 is directed opposite to the geomagnetic vector V, the detection output of the Y-axis becomes a maximum value on the minus side with respect to the origin. Similarly, when the fixed direction PZ of the magnetization of the fixed magnetic layer of the Z-axis sensor 5 is set to the same direction as the geomagnetic vector V, the detection output of the Z-axis becomes a maximum value on the plus side with respect to the origin. When the fixed direction PY of the magnetization of the fixed magnetic layer of the Z-axis sensor 5 is directed opposite to the geomagnetic vector V, the detection output of the Z-axis becomes a maximum value on the minus side with respect to the origin.

地磁気ベクトルVの大きさが一定であれば、X軸センサ3とY軸センサ4およびZ軸センサ5からの検知出力は、いずれもプラス側の極大値の絶対値と、マイナス側の極大値の絶対値とが同じである。   If the magnitude of the geomagnetic vector V is constant, the detection outputs from the X-axis sensor 3, the Y-axis sensor 4, and the Z-axis sensor 5 are all of the absolute value of the plus side maximum value and the minus side maximum value. The absolute value is the same.

X軸センサ3としては、地磁気ベクトルの向きによってプラス側の検知出力とマイナス側の検知出力が得られ、プラス側の検知出力の極大値とマイナス側の検知出力の極大値とで絶対値が同じになれば、GMR素子以外の磁気センサで構成することもできる。例えば、X軸に沿ってプラス側の磁界強度のみを検知できるホール素子またはMR素子と、マイナス側の磁界強度のみを検知できるホール素子またはMR素子を組み合わせて、X軸センサ3として使用してもよい。これは、Y軸センサ4とZ軸センサ5においても同じである。   As the X-axis sensor 3, a positive detection output and a negative detection output are obtained depending on the direction of the geomagnetic vector, and the absolute value is the same between the maximum value of the positive detection output and the maximum value of the negative detection output. If it becomes, it can also be comprised with magnetic sensors other than a GMR element. For example, a Hall element or MR element that can detect only the positive magnetic field intensity along the X axis and a Hall element or MR element that can detect only the negative magnetic field intensity may be combined and used as the X axis sensor 3. Good. The same applies to the Y-axis sensor 4 and the Z-axis sensor 5.

図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 calculation unit 10. The arithmetic unit 10 includes an A / D converter, a CPU, a clock circuit, and the like. According to the measurement time of the clock circuit of the calculation unit 10, the detection outputs of the X axis, the Y axis, and the Z axis detected by the magnetic field data detection unit 6 are intermittently sampled in a short cycle and read out to the calculation unit 10. . Each detection output is converted into a digital value by the A / D conversion unit provided in the calculation unit.

演算部10を構成するCPUにはメモリ7が接続されている。メモリ7には、演算処理のためのソフトウエアがプログラミングされて格納されている。演算部10の演算処理は前記ソフトウエアによって実行される。   A memory 7 is connected to the CPU constituting the arithmetic unit 10. In the memory 7, software for arithmetic processing is programmed and stored. The arithmetic processing of the arithmetic unit 10 is executed by the software.

図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 arithmetic unit 10 performs a plurality of stages of arithmetic processing based on software. The X-axis detection output, the Y-axis detection output, and the Z-axis detection output converted into digital data are arithmetically processed by the main calculation unit 15, and the coordinates on the three-dimensional coordinates of XYZ shown in FIG. It is converted into point data D and stored in a data buffer (buffer memory) 11. The coordinate point data D sampled and calculated in a short cycle in synchronization with the clock circuit is supplied to the storage unit 11a of the data buffer 11 shown in FIG. Each time the coordinate point data D is given to the storage unit 11a, the coordinate point data D is sequentially sent from the storage unit 11a to 11m, and the coordinate point data D in the final stage storage unit 11m is discarded. While the magnetic field detection device 1 is operating, the latest data is continuously read from the magnetic field data detection unit 6 at regular intervals, and the coordinate point data D after calculation is sequentially stored in the data buffer 11.

図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 field detection device 1, and the X-axis sensor 3 is fixed along the X-axis as shown in FIG. The Y-axis sensor 4 is fixed along the Y-axis, and the Z-axis sensor 5 is fixed along the Z-axis.

図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 magnetic detection unit 2 is placed anywhere on the earth, the detection output xb is obtained from the X-axis sensor 3 of the magnetic detection unit 2, and the detection output yb is obtained from the Y-axis sensor 4. The detection output zb is obtained from the Z-axis sensor 5. In the main calculation unit 15 of the calculation unit 10 shown in FIG. 2, the coordinate point data D (xb, yb, zb) is calculated from the three-dimensional detection output. The coordinate point data D (xb, yb, zb) are obtained one after another for each sampling period, and are sequentially stored in the data buffer 11.

この磁界検知装置1は、電源が投入された直後にキャリブレーションを行う必要がある。このキャリブレーションは、磁界検知装置1を搭載した携帯機器などを任意の方向へ数回だけ回転させることで行われる。主演算部15では、キャリブレーションにおいて次々に得られる座標点データDのいくつかをサンプリングする。少なくとも3個の座標点データDを得ることで、その時点での座標点データDの回転軌跡に一致する円を特定できる。この円が複数個求められ、それぞれの円の中心を通る中心線が求められ、さらに中心線の交点が演算される。主演算部10では、キャリブレーションの結果として得られた前記交点が、X−Y−Zの三次元座標の基準原点Oとなるように補正される。   The magnetic field detection device 1 needs to be calibrated immediately after the power is turned on. This calibration is performed by rotating a portable device or the like equipped with the magnetic field detection device 1 several times in an arbitrary direction. The main calculation unit 15 samples some of the coordinate point data D obtained one after another in the calibration. By obtaining at least three coordinate point data D, it is possible to specify a circle that matches the rotation locus of the coordinate point data D at that time. A plurality of circles are obtained, a center line passing through the center of each circle is obtained, and an intersection of the center lines is calculated. In the main calculation unit 10, the intersection obtained as a result of the calibration is corrected so as to become the reference origin O of the three-dimensional coordinates of XYZ.

キャリブレーションにより三次元座標の基準原点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 X-axis sensor 3, the Y-axis sensor 4, and the Z-axis sensor 5. The radius R of the spherical surface G differs depending on the measurement location at that time, and the radius R of the spherical surface G also changes according to the absolute value of the detected geomagnetic vector V.

図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 field detection device 1 is oriented in the direction of gravity. In this case, a line connecting the coordinate point data D (xb, yb, zb) obtained from the detection output and the reference origin O of the three-dimensional coordinates is the geomagnetic vector V. In this state, when the magnetic field detection device 1 is rotated about the Z axis (about the axis directed in the direction of gravity), the coordinate point data D (xb, yb, zb) sampled one after another becomes the Z axis. It moves along a horizontal latitude line Ha that is centered and parallel to the XY axis.

ここで、演算部10において基準軸Zの方向が重力方向に向けられていることを認識していれば、水平緯度線HaとZ軸との交点を中心とする複数の座標点データDの開き角度と、サンプリング時間とから角速度を求めることが可能である。しかし、実際には、この磁界検知装置1およびこの磁界検知装置1を搭載している携帯用機器に、自らの姿勢を検知する検知装置が搭載されておらず、磁気検知装置1の装置内の基準座標であるX−Y−Zの三次元座標がどの方向に向けられているのか認識できない。   Here, if the calculation unit 10 recognizes that the direction of the reference axis Z is directed in the direction of gravity, the opening of a plurality of coordinate point data D centering on the intersection of the horizontal latitude line Ha and the Z axis is opened. The angular velocity can be obtained from the angle and the sampling time. However, actually, the magnetic field detection device 1 and the portable device in which the magnetic field detection device 1 is mounted are not equipped with a detection device for detecting their own posture, It cannot be recognized in which direction the three-dimensional coordinates of XYZ that are reference coordinates are directed.

そこで、図2に示す演算部10では、次のソフトウエアを実行することで、磁気検知装置1を任意の軸を中心として回転させたときに、どの向きでどのような回転が行われているのかを演算できるようにしている。   Therefore, in the calculation unit 10 shown in FIG. 2, by executing the following software, when the magnetic detection device 1 is rotated about an arbitrary axis, what kind of rotation is performed in which direction. It is possible to calculate whether or not.

図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 field detection device 1 is rotated around an arbitrary axis S0 other than XYZ. Yes. At the time when the coordinate point data is obtained, the orientation of the axis S0 is not specified, and the locus of the circle along which the coordinate point data D1, D2,.

最新の座標点データD1は、図3に示すデータバッファ11の格納部11aに格納され、座標点データD2,D3,・・・,Dnは、格納部11b,11c,・・・に順に格納されている。   The latest coordinate point data D1 is stored in the storage unit 11a of the data buffer 11 shown in FIG. 3, and the coordinate point data D2, D3,..., Dn are sequentially stored in the storage units 11b, 11c,. ing.

図2に示す演算部10の回転平面計算部12では、その時点での最新の座標点データD1と、それよりも過去に得られた座標点データDnを基準座標点データとして抽出し、基準座標点データD1と基準座標点データD2とを結ぶ基準直線L1を設定する。基準座標点データD1と基準座標点データDnの間隔は予め決められている。この間隔は、三次元座標上での基準直線L1の長さで規定されていてもよいし、所定のサンプリング数の前後の座標点データを基準座標点データとしてもよい。または、所定の時間で得られた2つの座標点データを基準座標点データとしてもよい。   In the rotation plane calculation unit 12 of the calculation unit 10 shown in FIG. 2, the latest coordinate point data D1 at that time and the coordinate point data Dn obtained in the past are extracted as reference coordinate point data. A reference straight line L1 connecting the point data D1 and the reference coordinate point data D2 is set. The interval between the reference coordinate point data D1 and the reference coordinate point data Dn is determined in advance. This interval may be defined by the length of the reference line L1 on the three-dimensional coordinates, or coordinate point data before and after a predetermined number of samplings may be used as reference coordinate point data. Alternatively, two coordinate point data obtained in a predetermined time may be used as reference coordinate point data.

基準座標点データ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 field detection device 1 rotates about the axis S0, the reference coordinate point data should appear on the latitude line H1 that is an arc locus centered on the axis S0. 1 is difficult to rotate without the axis S0 being shaken, and since noise is superimposed on the X-axis sensor 3, the Y-axis sensor 4, and the Z-axis sensor 5, the coordinate point data D2, D3, D4,. Does not necessarily move on the latitude line H1.

そこで、回転平面計算部12では、基準座標点データD1と基準座標点データDnとの間に得られた複数の座標点データD2,D3,D4,・・・のそれぞれから基準直線L1に延びる垂線を求め、この垂線と基準直線L1との交点から、それぞれの座標点データD2,D3,D4,・・・に延びる算出用ベクトルV2,V3,V4,・・・を求める。   Therefore, in the rotation plane calculation unit 12, a perpendicular extending from the plurality of coordinate point data D2, D3, D4,... Obtained between the reference coordinate point data D1 and the reference coordinate point data Dn to the reference straight line L1. From the intersection of this perpendicular and the reference line L1, calculation vectors V2, V3, V4,... Extending to the respective coordinate point data D2, D3, D4,.

図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 plane calculation unit 12 calculates the average value of all calculation vectors V2, V3, V4,... Obtained between the reference coordinate point data D1 and the reference coordinate point data Dn, and calculates the average value vector. Is a representative vector. In FIG. 8, an average value vector calculated as an average value is indicated by Va.

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 axis calculation unit 13 provided in the calculation unit 10. For example, a perpendicular perpendicular to an arc connecting two arbitrary points on the estimated latitude line H1 and included in the plane is obtained, and a perpendicular is similarly applied to any other two points on the latitude line H1. The intersection of two perpendiculars is estimated as the rotation center O1. A line connecting the estimated rotation center O1 and the reference origin O of the XYZ coordinates is estimated as the axis S0.

上記演算により、磁界検知装置1が任意の軸を中心として回転したときに、その軸S0を推定でき、現時点で磁界検知装置1がどのような運動をしているかを知ることができる。例えば、過去に得られた任意の座標点データ(例えばD3とD5)を使用し、この座標点データD3,D5の回転中心O1からの開き角度を求めることができる。さらに演算部10の角速度計算部14では、前記開き角度を、2つの座標点データD3,D5のサンプリング時間で微分することで、角速度を求めることが可能である。   By the above calculation, when the magnetic field detection device 1 rotates around an arbitrary axis, the axis S0 can be estimated, and it is possible to know what kind of motion the magnetic field detection device 1 is currently moving. For example, using arbitrary coordinate point data (for example, D3 and D5) obtained in the past, the opening angle of the coordinate point data D3 and D5 from the rotation center O1 can be obtained. Furthermore, the angular velocity calculation unit 14 of the calculation unit 10 can obtain the angular velocity by differentiating the opening angle with the sampling time of the two coordinate point data D3 and D5.

演算部10では、所定のサンプリング時間を経て新たな座標点データD1が次々に、データバッファ11の格納部に与えられてくる。したがって、新たなデータバッファ11が得られる度に、または所定のサンプリング数毎に、得られた座標点データを新たな基準座標点データD1とし、この基準座標点データD1を基準として過去の座標点データを選んで基準座標点データDnとし、同じ演算を行う。これにより、推定される緯度線H1と推定される軸S0とが順次更新されて行く。この更新を繰り返すことで、磁界検知装置1の回転運動を正確に把握でき、また常に正確な角速度を演算できるようになる。   In the calculation unit 10, new coordinate point data D <b> 1 is successively supplied to the storage unit of the data buffer 11 after a predetermined sampling time. Therefore, each time a new data buffer 11 is obtained or every predetermined number of samplings, the obtained coordinate point data is set as new reference coordinate point data D1, and past coordinate points are set with reference to the reference coordinate point data D1. The same calculation is performed by selecting data as reference coordinate point data Dn. Thereby, the estimated latitude line H1 and the estimated axis S0 are sequentially updated. By repeating this update, the rotational motion of the magnetic field detector 1 can be accurately grasped, and an accurate angular velocity can always be calculated.

なお、回転平面計算部12で緯度線H1を推定する際に、2つの基準座標点データD1,Dnの間に位置する全ての座標点データD2,D3,D4・・・から算出用ベクトルV2,V3,V4,・・・を演算するのではなく、座標点データD2,D3,D4・・・のうちのいずれかの数個を選択して、算出用ベクトルを算出してもよい。   When the rotation plane calculation unit 12 estimates the latitude line H1, the calculation vector V2, from all the coordinate point data D2, D3, D4... Located between the two reference coordinate point data D1, Dn. Instead of calculating V3, V4,..., The calculation vector may be calculated by selecting any one of the coordinate point data D2, D3, D4.

また、代表ベクトルの決め方としては、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 SYMBOLS 1 Magnetic field detection apparatus 2 Magnetic detection part 3 X-axis sensor 4 Y-axis sensor 5 Z-axis sensor 6 Magnetic field data detection part 7 Memory 10 Calculation part 11 Data buffer 12 Rotation plane calculation part 13 Rotation plane calculation part 14 Angular velocity calculation part 15 Main calculation Part D1, Dn Reference coordinate point data D2, D3, D4,... Coordinate point data V2, V3, V4,.

Claims (7)

互いに直交するX方向とY方向およびZ方向が基準方向として決められた磁気検知部と、演算部とを有し、
前記磁気検知部に、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.
前記算出用ベクトルの全てまたは一部を平均した平均値ベクトルを求め、前記平均値ベクトルと前記2つの基準座標点を含む平面を求める請求項1記載の磁界検知装置。   The magnetic field detection apparatus according to claim 1, wherein 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. 前記算出用ベクトルのうちの最大値ベクトルを求め、前記最大値ベクトルと前記2つの基準座標点を含む平面を求める請求項1記載の磁界検知装置。   The magnetic field detection device according to claim 1, wherein 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. 前記平面と前記球面との交線で描かれる円の中心と、前記球面の中心とを通る線を演算し、この線をその時点での磁気ベクトルの回転軸として求める請求項1ないし3のいずれかに記載の磁界検知装置。   The line passing through the center of the circle drawn by the intersection of the plane and the spherical surface and the center of the spherical surface is calculated, and this line is obtained as the rotation axis of the magnetic vector at that time. The magnetic field detection device according to claim 1. 2つの座標点の前記回転軸を中心とする開き角度と、2つの前記座標点が得られる時間とから、その時点での前記磁気ベクトルの角速度を求める請求項4記載の磁界検知装置。   The magnetic field detection device according to claim 4, wherein an angular velocity of the magnetic vector at that time is obtained from an opening angle of the two coordinate points around the rotation axis and a time during which the two coordinate points are obtained. 複数の座標点の演算値をメモリに順に記憶し、メモリから順に引き出された値を使用してその時点での前記交線を求める請求項1ないし5のいずれかに記載の磁界検知装置。   The magnetic field detection device according to claim 1, wherein calculated 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つの基準座標点を順次更新していく請求項6記載の磁界検知装置。   Two reference coordinate points are obtained from the latest value stored in the memory and a past value that is a predetermined number of sampling times or a predetermined time after the latest value, and each time a new value is obtained, two reference coordinate points are obtained. The magnetic field detection device according to claim 6, which is sequentially updated.
JP2010031946A 2010-02-17 2010-02-17 Device for detection of magnetic field Withdrawn JP2011169656A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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