JP5523983B2 - Correction method for magnetic sensor and evaluation method of magnetic sensor - Google Patents

Correction method for magnetic sensor and evaluation method of magnetic sensor Download PDF

Info

Publication number
JP5523983B2
JP5523983B2 JP2010182084A JP2010182084A JP5523983B2 JP 5523983 B2 JP5523983 B2 JP 5523983B2 JP 2010182084 A JP2010182084 A JP 2010182084A JP 2010182084 A JP2010182084 A JP 2010182084A JP 5523983 B2 JP5523983 B2 JP 5523983B2
Authority
JP
Japan
Prior art keywords
magnetic sensor
output voltage
voltage
output
acquisition procedure
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.)
Active
Application number
JP2010182084A
Other languages
Japanese (ja)
Other versions
JP2012042259A (en
Inventor
栄男 小関
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kohden Co Ltd
Original Assignee
Kohden 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 Kohden Co Ltd filed Critical Kohden Co Ltd
Priority to JP2010182084A priority Critical patent/JP5523983B2/en
Publication of JP2012042259A publication Critical patent/JP2012042259A/en
Application granted granted Critical
Publication of JP5523983B2 publication Critical patent/JP5523983B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、磁気抵抗効果素子を有し、バイアス磁界を印加した磁気センサの温度特性を補正する磁気センサのための補正方法、及び選別のために磁気センサを評価する磁気センサの評価方法に関する。   The present invention relates to a correction method for a magnetic sensor having a magnetoresistive effect element and correcting a temperature characteristic of a magnetic sensor to which a bias magnetic field is applied, and a magnetic sensor evaluation method for evaluating a magnetic sensor for selection.

従来から、回転検出装置、位置検出装置などの検出装置において、検出対象物である磁性体又は磁石の回転移動、直線移動などを検出するために磁気センサを用いることはよく知られている。そして、このような磁気センサに、磁気抵抗効果素子を用いることもよく知られている。磁気抵抗効果素子は外部磁界の変化により、抵抗値が変化する特性を備えており、複数個の磁気抵抗効果素子でブリッジ回路を構成することにより抵抗値の変化を電圧変化として出力する。また、この種の磁気センサには、磁気センサの特性の向上を図るために、バイアス磁界を印加することも知られている。この種の磁気センサとしては、例えば、下記特許文献1〜5に示されたものがある。特に、下記特許文献1,2には、検出対象物である磁石のNS極の判別を可能にし、磁界周期と同じ出力周期を得る磁気センサが示されている。下記特許文献3には、検出対象物として磁界を発生しない磁性体であっても、印加したバイアス磁界によって磁界変化を起して出力を得る磁気センサが示されている。下記特許文献4,5には、出力電圧の精度を向上させた磁気センサが示されている。   2. Description of the Related Art Conventionally, it is well known to use a magnetic sensor in a detection device such as a rotation detection device or a position detection device to detect rotational movement, linear movement, or the like of a magnetic body or magnet that is a detection target. It is also well known to use a magnetoresistive effect element for such a magnetic sensor. The magnetoresistive effect element has a characteristic that the resistance value changes according to a change in the external magnetic field, and a change in the resistance value is output as a voltage change by forming a bridge circuit with a plurality of magnetoresistive effect elements. It is also known that a bias magnetic field is applied to this type of magnetic sensor in order to improve the characteristics of the magnetic sensor. Examples of this type of magnetic sensor include those shown in Patent Documents 1 to 5 below. In particular, Patent Documents 1 and 2 listed below show magnetic sensors that can determine the NS pole of a magnet that is a detection target and obtain the same output period as the magnetic field period. Patent Document 3 below discloses a magnetic sensor that obtains an output by causing a magnetic field change by an applied bias magnetic field even if it is a magnetic body that does not generate a magnetic field as an object to be detected. Patent Documents 4 and 5 below show magnetic sensors with improved output voltage accuracy.

しかしながら、この種の磁気センサにおいては、検出対象物がない状態でのブリッジ回路からの出力電圧は、理想的にはハーフブリッジ回路では印加電圧の1/2、フルブリッジ回路では零であるが、実際には等価回路を組む複数の磁気抵抗効果素子の抵抗値の違いによって理想値からのずれ(以下、このずれを静オフセット電圧Osという)が生じる。また、この静オフセット電圧Osは、ハーフブリッジ回路及びフルブリッジ回路とも、温度によって方向と量に規則性がないオフセット電圧の変化(以下、この変化をオフセット温度ドリフトOdという)が生じる。すなわち、これらの静オフセット電圧Os及びオフセット温度ドリフトOdの変化方向と変化量は、たとえ製造工程が同じであっても、磁気センサごとに異なる。   However, in this type of magnetic sensor, the output voltage from the bridge circuit in the state where there is no detection target is ideally ½ of the applied voltage in the half-bridge circuit and zero in the full-bridge circuit. In practice, a deviation from an ideal value (hereinafter, this deviation is referred to as a static offset voltage Os) is caused by a difference in resistance values of a plurality of magnetoresistive elements that form an equivalent circuit. In addition, the static offset voltage Os causes a change in offset voltage having no regularity in direction and amount depending on the temperature in both the half bridge circuit and the full bridge circuit (hereinafter, this change is referred to as an offset temperature drift Od). That is, the direction and amount of change of the static offset voltage Os and the offset temperature drift Od are different for each magnetic sensor even if the manufacturing process is the same.

静オフセット電圧Osは、室温(例えば、25℃)状態において補正可能であるが、精度低下を招くオフセット温度ドリフトOdは、磁気センサごとにランダムに発生するために、室温状態での補正は不可能である。現在のところ、オフセット温度ドリフトOdの挙動原理は解明されていない。そこで、室温と加温した2つの環境からオフセット温度ドリフト係数(温度に対するオフセット温度ドリフトOdの変化率)を算出し、この係数を基に磁気センサを個別に補正する方法が、下記特許文献6には示されている。また、下記特許文献7には、定期的に出力振幅の最大値及び最小値の中心値を算出して補正する方法が示されている。   The static offset voltage Os can be corrected in a room temperature (for example, 25 ° C.) state. However, the offset temperature drift Od that causes a decrease in accuracy is randomly generated for each magnetic sensor, and thus cannot be corrected in the room temperature state. It is. At present, the principle of behavior of the offset temperature drift Od has not been elucidated. Therefore, a method of calculating an offset temperature drift coefficient (change rate of offset temperature drift Od with respect to temperature) from two environments heated to room temperature and individually correcting the magnetic sensor based on this coefficient is disclosed in Patent Document 6 below. Is shown. Patent Document 7 below discloses a method for periodically calculating and correcting the center value of the maximum value and the minimum value of the output amplitude.

特開平11−211409号公報Japanese Patent Laid-Open No. 11-21409 特開2006−208025号公報JP 2006-208025 A 特開平7−294540号公報JP 7-294540 A 特開平7−38173号公報Japanese Unexamined Patent Publication No. 7-38173 特開2007−64695号公報JP 2007-64695 A 特開2002−195822号公報JP 2002-195822 A 特開2000−131013号公報JP 2000-1331013 A

しかし、前記特許文献6の従来技術にあっては、個々の磁気センサ及び磁気センサを使用したアプリーションごとに加温する環境を必要とするので、磁気センサの出力電圧の補正又は磁気センサの選別のための評価のために、コストアップを招くという問題がある。また、前記特許文献7の従来技術にあっては、磁性体又は磁石が停止している状態及び駆動初期の状態で、温度変化に対する出力中心値を得ることができないために、前記状態では検出精度の向上を期待できないという問題がある。   However, since the conventional technology of Patent Document 6 requires an environment for heating each individual magnetic sensor and each application using the magnetic sensor, correction of the output voltage of the magnetic sensor or selection of the magnetic sensor is required. There is a problem of incurring an increase in cost for the evaluation. In the prior art of Patent Document 7, since the output center value with respect to the temperature change cannot be obtained in the state where the magnetic body or the magnet is stopped and in the initial driving state, the detection accuracy in the state is not obtained. There is a problem that improvement cannot be expected.

本発明は、バイアス磁界を印加した磁気センサは、同一温度における2条件での磁気センサの出力値の静オフセット電圧と、オフセット温度ドリフトとの間に相関があることの発見に基づくものである。前記2条件のオフセット電圧とは、外部磁界が1対の磁気抵抗効果素子の抵抗値変化に差を生じさせない状態において測定した磁気センサの出力電圧のオフセット電圧(このオフセット電圧を第1条件のオフセット電圧Os1とする)と、外部磁界を1対の磁気抵抗効果素子に対して回転させたときの磁気センサの出力電圧の最大値と最小値の中央値(出力振幅中心値)のオフセット電圧(このオフセット電圧を第2条件のオフセット電圧Os2とする)とのことである。一方、温度に対する第1条件のオフセット電圧Os1の変化率(オフセット温度ドリフト係数)と、温度に対する第2条件のオフセット電圧Os2の変化率(オフセット温度ドリフト係数)は互いに等しく、このオフセット温度ドリフト係数をKtとする。また、同一の温度における第1条件のオフセット電圧Os1と第2条件のオフセット電圧Os2との差電圧をOs2−Os1とする。この場合、磁気センサごとに、オフセット温度ドリフト係数Ktも、差電圧Os2−Os1もそれぞれ異なるが、同一種類(同一仕様)の磁気センサにおいては、下記数1が成立することを発見した。なお、この比例定数Aは、同一種類(同一仕様)の磁気センサにおいて規定される共通の定数である。また、所定温度をTrtとして、所定温度Trtにおける第1条件のオフセット電圧Os1と第2条件のオフセット電圧Os2を測定すれば、温度Tにおける磁気センサの出力電圧の補正値Oa(T)は下記数2で示されることも発見した。   The present invention is based on the discovery that a magnetic sensor to which a bias magnetic field is applied has a correlation between the static offset voltage of the output value of the magnetic sensor under two conditions at the same temperature and the offset temperature drift. The offset voltage of the two conditions is the offset voltage of the output voltage of the magnetic sensor measured in a state where the external magnetic field does not cause a difference in the resistance value change of the pair of magnetoresistive elements (this offset voltage is the offset voltage of the first condition). Voltage Os1), and an offset voltage (this is the median value of the output amplitude) of the maximum value and the minimum value of the output voltage of the magnetic sensor when the external magnetic field is rotated with respect to a pair of magnetoresistive elements. The offset voltage is the second condition offset voltage Os2. On the other hand, the rate of change of the offset voltage Os1 under the first condition with respect to temperature (offset temperature drift coefficient) and the rate of change of the offset voltage Os2 under the second condition with respect to temperature (offset temperature drift coefficient) are equal to each other. Let Kt. Further, the difference voltage between the offset voltage Os1 under the first condition and the offset voltage Os2 under the second condition at the same temperature is assumed to be Os2-Os1. In this case, although the offset temperature drift coefficient Kt and the differential voltage Os2-Os1 are different for each magnetic sensor, it has been found that the following equation 1 holds for magnetic sensors of the same type (same specifications). The proportionality constant A is a common constant defined in the same type (same specifications) of magnetic sensors. Further, when the predetermined temperature is Trt and the first condition offset voltage Os1 and the second condition offset voltage Os2 at the predetermined temperature Trt are measured, the correction value Oa (T) of the output voltage of the magnetic sensor at the temperature T is as follows. I also found that it is shown by 2.

Figure 0005523983
Figure 0005523983

Figure 0005523983
Figure 0005523983

本発明は、この発見に基づくもので、その目的は、磁気センサによってランダムに発生するオフセット温度ドリフトを所定温度(例えば、室温)で予測可能として、手間及びコストをかけずに簡単に、温度によって変化する磁気センサの出力電圧を補正したり、選別のために磁気センサを評価したりできるようにすることにある。なお、下記本発明の各構成要件の記載においては、本発明の理解を容易にするために、実施形態の対応箇所の符号を括弧内に記載しているが、本発明の各構成要件は、実施形態の符号によって示された対応箇所の構成に限定解釈されるべきものではない。   The present invention is based on this discovery. The purpose of the present invention is to make it possible to predict an offset temperature drift that is randomly generated by a magnetic sensor at a predetermined temperature (for example, room temperature). The object is to be able to correct the output voltage of the changing magnetic sensor and to evaluate the magnetic sensor for selection. In addition, in the description of each constituent element of the present invention below, in order to facilitate understanding of the present invention, reference numerals of corresponding portions of the embodiment are described in parentheses, but each constituent element of the present invention is The present invention should not be construed as being limited to the configurations of the corresponding portions indicated by the reference numerals of the embodiments.

上記目的を達成するために、本発明の構成上の特徴は、90度異なる方向に延設して直列に接続した少なくとも2つの磁気抵抗効果素子(15,16,32〜35)と、前記少なくとも2つの磁気抵抗効果素子の両延設方向に挟まれた中央方向にバイアス磁界を印加するバイアス手段(13)とを備え、前記少なくとも2つの磁気抵抗効果素子の両端に直流電圧を印加した状態で、前記少なくとも2つの磁気抵抗効果素子の接続点から、前記少なくとも2つの磁気抵抗効果素子に対して回転する外部磁界に対して基準電圧を中心に正弦波状に変化する電圧を出力する磁気センサ(10,30)に適用され、前記磁気センサからの出力電圧を補正する磁気センサのための補正方法において、外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサの出力電圧を取得する第1出力電圧取得手順(S21)と、前記第1出力電圧取得手順で取得した出力電圧の前記基準電圧からのずれ量を表す第1オフセット電圧を取得するオフセット電圧取得手順(S22)と、前記第1出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第1出力振幅中心値取得手順(S23)と、前記計算した出力振幅中心値の前記基準電圧からのずれ量を表す第2オフセット電圧と前記第1オフセット電圧との差を表すオフセット電圧差を、前記第1出力振幅中心値取得手順によって取得した出力振幅中心値から前記第1出力電圧取得手順によって取得した出力電圧を減算することにより、又は前記第1出力振幅中心値取得手順によって取得した出力振幅中心値から前記基準電圧及び前記第1オフセット電圧を減算することにより取得し、予め用意された比例定数をAとし、前記取得した第1オフセット電圧をOs1とし、前記オフセット電圧差を(Os2−Os1)とし、前記第1出力電圧取得手順及び前記第1出力振幅中心値取得手順で前記磁気センサからの出力電圧を入力したときの前記磁気センサの温度をTrtとし、かつ前記磁気センサの温度がTである条件下で、外部磁界の印加によって前記磁気センサから出力される出力電圧を、式Oa(T)=A・(Os2−Os1)・(T−Trt)+Os1によって規定される補正値Oa(T)で補正する補正手順(S31〜S34)とを設けたことにある。   In order to achieve the above object, the structural features of the present invention include at least two magnetoresistive effect elements (15, 16, 32-35) extending in 90 degrees and connected in series, Bias means (13) for applying a bias magnetic field in a central direction sandwiched between the two extending directions of the two magnetoresistive elements, and a DC voltage is applied to both ends of the at least two magnetoresistive elements. A magnetic sensor (10) that outputs a voltage that changes sinusoidally around a reference voltage with respect to an external magnetic field that rotates with respect to the at least two magnetoresistive elements from a connection point of the at least two magnetoresistive elements. 30), and a correction method for a magnetic sensor for correcting an output voltage from the magnetic sensor, wherein an external magnetic field is applied to the at least two magnetoresistive elements. A first output voltage acquisition procedure (S21) for acquiring the output voltage of the magnetic sensor in a state that does not cause a difference in resistance value change, and a deviation amount of the output voltage acquired in the first output voltage acquisition procedure from the reference voltage An offset voltage acquisition procedure (S22) for acquiring a first offset voltage representing an external magnetic field at the same temperature as when an output voltage is input from the magnetic sensor in the first output voltage acquisition procedure. The first output amplitude center value is obtained by calculating the median of the maximum value and the minimum value of the output voltage of the magnetic sensor when rotated with respect to the effect element, and acquiring the calculated median value as the output amplitude center value A step (S23) and an offset representing a difference between the second offset voltage representing the deviation of the calculated output amplitude center value from the reference voltage and the first offset voltage. Subtracting the output voltage acquired by the first output voltage acquisition procedure from the output amplitude center value acquired by the first output amplitude center value acquisition procedure, or the first output amplitude center value acquisition procedure Is obtained by subtracting the reference voltage and the first offset voltage from the center value of the output amplitude obtained in step S1, the proportionality constant prepared in advance is A, the obtained first offset voltage is Os1, and the offset voltage difference (Os2-Os1), Trt is the temperature of the magnetic sensor when the output voltage from the magnetic sensor is input in the first output voltage acquisition procedure and the first output amplitude center value acquisition procedure, and the magnetic Under the condition that the temperature of the sensor is T, the output voltage output from the magnetic sensor by applying an external magnetic field is expressed by the equation Oa (T) = A · (Os 2 −Os 1) · (T− rt) + Os1 correction procedure for correcting the correction values Oa (T) defined by (S31 to S34) and in the provision of the.

また、本発明の他の特徴は、前記第1出力電圧取得手順、前記オフセット電圧取得手順、前記第1出力振幅中心値取得手順及び前記補正手順とは独立していて、前記比例定数Aを用意するために、さらに、異なる2つの温度条件下で、外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサからの出力電圧をそれぞれ入力して、前記磁気センサからの出力電圧を入力したときの温度をそれぞれT1,T2とし、前記入力した出力電圧をそれぞれV1,V2とし、かつ温度ドリフト係数をKtとしたとき、式Kt=(V2−V1)/(T2−T1)の演算の実行により、温度ドリフト係数Ktを計算する温度ドリフト係数計算手順(S11,S12)と、外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサからの出力電圧をそれぞれ取得する第2出力電圧取得手順(S13)と、前記第2出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第2出力振幅中心値取得手順(S15)と、前記第2出力振幅中心値取得手順で取得した出力振幅中心値と前記第2出力電圧取得手順で取得した出力電圧とを用いて、前記出力振幅中心値と前記出力電圧との電圧差をオフセット電圧差として取得し、前記取得したオフセット電圧差を(Os2−Os1)として、前記比例定数Aを、式A=Kt/(Os2−Os1)の演算の実行により計算する比例定数計算手順(S17)とを設けたことにもある。この場合、磁気センサとしては、代表的な少数個についてのみ、前記手順を実行するとよい。   Another feature of the present invention is that the proportional constant A is prepared independently of the first output voltage acquisition procedure, the offset voltage acquisition procedure, the first output amplitude center value acquisition procedure, and the correction procedure. In order to achieve the above, an input voltage from the magnetic sensor in a state where an external magnetic field does not cause a difference in resistance value change between the at least two magnetoresistive elements under two different temperature conditions, When the temperature when the output voltage from the magnetic sensor is input is T1 and T2, the input voltage is V1 and V2, respectively, and the temperature drift coefficient is Kt, the equation Kt = (V2−V1) / By executing the calculation of (T2-T1), the temperature drift coefficient calculation procedure (S11, S12) for calculating the temperature drift coefficient Kt, and the external magnetic field is the at least two magnetic fields. A second output voltage acquisition procedure (S13) for acquiring the output voltage from the magnetic sensor in a state where no difference is caused in the resistance value change of the resistance effect element, and the output voltage from the magnetic sensor in the second output voltage acquisition procedure The median of the maximum value and the minimum value of the output voltage of the magnetic sensor when an external magnetic field is rotated with respect to the at least two magnetoresistive elements at the same temperature as the input is calculated. The second output amplitude center value acquisition procedure (S15) for acquiring the median value as the output amplitude center value, and the output amplitude center value and the second output voltage acquisition procedure acquired in the second output amplitude center value acquisition procedure. Using an output voltage, a voltage difference between the output amplitude center value and the output voltage is acquired as an offset voltage difference, and the acquired offset voltage difference is defined as (Os2-Os1). Serial proportional constant A, an expression A = Kt / (Os2-Os1) proportional constant calculation procedure (S17) to calculate the execution of operations and also that the provided. In this case, the procedure may be executed for only a small number of representative magnetic sensors.

また、本発明の他の特徴は、前記第1出力電圧取得手順、前記オフセット電圧取得手順、前記第1出力振幅中心値取得手順及び前記補正手順とは独立していて、前記比例定数Aを用意するために、さらに、異なる2つの温度条件下で、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対してそれぞれ回転させて前記磁気センサから出力電圧をそれぞれ入力し、前記異なる2つの温度条件下でそれぞれ入力した出力電圧の最大値と最小値との各中央値をそれぞれ出力振幅中心値として取得し、前記磁気センサからの出力電圧を入力したときの温度をそれぞれT1,T2とし、前記取得した出力振幅中心値をそれぞれV1,V2とし、かつ温度ドリフト係数をKtとしたとき、式Kt=(V2−V1)/(T2−T1)の演算の実行により、温度ドリフト係数Ktを計算する温度ドリフト係数計算手順(S11,S12)と、外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサからの出力電圧をそれぞれ取得する第2出力電圧取得手順(S13)と、前記第2出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第2出力振幅中心値取得手順(S15)と、前記第2出力振幅中心値取得手順で取得した出力振幅中心値と前記第2出力電圧取得手順で取得した出力電圧とを用いて、前記出力振幅中心値と前記出力電圧との電圧差をオフセット電圧差として取得し、前記取得したオフセット電圧差を(Os2−Os1)として、前記比例定数Aを、式A=Kt/(Os2−Os1)の演算の実行により計算する比例定数計算手順(S17)とを設けたことにもある。この場合も、磁気センサとしては、代表的な少数個についてのみ、前記手順を実行するとよい。   Another feature of the present invention is that the proportional constant A is prepared independently of the first output voltage acquisition procedure, the offset voltage acquisition procedure, the first output amplitude center value acquisition procedure, and the correction procedure. In order to achieve this, an external magnetic field is rotated with respect to the at least two magnetoresistive elements under two different temperature conditions, and an output voltage is input from each of the magnetic sensors. The respective median values of the maximum value and the minimum value of the output voltage respectively input in the above are acquired as the output amplitude center value, and the temperatures when the output voltage from the magnetic sensor is input are defined as T1 and T2, respectively. Assuming that the output amplitude center values are V1 and V2, respectively, and the temperature drift coefficient is Kt, the calculation of the equation Kt = (V2−V1) / (T2−T1) A temperature drift coefficient calculation procedure (S11, S12) for calculating the lift coefficient Kt and an output voltage from the magnetic sensor in a state where the external magnetic field does not cause a difference in resistance value change of the at least two magnetoresistive elements, respectively. The external magnetic field is rotated with respect to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the second output voltage acquisition procedure (S13) and the second output voltage acquisition procedure. A second output amplitude center value acquisition procedure (S15) for calculating the median of the maximum value and the minimum value of the output voltage of the magnetic sensor at the time, and acquiring the calculated median value as an output amplitude center value; Using the output amplitude center value acquired in the second output amplitude center value acquisition procedure and the output voltage acquired in the second output voltage acquisition procedure, the output amplitude center value A voltage difference from the output voltage is acquired as an offset voltage difference, and the proportional constant A is calculated by executing the expression A = Kt / (Os2-Os1), where the acquired offset voltage difference is (Os2-Os1). There is also the provision of a proportional constant calculation procedure (S17) for calculation. Also in this case, as a magnetic sensor, it is good to perform the said procedure only about a representative small number.

前記第1出力電圧取得手順は、例えば、外部磁界を前記磁気センサに印加しない状態で前記磁気センサから出力電圧を入力するとよい。また、前記第1出力電圧取得手順は、外部磁界を前記少なくとも2つの磁気抵抗効果素子の延設方向に挟まれた中央方向又はその反対方向に印加した状態で前記磁気センサから出力電圧を入力してもよい。さらに、前記第1出力電圧取得手順は、外部磁界を前記少なくとも2つの磁気抵抗効果素子のいずれか一方の延設方向及びその反対方向に印加した状態で前記磁気センサから出力電圧をそれぞれ入力して、前記入力した出力電圧の中央値を、前記外部磁界が少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサの出力電圧として取得してもよい。   In the first output voltage acquisition procedure, for example, an output voltage may be input from the magnetic sensor without applying an external magnetic field to the magnetic sensor. In the first output voltage acquisition procedure, an output voltage is input from the magnetic sensor in a state where an external magnetic field is applied in a central direction sandwiched in the extending direction of the at least two magnetoresistive elements or in the opposite direction. May be. Furthermore, the first output voltage acquisition procedure includes inputting an output voltage from the magnetic sensor in a state where an external magnetic field is applied in the extending direction of one of the at least two magnetoresistive elements and in the opposite direction. The median value of the input output voltage may be acquired as the output voltage of the magnetic sensor in a state in which the external magnetic field does not cause a difference in resistance value change between at least two magnetoresistive elements.

このように構成した本発明によれば、同種の全ての磁気センサについて共通な比例定数Aを代表的な磁気センサの測定により用意しておけば、各磁気センサにおいては、所定温度(例えば、室温)での静オフセット電圧Os1,Os2さえ測定すれば、磁気センサからの出力電圧を得るごとに、そのときの温度を用いて磁気センサの出力電圧を補正することができる。その結果、磁気センサの使用に当たって、各磁気センサごとのオフセット温度ドリフト係数を測定することなく、出力電圧の補正が可能になるので、手間及びコストをかけずに簡単に、温度によって変化する磁気センサの出力電圧を補正することができるようになる。   According to the present invention configured as described above, if a proportional constant A common to all magnetic sensors of the same type is prepared by measurement of a representative magnetic sensor, each magnetic sensor has a predetermined temperature (for example, room temperature). As long as the static offset voltages Os1 and Os2 are measured, the output voltage of the magnetic sensor can be corrected by using the temperature at that time each time the output voltage from the magnetic sensor is obtained. As a result, it is possible to correct the output voltage without measuring the offset temperature drift coefficient for each magnetic sensor when using the magnetic sensor, so that the magnetic sensor that changes easily with temperature without labor and cost. The output voltage can be corrected.

また、本発明の他の特徴は、前記のように構成した磁気センサの評価方法において、外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサの出力電圧を取得する第1出力電圧取得手順(S41)と、前記第1出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第1出力振幅中心値取得手順(S43)と、前記第1出力電圧取得手順で取得した出力電圧の前記基準電圧からのずれ量を表す第1オフセット電圧と、前記第1出力振幅中心値取得手順で取得した出力振幅中心値の前記基準電圧からのずれ量を表す第2オフセット電圧との電圧差を、少なくとも前記第1出力電圧取得手順で取得した出力電圧と前記第1出力振幅中心値取得手順で取得した出力振幅中心値とを用いた計算によってオフセット電圧差として取得するオフ電圧差取得手順(S45)と、前記取得したオフセット電圧差を用いて前記磁気センサを評価する評価手順(S46,S47)とを設けたことにある。   According to another aspect of the present invention, there is provided a magnetic sensor evaluation method configured as described above, wherein an output of the magnetic sensor in a state where an external magnetic field does not cause a difference in resistance value change of the at least two magnetoresistive elements. A first output voltage acquisition procedure (S41) for acquiring a voltage and an external magnetic field applied to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the first output voltage acquisition procedure A first output amplitude center value acquisition procedure (S43) for calculating the median of the maximum value and the minimum value of the output voltage of the magnetic sensor when rotated with respect to the rotation, and acquiring the calculated median value as the output amplitude center value. ), A first offset voltage representing the amount of deviation of the output voltage acquired in the first output voltage acquisition procedure from the reference voltage, and the first output amplitude center value acquisition procedure. The difference between the output amplitude center value and the second offset voltage representing the amount of deviation from the reference voltage is acquired at least by the output voltage acquired by the first output voltage acquisition procedure and the first output amplitude center value acquisition procedure. An off-voltage difference acquisition procedure (S45) for acquiring an offset voltage difference by calculation using the output amplitude center value, and an evaluation procedure (S46, S47) for evaluating the magnetic sensor using the acquired offset voltage difference; It is in having established.

前記構成の本発明の他の特徴によれば、オフセット温度ドリフト係数は、前記数1のように、電圧差Os2−Os1に比例するので、電圧差Os2−Os1の絶対値|Os2−Os1|が大きくなればなるほど、磁気センサの温度の変化に対する出力電圧のドリフト量(補正量)が大きくなる傾向にある。このことは、磁気センサに対する出力電圧の精度の悪化、出力電圧の補正の限界などをもたらすので、前記電圧差Os2−Os1を評価することにより磁気センサを評価することができることになる。したがって、所定温度(例えば、室温)における第1及び第2のオフセット電圧Os1,Os2を測定するだけで磁気センサの評価ができ、磁気センサ10の選定が簡単になる。また、前記電圧差Os2−Os1に比例定数Aを乗算した値A・(Os2−Os1)は、上記数1からも理解できる通り、オフセット温度ドリフト係数Ktに等しいので、この比例定数Aを考慮すれば、各磁気センサの出力電圧の温度による変化分を正確に評価できる。また、磁気センサの選定においては、用途等により、電圧差Os2−Os1が正であるか負であるか、すなわち磁気センサの温度ドリフトの方向に応じて磁気センサを評価及び選定することもできる。   According to another aspect of the present invention having the above-described configuration, the offset temperature drift coefficient is proportional to the voltage difference Os2-Os1 as shown in the equation 1, so that the absolute value | Os2-Os1 | of the voltage difference Os2-Os1 is As the value increases, the drift amount (correction amount) of the output voltage with respect to the temperature change of the magnetic sensor tends to increase. This brings about the deterioration of the accuracy of the output voltage for the magnetic sensor, the limit of the correction of the output voltage, etc., so that the magnetic sensor can be evaluated by evaluating the voltage difference Os2-Os1. Therefore, the magnetic sensor can be evaluated only by measuring the first and second offset voltages Os1 and Os2 at a predetermined temperature (for example, room temperature), and the selection of the magnetic sensor 10 is simplified. Further, the value A · (Os2−Os1) obtained by multiplying the voltage difference Os2−Os1 by the proportionality constant A is equal to the offset temperature drift coefficient Kt, as can be understood from the above equation 1, so that the proportionality constant A is considered. For example, the change in the output voltage of each magnetic sensor due to temperature can be accurately evaluated. In selecting a magnetic sensor, the magnetic sensor can be evaluated and selected according to whether the voltage difference Os2-Os1 is positive or negative, that is, depending on the direction of temperature drift of the magnetic sensor, depending on the application.

また、本発明の他の特徴は、前記のように構成した磁気センサの評価方法において、前記第1出力電圧取得手順及び前記第1出力振幅中心値取得手順と同様な第1出力電圧取得手順(S51)及び第1出力振幅中心値取得手順(S53)に加え、前記第1出力電圧取得手順で取得した出力電圧の前記基準電圧からのずれ量を表す第1オフセット電圧と、前記第1出力振幅中心値取得手順で取得した出力振幅中心値の前記基準電圧からのずれ量を表す第2オフセット電圧との電圧差を、少なくとも前記第1出力電圧取得手順で取得した出力電圧と前記第1出力振幅中心値取得手順で取得した出力振幅中心値とを用いた計算によってオフセット電圧差として取得し、予め用意されて同一種類の磁気センサに共通な比例定数をAとし、かつ前記取得したオフセット電圧差をOs2−Os1として、磁気センサの温度ドリフト係数Ktを、式Kt=A・(Os2−Os1)の演算により取得する温度ドリフト係数取得手順(S55,S56)と、前記取得した温度ドリフト係数Ktを用いて前記磁気センサを評価する評価手順(S57,S58)とを設けたことにある。なお、この場合、上述した場合と同様にして、比例定数Aを別途用意するとよい。   Another feature of the present invention is that, in the magnetic sensor evaluation method configured as described above, a first output voltage acquisition procedure similar to the first output voltage acquisition procedure and the first output amplitude center value acquisition procedure ( In addition to S51) and the first output amplitude center value acquisition procedure (S53), the first offset voltage representing the amount of deviation of the output voltage acquired in the first output voltage acquisition procedure from the reference voltage, and the first output amplitude A voltage difference between the output offset center value acquired in the center value acquisition procedure and the second offset voltage representing the amount of deviation from the reference voltage is at least the output voltage acquired in the first output voltage acquisition procedure and the first output amplitude. Obtained as an offset voltage difference by calculation using the output amplitude center value acquired in the center value acquisition procedure, and set A as a proportionality constant prepared in advance and common to the same type of magnetic sensor. The temperature drift coefficient acquisition procedure (S55, S56) for acquiring the temperature drift coefficient Kt of the magnetic sensor by the calculation of the equation Kt = A · (Os2−Os1) with the offset voltage difference as Os2−Os1 and the acquired temperature There is an evaluation procedure (S57, S58) for evaluating the magnetic sensor using the drift coefficient Kt. In this case, a proportional constant A may be prepared separately in the same manner as described above.

前記構成の本発明の他の特徴によれば、温度ドリフト係数Ktは、その絶対値|Kt|が大きくなればなるほど、磁気センサ10の温度の変化に対する出力電圧のドリフト量(補正量)が大きくなる。このことは、磁気センサに対する出力電圧の精度の悪化、出力電圧の補正の限界などをもたらすので、前記温度ドリフト係数Ktを評価することにより磁気センサを評価することができる。したがって、所定温度(例えば、室温)における第1及び第2の静オフセット電圧Os1,Os2を測定するだけで磁気センサの評価ができ、磁気センサの選定が簡単になる。また、この場合も、磁気センサの選定においては、用途等により、温度ドリフト係数Ktが正であるか負であるか、すなわち磁気センサの温度ドリフトの方向に応じて磁気センサを評価及び選定することもできる。   According to another characteristic of the present invention having the above-described configuration, the drift amount (correction amount) of the output voltage with respect to the temperature change of the magnetic sensor 10 increases as the absolute value | Kt | of the temperature drift coefficient Kt increases. Become. This brings about the deterioration of the accuracy of the output voltage with respect to the magnetic sensor, the limit of the correction of the output voltage, etc., so that the magnetic sensor can be evaluated by evaluating the temperature drift coefficient Kt. Therefore, the magnetic sensor can be evaluated simply by measuring the first and second static offset voltages Os1, Os2 at a predetermined temperature (for example, room temperature), and the selection of the magnetic sensor is simplified. Also in this case, when selecting a magnetic sensor, the temperature sensor is evaluated and selected depending on whether the temperature drift coefficient Kt is positive or negative, that is, depending on the direction of temperature drift of the magnetic sensor. You can also.

本発明の一実施形態に係るハーフブリッジ構成の磁気センサの断面図である。It is sectional drawing of the magnetic sensor of the half bridge structure which concerns on one Embodiment of this invention. 図1の磁気センサにおいて、磁気抵抗効果素子を配置したシリコン基板とバイアス磁石との関係を説明するための説明図である。FIG. 2 is an explanatory diagram for explaining a relationship between a silicon substrate on which a magnetoresistive effect element is arranged and a bias magnet in the magnetic sensor of FIG. 1. 前記シリコン基板上の磁気抵抗効果素子の配置方向を説明するための説明図である。It is explanatory drawing for demonstrating the arrangement direction of the magnetoresistive effect element on the said silicon substrate. 図1の磁気センサを用いて回転軸の回転を検出するための検出装置の概略図である。It is the schematic of the detection apparatus for detecting rotation of a rotating shaft using the magnetic sensor of FIG. 図4の磁気抵抗効果素子に対するバイアス磁界及び検出磁界の向きを説明するための説明図である。FIG. 5 is an explanatory diagram for explaining directions of a bias magnetic field and a detection magnetic field with respect to the magnetoresistive effect element in FIG. 4. 磁気センサにおける外部磁界の強さに対する抵抗率の変化特性、及び磁気抵抗効果素子に対する磁界の強さと抵抗の変化状態を示すグラフである。It is a graph which shows the change characteristic of the resistivity with respect to the intensity | strength of the external magnetic field in a magnetic sensor, and the change state of the magnetic field intensity and resistance with respect to a magnetoresistive effect element. 磁気センサの出力電圧の波形図である。It is a wave form diagram of the output voltage of a magnetic sensor. 種々の強さの外部磁界を1回転させた状態における磁気センサの出力電圧の波形図である。It is a wave form diagram of the output voltage of a magnetic sensor in the state which rotated the external magnetic field of various intensity | strength 1 time. 磁気センサのオフセット温度ドリフト及び静オフセット電圧の関係を説明するための説明図である。It is explanatory drawing for demonstrating the relationship between the offset temperature drift of a magnetic sensor, and a static offset voltage. 複数の磁気センサにおけるオフセット温度ドリフトと静オフセット電圧の関係を示すグラフである。It is a graph which shows the relationship between the offset temperature drift in several magnetic sensors, and a static offset voltage. 磁気センサにおける外部磁界とオフセット温度ドリフトの関係を示すグラフである。It is a graph which shows the relationship between the external magnetic field and offset temperature drift in a magnetic sensor. フルブリッジ構成の他の磁気センサの構成例を示す概略図である。It is the schematic which shows the structural example of the other magnetic sensor of a full bridge structure. 複数の他の磁気センサに関するオフセット温度ドリフトとオフセット電圧の関係を示すグラフである。It is a graph which shows the relationship between the offset temperature drift regarding several other magnetic sensors, and an offset voltage. オフセット温度ドリフトとオフセット電圧の他の関係を示すグラフである。It is a graph which shows the other relationship of offset temperature drift and an offset voltage. オフセット温度ドリフトの補正装置の概略図である。It is the schematic of the correction apparatus of offset temperature drift. 図15のコンピュータ装置にて実行される比例定数検出プログラムを示すフローチャートである。It is a flowchart which shows the proportionality constant detection program run with the computer apparatus of FIG. 前記コンピュータ装置にて実行される静オフセット電圧取得プログラムを示すフローチャートである。It is a flowchart which shows the static offset voltage acquisition program performed with the said computer apparatus. 前記コンピュータ装置にて実行される出力電圧補正プログラムを示すフローチャートである。It is a flowchart which shows the output voltage correction program performed with the said computer apparatus. 前記コンピュータ装置にて実行されるセンサ選定プログラムを示すフローチャートである。It is a flowchart which shows the sensor selection program performed with the said computer apparatus. 前記コンピュータ装置にて実行される他のセンサ選定プログラムを示すフローチャートである。It is a flowchart which shows the other sensor selection program performed with the said computer apparatus. 変形例に係る2軸へルムホルツコイルを用いた検出装置の概略図である。It is the schematic of the detection apparatus using the biaxial Helmholtz coil which concerns on a modification. 図21の検出装置による測定結果を示す出力電圧波形、基準正弦波波形、及び出力電圧と基準正弦波波形との差電圧波形を示す図である。It is a figure which shows the output voltage waveform which shows the measurement result by the detection apparatus of FIG. 21, a reference | standard sine wave waveform, and the difference voltage waveform of an output voltage and a reference | standard sine wave waveform. 図22の差電圧波形の拡大図である。It is an enlarged view of the differential voltage waveform of FIG. 正弦波波形とその2倍の周波数を有する余弦波波形を示す図である。It is a figure which shows a cosine wave waveform which has a sine wave waveform and its twice frequency. 変形例に係る磁気センサと永久磁石との配置を示す図である。It is a figure which shows arrangement | positioning with the magnetic sensor which concerns on a modification, and a permanent magnet. 図25の永久磁石による磁界の方向の変化を説明するための説明図である。It is explanatory drawing for demonstrating the change of the direction of the magnetic field by the permanent magnet of FIG.

a.磁気センサの温度ドリフト
以下、本発明の実施形態について説明するが、本発明は、バイアス磁界を印加した磁気センサにおいては、室温(例えば、25℃)の2条件での測定値がオフセット温度ドリフトと相関があることの発見に基づくものであり、まず、磁気センサ及びこの相関関係について説明しておく。
a. Hereinafter, embodiments of the present invention will be described. In the magnetic sensor to which a bias magnetic field is applied, the measured value under two conditions of room temperature (for example, 25 ° C.) is an offset temperature drift. This is based on the discovery that there is a correlation. First, the magnetic sensor and this correlation will be described.

a1.磁気センサ
磁気センサ10は、図1に示すように、モールドパッケージ11内にてリードフレーム12の下面及び上面にバイアス磁石13及びシリコン基板14をそれぞれ接着させている。モールドパッケージ11はエポキシ樹脂からなり、リードフレーム12は導電体(例えば、銅)からなる。シリコン基板14上には、図2及び図3に示すように、互いに延設方向を90度異ならせたミアンダライン状の磁気抵抗効果素子15,16が設けられている。この磁気抵抗効果素子15,16は、鉄FeとニッケルNiからなる合金とする異方性磁気抵抗効果素子(AMR素子)で構成されている。これらの磁気抵抗効果素子15,16は、直列に接続されており、その両端は接地用端子17a及び電源用端子17bにそれぞれ接続されている。磁気抵抗効果素子15,16の中間接続点は出力用端子17cに接続されている。接地用端子17a、電源用端子17b及び出力用端子17cは、複数のリード線18を介して複数の外部接続端子19にそれぞれ接続されている。
a1. Magnetic Sensor As shown in FIG. 1, the magnetic sensor 10 has a bias magnet 13 and a silicon substrate 14 bonded to the lower surface and the upper surface of a lead frame 12 in a mold package 11, respectively. The mold package 11 is made of an epoxy resin, and the lead frame 12 is made of a conductor (for example, copper). As shown in FIGS. 2 and 3, meander-line magnetoresistive elements 15 and 16 whose extending directions are different from each other by 90 degrees are provided on the silicon substrate 14. The magnetoresistive elements 15 and 16 are composed of anisotropic magnetoresistive elements (AMR elements) made of an alloy composed of iron Fe and nickel Ni. These magnetoresistive elements 15 and 16 are connected in series, and both ends thereof are connected to a grounding terminal 17a and a power supply terminal 17b, respectively. An intermediate connection point between the magnetoresistive elements 15 and 16 is connected to the output terminal 17c. The grounding terminal 17a, the power supply terminal 17b, and the output terminal 17c are connected to a plurality of external connection terminals 19 via a plurality of lead wires 18, respectively.

このように構成した磁気センサ10の使用に当たっては、外部接続端子19からリード線18を介して、電源用端子17bと接地用端子17aとの間に電源電圧(例えば、5V)を印加して、出力用端子17cにおける電圧をリード線18及び外部接続端子19を介し外部に出力電圧として取出すようになっている。したがって、この磁気センサ10は、ハーフブリッジとして機能する。また、バイアス磁石13は、図2及び図3に示すように、磁気抵抗効果素子15,16に対して、それらの延設方向により挟まれた角度を2分する方向すなわち前記両延設方向に挟まれた中央方向のバイアス磁界を磁気抵抗効果素子15,16に印加する。   In using the magnetic sensor 10 configured as described above, a power supply voltage (for example, 5V) is applied between the power supply terminal 17b and the grounding terminal 17a via the lead wire 18 from the external connection terminal 19, The voltage at the output terminal 17 c is taken out as an output voltage to the outside through the lead wire 18 and the external connection terminal 19. Therefore, this magnetic sensor 10 functions as a half bridge. 2 and 3, the bias magnet 13 divides the angle between the extending directions of the magnetoresistive elements 15 and 16 into two, that is, both extending directions. A sandwiched magnetic field in the center direction is applied to the magnetoresistive effect elements 15 and 16.

次に、前述した磁気センサ10を用いて検出対象物の回転軸21の回転を検出する場合について説明する。この場合、図4に示すように、回転軸21の先端に、回転軸21と中心軸を一致させた円盤状の永久磁石22が固定されている。この永久磁石22は、磁気センサ10によって検出される磁界を発生するための磁石であり、周方向に2極に分極すなわち一方の半円部分をN極に帯磁させるとともに、他法の半円部分をS極に帯磁させている。そして、永久磁石22の盤面を磁気センサ10のシリコン基板14、すなわち磁気抵抗効果素子15,16の延設方向を含む面に対向させている。これにより、回転軸21を回転させると、永久磁石22による外部磁界は、磁気抵抗効果素子15,16が属するシリコン基板14に平行な平面内を回転する。   Next, the case where the rotation of the rotating shaft 21 of the detection target is detected using the magnetic sensor 10 described above will be described. In this case, as shown in FIG. 4, a disc-shaped permanent magnet 22 having the rotation shaft 21 and the center axis coincided with each other is fixed to the tip of the rotation shaft 21. The permanent magnet 22 is a magnet for generating a magnetic field detected by the magnetic sensor 10, and is polarized in two poles in the circumferential direction, that is, one semicircular part is magnetized in the N pole, and the semicircular part of the other method is used. Is magnetized to the S pole. The board surface of the permanent magnet 22 is opposed to the silicon substrate 14 of the magnetic sensor 10, that is, the surface including the extending direction of the magnetoresistive elements 15 and 16. Thereby, when the rotating shaft 21 is rotated, the external magnetic field by the permanent magnet 22 rotates in a plane parallel to the silicon substrate 14 to which the magnetoresistive effect elements 15 and 16 belong.

この点について、図5を用いて説明する。磁気抵抗効果素子15,16の延設方向は、図5に示すように、X軸及びY軸に対してそれぞれ45度ずれ、かつ互い90度ずれているものとする。すると、磁気センサ10のバイアス磁石13によるバイアス磁界Hbの方向を、X軸方向として表すことができる。このとき、永久磁石22による外部磁界Hrの方向がバイアス磁界Hbの方向と同じであるときの外部磁界Hrの回転角θを「0」とする。そして、外部磁界Hrは、図示矢印で示す反時計方向に回転するものとする。このとき、磁気抵抗効果素子(R1,R2)15,16に対しては、外部磁界Hrとバイアス磁界Hbの合成ベクトルで表される磁界がそれぞれ付与される。図6は、磁界の強さに対する磁気抵抗効果素子(R1,R2)15,16の抵抗変化率をグラフ化したものである。ここで、外部磁界Hrを0度から360度まで回転させると、磁気抵抗効果素子(R1)15にはグラフ下部の実線で示す磁界が付与され、磁気抵抗効果素子(R2)16にはグラフ下部の破線で示す磁界が付与される。そして、磁気抵抗効果素子(R1)15の抵抗変化率はグラフ右部の実線で示すように変化し、磁気抵抗効果素子(R2)16の抵抗変化率はグラフ右部の破線で示すように変化する。したがって、出力電圧Voutは、図7に示すように、電源電圧Vccの半分の電圧Vcc/2を中心に正弦波状に変化すること、すなわちα・sinθ+(Vcc/2)のように変化することが推測される。なお、値αは振幅を示し、θは外部磁界Hrの回転角である。   This point will be described with reference to FIG. As shown in FIG. 5, the extending directions of the magnetoresistive effect elements 15 and 16 are shifted by 45 degrees with respect to the X axis and the Y axis, respectively, and shifted by 90 degrees. Then, the direction of the bias magnetic field Hb by the bias magnet 13 of the magnetic sensor 10 can be expressed as the X-axis direction. At this time, the rotation angle θ of the external magnetic field Hr when the direction of the external magnetic field Hr by the permanent magnet 22 is the same as the direction of the bias magnetic field Hb is set to “0”. The external magnetic field Hr rotates in the counterclockwise direction indicated by the arrow in the figure. At this time, a magnetic field represented by a composite vector of the external magnetic field Hr and the bias magnetic field Hb is applied to the magnetoresistive elements (R1, R2) 15 and 16, respectively. FIG. 6 is a graph showing the rate of change in resistance of the magnetoresistive effect elements (R1, R2) 15 and 16 with respect to the strength of the magnetic field. Here, when the external magnetic field Hr is rotated from 0 degree to 360 degrees, a magnetic field indicated by a solid line at the bottom of the graph is applied to the magnetoresistive effect element (R1) 15, and a magnetoresistive effect element (R2) 16 is provided at the bottom of the graph. A magnetic field indicated by a broken line is applied. The resistance change rate of the magnetoresistive effect element (R1) 15 changes as indicated by the solid line on the right side of the graph, and the resistance change rate of the magnetoresistive effect element (R2) 16 changes as indicated by the broken line on the right side of the graph. To do. Therefore, as shown in FIG. 7, the output voltage Vout may change in a sinusoidal shape around the voltage Vcc / 2 that is half of the power supply voltage Vcc, that is, change as α · sin θ + (Vcc / 2). Guessed. The value α indicates the amplitude, and θ is the rotation angle of the external magnetic field Hr.

このような推測のもとに、前述した図4に示す装置において、電源電圧Vccとして5V(ボルト)を採用するとともに、バイアス磁界Hbの強さとして25mT(ミリテスラ)を採用して、外部磁界Hrすなわち永久磁石22の磁界の強さを種々に異ならせて、外部磁界Hb(永久磁石22)を0度から360度まで回転させながら出力電圧Voutを測定した。測定結果は、図8に示す通りであり、外部磁界Hrの強さがバイアス磁界Hbの強さより小さい状態では、電源電圧Vccのほぼ半分の電圧Vcc/2を中心に、外部磁界Hrを生成する永久磁石22の極を判別できる近似的に1周期の正弦波状の信号となる。しかし、外部磁界Hrがバイアス磁界Hbよりも強くなる25mT以上になると、近似的な正弦波波形に波形割れが生じる。これは、図6の特性図からも分かるように、外部磁界Hrとバイアス磁界Hbの合成磁界の強さが、磁界の強さにおける負の領域にも入り、磁気抵抗効果素子(R1,R2)15,16の抵抗変化率が合成磁界の異なる値に対して同一の値を取るためと考えられる。   Based on this assumption, in the apparatus shown in FIG. 4 described above, the power supply voltage Vcc is 5 V (volts) and the bias magnetic field Hb is 25 mT (millitesla), and the external magnetic field Hr. That is, the output voltage Vout was measured while rotating the external magnetic field Hb (permanent magnet 22) from 0 degrees to 360 degrees by varying the magnetic field strength of the permanent magnet 22 in various ways. The measurement result is as shown in FIG. 8, and in the state where the strength of the external magnetic field Hr is smaller than the strength of the bias magnetic field Hb, the external magnetic field Hr is generated around the voltage Vcc / 2 which is almost half of the power supply voltage Vcc. It becomes a sinusoidal signal of approximately one cycle that can discriminate the pole of the permanent magnet 22. However, when the external magnetic field Hr is 25 mT or more, which is stronger than the bias magnetic field Hb, waveform cracking occurs in the approximate sine wave waveform. As can be seen from the characteristic diagram of FIG. 6, the strength of the combined magnetic field of the external magnetic field Hr and the bias magnetic field Hb also enters the negative region of the magnetic field strength, and the magnetoresistive effect elements (R1, R2) This is probably because the resistance change rates of 15 and 16 have the same value for different values of the combined magnetic field.

上記説明のような磁気センサにおいては、オフセット温度ドリフトが生じるものであり、本発明は、このような磁気センサ10のオフセット温度ドリフトを簡単に補正できる方法及び装置を提供しようとするものである。結論的には、本発明は、バイアス磁界を印加した磁気センサにおいては、所定の温度(例えば、室温)の2条件での2つの静オフセット電圧がオフセット温度ドリフトと相関があることを利用するものである。そして、本発明者は、次のようにして前記相関を発見した。以下、前記2条件及び相関について詳しく説明する。   In the magnetic sensor as described above, an offset temperature drift occurs, and the present invention intends to provide a method and apparatus that can easily correct such an offset temperature drift of the magnetic sensor 10. In conclusion, the present invention makes use of the fact that two static offset voltages at a predetermined temperature (for example, room temperature) are correlated with an offset temperature drift in a magnetic sensor to which a bias magnetic field is applied. It is. The inventor found the correlation as follows. Hereinafter, the two conditions and the correlation will be described in detail.

a2.相関関係の発見について
この磁気センサ10において、外部磁界Hrが「0」すなわち外部磁界Hrを印加してない状態での静オフセット電圧を第1のオフセット電圧Os1(出力電圧Voutから電圧Vcc/2を減算した電圧)として測定した。電源電圧Vccは5Vであるので、出力電圧Voutは、理想的にはVcc/2すなわち2500mVであるが、室温(25℃)という温度条件下で磁気抵抗効果素子(R1,R2)15,16の抵抗値の違いにより前記電圧Vcc/2(2500mV)からずれ、5.1mVである第1の静オフセット電圧Os1が観測された。
a2. Regarding Discovery of Correlation In this magnetic sensor 10, when the external magnetic field Hr is “0”, that is, when the external magnetic field Hr is not applied, the static offset voltage is changed to the first offset voltage Os1 (the voltage Vcc / 2 from the output voltage Vout). Subtracted voltage). Since the power supply voltage Vcc is 5 V, the output voltage Vout is ideally Vcc / 2, that is, 2500 mV. However, the magnetoresistive effect elements (R1, R2) 15 and 16 have a temperature condition of room temperature (25 ° C.). A first static offset voltage Os1 of 5.1 mV was observed, deviating from the voltage Vcc / 2 (2500 mV) due to the difference in resistance value.

一方、このようなバイアス磁界を印加した磁気センサ10は、バイアス磁界Hbよりも外部磁界Hrを弱く設定した状態で、波形が1周期になる状態で使用される。そこで、室温(25℃)において、外部磁界Hrの強さを20mTに設定して、外部磁界Hrを1回転させて、出力電圧Voutの最大値Vmaxと最小値Vminの中央値(Vmax+Vmin)/2(以下、出力振幅中心値という)の電圧Vcc/2からのずれを第2の静オフセット電圧Os2として求めた。さらに、磁気センサ10を加温して、異なる温度における第1及び第2の静オフセット電圧Os1,Os2を測定するとともに、各温度の第1及び第2の静オフセット電圧Os1,Os2と室温(25℃)における第1及び第2の静オフセット電圧Os1,Os2の差であるオフセット温度ドリフトOd1,Od2をそれぞれ計算した。そして、第1及び第2の静オフセット電圧Os1,Os2、並びに第1及び第2のオフセット温度ドリフトOd1,Od2を下記表1に示す。   On the other hand, the magnetic sensor 10 to which such a bias magnetic field is applied is used in a state in which the waveform becomes one cycle with the external magnetic field Hr set to be weaker than the bias magnetic field Hb. Therefore, at room temperature (25 ° C.), the strength of the external magnetic field Hr is set to 20 mT, the external magnetic field Hr is rotated once, and the median value (Vmax + Vmin) / 2 of the maximum value Vmax and the minimum value Vmin of the output voltage Vout. The deviation from the voltage Vcc / 2 (hereinafter referred to as the output amplitude center value) was determined as the second static offset voltage Os2. Furthermore, the magnetic sensor 10 is heated to measure the first and second static offset voltages Os1, Os2 at different temperatures, and the first and second static offset voltages Os1, Os2 at each temperature and the room temperature (25 The offset temperature drifts Od1 and Od2 which are the differences between the first and second static offset voltages Os1 and Os2 at (° C.) were calculated. The first and second static offset voltages Os1, Os2 and the first and second offset temperature drifts Od1, Od2 are shown in Table 1 below.

Figure 0005523983
Figure 0005523983

この表1から、外部磁界Hrが印加されていない状態でのオフセット温度ドリフトOd1と、外部磁界Hrが印加された状態でのオフセット温度ドリフトOd2とは一致していることも理解できる。そして、それらのオフセット温度ドリフト係数(単位温度当たりのオフセット温度ドリフトOd1,Od2の変化量)は、+20μV/℃であることも分かった。   From Table 1, it can also be understood that the offset temperature drift Od1 in a state where the external magnetic field Hr is not applied is coincident with the offset temperature drift Od2 in a state where the external magnetic field Hr is applied. It was also found that their offset temperature drift coefficients (change amounts of offset temperature drifts Od1 and Od2 per unit temperature) were +20 μV / ° C.

次に、所定の温度(例えば、室温:25℃)での2つの静オフセット電圧Os1,Os2とオフセット温度ドリフトOdとの相関について説明する。発明者は、第1及び第2の静オフセット電圧Os1,Os2と、温度Tにおける第1の静オフセット電圧Os1に対するオフセット温度ドリフトOd(T)との間には、図9に示すような相関があると仮定した。この関係を表すと下記数3のようになる。なお、下記数3においては、第1及び第2の静オフセット電圧Os1,Os2を測定した際の所定温度(室温:25℃)をTrtで表している。   Next, the correlation between the two static offset voltages Os1, Os2 and the offset temperature drift Od at a predetermined temperature (for example, room temperature: 25 ° C.) will be described. The inventor has found that there is a correlation as shown in FIG. 9 between the first and second static offset voltages Os1 and Os2 and the offset temperature drift Od (T) with respect to the first static offset voltage Os1 at the temperature T. It was assumed that there was. This relationship is expressed by the following formula 3. In the following formula 3, a predetermined temperature (room temperature: 25 ° C.) when the first and second static offset voltages Os1, Os2 are measured is represented by Trt.

Figure 0005523983
Figure 0005523983

ここで、前記表1の値を数3に当てはめると、前記表1のオフセット温度ドリフト係数は、+20μV/℃であるので、20μV/℃=1.2mV/(85℃−25℃)が成立し、数3中の温度Tkは85℃ということになる。なお、Aは比例定数1/(Tk−Trt)を表し、この場合、A=1/60である。しかし、同一の仕様に従って製造した個々の磁気センサすなわち同一種類の磁気センサ(一般的には、同一の磁気センサとして利用される個々の磁気センサ)においては、温度によるオフセット電圧の変化量と変化方向がランダムに発生することは従来から分かっている。ここで、前記数3の関係が成立するかどうかを調べるために、同一の仕様に従って製造した他の40個の磁気センサについて、所定温度(室温:25℃)において外部磁界Hrが印加されていない状態での静オフセット電圧Os1(25)と、所定温度(室温:25℃)において20mTの外部磁界Hrが印加された状態での静オフセット電圧Os2(25)(出力振幅中心値Os2(25))と、125℃において外部磁界Hrが印加されない状態のオフセット電圧Os1(125)を測定した。その測定結果を、下記表2に示す。また、下記表2においては、25℃に対する125℃の第1の静オフセット電圧Os1の温度ドリフトOd1(125)=Os1(125)−Os1(25)と、第1及び第2の静オフセット電圧Os1(25),Os2(25)の電圧差Os2(25)−Os1(25)も示している。なお、前述のように、第1及び第2のオフセット電圧Os1,Os2の温度ドリフトOd1,Od2は等しく、25℃に対する125℃の第2のオフセット電圧Os2の温度ドリフトOd2(125)=Os2(125)−Os2(25)も前記温度ドリフトOd1(125)=Os1(125)−Os1(25)に等しい。   Here, when the value in Table 1 is applied to Equation 3, since the offset temperature drift coefficient in Table 1 is +20 μV / ° C., 20 μV / ° C. = 1.2 mV / (85 ° C.−25 ° C.) is established. , The temperature Tk in Equation 3 is 85 ° C. A represents a proportional constant 1 / (Tk−Trt), and in this case, A = 1/60. However, in an individual magnetic sensor manufactured according to the same specification, that is, the same type of magnetic sensor (generally, an individual magnetic sensor used as the same magnetic sensor), the change amount and direction of the offset voltage due to temperature. It has been conventionally known that this occurs randomly. Here, in order to check whether or not the relationship of Equation 3 is satisfied, the external magnetic field Hr is not applied at a predetermined temperature (room temperature: 25 ° C.) with respect to the other 40 magnetic sensors manufactured according to the same specification. The static offset voltage Os1 (25) in a state and the static offset voltage Os2 (25) in a state where an external magnetic field Hr of 20 mT is applied at a predetermined temperature (room temperature: 25 ° C.) (output amplitude center value Os2 (25)) Then, the offset voltage Os1 (125) in a state where the external magnetic field Hr was not applied at 125 ° C. was measured. The measurement results are shown in Table 2 below. In Table 2 below, the temperature drift Od1 (125) = Os1 (125) −Os1 (25) of the first static offset voltage Os1 at 125 ° C. with respect to 25 ° C., and the first and second static offset voltages Os1. The voltage difference Os2 (25) −Os1 (25) between (25) and Os2 (25) is also shown. As described above, the temperature drifts Od1 and Od2 of the first and second offset voltages Os1 and Os2 are equal, and the temperature drift Od2 (125) = Os2 (125) of the second offset voltage Os2 at 125 ° C. with respect to 25 ° C. ) -Os2 (25) is also equal to the temperature drift Od1 (125) = Os1 (125) -Os1 (25).

Figure 0005523983
Figure 0005523983

この表2にから、第1及び第2の静オフセット電圧Os1,Os2の温度ドリフトOd1,Od2(25℃から125℃への温度上昇によるオフセット電圧Os1,Os2の変化)の変化量及び変化方向は、磁気センサごとにランダムに変化している。しかし、オフセット電圧Os1,Os2の変化方向が、温度ドリフトOd1,Od2の変化の方向と全て一致していることが分かる。つぎに、本発明者は、前記数3が成立するかどうかを調べるために、図10に示すように、各磁気センサごとに、所定温度(室温:25℃)でオフセット電圧を「0」とする点と、25℃に対する125℃の第1のオフセット電圧Os1の温度ドリフトOd1(125)=Os1(125)−Os1(25)(第2のオフセット電圧Os2の温度ドリフトOd2(125)=Os2(125)−Os2(25)に等しい)とを直線で結んだ。   From Table 2, the change amount and change direction of the temperature drifts Od1 and Od2 of the first and second static offset voltages Os1 and Os2 (changes in the offset voltages Os1 and Os2 due to the temperature rise from 25 ° C. to 125 ° C.) The magnetic sensor changes randomly. However, it can be seen that the changing directions of the offset voltages Os1 and Os2 all coincide with the changing directions of the temperature drifts Od1 and Od2. Next, in order to investigate whether or not Equation 3 holds, the inventor sets the offset voltage to “0” at a predetermined temperature (room temperature: 25 ° C.) for each magnetic sensor as shown in FIG. And a temperature drift Od1 (125) = Os1 (125) −Os1 (25) of the first offset voltage Os1 at 125 ° C. with respect to 25 ° C. (temperature drift Od2 (125) = Os2 (second offset voltage Os2) 125) -Os2 (25)).

そして、各磁気センサごとに、第1及び第2のオフセット電圧Os1(25),Os2(25)の差電圧Os2(25)−Os1(25)を85℃の位置にプロットした。図10からも分かるように、85℃における差電圧Os2(25)−Os1(25)のプロット位置は各直線上に位置した。このことは、同一の仕様で製造した各磁気センサは、前記数3の関係を満たしていることを証明している。言い換えれば、前記数3に基づいて下記数4中の方程式をたて、表2中の40個の磁気センサ10に関するオフセット電圧Os1(25),Os2(25),Os1(125)を下記数4に代入すると、温度Tkは全て85℃となった。   For each magnetic sensor, the difference voltage Os2 (25) -Os1 (25) between the first and second offset voltages Os1 (25) and Os2 (25) was plotted at a position of 85 ° C. As can be seen from FIG. 10, the plot positions of the differential voltage Os2 (25) −Os1 (25) at 85 ° C. are located on each straight line. This proves that each magnetic sensor manufactured with the same specification satisfies the relationship of the above equation (3). In other words, an equation in the following equation 4 is established based on the equation 3, and the offset voltages Os1 (25), Os2 (25), Os1 (125) relating to the 40 magnetic sensors 10 in Table 2 are expressed by the following equation 4 All the temperatures Tk were 85 ° C.

Figure 0005523983
Figure 0005523983

a3.外部磁界と温度ドリフトの関係
次に、外部磁界の強さと温度ドリフトとの関係について説明する。上記説明では、温度が25℃、50℃、75℃、100℃及び125℃の環境下で、外部磁界を印加しない状態での静オフセット電圧Os1と、20mTの外部磁界を1回転させたときの静オフセット電圧Os2を測定した。ここでは、前記温度の環境化で上記と同じ磁気センサ10について、外部磁界をさらに10mT、15mT、25mT、30mT及び35mTに変化させて、静オフセット電圧Os2を測定した。測定結果を、上記外部磁界を印加しない場合及び上記外部磁界が20mTの場合を加えて、下記表3に示す。前記いずれの場合も、オフセット温度ドリフト係数は、上記外部磁界を印加しない場合及び上記外部磁界が20mTの場合と同様に、20μV/℃であった。そして、温度Tに対するオフセット電圧Os1,Os2の関係を、外部磁界が0mT(外部磁界を印加しない状態)〜35mTにわたって5mTごとに図11に示している。
a3. Relationship between External Magnetic Field and Temperature Drift Next, the relationship between external magnetic field strength and temperature drift will be described. In the above description, the static offset voltage Os1 without applying an external magnetic field and an external magnetic field of 20 mT are rotated once in an environment of temperatures of 25 ° C., 50 ° C., 75 ° C., 100 ° C. and 125 ° C. The static offset voltage Os2 was measured. Here, the static offset voltage Os2 was measured by changing the external magnetic field to 10 mT, 15 mT, 25 mT, 30 mT, and 35 mT for the same magnetic sensor 10 as described above under the temperature environment. The measurement results are shown in Table 3 below, with the case where the external magnetic field is not applied and the case where the external magnetic field is 20 mT added. In any case, the offset temperature drift coefficient was 20 μV / ° C., as in the case where the external magnetic field was not applied and the case where the external magnetic field was 20 mT. The relationship between the offset voltages Os1 and Os2 with respect to the temperature T is shown in FIG. 11 every 5 mT over the range from 0 mT (state where no external magnetic field is applied) to 35 mT.

Figure 0005523983
Figure 0005523983

このように、外部磁界の強さを変化させても、オフセット温度ドリフト係数は常に一定であり、上述した数3は外部磁界を変化させても成立する。したがって、外部磁界を異ならせても、上記数3に基づく後述する出力電圧Voutの補正は可能である。また、オフセット温度ドリフト係数は常に一定であるので、第1及び第2の静オフセット電圧Os1,Os2を測定した所定温度Trt(室温)は、第1及び第2の静オフセット電圧Os1,Os2を測定した温度が同じであれば、変更してもよい。そして、この所定温度Trtの変更によって、上記数3中の温度Tkも変化する。ただし、この事実はあくまでも同一の磁気センサに対するものであり、たとえ同一仕様の磁気センサであっても、前記オフセット温度ドリフト係数は磁気センサごとに異なる。   Thus, even if the strength of the external magnetic field is changed, the offset temperature drift coefficient is always constant, and the above Equation 3 is established even if the external magnetic field is changed. Therefore, even if the external magnetic field is changed, the later-described output voltage Vout can be corrected based on the above formula 3. Since the offset temperature drift coefficient is always constant, the first and second static offset voltages Os1, Os2 are measured at a predetermined temperature Trt (room temperature) at which the first and second static offset voltages Os1, Os2 are measured. If the temperature is the same, it may be changed. The temperature Tk in the above equation 3 also changes by changing the predetermined temperature Trt. However, this fact is only for the same magnetic sensor, and even if the magnetic sensor has the same specification, the offset temperature drift coefficient differs for each magnetic sensor.

b.他の磁気センサの温度ドリフト
次に、他の磁気センサによる温度ドリフトに関して、上述した相関関係(数3の関係)が成立するかを調べた結果を示す。他の磁気センサは、図12に示すように、フルブリッジ構成の磁気センサ30である。この磁気センサ30は、シリコン基板31上に、ミアンダライン状の磁気抵抗効果素子32,33,34,35を備えている。これらの磁気抵抗効果素子32,33,34,35は、鉄FeとニッケルNiとコバルトCoからなる合金とする異方性磁気抵抗効果素子(AMR素子)で構成されている。磁気抵抗効果素子32,33は延設方向を互いに90度異ならせているとともに、磁気抵抗効果素子34,35も延設方向を互いに90度異ならせている。磁気抵抗効果素子32,35の延設方向は同じであり、磁気抵抗効果素子33,34の延設方向も同じである。この磁気センサ30も上記磁気センサ10と同様な図示しないバイアス磁石を備えており、磁気抵抗効果素子32,33,34,35の各延設方向に対して45度の方向から上記磁気センサ10と同様な25mTのバイアス磁界が付与されている(図示矢印参照)。
b. Temperature drift of other magnetic sensors Next, the results of examining whether the above-described correlation (the relationship of Equation 3) is established regarding the temperature drift by other magnetic sensors will be shown. As shown in FIG. 12, the other magnetic sensor is a magnetic sensor 30 having a full bridge configuration. The magnetic sensor 30 includes meander-line magnetoresistive elements 32, 33, 34, and 35 on a silicon substrate 31. These magnetoresistive effect elements 32, 33, 34, and 35 are composed of anisotropic magnetoresistive effect elements (AMR elements) made of an alloy of iron Fe, nickel Ni, and cobalt Co. The extending directions of the magnetoresistive elements 32 and 33 are different from each other by 90 degrees, and the extending directions of the magnetoresistive elements 34 and 35 are also different from each other by 90 degrees. The extending direction of the magnetoresistive effect elements 32 and 35 is the same, and the extending direction of the magnetoresistive effect elements 33 and 34 is also the same. The magnetic sensor 30 also includes a bias magnet (not shown) similar to the magnetic sensor 10, and the magnetic sensor 10 and the magnetic sensor 10 are viewed from 45 degrees with respect to the extending directions of the magnetoresistive elements 32, 33, 34, and 35. A similar bias magnetic field of 25 mT is applied (see the arrow in the figure).

磁気抵抗効果素子32,33は、直列に接続されており、その両端は接地用端子36a及び電源用端子36bにそれぞれ接続されている。磁気抵抗効果素子32,33の中間接続点は出力用端子36cに接続され、出力用端子36cからは第1の出力電圧Vout1が出力されるようになっている。磁気抵抗効果素子34,35も、直列に接続されており、その両端は接地用端子36a及び電源用端子36bにそれぞれ接続されている。磁気抵抗効果素子34,35の中間接続点は出力用端子36dに接続され、出力用端子36dからは第2の出力電圧Vout2が出力されるようになっている。出力用端子36cは差動増幅器37の正側入力に接続され、出力用端子36dは差動増幅器37の負側入力に接続されている。差動増幅器37は、第1及び第2の出力電圧Vout1,Vout2の差電圧Vout1−Vout2を磁気センサ30の出力電圧Voutとして出力する。他の構成は、上記磁気センサ10と同じである。そして、この場合も、上記図4に示すように回転軸21に固定した永久磁石22を磁気センサ30のシリコン基板31に対向させて回転させるように構成する。   The magnetoresistive elements 32 and 33 are connected in series, and both ends thereof are connected to the grounding terminal 36a and the power supply terminal 36b, respectively. An intermediate connection point between the magnetoresistive elements 32 and 33 is connected to the output terminal 36c, and the first output voltage Vout1 is output from the output terminal 36c. The magnetoresistive elements 34 and 35 are also connected in series, and both ends thereof are connected to the grounding terminal 36a and the power supply terminal 36b, respectively. An intermediate connection point between the magnetoresistive elements 34 and 35 is connected to the output terminal 36d, and the second output voltage Vout2 is output from the output terminal 36d. The output terminal 36 c is connected to the positive side input of the differential amplifier 37, and the output terminal 36 d is connected to the negative side input of the differential amplifier 37. The differential amplifier 37 outputs the difference voltage Vout1−Vout2 between the first and second output voltages Vout1 and Vout2 as the output voltage Vout of the magnetic sensor 30. Other configurations are the same as those of the magnetic sensor 10. Also in this case, as shown in FIG. 4, the permanent magnet 22 fixed to the rotation shaft 21 is rotated so as to face the silicon substrate 31 of the magnetic sensor 30.

そして、この場合、前記構成の25個の磁気センサ30に対して、上記磁気センサ10の場合と同様に、25℃(室温)において外部磁界Hrが「0」すなわち外部磁界Hrを印加してない状態での静オフセット電圧を第1のオフセット電圧Os1(25)として測定した。また、25℃(室温)において外部磁界Hrを10mT,15mT,35mTとした状態での静オフセット電圧(出力振幅中心値)を第2のオフセット電圧Os2(25)としてそれぞれ測定した。さらに、125℃において外部磁界Hrが「0」すなわち外部磁界Hrを印加してない状態での静オフセット電圧をオフセット電圧Os1(125)として測定した。そして、これらのオフセット電圧を下記表4に示す。また、下記表4においては、25℃に対する125℃の第1のオフセット電圧Os1の温度ドリフトOd1(125)=Os1(125)−Os1(25)と、外部磁界10mT,15mT,35mTごとの第1及び第2の静オフセット電圧Os1(25),Os2(25)の電圧差Os2(25)−Os1(25)も示している。なお、このフルブリッジ構成の磁気センサ30の出力電圧(差動増幅器37の出力電圧)は、本来的には、基準電圧とする0Vを中心に正弦波状に変化するものであるので、オフセット電圧は、上記ハーフブリッジ構成の磁気センサ10の場合の基準電圧Vcc/2とは異なり、基準電圧0Vからのずれを表している。   In this case, as in the case of the magnetic sensor 10, the external magnetic field Hr is “0” at 25 ° C. (room temperature), that is, the external magnetic field Hr is not applied to the 25 magnetic sensors 30 configured as described above. The static offset voltage in the state was measured as the first offset voltage Os1 (25). Further, the static offset voltage (output amplitude center value) in the state where the external magnetic field Hr was 10 mT, 15 mT, and 35 mT at 25 ° C. (room temperature) was measured as the second offset voltage Os2 (25). Further, the static offset voltage in the state where the external magnetic field Hr is “0”, that is, the external magnetic field Hr is not applied at 125 ° C. was measured as the offset voltage Os1 (125). These offset voltages are shown in Table 4 below. In Table 4 below, the temperature drift Od1 (125) = Os1 (125) −Os1 (25) of the first offset voltage Os1 at 125 ° C. with respect to 25 ° C., and the first for each external magnetic field of 10 mT, 15 mT, and 35 mT. The voltage difference Os2 (25) -Os1 (25) between the second static offset voltages Os1 (25) and Os2 (25) is also shown. The output voltage of the magnetic sensor 30 having the full bridge configuration (the output voltage of the differential amplifier 37) inherently changes in a sine wave shape around 0 V as the reference voltage. Unlike the reference voltage Vcc / 2 in the case of the magnetic sensor 10 having the half bridge configuration, it represents a deviation from the reference voltage 0V.

Figure 0005523983
Figure 0005523983

この表4からも、第1及び第2のオフセット電圧Os1,Os2の温度ドリフトOd1,Od2(25℃から125℃への温度上昇による第1及び第2のオフセット電圧Os1,Os2の変化)の変化量及び変化方向は、磁気センサごとにランダムに変化している。しかし、第1及び第2のオフセット電圧Os1,Os2の変化方向が、温度ドリフトOd1,Od2の変化の方向と全て一致していることが分かる。そして、この場合も、図13に示すように、各磁気センサごとに、所定温度(室温:25℃)でオフセット電圧を「0」とする点と、25℃に対する125℃の第1のオフセット電圧Os1の温度ドリフトOd1(125)=Os1(125)−Os1(25)とを直線で結んだ。   Also from Table 4, changes in the temperature drifts Od1 and Od2 of the first and second offset voltages Os1 and Os2 (changes in the first and second offset voltages Os1 and Os2 due to the temperature rise from 25 ° C. to 125 ° C.). The amount and direction of change vary randomly from one magnetic sensor to another. However, it can be seen that the changing directions of the first and second offset voltages Os1, Os2 all coincide with the changing directions of the temperature drifts Od1, Od2. Also in this case, as shown in FIG. 13, for each magnetic sensor, the offset voltage is set to “0” at a predetermined temperature (room temperature: 25 ° C.) and the first offset voltage of 125 ° C. with respect to 25 ° C. The temperature drift of Os1 Od1 (125) = Os1 (125) −Os1 (25) was connected by a straight line.

そして、外部磁界10mT,15mT,35mTのそれぞれに対して各磁気センサごとに、第1及び第2のオフセット電圧Os1(25),Os2(25)の電圧差Os2(25)−Os1(25)を65℃、78℃、300℃の位置にプロットした。図13からも分かるように、前記65℃、78℃、300℃における電圧差Os2(25)−Os1(25)のプロット位置は各直線上に位置した。このことは、同一の仕様で製造した各磁気センサは、上記数3の関係を満たしていることを証明している。また、言い換えれば、25個の磁気センサ10に関する外部磁界10mT,15mT,35mTのそれぞれに対してオフセット電圧Os1(25),Os2(25),Os1(25)を上記数4に代入すると、温度Tkは外部磁界10mT,15mT,35mTに対して、それぞれ65℃、78℃、300℃となった。これらの外部磁界10mT,15mT,35mTの場合には、上記数3中の比例定数Aは、それぞれ1/40,1/53,1/275となる。   The voltage difference Os2 (25) −Os1 (25) between the first and second offset voltages Os1 (25) and Os2 (25) is obtained for each magnetic sensor with respect to each of the external magnetic fields 10mT, 15mT, and 35mT. Plots were made at 65 ° C, 78 ° C and 300 ° C. As can be seen from FIG. 13, the plot positions of the voltage differences Os2 (25) −Os1 (25) at 65 ° C., 78 ° C., and 300 ° C. are located on each straight line. This proves that each magnetic sensor manufactured with the same specification satisfies the relationship of the above formula 3. In other words, when the offset voltages Os1 (25), Os2 (25), and Os1 (25) are substituted into the above equation 4 for the external magnetic fields 10 mT, 15 mT, and 35 mT for the 25 magnetic sensors 10, the temperature Tk Were 65 ° C., 78 ° C., and 300 ° C. for external magnetic fields of 10 mT, 15 mT, and 35 mT, respectively. In the case of these external magnetic fields of 10 mT, 15 mT, and 35 mT, the proportionality constant A in Equation 3 is 1/40, 1/53, and 1/275, respectively.

c.温度ドリフトの範囲
上記ハーフブリッジ構成の磁気センサ10に対しても、フルブリッジ構成の磁気センサ30に対しても、25℃(室温)から125℃の範囲についての測定結果について説明した。しかし、従来から知られているように、オフセット温度ドリフトは温度の広い範囲において、直線的に変化することが分かっているが、念のために、広い温度範囲における特性について測定した。上記フルブリッジの磁気センサ30と同一仕様の異なる40個の磁気センサにおいて、外部磁界Hrが「0」すなわち外部磁界Hrを印加してない状態での25℃、−30℃、110℃における静オフセット電圧Os1(25),Os1(−30),Os1(110)を測定して、温度ドリフトOd1(−30)=Os1(−30)−Os1(25),Od1(110)=Os1(110)−Os1(25)を計算した。そして、25℃を基準として温度ドリフトOd1,Od2を40個の磁気センサごとにプロットして、磁気センサごとに3点を結ぶと、図14に示すように、前記3点は直線で結ばれた。これにより、上記特性例の説明とも合わせると、上記数3の関係は広い温度範囲で適用されることも分かる。
c. Range of Temperature Drift The measurement results for the range from 25 ° C. (room temperature) to 125 ° C. have been described for both the half-bridge magnetic sensor 10 and the full-bridge magnetic sensor 30. However, as is known in the art, the offset temperature drift is known to change linearly over a wide temperature range, but for the sake of safety, the characteristics over a wide temperature range were measured. In 40 magnetic sensors having the same specifications as the full-bridge magnetic sensor 30, the static magnetic offset at 25 ° C., −30 ° C., and 110 ° C. when the external magnetic field Hr is “0”, that is, the external magnetic field Hr is not applied. Voltages Os1 (25), Os1 (-30), Os1 (110) are measured, and temperature drift Od1 (-30) = Os1 (-30) -Os1 (25), Od1 (110) = Os1 (110)- Os1 (25) was calculated. Then, when temperature drifts Od1 and Od2 are plotted for every 40 magnetic sensors on the basis of 25 ° C. and three points are connected for each magnetic sensor, the three points are connected by a straight line as shown in FIG. . Accordingly, when combined with the description of the characteristic example, it can be understood that the relationship of the above formula 3 is applied in a wide temperature range.

d.温度ドリフトの補正
次に、本発明の実施形態に係る温度ドリフトの補正方法及び補正装置について説明する。この温度ドリフトの補正においては、上述した同一製造工程で製造した磁気センサすなわち同一仕様(同一種類)の磁気センサに関する共通の比例定数Aの検出、磁気センサごとの第1及び第2の静オフセット電圧Os1,Os2の取得、及び磁気センサごとの出力電圧Voutの補正が行われる。
d. Next, a temperature drift correction method and correction apparatus according to an embodiment of the present invention will be described. In the correction of the temperature drift, detection of a common proportionality constant A regarding the magnetic sensor manufactured in the same manufacturing process, that is, a magnetic sensor of the same specification (the same type), and first and second static offset voltages for each magnetic sensor. Acquisition of Os1 and Os2 and correction of the output voltage Vout for each magnetic sensor are performed.

d1.比例定数検出
まず、比例定数Aの検出に関して説明すると、作業者が、電圧計及び温度計などの測定器を用いて電圧及び温度を測定して、測定結果をコンピュータ装置などに入力するようにしてもよいが、コンピュータ装置によるプログラム処理を併用するようにした方が効率的であるので、コンピュータ装置を用いた方法について説明する。
d1. Proportional Constant Detection First, the detection of the proportionality constant A will be described. An operator measures voltage and temperature using a measuring instrument such as a voltmeter and a thermometer, and inputs the measurement result to a computer device or the like. However, since it is more efficient to use the program processing by the computer device together, a method using the computer device will be described.

上記図4を用いて説明した回転軸21に固定された永久磁石22に対向したハーフブリッジの磁気センサ10に適用した場合について説明すると、コンピュータ装置40は、図15に示すように、磁気センサ10の出力電圧VoutをA/D変換器41を介して入力する。A/D変換器41はアナログ信号の出力電圧Voutをディジタル値に変換して出力する。コンピュータ装置40は、CPU、ROM、RAM、ハードディスク、表示器、入力装置などを備え、比例定数Aを検出するための比例定数検出プログラムを記憶している。また、磁気センサ10には、温度センサ42が組み付けられている。温度センサ42は、磁気センサ10内の磁気抵抗効果素子15,16の温度Tを検出するもので、検出温度を表すアナログ信号を発生する。このアナログ信号によって表された温度Tも、A/D変換器43によりディジタル値に変換されてコンピュータ装置40に入力される。なお、磁気センサ10内に温度センサが組み込まれていれば、前記組み込まれた温度センサが利用される。また、磁気抵抗効果素子15,16の温度を検出できれば、磁気センサ10の置かれた環境温度を測定する温度測定装置などの種々の温度測定装置を利用できる。さらに、磁気センサ10を加熱及び冷却するための冷却装置44も設けられている。   The case where the present invention is applied to the half-bridge magnetic sensor 10 facing the permanent magnet 22 fixed to the rotating shaft 21 described with reference to FIG. 4 will be described. As shown in FIG. Output voltage Vout is input via the A / D converter 41. The A / D converter 41 converts the output voltage Vout of the analog signal into a digital value and outputs it. The computer device 40 includes a CPU, a ROM, a RAM, a hard disk, a display, an input device, and the like, and stores a proportional constant detection program for detecting the proportional constant A. In addition, a temperature sensor 42 is assembled to the magnetic sensor 10. The temperature sensor 42 detects the temperature T of the magnetoresistive effect elements 15 and 16 in the magnetic sensor 10 and generates an analog signal representing the detected temperature. The temperature T represented by the analog signal is also converted into a digital value by the A / D converter 43 and input to the computer device 40. If a temperature sensor is incorporated in the magnetic sensor 10, the incorporated temperature sensor is used. If the temperature of the magnetoresistive effect elements 15 and 16 can be detected, various temperature measuring devices such as a temperature measuring device for measuring the environmental temperature where the magnetic sensor 10 is placed can be used. Furthermore, a cooling device 44 for heating and cooling the magnetic sensor 10 is also provided.

コンピュータ装置40は、作業者による比例定数検出プログラムの開始の指示により、図16のステップS10にて比例定数検出プログラムの実行を開始する。このプログラムの実行開始後、コンピュータ装置40は、ステップS11にて、異なる2種以上の温度T1,T2におけるオフセット電圧V1,V2を、前記温度T1,T2と共にそれぞれ入力する。作業者が、過熱及び冷却装置44を作動させることにより、磁気センサ10(磁気抵抗効果素子15,16)の温度を上昇又は下降させる。この場合、入力されるオフセット電圧V1,V2としては、永久磁石22による外部磁界が印加されていない状態のオフセット電圧(上記第1のオフセット電圧Os1に相当)でも、永久磁石22による外部磁界が印加されている状態のオフセット電圧(出力振幅中心値)(上記第2のオフセット電圧Os2に相当)のどちらのオフセット電圧でもよい。   In response to an instruction from the operator to start the proportional constant detection program, the computer device 40 starts executing the proportional constant detection program in step S10 of FIG. After the execution of this program is started, the computer device 40 inputs offset voltages V1, V2 at two or more different temperatures T1, T2 together with the temperatures T1, T2 in step S11. An operator raises or lowers the temperature of the magnetic sensor 10 (the magnetoresistive effect elements 15 and 16) by operating the overheating and cooling device 44. In this case, as the input offset voltages V1 and V2, the external magnetic field by the permanent magnet 22 is applied even when the external magnetic field by the permanent magnet 22 is not applied (corresponding to the first offset voltage Os1). Any offset voltage of the offset voltage (output amplitude center value) (corresponding to the second offset voltage Os2) may be used.

前者の場合には、磁気センサ10の温度がT1,T2における出力電圧Voutのディジタル値をそれぞれ入力し、前記入力した出力電圧Voutから電源電圧Vccの半分の電圧Vcc/2をそれぞれ減算してオフセット電圧V1,V2として設定する。一方、後者の場合には、磁気センサ10の温度がT1,T2である状態で、永久磁石22を1回転させて得られる出力電圧Vccのディジタル値を所定のサンプリング周期でそれぞれ取込み、最大値と最小値との中央値をそれぞれ計算し、前記計算した中央値から電源電圧Vccの半分の電圧Vcc/2をそれぞれ減算してオフセット電圧(出力振幅中心値)V1,V2として設定する。なお、後述するように、オフセット電圧V1,V2は、下記数5の演算による減算値V2−V1が利用されるので、前記電源電圧Vccの半分の電圧Vcc/2の減算処理を行わなくても、前記入力した出力電圧Vout及び中央値をそのまま残しておいてもよい。   In the former case, the digital value of the output voltage Vout when the temperature of the magnetic sensor 10 is T1 and T2 is input, and the voltage Vcc / 2 that is half the power supply voltage Vcc is subtracted from the input output voltage Vout. Set as voltages V1 and V2. On the other hand, in the latter case, the digital value of the output voltage Vcc obtained by rotating the permanent magnet 22 once in the state where the temperature of the magnetic sensor 10 is T1 and T2 is taken at a predetermined sampling period, and the maximum value is obtained. A median value with respect to the minimum value is calculated, and a voltage Vcc / 2 that is half of the power supply voltage Vcc is subtracted from the calculated median value to set offset voltages (output amplitude center values) V1 and V2. As will be described later, the offset voltages V1 and V2 use the subtraction value V2-V1 obtained by the calculation of the following equation 5, so that the subtraction processing of the voltage Vcc / 2 which is half the power supply voltage Vcc is not performed. The input output voltage Vout and the median value may be left as they are.

この場合の温度T1,T2に関しては、予め定めておき又は作業者が指定して、温度センサ42によって検出された温度Tが前記予め定められた又は作業者によって指定された温度T1,T2に達したことをコンピュータ装置40が検出したときに、コンピュータ装置40が出力電圧Voutを入力するとよい。しかしながら、コンピュータ装置40の表示装置に温度センサ42によって検出された温度Tを表示するようにして、作業者がこの表示温度を見ながら入力装置を用いて出力電圧Voutの入力を指示するようにしてもよい。また、異なる温度及びオフセット電圧の数に関しては、最低限2つは必要であるが、後述するオフセット温度ドリフト係数Ktの精度向上のためには、3つ以上の温度及びオフセット電圧を入力するとよい。ただし、多数の温度及びオフセット電圧を入力する必要はない。   In this case, the temperatures T1 and T2 are predetermined or specified by the operator, and the temperature T detected by the temperature sensor 42 reaches the predetermined temperatures T1 and T2 specified by the operator. When the computer device 40 detects this, the computer device 40 may input the output voltage Vout. However, the temperature T detected by the temperature sensor 42 is displayed on the display device of the computer device 40, and the operator instructs the input of the output voltage Vout using the input device while watching the display temperature. Also good. Further, regarding the number of different temperatures and offset voltages, at least two are necessary, but in order to improve the accuracy of an offset temperature drift coefficient Kt described later, it is preferable to input three or more temperatures and offset voltages. However, it is not necessary to input a large number of temperatures and offset voltages.

次に、コンピュータ装置40は、ステップS12にて、前記設定したオフセット電圧V1,V2及び温度T1,T2を用いて、単位温度当たりのオフセット電圧の変化分(温度に対するオフセット電圧の傾き)であるオフセット温度ドリフト係数Ktを下記数5に従って計算する。なお、3つ以上のオフセット電圧及び温度を測定した場合には、2組ずつのオフセット電圧及び温度に基づいて計算したオフセット温度ドリフト係数を平均化して最終的なオフセット温度ドリフト係数Ktとするとよい。   Next, in step S12, the computer device 40 uses the set offset voltages V1 and V2 and the temperatures T1 and T2 to offset the offset voltage change per unit temperature (the slope of the offset voltage with respect to the temperature). The temperature drift coefficient Kt is calculated according to the following formula 5. When three or more offset voltages and temperatures are measured, the offset temperature drift coefficients calculated based on two sets of offset voltages and temperatures may be averaged to obtain the final offset temperature drift coefficient Kt.

Figure 0005523983
Figure 0005523983

次に、コンピュータ装置40は、ステップS13にて、予め定めておき又は作業者によって指定された所定温度(例えば、25℃の室温)Trtにおいて、外部磁界を印加してない状態の出力電圧Voutを磁気センサ10から入力する。この場合も、作業者が、過熱及び冷却装置44を作動させることにより、磁気センサ10(磁気抵抗効果素子15,16)の温度を上昇又は下降させる。そして、温度センサ42によって検出された温度Tが前記所定温度Trtに達したことをコンピュータ装置40が検出したときに、コンピュータ装置40が磁気センサ10から出力電圧Voutを入力する。また、この場合も、コンピュータ装置40の表示装置に温度センサ42によって検出された温度Tを表示するようにして、作業者がこの表示温度を見ながら入力装置を用いて出力電圧Voutの入力を指示するようにしてもよい。次に、コンピュータ装置40は、ステップS14にて、前記入力したVoutから電源電圧Vccの半分の電圧Vcc/2を減算することにより第1の静オフセット電圧Os1を取得する。   Next, in step S13, the computer apparatus 40 sets the output voltage Vout in a state where an external magnetic field is not applied at a predetermined temperature (for example, a room temperature of 25 ° C.) Trt previously determined or designated by the operator. Input from the magnetic sensor 10. Also in this case, the operator operates the overheating and cooling device 44 to increase or decrease the temperature of the magnetic sensor 10 (magnetoresistance effect elements 15 and 16). When the computer device 40 detects that the temperature T detected by the temperature sensor 42 has reached the predetermined temperature Trt, the computer device 40 inputs the output voltage Vout from the magnetic sensor 10. Also in this case, the temperature T detected by the temperature sensor 42 is displayed on the display device of the computer device 40, and the operator instructs the input of the output voltage Vout using the input device while watching the display temperature. You may make it do. Next, in step S14, the computer apparatus 40 obtains the first static offset voltage Os1 by subtracting the voltage Vcc / 2 which is half of the power supply voltage Vcc from the input Vout.

次に、コンピュータ装置40は、ステップS15にて、前記ステップS13の場合と同じ所定温度(例えば、25℃の室温)Trtにおいて、外部磁界が印加されている状態の出力振幅中心値を取得する。この場合も、作業者が、過熱及び冷却装置44を作動させることにより、磁気センサ10(磁気抵抗効果素子15,16)の温度を上昇又は下降させる。そして、温度センサ42によって検出された温度Tが前記所定温度Trtに達したことをコンピュータ装置40が検出したときに、永久磁石22を1回転させて得られる磁気センサ10からの出力電圧Voutを所定のサンプリング周期でそれぞれ取込み、最大値と最小値との中央値を計算し、前記計算した中央値を出力振幅中心値とする。また、この場合も、コンピュータ装置40の表示装置に温度センサ42によって検出された温度Tを表示するようにして、作業者がこの表示温度を見ながら入力装置を用いて出力電圧Voutの入力を指示するようにしてもよい。なお、前記所定温度Trtは、第1及び第2の静オフセット電圧Os1,Os2の取得時の温度が同一であれば、常に同一の温度でなくてもよい。次に、コンピュータ装置40は、ステップS16にて、前記計算した出力振幅中心値から電源電圧Vccの半分の電圧Vcc/2を減算することにより第2の静オフセット電圧Os2を取得する。   Next, in step S15, the computer apparatus 40 acquires the output amplitude center value in a state where an external magnetic field is applied at the same predetermined temperature (for example, a room temperature of 25 ° C.) Trt as in step S13. Also in this case, the operator operates the overheating and cooling device 44 to increase or decrease the temperature of the magnetic sensor 10 (magnetoresistance effect elements 15 and 16). When the computer device 40 detects that the temperature T detected by the temperature sensor 42 has reached the predetermined temperature Trt, the output voltage Vout from the magnetic sensor 10 obtained by rotating the permanent magnet 22 once is predetermined. And the median value between the maximum value and the minimum value is calculated, and the calculated median value is set as the output amplitude center value. Also in this case, the temperature T detected by the temperature sensor 42 is displayed on the display device of the computer device 40, and the operator instructs the input of the output voltage Vout using the input device while watching the display temperature. You may make it do. The predetermined temperature Trt does not always have to be the same as long as the temperatures at the time of obtaining the first and second static offset voltages Os1 and Os2 are the same. Next, in step S16, the computer apparatus 40 obtains a second static offset voltage Os2 by subtracting a voltage Vcc / 2 that is half the power supply voltage Vcc from the calculated output amplitude center value.

次に、コンピュータ装置40は、ステップS17にて、前記計算したオフセット温度ドリフト係数Kt及び前記入力した第1及び第2の静オフセット電圧Os1,Os2を用いて、上記数3の比例定数Aを下記数6に従って計算する。そして、コンピュータ装置40は、ステップS18にて、比例定数検出プログラムの実行を終了する。   Next, in step S17, the computer 40 uses the calculated offset temperature drift coefficient Kt and the input first and second static offset voltages Os1 and Os2 to calculate the proportionality constant A of the equation 3 below. Calculate according to Equation 6. In step S18, the computer apparatus 40 ends the execution of the proportional constant detection program.

Figure 0005523983
Figure 0005523983

このような比例定数検出プログラムの実行により、比例定数Aが検出されるが、この比例定数Aは、同一仕様の磁気センサ10の全てに対して共通である。したがって、この比例定数の検出については、磁気センサ10の使用者が行ってもよいが、磁気センサ10の製造者が行って使用者に対して比例定数Aを提供するようにするとよい。なお、上記実施形態では1つの磁気センサ10のみの測定によって比例定数Aを決定するようにしたが、精度向上のためには、代表する複数の磁気センサ10について比例定数Aをそれぞれ取得して、それらの平均値を採用するようにしてもよい。ただし、多数の磁気センサ10について比例定数Aの測定を行う必要はない。   By executing the proportional constant detection program, the proportional constant A is detected. This proportional constant A is common to all the magnetic sensors 10 having the same specification. Therefore, although the user of the magnetic sensor 10 may detect the proportional constant, the manufacturer of the magnetic sensor 10 may provide the proportional constant A to the user. In the above embodiment, the proportionality constant A is determined by measuring only one magnetic sensor 10. However, in order to improve accuracy, the proportionality constant A is obtained for each of the representative magnetic sensors 10. You may make it employ | adopt those average values. However, it is not necessary to measure the proportionality constant A for many magnetic sensors 10.

なお、上記比例定数検出プログラムでは、ステップS14,S16にて第1及び第2の静オフセット電圧Os1,Os2を取得して、上記数6の演算に利用するようにした。しかし、第1及び第2の静オフセット電圧Os1,Os2の電圧差Os2−Os1は、上記ステップS13で磁気センサ10から入力した出力電圧Voutと上記ステップS15で計算した振幅中心値との電圧差に等しい。したがって、第1及び第2の静オフセット電圧Os1,Os2が必要でない場合には、上記ステップS14,S16の処理を省略して、ステップS14で計算した振幅中心値からステップS13では磁気センサ10から入力した出力電圧Voutを減算して差電圧Os2−Os1を計算するようにしてもよい。   In the proportional constant detection program, the first and second static offset voltages Os1 and Os2 are acquired in steps S14 and S16 and used in the calculation of the above equation (6). However, the voltage difference Os2-Os1 between the first and second static offset voltages Os1, Os2 is a voltage difference between the output voltage Vout input from the magnetic sensor 10 in step S13 and the amplitude center value calculated in step S15. equal. Therefore, when the first and second static offset voltages Os1 and Os2 are not necessary, the processes of steps S14 and S16 are omitted, and the amplitude center value calculated in step S14 is input from the magnetic sensor 10 in step S13. The difference voltage Os2-Os1 may be calculated by subtracting the output voltage Vout.

d2.静オフセット電圧取得
次に、第1及び第2の静オフセット電圧Os1,Os2の取得について説明すると、この場合も、電圧計及び温度計などの測定器を用いて電圧及び温度を測定して、測定結果をコンピュータ装置などに入力するようにしてもよいが、前述した図15に示すようなコンピュータ装置40を含む装置を用いるとよい。この場合、コンピュータ装置40は、第1及び第2の静オフセット電圧Os1,Os2を取得するための静オフセット電圧取得プログラムを記憶している。コンピュータ装置40は、作業者による静オフセット電圧取得プログラムの開始の指示により、図17のステップS20にて静オフセット電圧取得プログラムの実行を開始する。ただし、この場合の第1及び第2のオフセット電圧Os1,Os2の取得は、個々の磁気センサ10に対するものである。
d2. Acquisition of static offset voltage Next, acquisition of the first and second static offset voltages Os1 and Os2 will be described. In this case as well, measurement is performed by measuring voltage and temperature using a measuring instrument such as a voltmeter and a thermometer. Although the result may be input to a computer device or the like, a device including the computer device 40 as shown in FIG. 15 may be used. In this case, the computer apparatus 40 stores a static offset voltage acquisition program for acquiring the first and second static offset voltages Os1 and Os2. In response to an instruction from the operator to start the static offset voltage acquisition program, the computer device 40 starts executing the static offset voltage acquisition program in step S20 of FIG. However, the acquisition of the first and second offset voltages Os1 and Os2 in this case is for the individual magnetic sensors 10.

このプログラムの実行開始後、コンピュータ装置40は、上記図16のステップS13,S14の処理とそれぞれ同様なステップS21,S22の処理により、外部磁界を印加してない状態の第1の静オフセット電圧Os1を取得する。次に、コンピュータ装置40は、前記ステップS21の場合と同じ所定温度(例えば、25℃の室温)Trtにおいて、上記図16のステップS15,S16の処理とそれぞれ同様なステップS23,S24の処理により、外部磁界が印加されている状態の第2の静オフセット電圧(出力振幅中心値のオフセット電圧)Os2を取得する。   After the start of execution of this program, the computer apparatus 40 performs the first static offset voltage Os1 in a state in which no external magnetic field is applied by the processes of steps S21 and S22 similar to the processes of steps S13 and S14 of FIG. To get. Next, the computer device 40 performs the same processes of steps S23 and S24 as the processes of steps S15 and S16 of FIG. 16 at the same predetermined temperature (for example, room temperature of 25 ° C.) Trt as that of step S21. A second static offset voltage (offset voltage of the output amplitude center value) Os2 in a state where an external magnetic field is applied is acquired.

そして、コンピュータ装置40は、ステップS26にてこの静オフセット電圧取得プログラムの実行を終了する。この場合、取得した第1及び第2の静オフセット電圧Os1,Os2は、各磁気センサ10を特定する識別番号に対応させて記憶しておくようにする。このような特定の磁気センサ10の第1及び第2の静オフセット電圧Os1,Os2の取得後、他の磁気センサ10の温度補正が必要な場合には、他の磁気センサ10に対して前述の処理を実行する。そして、このような処理の繰り返しにより、複数の磁気センサ10に対して、磁気センサ10ごとの第1及び第2の静オフセット電圧Os1,Os2を取得する。   And the computer apparatus 40 complete | finishes execution of this static offset voltage acquisition program in step S26. In this case, the acquired first and second static offset voltages Os1 and Os2 are stored in correspondence with the identification numbers that identify the magnetic sensors 10. After the acquisition of the first and second static offset voltages Os1 and Os2 of such a specific magnetic sensor 10, if the temperature correction of the other magnetic sensor 10 is necessary, the above-mentioned other magnetic sensor 10 is described above. Execute the process. Then, by repeating such processing, the first and second static offset voltages Os1 and Os2 for each magnetic sensor 10 are acquired for the plurality of magnetic sensors 10.

なお、前記静オフセット電圧取得プログラムにおいては、所定温度Trtを一定の温度としたが、この所定温度Trtは必ずしも一定でなくてよく、第1及び第2の静オフセット電圧Os1,Os2の取得時の温度Tが同一であればよい。したがって、この場合には、図17の静オフセット電圧取得プログラムにおいて、破線で示すステップS25のように、温度センサ42によって検出されるとともに、A/D変換器43によってディジタル値に変換された温度Tを入力して、所定温度Trtとして登録しておく。   In the static offset voltage acquisition program, the predetermined temperature Trt is a constant temperature. However, the predetermined temperature Trt does not necessarily have to be constant, and the first and second static offset voltages Os1 and Os2 are acquired. It is sufficient if the temperature T is the same. Accordingly, in this case, in the static offset voltage acquisition program of FIG. 17, the temperature T detected by the temperature sensor 42 and converted into a digital value by the A / D converter 43 as in step S25 indicated by a broken line. Is registered as a predetermined temperature Trt.

このような静オフセット電圧取得プログラムの実行により、第1及び第2の静オフセット電圧Os1,Os2が検出されるが、これらの第1及び第2の静オフセット電圧Os1,Os2は、磁気センサ10ごとに異なる。したがって、これらの第1及び第2の静オフセット電圧Os1,Os2の検出については、磁気センサ10の使用者が行うとよい。磁気センサ10の製造者が行うことも考えられるが、この場合には磁気センサ10ごとの第1及び第2の静オフセット電圧Os1,Os2を使用者に提供する必要がある。また、前述のように、場合によっては、所定温度Trtとして一定でない温度が登録されていることもあり、この場合には、登録された所定温度Trtが次の出力電圧補正処理に利用される。   By executing such a static offset voltage acquisition program, the first and second static offset voltages Os1 and Os2 are detected. These first and second static offset voltages Os1 and Os2 are detected for each magnetic sensor 10. Different. Therefore, the detection of the first and second static offset voltages Os1 and Os2 may be performed by the user of the magnetic sensor 10. Although it is conceivable that the manufacturer of the magnetic sensor 10 performs, in this case, it is necessary to provide the user with the first and second static offset voltages Os1, Os2 for each magnetic sensor 10. Further, as described above, in some cases, a non-constant temperature may be registered as the predetermined temperature Trt. In this case, the registered predetermined temperature Trt is used for the next output voltage correction process.

d3.出力電圧補正
次に、出力電圧Voutの補正について説明する。この場合には、磁気センサ10を使用する検出装置内に、図15に示すようなコンピュータ装置40が組み込まれる。コンピュータ装置40は、出力電圧Voutを補正するための出力電圧補正プログラムを記憶している。この場合、コンピュータ装置40は、前記検出装置に検出対象物理量を検出するためのコンピュータ装置と一体化されており、磁気センサ10を用いた検出装置の作動に連動して、出力電圧補正プログラムを実行する。なお、この場合、図15の加熱及び冷却装置44は不要である。
d3. Next, the correction of the output voltage Vout will be described. In this case, a computer device 40 as shown in FIG. 15 is incorporated in a detection device using the magnetic sensor 10. The computer device 40 stores an output voltage correction program for correcting the output voltage Vout. In this case, the computer device 40 is integrated with the computer device for detecting the physical quantity to be detected in the detection device, and executes the output voltage correction program in conjunction with the operation of the detection device using the magnetic sensor 10. To do. In this case, the heating and cooling device 44 in FIG. 15 is not necessary.

この出力電圧補正プログラムは図18のステップS30に開始され、実行開始後、コンピュータ装置40は、ステップS31にて、温度センサ42によって検出されるとともに、A/D変換器43によってディジタル値に変換された温度Tを入力する。次に、コンピュータ装置40は、ステップS32にて下記数7の演算により、電圧の補正値Oa(T)を計算する。この場合、比例定数Aは、前記比例定数検出プログラムの実行により検出された同一仕様の磁気センサ10に共通の定数である。第1及び第2の静オフセット電圧Os1,Os2は、前記静オフセット電圧取得プログラムの実行により検出された磁気センサ10ごとの検出値である。また、所定温度Trtは予め定められた温度であるか、前記静オフセット電圧取得プログラムのステップS25にて登録された温度である。この数7の演算の実行により、上記磁気センサの特性例で説明した温度ドリフトを加味した磁気センサ10ごとの電圧の補正値Oa(T)が計算される。   The output voltage correction program is started in step S30 in FIG. 18. After the execution is started, the computer device 40 is detected by the temperature sensor 42 and converted into a digital value by the A / D converter 43 in step S31. Enter the measured temperature T. Next, in step S32, the computer apparatus 40 calculates a voltage correction value Oa (T) by the calculation of the following equation (7). In this case, the proportionality constant A is a constant common to the magnetic sensors 10 of the same specification detected by executing the proportionality constant detection program. The first and second static offset voltages Os1 and Os2 are detection values for each magnetic sensor 10 detected by executing the static offset voltage acquisition program. The predetermined temperature Trt is a predetermined temperature or a temperature registered in step S25 of the static offset voltage acquisition program. By executing the calculation of Equation 7, the correction value Oa (T) of the voltage for each magnetic sensor 10 taking into account the temperature drift described in the characteristic example of the magnetic sensor is calculated.

Figure 0005523983
Figure 0005523983

前記ステップS32の処理後、コンピュータ装置40は、ステップS33にて磁気センサ10から出力されてA/D変換器43によってディジタル値に変換された出力電圧Voutを入力する。次に、コンピュータ装置40は、ステップS34にて、前記入力した出力電圧Voutから前記計算した電圧の補正値Oa(T)を減算して出力電圧Voutを補正する。そして、コンピュータ装置40は、ステップS35にて出力電圧補正プログラムの実行を終了する。これにより、磁気センサ10ごとに温度ドリフトの影響を受けない出力電圧Voutを得ることができる。そして、この補正された出力電圧Voutが磁気センサ10が組み込まれた検出装置の検出物理量の測定に利用されるので、磁気センサ10による温度ドリフトの影響を受けない正確な物理量が検出されるようになる。そして、第1及び第2の静オフセット電圧Os1,Os2は所定温度(例えば、室温)で測定した値であり、比例定数Aは磁気センサに対して共通に与えられるものであるので、前記出力電圧Voutの補正が簡単に行われる。   After the process of step S32, the computer apparatus 40 inputs the output voltage Vout output from the magnetic sensor 10 and converted into a digital value by the A / D converter 43 in step S33. Next, in step S34, the computer 40 corrects the output voltage Vout by subtracting the calculated voltage correction value Oa (T) from the input output voltage Vout. And the computer apparatus 40 complete | finishes execution of an output voltage correction program in step S35. Thereby, the output voltage Vout which is not influenced by temperature drift can be obtained for each magnetic sensor 10. Since the corrected output voltage Vout is used for measurement of the physical quantity detected by the detection device in which the magnetic sensor 10 is incorporated, an accurate physical quantity that is not affected by temperature drift by the magnetic sensor 10 is detected. Become. The first and second static offset voltages Os1 and Os2 are values measured at a predetermined temperature (for example, room temperature), and the proportionality constant A is commonly given to the magnetic sensor. Correction of Vout is easily performed.

なお、上記出力電圧補正プログラムのステップS32においては、上記静オフセット電圧取得プログラムのステップS21〜S24の処理によって取得した第1及び第2の静オフセット電圧Os1,Os2を用いて、上記数7の演算を実行して電圧の補正値Oa(T)を計算するようにした。しかし、上記数7中の静オフセット電圧Os1,Os2の差電圧Os2−Os1は、上記ステップS21で磁気センサ10から入力した出力電圧Voutと上記ステップS23で計算した出力振幅中心値との差電圧に等しい。したがって、オフセット電圧Os2が必要でない場合には、上記ステップS24の静オフセット電圧Os2の計算処理を行うことなく、ステップS23で計算した出力振幅中心値からステップS21で入力した出力電圧Voutを減算して、差電圧Os2−Os1を取得するようにしてもよい。なお、静オフセット電圧Os1は上記数7の演算に必要であるので、上記ステップS22で計算される。   In step S32 of the output voltage correction program, the calculation of Equation 7 is performed using the first and second static offset voltages Os1 and Os2 acquired by the processing of steps S21 to S24 of the static offset voltage acquisition program. And the voltage correction value Oa (T) is calculated. However, the difference voltage Os2−Os1 between the static offset voltages Os1 and Os2 in the equation 7 is the difference voltage between the output voltage Vout input from the magnetic sensor 10 in step S21 and the output amplitude center value calculated in step S23. equal. Therefore, when the offset voltage Os2 is not necessary, the output voltage Vout input in step S21 is subtracted from the output amplitude center value calculated in step S23 without performing the calculation process of the static offset voltage Os2 in step S24. Alternatively, the differential voltage Os2-Os1 may be acquired. Since the static offset voltage Os1 is necessary for the calculation of Equation 7, the static offset voltage Os1 is calculated in Step S22.

e.磁気センサの選定
次に、磁気センサ10の選定について説明すると、この場合も、電圧計及び温度計などの測定器を用いて電圧及び温度を測定して、測定結果をコンピュータ装置などに入力するようにしてもよいが、前述した図15に示すようなコンピュータ装置40を含む装置を用いるとよい。この場合、コンピュータ装置40は、磁気センサ10を選定(選別)するためのセンサ選定プログラムを記憶している。コンピュータ装置40は、作業者によるセンサ選定プログラムの開始の指示により、図19のステップS40にてセンサ選定プログラムの実行を開始する。ただし、この場合の磁気センサ10も、個々の磁気センサ10である。
e. Selection of Magnetic Sensor Next, the selection of the magnetic sensor 10 will be described. In this case as well, the voltage and temperature are measured using a measuring instrument such as a voltmeter and a thermometer, and the measurement result is input to a computer device or the like. However, an apparatus including the computer apparatus 40 as shown in FIG. 15 may be used. In this case, the computer device 40 stores a sensor selection program for selecting (selecting) the magnetic sensor 10. The computer device 40 starts executing the sensor selection program in step S40 of FIG. 19 in response to an instruction from the operator to start the sensor selection program. However, the magnetic sensor 10 in this case is also an individual magnetic sensor 10.

このプログラムの実行開始後、コンピュータ装置40は、上記図16のステップS13,S14の処理とそれぞれ同様なステップS41,S42の処理により、外部磁界を印加してない状態の第1の静オフセット電圧Os1を取得する。次に、コンピュータ装置40は、前記ステップS41の場合と同じ所定温度(例えば、25℃の室温)Trtにおいて、上記図16のステップS15,S16の処理とそれぞれ同様なステップS43,S44の処理により、外部磁界を印加している状態の第2の静オフセット電圧(出力振幅中心値のオフセット電圧)Os2を取得する。なお、この場合も、前記所定温度Trtは、第1及び第2の静オフセットOs1,Os2の取得時の温度が同一であれば、常に同一の温度でなくてもよい。   After the start of execution of this program, the computer apparatus 40 performs the first static offset voltage Os1 in a state in which no external magnetic field is applied by the processes of steps S41 and S42 similar to the processes of steps S13 and S14 of FIG. To get. Next, at the same predetermined temperature (for example, a room temperature of 25 ° C.) Trt as in step S41, the computer device 40 performs steps S43 and S44 similar to the steps S15 and S16 in FIG. A second static offset voltage (offset voltage of the output amplitude center value) Os2 in a state where an external magnetic field is applied is acquired. In this case as well, the predetermined temperature Trt may not always be the same as long as the temperatures at the time of obtaining the first and second static offsets Os1 and Os2 are the same.

前記ステップS41〜S44の処理後、コンピュータ装置40は、ステップS45にて、第2の静オフセット電圧Os2から第1の静オフセット電圧Os1を減算して、減算結果(差電圧)Os2−Os1を表示器に表示する。次に、コンピュータ装置40は、ステップS46にて、前記減算結果の絶対値|Os2−Os1|が所定の選定値Osoよりも大きいかを判定する。この選定値Osoは、プログラム中に予め記憶された定数でもよいし、作業者がコンピュータ装置40に入力するようにしてもよい。そして、前記絶対値|Os2−Os1|が所定の選定値Osoよりも大きければ、コンピュータ装置40は、ステップS46にて「Yes」と判定して、ステップS47にてこの磁気センサのオフセット温度が大きいことを表示したり、この磁気センサを不採用することを表示したりして、ステップS48にてこのセンサ選定プログラムの実行を終了する。また、前記絶対値|Os2−Os1|が所定の選定値Oso以下であれば、コンピュータ装置40は、ステップS46にて「No」と判定して、ステップS48にてこのセンサ選定プログラムの実行を終了する。   After the processing in steps S41 to S44, the computer device 40 subtracts the first static offset voltage Os1 from the second static offset voltage Os2 and displays the subtraction result (difference voltage) Os2-Os1 in step S45. Display on the instrument. Next, in step S46, the computer 40 determines whether the absolute value | Os2-Os1 | of the subtraction result is larger than a predetermined selection value Oso. The selection value Oso may be a constant stored in advance in the program, or may be input to the computer device 40 by an operator. If the absolute value | Os2−Os1 | is larger than the predetermined selection value Oso, the computer device 40 determines “Yes” in step S46, and the offset temperature of the magnetic sensor is large in step S47. Is displayed, or the fact that this magnetic sensor is not adopted is displayed, and the execution of the sensor selection program is terminated in step S48. If the absolute value | Os2−Os1 | is equal to or smaller than the predetermined selection value Oso, the computer device 40 makes a “No” determination at step S46 and ends the execution of the sensor selection program at step S48. To do.

このようなセンサ選定プログラムによれば、第1及び第2の静オフセット電圧Os1,Os2の差電圧Os2−Os1によって磁気センサ10が選定(選別)されることになる。これは、差電圧Os2−Os1の絶対値|Os2−Os1|が大きくなればなるほど、磁気センサ10の温度の変化に対する出力電圧のドリフト量(補正量)が大きくなる傾向にある。このことは、出力電圧の精度の悪化、出力電圧の補正の限界などをもたらす。したがって、前述のように、所定温度(例えば、室温)における第1及び第2の静オフセット電圧Os1,Os2を測定するだけで磁気センサ10の選定ができ、磁気センサ10の選定が簡単になる。なお、前記差電圧Os2−Os1に上記比例定数Aを乗算した値A・(Os2−Os1)は、上記数6からも理解できる通り、オフセット温度ドリフト係数Ktに等しいので、前記所定の選定値Osoをこの比例定数Aに反比例するように決定すれば、各磁気センサ10の出力電圧の温度による変化分を評価できる。また、磁気センサ10の選定においては、用途等により、差電圧Os2−Os1が正であるか負であるか、すなわち磁気センサ10の温度ドリフトの方向に応じて磁気センサ10を評価及び選定するようにしてもよい。   According to such a sensor selection program, the magnetic sensor 10 is selected (selected) by the difference voltage Os2-Os1 between the first and second static offset voltages Os1, Os2. This is because as the absolute value | Os2-Os1 | of the differential voltage Os2-Os1 increases, the drift amount (correction amount) of the output voltage with respect to the temperature change of the magnetic sensor 10 tends to increase. This brings about deterioration of the accuracy of the output voltage, the limit of correction of the output voltage, and the like. Therefore, as described above, the magnetic sensor 10 can be selected simply by measuring the first and second static offset voltages Os1, Os2 at a predetermined temperature (for example, room temperature), and the selection of the magnetic sensor 10 is simplified. The value A · (Os2−Os1) obtained by multiplying the differential voltage Os2−Os1 by the proportionality constant A is equal to the offset temperature drift coefficient Kt, as can be understood from the above equation 6. Is determined to be inversely proportional to the proportionality constant A, it is possible to evaluate the amount of change in the output voltage of each magnetic sensor 10 due to temperature. In selecting the magnetic sensor 10, the magnetic sensor 10 is evaluated and selected according to whether the differential voltage Os2-Os1 is positive or negative, that is, depending on the direction of temperature drift of the magnetic sensor 10, depending on the application. It may be.

なお、このような磁気センサの選定に関しては、磁気センサごとに実施する必要があり、例えば製造者が磁気センサを使用者に納品する前に行ったり、使用者がこの磁気センサの使用前に行ったりするとよい。また、上記実施形態において、ステップS46,S47の処理を省略して、表示器によるオフセット差電圧Os2−Os1の表示により、製造者又は使用者が磁気センサの選定(選別)を行ってもよい。また、逆にステップS45の処理を省略して、オフセット温度ドリフトが大きいこと(不採用)の表示器への表示のみにより、磁気センサの選定(選別)を行ってもよい。   Such a magnetic sensor must be selected for each magnetic sensor, for example, before the manufacturer delivers the magnetic sensor to the user, or before the user uses the magnetic sensor. Or better. Moreover, in the said embodiment, the process of step S46, S47 may be abbreviate | omitted, and a manufacturer or a user may select (select) a magnetic sensor by the display of the offset difference voltage Os2-Os1 by a display. Conversely, the process of step S45 may be omitted, and the selection (selection) of the magnetic sensor may be performed only by displaying on the display that the offset temperature drift is large (not adopted).

また、上記センサ選定プログラムでは、ステップS41〜S44の処理によって第1及び第2の静オフセット電圧Os1,Os2を取得して、ステップS45にて第1及び第2の静オフセット電圧Os1,Os2の差電圧Os2−Os1を計算するようにした。しかし、この場合も、前記差電圧Os2−Os1は、上記ステップS43で計算した出力振幅中心値と上記ステップS41で磁気センサ10から入力した出力電圧Voutとの電圧差に等しい。したがって、第1及び第2のオフセット電圧Os1,Os2が必要でない場合には、上記ステップS42,S44の処理を省略して、第1及び第2の静オフセット電圧Os1,Os2を計算することなく、上記ステップS43で計算した出力振幅中心値から上記ステップS41で磁気センサ10から入力した出力電圧Voutを減算して差電圧Os2−Os1を取得してもよい。   In the sensor selection program, the first and second static offset voltages Os1, Os2 are acquired by the processes of steps S41 to S44, and the difference between the first and second static offset voltages Os1, Os2 is acquired in step S45. The voltage Os2-Os1 is calculated. However, also in this case, the difference voltage Os2-Os1 is equal to the voltage difference between the output amplitude center value calculated in step S43 and the output voltage Vout input from the magnetic sensor 10 in step S41. Therefore, when the first and second offset voltages Os1 and Os2 are not necessary, the processing of steps S42 and S44 is omitted, and the first and second static offset voltages Os1 and Os2 are not calculated. The difference voltage Os2-Os1 may be obtained by subtracting the output voltage Vout input from the magnetic sensor 10 in step S41 from the output amplitude center value calculated in step S43.

f.磁気センサの選定の変形例
次に、上記図19のセンサ選定プログラムに従った磁気センサの選定の変形例ついて説明する。この場合、コンピュータ装置40は、図20のセンサ選定プログラムを実行する。このセンサ選定プログラムのステップS51〜S55の処理は、上記図19のセンサ選定プログラムのステップS41〜S45の処理と同じである。ステップS51〜S55の処理後、コンピュータ装置40は、ステップS56にて、下記数8の演算の実行によってオフセット温度ドリフト係数Ktを計算する。なお、下記数8中の差電圧(Os2−Os1)はステップS55の演算結果であり、比例定数Aは、同一仕様の磁気センサに共通の値であって、上記図16の比例定数検出プログラムの処理によって得られるものである。
f. Next, a modified example of the selection of the magnetic sensor in accordance with the sensor selection program shown in FIG. 19 will be described. In this case, the computer device 40 executes the sensor selection program shown in FIG. The processing of steps S51 to S55 of this sensor selection program is the same as the processing of steps S41 to S45 of the sensor selection program of FIG. After the processing of steps S51 to S55, the computer apparatus 40 calculates the offset temperature drift coefficient Kt by executing the following equation 8 in step S56. The difference voltage (Os2-Os1) in the following equation 8 is the calculation result of step S55, and the proportionality constant A is a value common to the magnetic sensors of the same specification, and the proportionality constant detection program of FIG. It is obtained by processing.

Figure 0005523983
Figure 0005523983

次に、コンピュータ装置40は、ステップS57にて、前記計算したオフセット温度ドリフト係数Ktの絶対値|Kt|が所定の選定値Ktoよりも大きいかを判定する。この選定値Ktoも、プログラム中に予め記憶された定数でもよいし、作業者がコンピュータ装置40に入力するようにしてもよい。そして、前記絶対値|Kt|が所定の選定値Ktoよりも大きければ、コンピュータ装置40は、ステップS57にて「Yes」と判定して、ステップS55にてオフセット温度ドリフト係数Ktが大きいことを表示したり、この磁気センサを不採用することを表示したりして、ステップS59にてこのセンサ選定プログラムの実行を終了する。また、前記絶対値|Kt|が所定の選定値Kto以下であれば、コンピュータ装置40は、ステップS57にて「No」と判定して、ステップS59にてこのセンサ選定プログラムの実行を終了する。   Next, in step S57, the computer apparatus 40 determines whether the calculated absolute value | Kt | of the offset temperature drift coefficient Kt is larger than a predetermined selection value Kto. This selection value Kto may also be a constant stored in advance in the program, or may be input to the computer device 40 by the operator. If the absolute value | Kt | is larger than the predetermined selection value Kto, the computer 40 determines “Yes” in step S57, and displays that the offset temperature drift coefficient Kt is large in step S55. Or displaying that the magnetic sensor is not adopted, and the execution of the sensor selection program is terminated in step S59. If the absolute value | Kt | is equal to or less than the predetermined selection value Kto, the computer device 40 determines “No” in step S57, and ends the execution of the sensor selection program in step S59.

このようなセンサ選定プログラムによれば、オフセット温度ドリフト係数Ktによって磁気センサ10が選定(選別)されることになる。これは、オフセット温度ドリフト係数Ktの絶対値|Kt|が大きくなればなるほど、磁気センサ10の温度の変化に対する出力電圧のドリフト量(補正量)が大きくなる。このことは、出力電圧の精度の悪化、出力電圧の補正の限界などをもたらす。したがって、前述のように、所定温度(例えば、室温)における第1及び第2の静オフセット電圧Os1,Os2を測定するだけで磁気センサ10の選定ができ、磁気センサ10選定が簡単になる。   According to such a sensor selection program, the magnetic sensor 10 is selected (selected) by the offset temperature drift coefficient Kt. This is because as the absolute value | Kt | of the offset temperature drift coefficient Kt increases, the drift amount (correction amount) of the output voltage with respect to the temperature change of the magnetic sensor 10 increases. This brings about deterioration of the accuracy of the output voltage, the limit of correction of the output voltage, and the like. Therefore, as described above, the magnetic sensor 10 can be selected simply by measuring the first and second static offset voltages Os1, Os2 at a predetermined temperature (for example, room temperature), and the magnetic sensor 10 can be easily selected.

なお、この場合も、ステップS56の処理によって計算したオフセット温度ドリフト係数Ktを表示器に表示して、作業者に磁気センサ10の選定を委ねるようにしてもよい。また、この場合も、磁気センサ10の選定においては、用途等により、オフセット温度ドリフト係数Ktが正であるか負であるか、すなわち磁気センサ10の温度ドリフトの方向に応じて磁気センサ10を評価するようにしてもよい。   In this case as well, the offset temperature drift coefficient Kt calculated by the process of step S56 may be displayed on the display device so that the operator can select the magnetic sensor 10. Also in this case, in selecting the magnetic sensor 10, the magnetic sensor 10 is evaluated depending on whether the offset temperature drift coefficient Kt is positive or negative, that is, the temperature drift direction of the magnetic sensor 10, depending on the application. You may make it do.

さらに、前記ステップS56で計算したオフセット温度ドリフト係数Ktに適当な温度(50度、100度など)を乗算して、温度変化による具体的なオフセット温度ドリフトの電圧値を表示したり、前記具体的な電圧値の大きさに応じて磁気センサを評価したりするようにしてもよい。   Further, the offset temperature drift coefficient Kt calculated in step S56 is multiplied by an appropriate temperature (50 degrees, 100 degrees, etc.) to display a specific offset temperature drift voltage value due to a temperature change, The magnetic sensor may be evaluated according to the magnitude of the voltage value.

また、上記図20のセンサ選定プログラムにおいても、ステップS51〜S54の処理によって第1及び第2の静オフセット電圧Os1,Os2を取得して、ステップS55にて第1及び第2の静オフセット電圧Os1,Os2の差電圧Os2−Os1を計算するようにした。しかし、この場合も、差電圧Os2−Os1は、上記ステップS53で計算した出力振幅中心値と上記ステップS51で磁気センサ10から入力した出力電圧Voutとの電圧差に等しい。したがって、オフセット電圧Os1,Os2が必要でない場合には、上記ステップS52,S54の処理を省略して、第1及び第2の静オフセット電圧Os1,Os2を計算することなく、上記ステップS53で計算した出力振幅中心値から上記ステップS51で磁気センサ10から入力した出力電圧Voutを減算して差電圧Os2−Os1を取得してもよい。   Also in the sensor selection program of FIG. 20, the first and second static offset voltages Os1 and Os2 are obtained by the processing of steps S51 to S54, and the first and second static offset voltages Os1 are obtained in step S55. , Os2 differential voltage Os2-Os1 is calculated. In this case, however, the difference voltage Os2-Os1 is equal to the voltage difference between the output amplitude center value calculated in step S53 and the output voltage Vout input from the magnetic sensor 10 in step S51. Therefore, when the offset voltages Os1 and Os2 are not necessary, the processing in steps S52 and S54 is omitted, and the first and second static offset voltages Os1 and Os2 are calculated in step S53. The difference voltage Os2-Os1 may be obtained by subtracting the output voltage Vout input from the magnetic sensor 10 in step S51 from the output amplitude center value.

g.フルブリッジ構成の磁気センサへの適用
上記d,eでは、ハーフブリッジ構成の磁気センサ10のオフセット温度ドリフトの補正及び磁気センサ10の選定について説明した。しかし、上述のように、フルブリッジ構成の磁気センサ30に関しても、磁気センサ10と同様な特性を有するとともに、上記数3が成立する。したがって、フルブリッジ構成の磁気センサ30に関しても、その出力電圧の補正及びその選定は上記「d.温度ドリフトの補正」及び「e.磁気センサの選定」と同様な装置及び方法により実行される。ただし、フルブリッジ構成の磁気センサ30は、上述のように、本来的には基準電圧0Vを中心に正弦波状に変化する電圧を出力するものであるので、オフセット電圧の計算においては、出力電圧Voutすなわち差動増幅器37の出力電圧をそのまま用いる。
g. Application to Full-Bridge Configuration Magnetic Sensor In the above d and e, the offset temperature drift correction and the selection of the magnetic sensor 10 of the half-bridge configuration magnetic sensor 10 have been described. However, as described above, the magnetic sensor 30 having the full bridge configuration has the same characteristics as those of the magnetic sensor 10 and Equation 3 is established. Therefore, also for the magnetic sensor 30 having the full bridge configuration, the correction of the output voltage and the selection thereof are performed by the same apparatus and method as the above-mentioned “d. Correction of temperature drift” and “e. Selection of magnetic sensor”. However, as described above, the magnetic sensor 30 having a full bridge configuration inherently outputs a voltage that changes sinusoidally around the reference voltage 0 V. Therefore, in the calculation of the offset voltage, the output voltage Vout That is, the output voltage of the differential amplifier 37 is used as it is.

h.オフセット電圧取得の第1変形例
上記実施形態及び変形例においては、外部磁界が印加されていない状態で第1の静オフセット電圧Os1を取得するようにしたが、次のようの方法も採用できる。上記図5に示すように、外部磁界Hrと、磁気センサ10の磁気抵抗効果素子15(R1)と磁気抵抗効果素子16(R2)との機械的位置関係が明確になっている状態であれば、図7及び図8の波形図からも分かるように、外部磁界Hrの回転角が0度及び180度(π)であるとき、外部磁界Hrが印加されていない状態の静オフセット電圧Os1と一致する。すなわち、外部磁界Hrの回転角が0度及び180度(π)である状態は、ブリッジを構成する磁気抵抗効果素子15,16(磁気抵抗効果素子32,33と34,35)の抵抗値に影響を与える磁界の強さ、すなわち磁気抵抗効果素子15,16(磁気抵抗効果素子32,33と34,35)の延設方向に直角な方向の磁界の強さに差がない状態である。これにより、第1のオフセット電圧Os1を、外部磁界Hbの回転方向が0度及び180度(π)であるとき、すなわち外部磁界Hbの回転方向がバイアス磁界Hbと同一又は反対方向であるとき、磁気センサ10,30の出力電圧Voutを取得して、出力電圧Voutから電源電圧Vccの半分の電圧Vcc/2を減算して第1の静オフセット電圧Os1を取得するようにしてもよい。
h. First Modified Example of Offset Voltage Acquisition In the embodiment and the modified example described above, the first static offset voltage Os1 is acquired in a state where no external magnetic field is applied, but the following method can also be employed. As shown in FIG. 5, the external magnetic field Hr and the mechanical positional relationship between the magnetoresistive effect element 15 (R1) and the magnetoresistive effect element 16 (R2) of the magnetic sensor 10 are clear. As can be seen from the waveform diagrams of FIGS. 7 and 8, when the rotation angle of the external magnetic field Hr is 0 degrees and 180 degrees (π), it matches the static offset voltage Os1 in the state where the external magnetic field Hr is not applied. To do. That is, when the rotation angle of the external magnetic field Hr is 0 degree and 180 degrees (π), the resistance values of the magnetoresistive effect elements 15 and 16 (magnetoresistive effect elements 32, 33 and 34, 35) constituting the bridge are set. In this state, there is no difference in the strength of the magnetic field that influences, that is, the strength of the magnetic field in the direction perpendicular to the extending direction of the magnetoresistive elements 15 and 16 (the magnetoresistive elements 32, 33 and 34, 35). Thereby, when the rotation direction of the external magnetic field Hb is 0 degree and 180 degrees (π), that is, when the rotation direction of the external magnetic field Hb is the same as or opposite to the bias magnetic field Hb, The output voltage Vout of the magnetic sensors 10 and 30 may be acquired, and the first static offset voltage Os1 may be acquired by subtracting the voltage Vcc / 2 that is half the power supply voltage Vcc from the output voltage Vout.

i.オフセット電圧取得の第2変形例
前記「g.オフセット電圧取得の第1変形例」では、ブリッジを構成する磁気抵抗効果素子15,16(磁気抵抗効果素子32,33と34,35)の抵抗値に影響を与える磁界の強さに差がない状態である、すなわち外部磁界Hrの回転角が0度及び180度における出力電圧Voutからのオフセット電圧Os1を取得するようにした。しかし、これとは逆に、一方の磁気抵抗効果素子16(磁気抵抗効果素子33,35)の抵抗値をそれぞれ最大及び最小にする両角度45,225度における出力電圧Vout1,Vout2の中央値すなわち平均値(Vout1+Vout2)/2から印加電圧Vccの半分の電圧Vcc/2を減算することにより、第1のオフセット電圧Os1を取得することも考えられる。また、同様に、他方の磁気抵抗効果素子15(磁気抵抗効果素子32,34)の抵抗値をそれぞれ最大及び最小にする両角度135,315度における出力電圧Vout1,Vout2の平均値(Vout1+Vout2)/2から印加電圧Vccの半分の電圧Vcc/2を減算することにより、第1のオフセット電圧Os1を取得することも考えられる。これによれば、外部磁界Hrがブリッジを構成する磁気抵抗効果素子15,16(磁気抵抗効果素子32,33と34,35)のうちの一方の磁気抵抗効果素子にのみ関与して、同関与した磁気抵抗効果素子の抵抗値に与える影響が打ち消されることになる。したがって、前述のようにして、第1の静オフセット電圧Vs1を取得するようにしてもよい。
i. Second Modified Example of Offset Voltage Acquisition In “g. First Modified Example of Offset Voltage Acquisition”, the resistance values of the magnetoresistive effect elements 15 and 16 (the magnetoresistive effect elements 32, 33 and 34, 35) constituting the bridge are described. In other words, the offset voltage Os1 from the output voltage Vout is obtained when there is no difference in the strength of the magnetic field that affects the angle, that is, when the rotation angle of the external magnetic field Hr is 0 degrees and 180 degrees. However, on the contrary, the median value of the output voltages Vout1 and Vout2 at both angles 45 and 225 degrees, which maximizes and minimizes the resistance value of one magnetoresistive element 16 (magnetoresistive elements 33 and 35), that is, It is also conceivable to obtain the first offset voltage Os1 by subtracting the voltage Vcc / 2 which is half of the applied voltage Vcc from the average value (Vout1 + Vout2) / 2. Similarly, the average value (Vout1 + Vout2) / Vout2 of the output voltages Vout1 and Vout2 at both angles 135 and 315 degrees, which maximizes and minimizes the resistance value of the other magnetoresistive element 15 (magnetoresistive elements 32 and 34), respectively. It is also conceivable to obtain the first offset voltage Os1 by subtracting the voltage Vcc / 2 which is half of the applied voltage Vcc from 2. According to this, the external magnetic field Hr is involved only in one of the magnetoresistive effect elements 15 and 16 (the magnetoresistive effect elements 32, 33 and 34, 35) constituting the bridge, and the same participation. The influence on the resistance value of the magnetoresistive effect element is canceled. Therefore, the first static offset voltage Vs1 may be acquired as described above.

この点に関しては、次の説明からも理解される。この場合、精度向上のために、2軸へルムホルツコイル50を用いた。2軸へルムホルツコイルは、図21に示すように、X軸方向の磁界を生成する一対のX軸コイル51,52と、Y軸方向の磁界を生成する一対のY軸コイル53,54とを備えている。そして、X軸コイル51,52に正弦波電流を流すとともに、Y軸コイル53,54に余弦波電流を流して、X軸方向とY軸方向にそれぞれ正弦波状及び余弦波状の平衡磁界を発生させる。これにより、X軸コイル51,52及びY軸コイル53,54で囲まれた空間内に図示矢印方向の回転磁界が生成され、この回転磁界内に図1〜3に示す磁気センサ10を配置した。   This point can also be understood from the following explanation. In this case, a biaxial Helmholtz coil 50 was used to improve accuracy. As shown in FIG. 21, the biaxial Helmholtz coil includes a pair of X-axis coils 51 and 52 that generate a magnetic field in the X-axis direction, and a pair of Y-axis coils 53 and 54 that generate a magnetic field in the Y-axis direction. It has. Then, a sine wave current is passed through the X-axis coils 51 and 52 and a cosine wave current is passed through the Y-axis coils 53 and 54 to generate sine wave and cosine wave balanced magnetic fields in the X axis direction and the Y axis direction, respectively. . As a result, a rotating magnetic field in the direction of the arrow shown in the figure is generated in a space surrounded by the X-axis coils 51 and 52 and the Y-axis coils 53 and 54, and the magnetic sensor 10 shown in FIGS. .

この場合、回転磁界の強さを10mTとし、回転磁界の角度を磁気センサ10によるバイアス磁界Hbと同じ方向となるときを0度とした。磁気センサ10の出力電圧Voutをバッファアンプを介して出力させて、360度を2000個に分割した角度ごとに測定結果を得た。下記表5に、測定結果を抜粋して示している。また、この表5においては、前記出力電圧Voutと同一振幅の正弦波を基準正弦波として想定し、その瞬時を前記抜粋した角度ごとに示すとともに、出力電圧Voutから基準正弦波の瞬時値を減算した値も前記抜粋した角度ごとに示す。図22は前記出力電圧Vout、基準正弦波及び減算値の0度から360度にわたる変化を示し、図23は前記減算値の0度から360度にわたる変化を拡大して示している。   In this case, the strength of the rotating magnetic field was 10 mT, and the angle of the rotating magnetic field was 0 degree when it was in the same direction as the bias magnetic field Hb by the magnetic sensor 10. The output voltage Vout of the magnetic sensor 10 was output through a buffer amplifier, and measurement results were obtained for each angle obtained by dividing 360 degrees into 2000 pieces. In Table 5 below, the measurement results are extracted and shown. Further, in Table 5, a sine wave having the same amplitude as the output voltage Vout is assumed as a reference sine wave, and the instantaneous value is shown for each extracted angle, and the instantaneous value of the reference sine wave is subtracted from the output voltage Vout. The values obtained are also shown for each extracted angle. FIG. 22 shows the change of the output voltage Vout, the reference sine wave and the subtraction value from 0 degree to 360 degrees, and FIG. 23 shows the change of the subtraction value from 0 degree to 360 degrees.

Figure 0005523983
Figure 0005523983

図23から上述した第2の静オフセット電圧Os2と第1の静オフセット電圧Os1との差は、−αcos2θであることが確認できる。この場合、差Os2−Os1の正負の関係とαcos2θの正負の関係は逆になる。sinθとcos2θの関係を表した図24から理解できるように、外部磁界を印加してない状態の第1の静オフセット電圧Os1は、cos2θが「0」である45度と225度の瞬時値の平均値及びcos2θが「0」である135度と315度の瞬時値の平均値からそれぞれ求められる。したがって、これを第1の静オフセット電圧Os1として採用してもよい。   It can be confirmed from FIG. 23 that the difference between the second static offset voltage Os2 and the first static offset voltage Os1 described above is −αcos2θ. In this case, the positive / negative relationship of the difference Os2-Os1 and the positive / negative relationship of αcos2θ are reversed. As can be understood from FIG. 24 showing the relationship between sin θ and cos 2θ, the first static offset voltage Os1 in a state where no external magnetic field is applied is an instantaneous value of 45 degrees and 225 degrees where cos 2θ is “0”. The average value and the average value of 135 ° and 315 ° instantaneous values where cos 2θ is “0” are respectively obtained. Therefore, this may be adopted as the first static offset voltage Os1.

なお、この第1の静オフセット電圧Os1に関しては、フルブリッジ構成の磁気センサ30にも適用される。すなわち、ハーフブリッジ構成の磁気センサ10も、フルブリッジ構成の磁気センサ30も、磁気抵抗効果素子の数こそ異なるが、磁気抵抗効果素子の延設方向に関しては同じであるので、フルブリッジ構成の磁気センサ30でも同様である。   Note that the first static offset voltage Os1 is also applied to the magnetic sensor 30 having a full bridge configuration. That is, the magnetic sensor 10 of the half bridge configuration and the magnetic sensor 30 of the full bridge configuration are different in the number of magnetoresistive effect elements, but the extension direction of the magnetoresistive effect elements is the same. The same applies to the sensor 30.

また、前記2軸へルムホルツコイル50を用いて、「g.オフセット電圧取得の第1変形例」の方法によって第1オフセット電圧Os1を取得するようにしてもよい。すなわち、2軸へルムホルツコイル50による外部磁界の回転角が0度又は180度である状態で、磁気センサ10,30の出力電圧Voutから印加電圧Vccの半分の電圧Vcc/2を減算することにより、第1の静オフセット電圧Os1を取得してもよい。また、この方法をフルブリッジ構成の磁気センサ30に適用する場合には、前記電圧Vcc/2の減算は上述のように不必要である。   Further, the first offset voltage Os1 may be acquired by using the biaxial Helmholtz coil 50 by the method of “g. First modification of offset voltage acquisition”. That is, the voltage Vcc / 2 which is half of the applied voltage Vcc is subtracted from the output voltage Vout of the magnetic sensors 10 and 30 in a state where the rotation angle of the external magnetic field by the 2-axis Helmholtz coil 50 is 0 degree or 180 degrees. Thus, the first static offset voltage Os1 may be acquired. Further, when this method is applied to the magnetic sensor 30 having the full bridge configuration, the subtraction of the voltage Vcc / 2 is unnecessary as described above.

j.その他の変形例
以上、本発明の実施形態について説明したが、本発明の実施にあたっては、上記実施形態に限定されるものではなく、本発明の目的を逸脱しない限りにおいて種々の変形も可能である。
j. Other Modifications Although the embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various modifications can be made without departing from the object of the present invention. .

上記実施形態及び変形例では、永久磁石22を磁気センサ10,30に対して回転させるようにしたが、永久磁石を磁気センサ10,30に対して直線移動させるようにしてもよい。この場合、図25に示すように、磁気センサ10,30の側方にN極及びS極からな永久磁石61を位置させて、磁気センサ10,30の磁気抵抗効果素子15,16,32〜35が属する平面において、バイアス磁界の方向とは直角方向に永久磁石61を移動させるようにする。この永久磁石61の移動により、磁気センサ10,30の磁気抵抗効果素子15,16,32〜35が属する平面内にて、図26に矢印で示すような永久磁石61による回転磁界が発生することになる。したがって、この永久磁石10,30を直線移動させるような検出装置に適用される磁気センサにおいても、上記実施形態及び変形例に記載の内容は全て適用される。この場合、図25及び図26において、永久磁石61をバイアス磁界の方向と直角方向に移動させるようにしたが、このような永久磁石61を直線移動させる場合には、永久磁石61の移動方向とバイアス磁界の方向とを平行にしてもよい。   In the embodiment and the modification, the permanent magnet 22 is rotated with respect to the magnetic sensors 10 and 30, but the permanent magnet may be linearly moved with respect to the magnetic sensors 10 and 30. In this case, as shown in FIG. 25, a permanent magnet 61 composed of an N pole and an S pole is positioned on the side of the magnetic sensors 10, 30, and the magnetoresistive effect elements 15, 16, 32-of the magnetic sensors 10, 30. In the plane to which 35 belongs, the permanent magnet 61 is moved in a direction perpendicular to the direction of the bias magnetic field. Due to the movement of the permanent magnet 61, a rotating magnetic field is generated by the permanent magnet 61 as indicated by an arrow in FIG. 26 in the plane to which the magnetoresistive elements 15, 16, 32 to 35 of the magnetic sensors 10, 30 belong. become. Therefore, all the contents described in the above-described embodiments and modifications are also applied to a magnetic sensor applied to a detection device that linearly moves the permanent magnets 10 and 30. In this case, in FIG. 25 and FIG. 26, the permanent magnet 61 is moved in a direction perpendicular to the direction of the bias magnetic field. However, when such a permanent magnet 61 is moved linearly, the movement direction of the permanent magnet 61 is changed. The direction of the bias magnetic field may be parallel.

また、上記実施形態及び変形例では、バイアス磁界Hbを印加する手段として永久磁石からなるバイアス磁石13を用いるようにした。しかし、これに代えて、磁性薄膜、薄膜コイルなどを用いてバイアス磁界Hbを発生させるようにしてもよい。   Moreover, in the said embodiment and modification, the bias magnet 13 which consists of a permanent magnet was used as a means to apply the bias magnetic field Hb. However, instead of this, the magnetic bias field Hb may be generated using a magnetic thin film, a thin film coil, or the like.

さらに、上記実施形態及び変形例では、磁気抵抗効果素子15,16,32〜35として異方性磁気抵抗効果素子(AMR素子)を採用したが、これらの磁気抵抗効果素子15,16,32〜35として巨大磁気抵抗効果素子(GMR素子)を採用してもよい。   Furthermore, in the said embodiment and modification, although the anisotropic magnetoresistive effect element (AMR element) was employ | adopted as the magnetoresistive effect element 15,16,32-35, these magnetoresistive effect elements 15,16,32- A giant magnetoresistive element (GMR element) may be adopted as 35.

15,16,32〜35…磁気抵抗効果素子、10,30…磁気センサ、13…バイアス磁石、14,31…シリコン基板、22,61…永久磁石、37…差動増幅器、40…コンピュータ装置、42…温度センサ、44…加熱及び冷却装置、50…ヘルムホルツコイル 15, 16, 32 to 35 ... magnetoresistive effect element, 10, 30 ... magnetic sensor, 13 ... bias magnet, 14, 31 ... silicon substrate, 22, 61 ... permanent magnet, 37 ... differential amplifier, 40 ... computer device, 42 ... temperature sensor, 44 ... heating and cooling device, 50 ... helmholtz coil

Claims (10)

90度異なる方向に延設して直列に接続した少なくとも2つの磁気抵抗効果素子と、
前記少なくとも2つの磁気抵抗効果素子の両延設方向に挟まれた中央方向にバイアス磁界を印加するバイアス手段とを備え、
前記少なくとも2つの磁気抵抗効果素子の両端に直流電圧を印加した状態で、前記少なくとも2つの磁気抵抗効果素子の接続点から、前記少なくとも2つの磁気抵抗効果素子に対して回転する外部磁界に対して基準電圧を中心に正弦波状に変化する電圧を出力する磁気センサに適用され、前記磁気センサからの出力電圧を補正する磁気センサのための補正方法において、
外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサの出力電圧を取得する第1出力電圧取得手順と、
前記第1出力電圧取得手順で取得した出力電圧の前記基準電圧からのずれ量を表す第1オフセット電圧を取得するオフセット電圧取得手順と、
前記第1出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第1出力振幅中心値取得手順と、
前記計算した出力振幅中心値の前記基準電圧からのずれ量を表す第2オフセット電圧と前記第1オフセット電圧との差を表すオフセット電圧差を、前記第1出力振幅中心値取得手順によって取得した出力振幅中心値から前記第1出力電圧取得手順によって取得した出力電圧を減算することにより、又は前記第1出力振幅中心値取得手順によって取得した出力振幅中心値から前記基準電圧及び前記第1オフセット電圧を減算することにより取得し、予め用意された比例定数をAとし、前記第1オフセット電圧をOs1とし、前記取得したオフセット電圧差を(Os2−Os1)とし、前記第1出力電圧取得手順及び前記第1出力振幅中心値取得手順で前記磁気センサからの出力電圧を入力したときの前記磁気センサの温度をTrtとし、かつ前記磁気センサの温度がTである条件下で、外部磁界の印加によって前記磁気センサから出力される出力電圧を、式Oa(T)=A・(Os2−Os1)・(T−Trt)+Os1によって規定される補正値Oa(T)で補正する補正手順と
を設けたことを特徴とする磁気センサのための補正方法。
At least two magnetoresistive elements extending in 90 degrees different directions and connected in series;
Bias means for applying a bias magnetic field in a central direction sandwiched between the extending directions of the at least two magnetoresistive elements,
With respect to an external magnetic field rotating with respect to the at least two magnetoresistive effect elements from a connection point of the at least two magnetoresistive effect elements in a state where a DC voltage is applied to both ends of the at least two magnetoresistive effect elements. In a correction method for a magnetic sensor that is applied to a magnetic sensor that outputs a voltage that changes sinusoidally around a reference voltage, and that corrects an output voltage from the magnetic sensor,
A first output voltage acquisition procedure for acquiring an output voltage of the magnetic sensor in a state in which an external magnetic field does not cause a difference in resistance value changes of the at least two magnetoresistive elements;
An offset voltage acquisition procedure for acquiring a first offset voltage representing an amount of deviation from the reference voltage of the output voltage acquired in the first output voltage acquisition procedure;
The maximum output voltage of the magnetic sensor when an external magnetic field is rotated with respect to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the first output voltage acquisition procedure. A first output amplitude center value acquisition procedure for calculating a median of a value and a minimum value, and acquiring the calculated median as an output amplitude center value;
The output obtained by the first output amplitude center value obtaining procedure for the offset voltage difference representing the difference between the second offset voltage representing the deviation amount of the calculated output amplitude center value from the reference voltage and the first offset voltage. The reference voltage and the first offset voltage are obtained by subtracting the output voltage acquired by the first output voltage acquisition procedure from the amplitude center value or from the output amplitude center value acquired by the first output amplitude center value acquisition procedure. Obtained by subtracting, the proportionality constant prepared in advance as A, the first offset voltage as Os1, the obtained offset voltage difference as (Os2−Os1), the first output voltage obtaining procedure and the first Trt is the temperature of the magnetic sensor when the output voltage from the magnetic sensor is input in one output amplitude center value acquisition procedure, and the magnetic sensor Under the condition that the degree is T, the output voltage output from the magnetic sensor by applying an external magnetic field is corrected by the formula Oa (T) = A · (Os 2 −Os 1) · (T−Trt) + Os 1 A correction method for a magnetic sensor, comprising: a correction procedure for correcting with a value Oa (T).
前記請求項1に記載した磁気センサのための補正方法において、前記第1出力電圧取得手順、前記オフセット電圧取得手順、前記第1出力振幅中心値取得手順及び前記補正手順とは独立していて、前記比例定数Aを用意するために、さらに、
異なる2つの温度条件下で、外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサからの出力電圧をそれぞれ入力して、前記磁気センサからの出力電圧を入力したときの温度をそれぞれT1,T2とし、前記入力した出力電圧をそれぞれV1,V2とし、かつ温度ドリフト係数をKtとしたとき、式Kt=(V2−V1)/(T2−T1)の演算の実行により、温度ドリフト係数Ktを計算する温度ドリフト係数計算手順と、
外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサからの出力電圧をそれぞれ取得する第2出力電圧取得手順と、
前記第2出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第2出力振幅中心値取得手順と、
前記第2出力振幅中心値取得手順で取得した出力振幅中心値と前記第2出力電圧取得手順で取得した出力電圧とを用いて、前記出力振幅中心値と前記出力電圧との電圧差をオフセット電圧差として取得し、前記取得したオフセット電圧差を(Os2−Os1)として、前記比例定数Aを、式A=Kt/(Os2−Os1)の演算の実行により計算する比例定数計算手順と
を設けたことを特徴とする磁気センサのための補正方法。
The correction method for a magnetic sensor according to claim 1, wherein the first output voltage acquisition procedure, the offset voltage acquisition procedure, the first output amplitude center value acquisition procedure, and the correction procedure are independent of each other. In order to prepare the proportionality constant A,
An output voltage from the magnetic sensor is input in a state where an external magnetic field does not cause a difference in resistance value change between the at least two magnetoresistive elements under two different temperature conditions, and the output voltage from the magnetic sensor is input. When T1 and T2 are respectively input temperatures, V1 and V2 are respectively input output voltages, and Kt is a temperature drift coefficient, Kt = (V2−V1) / (T2−T1) A temperature drift coefficient calculation procedure for calculating the temperature drift coefficient Kt by executing the calculation;
A second output voltage acquisition procedure for acquiring each output voltage from the magnetic sensor in a state in which an external magnetic field does not cause a difference in resistance value changes of the at least two magnetoresistive elements;
The maximum output voltage of the magnetic sensor when an external magnetic field is rotated relative to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the second output voltage acquisition procedure. A second output amplitude center value acquisition procedure for calculating a median of a value and a minimum value, and acquiring the calculated median as an output amplitude center value;
Using the output amplitude center value acquired in the second output amplitude center value acquisition procedure and the output voltage acquired in the second output voltage acquisition procedure, the voltage difference between the output amplitude center value and the output voltage is determined as an offset voltage. A proportional constant calculation procedure is provided in which the proportional constant A is obtained by executing the calculation of the equation A = Kt / (Os2-Os1), with the obtained offset voltage difference being (Os2-Os1). A correction method for a magnetic sensor.
前記請求項1に記載した磁気センサのための補正方法において、前記第1出力電圧取得手順、前記オフセット電圧取得手順、前記第1出力振幅中心値取得手順及び前記補正手順とは独立していて、前記比例定数Aを用意するために、さらに、
異なる2つの温度条件下で、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対してそれぞれ回転させて前記磁気センサから出力電圧をそれぞれ入力し、前記異なる2つの温度条件下でそれぞれ入力した出力電圧の最大値と最小値との各中央値をそれぞれ出力振幅中心値として取得し、前記磁気センサからの出力電圧を入力したときの温度をそれぞれT1,T2とし、前記取得した出力振幅中心値をそれぞれV1,V2とし、かつ温度ドリフト係数をKtとしたとき、式Kt=(V2−V1)/(T2−T1)の演算の実行により、温度ドリフト係数Ktを計算する温度ドリフト係数計算手順と、
外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサからの出力電圧をそれぞれ取得する第2出力電圧取得手順と、
前記第2出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第2出力振幅中心値取得手順と、
前記第2出力振幅中心値取得手順で取得した出力振幅中心値と前記第2出力電圧取得手順で取得した出力電圧とを用いて、前記出力振幅中心値と前記出力電圧との電圧差をオフセット電圧差として取得し、前記取得したオフセット電圧差を(Os2−Os1)として、前記比例定数Aを、式A=Kt/(Os2−Os1)の演算の実行により計算する比例定数計算手順と
を設けたことを特徴とする磁気センサのための補正方法。
The correction method for a magnetic sensor according to claim 1, wherein the first output voltage acquisition procedure, the offset voltage acquisition procedure, the first output amplitude center value acquisition procedure, and the correction procedure are independent of each other. In order to prepare the proportionality constant A,
Under two different temperature conditions, an external magnetic field is rotated with respect to the at least two magnetoresistive elements, respectively, and output voltages are input from the magnetic sensors, respectively, and output voltages respectively input under the two different temperature conditions Median values of the maximum value and the minimum value are respectively obtained as output amplitude center values, the temperatures when the output voltage from the magnetic sensor is input are T1 and T2, respectively, and the obtained output amplitude center values are respectively obtained. A temperature drift coefficient calculation procedure for calculating the temperature drift coefficient Kt by executing the calculation of the equation Kt = (V2−V1) / (T2−T1), where V1 and V2 and the temperature drift coefficient is Kt,
A second output voltage acquisition procedure for acquiring each output voltage from the magnetic sensor in a state in which an external magnetic field does not cause a difference in resistance value changes of the at least two magnetoresistive elements;
The maximum output voltage of the magnetic sensor when an external magnetic field is rotated relative to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the second output voltage acquisition procedure. A second output amplitude center value acquisition procedure for calculating a median of a value and a minimum value, and acquiring the calculated median as an output amplitude center value;
Using the output amplitude center value acquired in the second output amplitude center value acquisition procedure and the output voltage acquired in the second output voltage acquisition procedure, the voltage difference between the output amplitude center value and the output voltage is determined as an offset voltage. A proportional constant calculation procedure is provided in which the proportional constant A is obtained by executing the calculation of the equation A = Kt / (Os2-Os1), with the obtained offset voltage difference being (Os2-Os1). A correction method for a magnetic sensor.
請求項1乃至3のうちのいずれか一つに記載した磁気センサのための補正方法において、
前記第1出力電圧取得手順は、外部磁界を前記磁気センサに印加しない状態で前記磁気センサから出力電圧を入力するようにした磁気センサのための補正方法。
The correction method for a magnetic sensor according to any one of claims 1 to 3,
The first output voltage acquisition procedure is a correction method for a magnetic sensor in which an output voltage is input from the magnetic sensor without applying an external magnetic field to the magnetic sensor.
請求項1乃至3のうちのいずれか一つに記載した磁気センサのための補正方法において、
前記第1出力電圧取得手順は、外部磁界を前記少なくとも2つの磁気抵抗効果素子の延設方向に挟まれた中央方向又はその反対方向に印加した状態で前記磁気センサから出力電圧を入力するようにした磁気センサのための補正方法。
The correction method for a magnetic sensor according to any one of claims 1 to 3,
In the first output voltage acquisition procedure, an output voltage is input from the magnetic sensor in a state where an external magnetic field is applied in a central direction sandwiched in the extending direction of the at least two magnetoresistive elements or in the opposite direction. Correction method for a magnetic sensor.
請求項1乃至3のうちのいずれか一つに記載した磁気センサのための補正方法において、
前記第1出力電圧取得手順は、外部磁界を前記少なくとも2つの磁気抵抗効果素子のいずれか一方の延設方向及びその反対方向に印加した状態で前記磁気センサから出力電圧をそれぞれ入力して、前記入力した出力電圧の中央値を、前記外部磁界が少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサの出力電圧として取得するようにした磁気センサのための補正方法。
The correction method for a magnetic sensor according to any one of claims 1 to 3,
The first output voltage acquisition procedure includes inputting an output voltage from the magnetic sensor in a state where an external magnetic field is applied in the extending direction of one of the at least two magnetoresistive elements and in the opposite direction, A correction method for a magnetic sensor, wherein a median value of input output voltages is acquired as an output voltage of the magnetic sensor in a state where the external magnetic field does not cause a difference in resistance value change of at least two magnetoresistive elements.
90度異なる方向に延設して直列に接続した少なくとも2つの磁気抵抗効果素子と、
前記少なくとも2つの磁気抵抗効果素子の両延設方向に挟まれた中央方向にバイアス磁界を印加するバイアス手段とを備え、
前記少なくとも2つの磁気抵抗効果素子の両端に直流電圧を印加した状態で、前記少なくとも2つの磁気抵抗効果素子の接続点から、前記少なくとも2つの磁気抵抗効果素子に対して回転する外部磁界に対して基準電圧を中心に正弦波状に変化する電圧を出力する磁気センサに適用され、選別のために前記磁気センサを評価する磁気センサの評価方法において、
外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサの出力電圧を取得する第1出力電圧取得手順と、
前記第1出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第1出力振幅中心値取得手順と、
前記第1出力電圧取得手順で取得した出力電圧の前記基準電圧からのずれ量を表す第1オフセット電圧と、前記第1出力振幅中心値取得手順で取得した出力振幅中心値の前記基準電圧からのずれ量を表す第2オフセット電圧との電圧差を、少なくとも前記第1出力電圧取得手順で取得した出力電圧と前記第1出力振幅中心値取得手順で取得した出力振幅中心値とを用いた計算によってオフセット電圧差として取得するオフセット電圧差取得手順と、
前記取得したオフセット電圧差を用いて前記磁気センサを評価する評価手順と
を設けたことを特徴とする磁気センサの評価方法。
At least two magnetoresistive elements extending in 90 degrees different directions and connected in series;
Bias means for applying a bias magnetic field in a central direction sandwiched between the extending directions of the at least two magnetoresistive elements,
With respect to an external magnetic field rotating with respect to the at least two magnetoresistive effect elements from a connection point of the at least two magnetoresistive effect elements in a state where a DC voltage is applied to both ends of the at least two magnetoresistive effect elements. In a magnetic sensor evaluation method that is applied to a magnetic sensor that outputs a voltage that changes sinusoidally around a reference voltage, and evaluates the magnetic sensor for selection,
A first output voltage acquisition procedure for acquiring an output voltage of the magnetic sensor in a state in which an external magnetic field does not cause a difference in resistance value changes of the at least two magnetoresistive elements;
The maximum output voltage of the magnetic sensor when an external magnetic field is rotated with respect to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the first output voltage acquisition procedure. A first output amplitude center value acquisition procedure for calculating a median of a value and a minimum value, and acquiring the calculated median as an output amplitude center value;
A first offset voltage representing an amount of deviation of the output voltage acquired in the first output voltage acquisition procedure from the reference voltage, and an output amplitude center value acquired in the first output amplitude center value acquisition procedure from the reference voltage. The voltage difference from the second offset voltage representing the amount of deviation is calculated by using at least the output voltage acquired in the first output voltage acquisition procedure and the output amplitude center value acquired in the first output amplitude center value acquisition procedure. Offset voltage difference acquisition procedure to acquire as offset voltage difference,
An evaluation method for evaluating the magnetic sensor using the acquired offset voltage difference is provided.
90度異なる方向に延設して直列に接続した少なくとも2つの磁気抵抗効果素子と、
前記少なくとも2つの磁気抵抗効果素子の両延設方向に挟まれた中央方向にバイアス磁界を印加するバイアス手段とを備え、
前記少なくとも2つの磁気抵抗効果素子の両端に直流電圧を印加した状態で、前記少なくとも2つの磁気抵抗効果素子の接続点から、前記少なくとも2つの磁気抵抗効果素子に対して回転する外部磁界に対して基準電圧を中心に正弦波状に変化する電圧を出力する磁気センサに適用され、選別のために前記磁気センサを評価する磁気センサの評価方法において、
外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサの出力電圧を取得する第1出力電圧取得手順と、
前記第1出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第1出力振幅中心値取得手順と、
前記第1出力電圧取得手順で取得した出力電圧の前記基準電圧からのずれ量を表す第1オフセット電圧と、前記第1出力振幅中心値取得手順で取得した出力振幅中心値の前記基準電圧からのずれ量を表す第2オフセット電圧との電圧差を、少なくとも前記第1出力電圧取得手順で取得した出力電圧と前記第1出力振幅中心値取得手順で取得した出力振幅中心値とを用いた計算によってオフセット電圧差として取得し、予め用意されて同一種類の磁気センサに共通な比例定数をAとし、かつ前記取得したオフセット電圧差をOs2−Os1として、磁気センサの温度ドリフト係数Ktを、式Kt=A・(Os2−Os1)の演算により取得する温度ドリフト係数取得手順と、
前記取得した温度ドリフト係数Ktを用いて前記磁気センサを評価する評価手順と
を設けたことを特徴とする磁気センサの評価方法。
At least two magnetoresistive elements extending in 90 degrees different directions and connected in series;
Bias means for applying a bias magnetic field in a central direction sandwiched between the extending directions of the at least two magnetoresistive elements,
With respect to an external magnetic field rotating with respect to the at least two magnetoresistive effect elements from a connection point of the at least two magnetoresistive effect elements in a state where a DC voltage is applied to both ends of the at least two magnetoresistive effect elements. In a magnetic sensor evaluation method that is applied to a magnetic sensor that outputs a voltage that changes sinusoidally around a reference voltage, and evaluates the magnetic sensor for selection,
A first output voltage acquisition procedure for acquiring an output voltage of the magnetic sensor in a state in which an external magnetic field does not cause a difference in resistance value changes of the at least two magnetoresistive elements;
The maximum output voltage of the magnetic sensor when an external magnetic field is rotated with respect to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the first output voltage acquisition procedure. A first output amplitude center value acquisition procedure for calculating a median of a value and a minimum value, and acquiring the calculated median as an output amplitude center value;
A first offset voltage representing an amount of deviation of the output voltage acquired in the first output voltage acquisition procedure from the reference voltage, and an output amplitude center value acquired in the first output amplitude center value acquisition procedure from the reference voltage. The voltage difference from the second offset voltage representing the amount of deviation is calculated by using at least the output voltage acquired in the first output voltage acquisition procedure and the output amplitude center value acquired in the first output amplitude center value acquisition procedure. An offset voltage difference is acquired, and a proportional constant that is prepared in advance and is common to the same type of magnetic sensor is A, and the acquired offset voltage difference is Os2−Os1, and the temperature drift coefficient Kt of the magnetic sensor is expressed by the equation Kt = A. The temperature drift coefficient acquisition procedure acquired by the calculation of (Os2-Os1),
An evaluation method for a magnetic sensor, comprising: an evaluation procedure for evaluating the magnetic sensor using the acquired temperature drift coefficient Kt.
前記請求項8に記載した磁気センサの評価方法において、前記第1出力電圧取得手順、前記第1出力振幅中心値取得手順、前記温度ドリフト係数計算手順及び前記評価手順とは独立していて、前記比例定数Aを用意するために、さらに、
異なる2つの温度条件下で、外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における前記磁気センサからの出力電圧をそれぞれ入力して、前記磁気センサからの出力電圧を入力したときの温度をそれぞれT1,T2とし、前記入力した出力電圧をそれぞれV1,V2とし、かつ温度ドリフト係数をKtとしたとき、式Kt=(V2−V1)/(T2−T1)の演算の実行により、温度ドリフト係数Ktを計算する温度ドリフト係数計算手順と、
外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサからの出力電圧をそれぞれ取得する第2出力電圧取得手順と、
前記第2出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第2出力振幅中心値取得手順と、
前記第2出力振幅中心値取得手順で取得した出力振幅中心値と前記第2出力電圧取得手順で取得した出力電圧とを用いて、前記出力振幅中心値と前記出力電圧との電圧差をオフセット電圧差として取得し、前記取得したオフセット電圧差を(Os2−Os1)として、前記比例定数Aを、式A=Kt/(Os2−Os1)の演算の実行により計算する比例定数計算手順と
を設けたことを特徴とする磁気センサの評価方法。
The magnetic sensor evaluation method according to claim 8, wherein the first output voltage acquisition procedure, the first output amplitude center value acquisition procedure, the temperature drift coefficient calculation procedure, and the evaluation procedure are independent of each other, and In order to prepare the proportionality constant A,
An output voltage from the magnetic sensor is input in a state where an external magnetic field does not cause a difference in resistance value change between the at least two magnetoresistive elements under two different temperature conditions, and the output voltage from the magnetic sensor is input. When T1 and T2 are respectively input temperatures, V1 and V2 are respectively input output voltages, and Kt is a temperature drift coefficient, Kt = (V2−V1) / (T2−T1) A temperature drift coefficient calculation procedure for calculating the temperature drift coefficient Kt by executing the calculation;
A second output voltage acquisition procedure for acquiring each output voltage from the magnetic sensor in a state in which an external magnetic field does not cause a difference in resistance value changes of the at least two magnetoresistive elements;
The maximum output voltage of the magnetic sensor when an external magnetic field is rotated relative to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the second output voltage acquisition procedure. A second output amplitude center value acquisition procedure for calculating a median of a value and a minimum value, and acquiring the calculated median as an output amplitude center value;
Using the output amplitude center value acquired in the second output amplitude center value acquisition procedure and the output voltage acquired in the second output voltage acquisition procedure, the voltage difference between the output amplitude center value and the output voltage is determined as an offset voltage. A proportional constant calculation procedure is provided in which the proportional constant A is obtained by executing the calculation of the equation A = Kt / (Os2-Os1), with the obtained offset voltage difference being (Os2-Os1). A method for evaluating a magnetic sensor.
前記請求項8に記載した磁気センサの評価方法において、前記第1出力電圧取得手順、前記第1出力振幅中心値取得手順、前記温度ドリフト係数計算手順及び前記評価手順とは独立していて、前記比例定数Aを用意するために、さらに、
異なる2つの温度条件下で、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対してそれぞれ回転させて前記磁気センサから出力電圧をそれぞれ入力し、前記異なる2つの温度条件下でそれぞれ入力した出力電圧の最大値と最小値との各中央値をそれぞれ出力振幅中心値として取得し、前記磁気センサからの出力電圧を入力したときの温度をそれぞれT1,T2とし、前記取得した出力振幅中心値をそれぞれV1,V2とし、かつ温度ドリフト係数をKtとしたとき、式Kt=(V2−V1)/(T2−T1)の演算の実行により、温度ドリフト係数Ktを計算する温度ドリフト係数計算手順と、
外部磁界が前記少なくとも2つの磁気抵抗効果素子の抵抗値変化に差を生じさせない状態における磁気センサからの出力電圧をそれぞれ取得する第2出力電圧取得手順と、
前記第2出力電圧取得手順で前記磁気センサから出力電圧を入力したときと同一温度において、外部磁界を前記少なくとも2つの磁気抵抗効果素子に対して回転させたときの前記磁気センサの出力電圧の最大値と最小値の中央値を計算して、前記計算した中央値を出力振幅中心値として取得する第2出力振幅中心値取得手順と、
前記第2出力振幅中心値取得手順で取得した出力振幅中心値と前記第2出力電圧取得手順で取得した出力電圧とを用いて、前記出力振幅中心値と前記出力電圧との電圧差をオフセット電圧差として取得し、前記取得したオフセット電圧差を(Os2−Os1)として、前記比例定数Aを、式A=Kt/(Os2−Os1)の演算の実行により計算する比例定数計算手順と
を設けたことを特徴とする磁気センサのための補正方法。
The magnetic sensor evaluation method according to claim 8, wherein the first output voltage acquisition procedure, the first output amplitude center value acquisition procedure, the temperature drift coefficient calculation procedure, and the evaluation procedure are independent of each other, and In order to prepare the proportionality constant A,
Under two different temperature conditions, an external magnetic field is rotated with respect to the at least two magnetoresistive elements, respectively, and output voltages are input from the magnetic sensors, respectively, and output voltages respectively input under the two different temperature conditions Median values of the maximum value and the minimum value are respectively obtained as output amplitude center values, the temperatures when the output voltage from the magnetic sensor is input are T1 and T2, respectively, and the obtained output amplitude center values are respectively obtained. A temperature drift coefficient calculation procedure for calculating the temperature drift coefficient Kt by executing the calculation of the equation Kt = (V2−V1) / (T2−T1), where V1 and V2 and the temperature drift coefficient is Kt,
A second output voltage acquisition procedure for acquiring each output voltage from the magnetic sensor in a state in which an external magnetic field does not cause a difference in resistance value changes of the at least two magnetoresistive elements;
The maximum output voltage of the magnetic sensor when an external magnetic field is rotated relative to the at least two magnetoresistive elements at the same temperature as when the output voltage is input from the magnetic sensor in the second output voltage acquisition procedure. A second output amplitude center value acquisition procedure for calculating a median of a value and a minimum value, and acquiring the calculated median as an output amplitude center value;
Using the output amplitude center value acquired in the second output amplitude center value acquisition procedure and the output voltage acquired in the second output voltage acquisition procedure, the voltage difference between the output amplitude center value and the output voltage is determined as an offset voltage. A proportional constant calculation procedure is provided in which the proportional constant A is obtained by executing the calculation of the equation A = Kt / (Os2-Os1), with the obtained offset voltage difference being (Os2-Os1). A correction method for a magnetic sensor.
JP2010182084A 2010-08-17 2010-08-17 Correction method for magnetic sensor and evaluation method of magnetic sensor Active JP5523983B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010182084A JP5523983B2 (en) 2010-08-17 2010-08-17 Correction method for magnetic sensor and evaluation method of magnetic sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010182084A JP5523983B2 (en) 2010-08-17 2010-08-17 Correction method for magnetic sensor and evaluation method of magnetic sensor

Publications (2)

Publication Number Publication Date
JP2012042259A JP2012042259A (en) 2012-03-01
JP5523983B2 true JP5523983B2 (en) 2014-06-18

Family

ID=45898771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010182084A Active JP5523983B2 (en) 2010-08-17 2010-08-17 Correction method for magnetic sensor and evaluation method of magnetic sensor

Country Status (1)

Country Link
JP (1) JP5523983B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200253A (en) * 2012-03-26 2013-10-03 Panasonic Corp Power measurement device
CN105074488B (en) * 2013-04-01 2017-11-17 株式会社Sirc Sensor element with temperature compensation function and Magnetic Sensor and electric energy the measure device using the element
US20180242877A1 (en) * 2015-11-12 2018-08-30 Matrix Cell Research Institute Inc. Magnetic fluid detecting device
CN111065881A (en) 2017-09-06 2020-04-24 株式会社村田制作所 Displacement detection device
US20220282683A1 (en) * 2021-03-03 2022-09-08 Vieletech Inc Apparatus and method for engine control
JP2023056840A (en) * 2021-10-08 2023-04-20 パナソニックIpマネジメント株式会社 Position detection system for motor

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0738173A (en) * 1993-07-20 1995-02-07 Matsushita Electric Ind Co Ltd Magnetic position, rotation detecting element
JP3341518B2 (en) * 1994-03-02 2002-11-05 株式会社デンソー Magnetic detector
JPH11194160A (en) * 1997-12-26 1999-07-21 Teikoku Tsushin Kogyo Co Ltd Amplifying circuit for reluctance element
JP3941082B2 (en) * 1998-01-28 2007-07-04 株式会社安川電機 Magnetic detector
JP2004069655A (en) * 2002-08-09 2004-03-04 Denso Corp Adjustment method for offset of magnetic sensor
JP4329746B2 (en) * 2005-08-29 2009-09-09 ヤマハ株式会社 Magnetic sensor using giant magnetoresistive element and method of manufacturing the same
JP4319153B2 (en) * 2005-01-25 2009-08-26 浜松光電株式会社 Magnetic sensor

Also Published As

Publication number Publication date
JP2012042259A (en) 2012-03-01

Similar Documents

Publication Publication Date Title
JP5523983B2 (en) Correction method for magnetic sensor and evaluation method of magnetic sensor
EP2954341B1 (en) Magnetic field sensor comprising angle correction module
EP3300518B1 (en) Magnetic field sensor for angle detection with a phase-locked loop
US9400164B2 (en) Magnetic field sensor and related techniques that provide an angle correction module
US9377285B2 (en) Magnetic field sensor and related techniques that provide varying current spinning phase sequences of a magnetic field sensing element
JP5120384B2 (en) Rotation angle detection device, rotator, and rotation angle detection method
JP2015526730A (en) Apparatus, method, and sensor for measuring absolute angular position using multipolar magnet
JP2011002311A (en) Rotation angle detector and rotational speed detector
CN108204825A (en) The correcting device and angular transducer of angular transducer
JPWO2014002387A1 (en) Hall electromotive force correction apparatus and hall electromotive force correction method
JP5795152B2 (en) MR sensor aging correction method and current measurement method
JP5439595B2 (en) Magnetic angle measuring device and rotation angle measuring device using the same
JP6460372B2 (en) Magnetic sensor, method for manufacturing the same, and measuring instrument using the same
US9547048B2 (en) Circuit and method for reducing an offset component of a plurality of vertical hall elements arranged in a circle
US20180292469A1 (en) Method and arrangement for determining the transverse sensitivity of magnetic field sensors
JP7006633B2 (en) Magnetic sensor system
JP6477718B2 (en) Current detection method, current detection device, current detection device signal correction method, and current detection device signal correction device
JP2007520189A (en) Linear motor and transducer arrangement therefor
JP2015078949A (en) Hall electromotive force signal detection circuit
JP2018115928A (en) Electric current sensor signal correction method, and electric current sensor
JP6457192B2 (en) Hall electromotive force signal processing apparatus, current sensor, and hall electromotive force signal processing method
CN107782415A (en) Liquid level sensor
Zambrano et al. Determination of the drift of the maximum angle error in AMR sensors due to aging
JP5796804B2 (en) How to install the current sensor
KR20230079974A (en) Driving method for thin film magneto resistance sensor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130805

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140313

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140318

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140409

R150 Certificate of patent or registration of utility model

Ref document number: 5523983

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250