JP2017044625A - Encoder - Google Patents

Encoder Download PDF

Info

Publication number
JP2017044625A
JP2017044625A JP2015168606A JP2015168606A JP2017044625A JP 2017044625 A JP2017044625 A JP 2017044625A JP 2015168606 A JP2015168606 A JP 2015168606A JP 2015168606 A JP2015168606 A JP 2015168606A JP 2017044625 A JP2017044625 A JP 2017044625A
Authority
JP
Japan
Prior art keywords
temperature
offset voltage
magnetoresistive element
magnetosensitive
phase
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.)
Granted
Application number
JP2015168606A
Other languages
Japanese (ja)
Other versions
JP6619974B2 (en
Inventor
宏克 奥村
Hirokatsu Okumura
宏克 奥村
齋藤 豊
Yutaka Saito
豊 齋藤
均 上甲
Hitoshi Joko
均 上甲
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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo Corp
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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP2015168606A priority Critical patent/JP6619974B2/en
Priority to TW105125017A priority patent/TWI688751B/en
Priority to KR1020160107761A priority patent/KR20170026209A/en
Priority to CN201610719370.XA priority patent/CN106482754B/en
Publication of JP2017044625A publication Critical patent/JP2017044625A/en
Application granted granted Critical
Publication of JP6619974B2 publication Critical patent/JP6619974B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/14Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage
    • G01D5/16Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage by varying resistance
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R33/00Arrangements or instruments for measuring magnetic variables
    • G01R33/0017Means for compensating offset magnetic fields or the magnetic flux to be measured; Means for generating calibration magnetic fields
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R33/00Arrangements or instruments for measuring magnetic variables
    • G01R33/02Measuring direction or magnitude of magnetic fields or magnetic flux
    • G01R33/06Measuring direction or magnitude of magnetic fields or magnetic flux using galvano-magnetic devices
    • G01R33/09Magnetoresistive devices
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K11/00Structural association of dynamo-electric machines with electric components or with devices for shielding, monitoring or protection
    • H02K11/20Structural association of dynamo-electric machines with electric components or with devices for shielding, monitoring or protection for measuring, monitoring, testing, protecting or switching
    • H02K11/21Devices for sensing speed or position, or actuated thereby
    • H02K11/215Magnetic effect devices, e.g. Hall-effect or magneto-resistive elements

Abstract

PROBLEM TO BE SOLVED: To provide an encoder in which influence of an offset voltage to temperature characteristics of a magnetoresistive element is decreased.SOLUTION: Under operation of the encoder, an offset adjustment unit 94 successively records, in a memory 95, an offset voltage and a temperature of the magneto-sensitive element as a pair. The offset adjustment unit 94 derives an approximate expression on the basis of data in the memory 95, and calculates the temperature characteristics of the offset voltage. When the encoder is started next time, the offset adjustment unit 94 calculates the offset voltage just after the start on the basis of detection results of a temperature monitoring resistance film and a temperature calculation unit 93 and the temperature characteristics.SELECTED DRAWING: Figure 4

Description

本発明は、エンコーダに係り、特に磁気センサ装置を備えるエンコーダに関する。   The present invention relates to an encoder, and more particularly to an encoder including a magnetic sensor device.

回転体の回転を検出するエンコーダでは、例えば、回転体の側にマグネットを設け、固定体の側に磁気抵抗素子(以下、「MR素子」と称する。)やホール素子を備えた磁気センサ装置が設けられる。この磁気センサ装置では、基板の一方面に磁気抵抗膜からなる感磁膜が形成されており、感磁膜によって構成した2相(A相およびB相)のブリッジ回路から出力された出力に基づいて、回転体の角度速度や角度位置等を検出する。   In an encoder that detects the rotation of a rotating body, for example, there is a magnetic sensor device provided with a magnet on the rotating body side and a magnetoresistive element (hereinafter referred to as “MR element”) or a Hall element on the fixed body side. Provided. In this magnetic sensor device, a magnetosensitive film made of a magnetoresistive film is formed on one surface of a substrate, and based on an output output from a two-phase (A phase and B phase) bridge circuit configured by the magnetosensitive film. Thus, the angular velocity and angular position of the rotating body are detected.

ここで、一般に、磁気センサ装置に用いられるMR素子やホール素子に用いられる感磁膜は、温度によって抵抗値が変化する。そのため、環境温度が変化しても安定した検出精度を得る技術が提案されている(例えば特許文献1参照。)。具体的には、感磁膜が形成された基板に、温度監視用抵抗膜および加熱用抵抗膜(ヒーターパターン)が形成されている。そして、設定温度との温度差や温度変化を温度監視用抵抗膜の抵抗値によって監視し、その監視結果に基づいて加熱用抵抗膜に給電し、感磁膜を設定温度にまで加熱する。従って、環境温度の変化が発生した際、応力の影響に起因する抵抗変化や、膜質の差に起因する抵抗変化が相違している場合でも環境温度による影響を受けづらいので、温度変化が発生しても安定した検出精度を得ることができる。   Here, in general, the resistance value of the magnetosensitive film used for the MR element and the Hall element used in the magnetic sensor device varies depending on the temperature. Therefore, a technique for obtaining stable detection accuracy even when the ambient temperature changes has been proposed (see, for example, Patent Document 1). Specifically, a temperature monitoring resistance film and a heating resistance film (heater pattern) are formed on the substrate on which the magnetosensitive film is formed. Then, the temperature difference and temperature change from the set temperature are monitored by the resistance value of the temperature monitoring resistance film, and the heating resistance film is supplied based on the monitoring result to heat the magnetosensitive film to the set temperature. Therefore, when a change in the environmental temperature occurs, even if the resistance change due to the effect of stress or the resistance change due to the difference in film quality is different, it is difficult to be affected by the environmental temperature. However, stable detection accuracy can be obtained.

特開2014−194360号公報JP 2014-194360 A

ところで、特許文献1に開示の技術では、ヒーターパターンにより温度制御を行ってMR素子を一定温度に保つが、(1)起動時、MR素子の温度が一定になるまで時間がかかったり、(2)温度センサと感磁膜の配置位置が異なる為、チップ内での温度が同一ではなく温度分布による誤差が生じ易かったり、(3)オフセット電圧の経年変化に対応するために、起動時のMR素子オフセット電圧として前回動作時のオフセット電圧を用いているが、これには温度特性が考慮されていないという課題があった。例えば、動作時は温度が高い状態でオフセットが記録されるが、起動時は温度が低いので誤差が大きいという課題があった。   By the way, in the technique disclosed in Patent Document 1, temperature control is performed by a heater pattern to keep the MR element at a constant temperature. (1) At startup, it takes time until the temperature of the MR element becomes constant, or (2 ) Because the temperature sensor and the magnetic sensitive film are arranged differently, the temperature in the chip is not the same and an error due to temperature distribution is likely to occur, or (3) MR corresponding to the secular change of the offset voltage Although the offset voltage at the previous operation is used as the element offset voltage, there is a problem that the temperature characteristic is not considered. For example, offset is recorded at a high temperature during operation, but there is a problem that the error is large because the temperature is low at startup.

本発明は、このような状況に鑑みなされたものであって、MR素子の温度特性の影響を低減させたエンコーダを提供することを目的とする。   The present invention has been made in view of such a situation, and an object thereof is to provide an encoder in which the influence of the temperature characteristics of the MR element is reduced.

本発明のエンコーダは、基板上に形成された磁気抵抗素子と、前記磁気抵抗素子のオフセット電圧を検出するオフセット電圧検出部と、前記磁気抵抗素子の温度を検出する温度検出部と、前記オフセット電圧と前記磁気抵抗素子の温度とを関連づけて記録する記憶部と、前記記憶部に記録されている前記オフセット電圧と前記磁気抵抗素子の温度とのデータから、前記オフセット電圧と前記磁気抵抗素子の温度との関係を示す近似式を算出し、起動時において、前記磁気抵抗素子の温度から前記近似式をもとにして現在のオフセット電圧を推定し、推定した前記オフセット電圧を新たなオフセット電圧とするオフセット電圧決定部と、を有する。したがって、起動時に素子を加熱する等して恒温制御を行う必要がなく、一定温度になるまでの時間が無くとも適したオフセット値を取得できる。すなわち、起動直後から精度の高い出力を実現できる。   The encoder of the present invention includes a magnetoresistive element formed on a substrate, an offset voltage detector that detects an offset voltage of the magnetoresistive element, a temperature detector that detects a temperature of the magnetoresistive element, and the offset voltage And a temperature of the magnetoresistive element from the data of the offset voltage and the temperature of the magnetoresistive element recorded in the memory unit An approximate expression indicating the relationship is calculated, and at the time of start-up, the current offset voltage is estimated from the temperature of the magnetoresistive element based on the approximate expression, and the estimated offset voltage is used as a new offset voltage. An offset voltage determination unit. Therefore, it is not necessary to perform constant temperature control by heating the element at the time of start-up, and a suitable offset value can be acquired even if there is no time until a constant temperature is reached. That is, a highly accurate output can be realized immediately after startup.

また、前記温度検出部は、前記磁気抵抗素子が形成されている同一の前記基板上に備わってもよい。したがって、実質的に、磁気抵抗素子自体の温度検出、すなわち、精度の高い温度検出が可能となる。   The temperature detecting unit may be provided on the same substrate on which the magnetoresistive element is formed. Therefore, substantially the temperature detection of the magnetoresistive element itself, that is, the temperature detection with high accuracy is possible.

また、前記記憶部に、前記オフセット電圧と前記磁気抵抗素子の温度とを関連づけて記録される際に、温度範囲は所定範囲毎に分割され、前記温度範囲内で検出したオフセット電圧を平均されてもよい。したがって、所定の温度範囲毎に分けてオフセット電圧を平均化して記録することで、データ容量を抑制することができる。例えば、記憶部の容量を小さいものを選択できたり、長期にわたってデータの記録が可能となり、長期のデータの補正が可能となる。   Further, when the offset voltage and the temperature of the magnetoresistive element are recorded in the storage unit in association with each other, the temperature range is divided into predetermined ranges, and the detected offset voltage within the temperature range is averaged. Also good. Therefore, the data capacity can be suppressed by averaging and recording the offset voltage separately for each predetermined temperature range. For example, a storage unit having a small capacity can be selected, data can be recorded over a long period, and long-term data can be corrected.

また、前記オフセット電圧決定部は、計測されたオフセット電圧と前記磁気抵抗素子の温度との関係が、前記近似式から所定量以上離間した場合に、新たなデータをもとに新たな近似式を算出してもよい。したがって、外的な要因等で大きくオフセット電圧がずれた場合に、近似式、すなわち、磁気抵抗素子の温度特性を一旦リセットすることで、状況に適したオフセット電圧を得ることができる。   Further, the offset voltage determination unit calculates a new approximate expression based on new data when the relationship between the measured offset voltage and the temperature of the magnetoresistive element is more than a predetermined amount away from the approximate expression. It may be calculated. Therefore, when the offset voltage largely deviates due to an external factor or the like, the offset voltage suitable for the situation can be obtained by once resetting the approximate expression, that is, the temperature characteristic of the magnetoresistive element.

また、前記温度検出部は、前記磁気抵抗素子の抵抗値を算出し、算出した抵抗値より現在の温度を検出してもよい。したがって、磁気抵抗素子自体の抵抗値を使用するので、別に温度検出部を設ける必要がない。また、磁気抵抗素子の感磁部の温度を検出できるのでチップ内での温度分布による誤差が少なくなる。   The temperature detector may calculate a resistance value of the magnetoresistive element and detect a current temperature from the calculated resistance value. Therefore, since the resistance value of the magnetoresistive element itself is used, there is no need to provide a separate temperature detection unit. In addition, since the temperature of the magnetosensitive portion of the magnetoresistive element can be detected, errors due to temperature distribution within the chip are reduced.

また、前記温度検出部は、前記磁気抵抗素子の温度を、外部の制御装置との通信周期毎に1回検出し、前記オフセット電圧決定部は前記通信周期の中で前記近似式を算出してもよい。すなわち、角度応答開始から次の制御装置からのリクエストまでの間に、温度演算処理が実行される。このように、通信周期毎に温度検出を行うことで、割り込み処理などで非定期的に行うよりも、処理を簡潔にすることができる。すなわち、処理時間を十分に確保できるため、確実に温度演算処理を終了させることができる。   The temperature detection unit detects the temperature of the magnetoresistive element once every communication cycle with an external control device, and the offset voltage determination unit calculates the approximate expression in the communication cycle. Also good. That is, the temperature calculation process is executed between the start of the angle response and the request from the next control device. In this way, by performing temperature detection for each communication cycle, the processing can be simplified compared to non-periodic processing such as interrupt processing. That is, a sufficient processing time can be secured, so that the temperature calculation process can be surely terminated.

また、前記温度検出部は、前記磁気抵抗素子が形成されている前記基板上に形成された温度監視用抵抗膜を備えてもよい。したがって、磁気抵抗素子の感磁部の温度を検出することとあわせて、温度監視用抵抗膜を使用することで、チップ内(基板上)の温度分布を把握することができ、温度分布による誤差を低減できる。   The temperature detector may include a temperature monitoring resistance film formed on the substrate on which the magnetoresistive element is formed. Therefore, the temperature distribution in the chip (on the substrate) can be ascertained by using the temperature monitoring resistive film in addition to detecting the temperature of the magnetosensitive element of the magnetoresistive element. Can be reduced.

本発明によれば、オフセット電圧に関して、磁気抵抗素子の温度特性の影響を低減させたエンコーダを提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the encoder which reduced the influence of the temperature characteristic of a magnetoresistive element regarding an offset voltage can be provided.

第1の実施の形態に係る、磁気センサ装置およびロータリエンコーダにおける原理を示す図である。It is a figure which shows the principle in the magnetic sensor apparatus and rotary encoder based on 1st Embodiment. 第1の実施の形態に係る、磁気センサ装置およびロータリエンコーダに用いた感磁素子の感磁膜の電気的な接続構造を示す図である。It is a figure which shows the electrical connection structure of the magnetic sensitive film of the magnetic sensitive element used for the magnetic sensor apparatus and rotary encoder based on 1st Embodiment. 第1の実施の形態に係る、磁気センサ装置の感磁素子の平面構成を示す図である。It is a figure which shows the plane structure of the magnetosensitive element of the magnetic sensor apparatus based on 1st Embodiment. 第1の実施の形態に係る、制御部のブロック図である。It is a block diagram of a control part concerning a 1st embodiment. 第1の実施の形態に係る、感磁素子の温度とオフセット電圧の関係を示したグラフである。It is the graph which showed the relationship between the temperature of a magnetosensitive element, and an offset voltage based on 1st Embodiment. 第2の実施の形態に係る、磁気センサ装置およびロータリエンコーダに用いた感磁素子の感磁膜の電気的な接続構造を示す図である。It is a figure which shows the electrical connection structure of the magnetosensitive film of the magnetosensitive element used for the magnetic sensor apparatus and rotary encoder based on 2nd Embodiment.

以下に、図面を参照して、本発明を適用した磁気センサ装置およびロータリエンコーダの実施の形態を説明する。なお、ロータリエンコーダにおいて、固定体に対する回転体の回転を検出するにあたっては、固定体にマグネットを設け、回転体に感磁素子を設けた構成、および固定体に感磁素子を設け、回転体にマグネットを設けた構成のいずれの構成を採用してもよいが、以下の説明では、固定体に感磁素子を設け、回転体にマグネットを設けた構成を中心に説明する。   Embodiments of a magnetic sensor device and a rotary encoder to which the present invention is applied will be described below with reference to the drawings. In the rotary encoder, when detecting the rotation of the rotating body with respect to the fixed body, the fixed body is provided with a magnet, the rotating body is provided with a magnetic sensitive element, and the fixed body is provided with a magnetic sensitive element. Any of the configurations in which the magnet is provided may be adopted. However, in the following description, the description will focus on the configuration in which the magnetosensitive element is provided in the fixed body and the magnet is provided in the rotating body.

<第1の実施の形態>
図1は、本発明の第1の実施の形態に係る磁気センサ装置10およびロータリエンコーダ1における原理を示す説明図である。図1(a)は、感磁素子4等に対する信号処理系を説明する図である。図1(b)は、感磁素子4から出力される信号を説明する図である。図1(c)は、信号と回転体2の角度位置(電気角)との関係を示す図である。図2は、磁気センサ装置10およびロータリエンコーダ1に用いた感磁素子4の感磁膜41〜44(磁気抵抗膜)の電気的な接続構造を説明する図である。図2(a)は、+A相の感磁膜43および−A相の感磁膜41が構成するブリッジ回路4aの図を示している。図2(b)は、+B相の感磁膜44および−B相の感磁膜42が構成するブリッジ回路4bの図を示している。
<First Embodiment>
FIG. 1 is an explanatory diagram showing the principle in the magnetic sensor device 10 and the rotary encoder 1 according to the first embodiment of the present invention. FIG. 1A illustrates a signal processing system for the magnetosensitive element 4 and the like. FIG. 1B is a diagram illustrating a signal output from the magnetosensitive element 4. FIG. 1C is a diagram showing the relationship between the signal and the angular position (electrical angle) of the rotating body 2. FIG. 2 is a diagram for explaining an electrical connection structure of the magnetosensitive films 41 to 44 (magnetoresistive films) of the magnetosensitive element 4 used in the magnetic sensor device 10 and the rotary encoder 1. FIG. 2A shows a diagram of the bridge circuit 4a formed by the + A phase magnetosensitive film 43 and the -A phase magnetosensitive film 41. FIG. FIG. 2B shows a diagram of the bridge circuit 4b formed by the + B phase magnetosensitive film 44 and the -B phase magnetosensitive film 42.

図1に示すロータリエンコーダ1は、固定体(図示せず)に対する回転体2の軸線周り(回転軸線周り)の回転を磁気センサ装置10によって磁気的に検出する装置である。固定体は、モータ装置のフレーム等に固定され、回転体2は、モータ装置の回転出力軸等に連結された状態で使用される。回転体2の側には、N極とS極とが周方向において1極ずつ着磁された着磁面21を回転軸線方向Lの一方側に向けるマグネット20が保持されている。このマグネット20は回転体2と一体に回転軸線周りに回転する。   A rotary encoder 1 shown in FIG. 1 is a device that magnetically detects a rotation around an axis (rotation axis) of a rotary body 2 with respect to a fixed body (not shown) by a magnetic sensor device 10. The fixed body is fixed to a frame or the like of the motor device, and the rotating body 2 is used in a state of being connected to a rotation output shaft or the like of the motor device. On the rotating body 2 side, a magnet 20 is held that directs the magnetized surface 21 in which the N pole and the S pole are magnetized one by one in the circumferential direction to one side in the rotation axis direction L. The magnet 20 rotates around the rotation axis integrally with the rotating body 2.

固定体の側には、マグネット20の着磁面21に対して回転軸線方向Lの一方側で対向する感磁素子4、および後述する処理を行う制御部90等を備えた磁気センサ装置10が設けられている。また、磁気センサ装置10は、マグネット20に対向する位置に、第1ホール素子61と第2ホール素子62を備える。第2ホール素子62は、第1ホール素子61に対して周方向において機械角で90°ずれた箇所に位置する。   On the fixed body side, there is a magnetic sensor device 10 including a magnetosensitive element 4 that faces the magnetized surface 21 of the magnet 20 on one side in the rotation axis direction L, a control unit 90 that performs processing to be described later, and the like. Is provided. Further, the magnetic sensor device 10 includes a first hall element 61 and a second hall element 62 at a position facing the magnet 20. The second Hall element 62 is located at a position that is shifted by 90 ° in mechanical angle in the circumferential direction with respect to the first Hall element 61.

感磁素子4は、基板40と、マグネット20の位相に対して互いに90°の位相差を有する2相の感磁膜(A相(SIN)の感磁膜、およびB相(COS)の感磁膜)とを備えた磁気抵抗素子である。具体的には、A相の感磁膜は、180°の位相差をもって回転体2の移動検出を行う+A相(SIN+)の感磁膜43、および−A相(SIN-)の感磁膜41を備える。同様に、B相の感磁膜は、180°の位相差をもって回転体2の移動検出を行う+B相(COS+)の感磁膜44、および−B相(COS-)の感磁膜42を備える。   The magnetosensitive element 4 includes a two-phase magnetosensitive film (A phase (SIN) magnetosensitive film and B phase (COS) sensitive) having a phase difference of 90 ° with respect to the phase of the substrate 40 and the magnet 20. Magnetoresistive element provided with a magnetic film). Specifically, the A phase magnetosensitive film includes a + A phase (SIN +) magnetosensitive film 43 that detects movement of the rotating body 2 with a phase difference of 180 °, and a −A phase (SIN−) magnetosensitive film. 41 is provided. Similarly, the B-phase magnetosensitive film includes a + B-phase (COS +) magnetosensitive film 44 and a -B-phase (COS-) magnetosensitive film 42 that detect the movement of the rotating body 2 with a phase difference of 180 °. Prepare.

図2(a)に示すように、+A相の感磁膜43および−A相の感磁膜41は、一方端がA相用の電源端子VccAに接続され、他方端がA相用のグランド端子GNDAに接続されている。+A相の感磁膜43の中点位置には、+A相が出力される出力端子+Aが設けられている。−A相の感磁膜41の中点位置には、−A相が出力される出力端子−Aが設けられている。   As shown in FIG. 2A, the + A phase magnetic sensitive film 43 and the -A phase magnetic sensitive film 41 have one end connected to the A phase power supply terminal VccA and the other end connected to the A phase ground. It is connected to the terminal GNDA. An output terminal + A from which the + A phase is output is provided at the midpoint position of the + A phase magnetosensitive film 43. At the midpoint position of the -A phase magnetosensitive film 41, an output terminal -A from which the -A phase is output is provided.

図2(b)に示すように、+B相の感磁膜44および−B相の感磁膜42も、+A相の感磁膜44および−A相の感磁膜41と同様、一方端がB相用の電源端子VccBに接続され、他方端がB相用のグランド端子GNDBに接続されている。+B相の感磁膜44の中点位置には、+B相が出力される出力端子+Bが設けられ、−B相の感磁膜42の中点位置には、−B相が出力される出力端子−Bが設けられている。   As shown in FIG. 2B, the + B phase magnetic sensitive film 44 and the −B phase magnetic sensitive film 42 are similar to the + A phase magnetic sensitive film 44 and the −A phase magnetic sensitive film 41 at one end. The B-phase power supply terminal VccB is connected, and the other end is connected to the B-phase ground terminal GNDB. An output terminal + B from which a + B phase is output is provided at the midpoint position of the + B phase magnetosensitive film 44, and an output from which the −B phase is output at the midpoint position of the −B phase magnetosensitive film 42. Terminal -B is provided.

なお、図2では便宜上、A相用の電源端子VccAおよびB相用の電源端子VccBの各々を記載したが、A相用の電源端子VccAとB相用の電源端子VccBとが共通になっていてもよい。また、図2では便宜上、A相用のグランド端子GNDAおよびB相用のグランド端子GNDBの各々を記載したが、A相用のグランド端子GNDAとB相用のグランド端子GNDBとが共通になっていてもよい。   In FIG. 2, for convenience, the A-phase power supply terminal VccA and the B-phase power supply terminal VccB are shown, but the A-phase power supply terminal VccA and the B-phase power supply terminal VccB are common. May be. For convenience, FIG. 2 shows the A-phase ground terminal GNDA and the B-phase ground terminal GNDB, but the A-phase ground terminal GNDA and the B-phase ground terminal GNDB are common. May be.

図1(a)に示すように、このような構成の感磁素子4は、マグネット20において着磁境界部分に回転軸線方向Lで重なる位置に配置されている。このため、感磁素子4の感磁膜41〜44は、各感磁膜41〜44の抵抗値の飽和感度領域以上の磁界強度で、着磁面21の面内方向で向きが変化する回転磁界を検出することができる。すなわち、着磁境界線部分では、各感磁膜41〜44の抵抗値の飽和感度領域以上の磁界強度で面内方向の向きが変化する回転磁界が発生する。   As shown in FIG. 1A, the magnetic sensing element 4 having such a configuration is arranged at a position where the magnet 20 overlaps the magnetization boundary portion in the rotation axis direction L. For this reason, the magnetic sensitive films 41 to 44 of the magnetic sensitive element 4 are rotated so that the direction of the magnetic sensitive films 41 to 44 changes in the in-plane direction of the magnetized surface 21 with a magnetic field strength equal to or higher than the saturation sensitivity region of the resistance value of each of the magnetic sensitive films 41 to 44. A magnetic field can be detected. That is, a rotating magnetic field whose direction in the in-plane direction changes with a magnetic field strength equal to or higher than the saturation sensitivity region of the resistance value of each of the magnetic sensitive films 41 to 44 is generated at the magnetization boundary line portion.

ここで、飽和感度領域とは、一般的に、抵抗値変化量kが、磁界強度Hと近似的に「k∝H2」の式で表すことができる領域以外の領域をいう。また、飽和感度領域以上の磁界強度で回転磁界(磁気ベクトルの回転)の方向を検出する際の原理は、感磁膜41〜44に通電した状態で、抵抗値が飽和する磁界強度を印加したとき、磁界と電流方向がなす角度θと、感磁膜41〜44の抵抗値Rとの間には、次式で示す関係があることを利用するものである。
R=R−k×sin2θ
:無磁界中での抵抗値
k:抵抗値変化量(飽和感度領域以上のときは定数)
このような原理に基づいて回転磁界を検出すれば、角度θが変化すると抵抗値Rが正弦波に沿って変化するので、波形品質の高いA相出力およびB相出力を得ることができる。
Here, the saturation sensitivity region generally refers to a region other than the region in which the resistance value change amount k can be approximately expressed by the magnetic field strength H and the expression “k∝H 2”. The principle of detecting the direction of the rotating magnetic field (rotation of the magnetic vector) with a magnetic field strength equal to or higher than the saturation sensitivity region is that a magnetic field strength that saturates the resistance value is applied while the magnetic sensitive films 41 to 44 are energized. At this time, the fact that there is a relationship expressed by the following equation between the angle θ formed by the magnetic field and the current direction and the resistance value R of the magnetosensitive films 41 to 44 is utilized.
R = R 0 −k × sin 2θ
R 0 : resistance value in the absence of a magnetic field k: resistance value change amount (a constant when the saturation sensitivity region is exceeded)
If the rotating magnetic field is detected based on such a principle, the resistance value R changes along the sine wave when the angle θ changes, so that an A-phase output and a B-phase output with high waveform quality can be obtained.

図1(a)に示すように、磁気センサ装置10には、制御部90が接続されている。具体的には、感磁素子4は、増幅回路31、32を介して、また、第1ホール素子61、および第2ホール素子62には、増幅回路35、36を介して制御部90に接続されている。   As shown in FIG. 1A, a control unit 90 is connected to the magnetic sensor device 10. Specifically, the magnetosensitive element 4 is connected to the control unit 90 via the amplifier circuits 31 and 32, and to the first Hall element 61 and the second Hall element 62 via the amplifier circuits 35 and 36. Has been.

制御部90は、磁気センサ装置10から出力される正弦波信号sin、cosに補間処理や各種演算処理を行うCPU(演算回路)等を備え、感磁素子4、第1ホール素子61、および第2ホール素子62からの出力に基づいて、固定体に対する回転体2の回転角度位置を求める。   The control unit 90 includes a CPU (arithmetic circuit) that performs interpolation processing and various arithmetic processing on the sine wave signals sin and cos output from the magnetic sensor device 10, and includes the magnetic sensitive element 4, the first hall element 61, and the first. Based on the output from the two-hole element 62, the rotational angle position of the rotating body 2 with respect to the fixed body is obtained.

より具体的には、ロータリエンコーダ1において、回転体2が1回転すると、感磁素子4(磁気抵抗素子)からは、図1(b)に示す正弦波信号sin、cosが2周期分、出力される。制御部90は、増幅回路31、32で増幅された正弦波信号sin、cosから図1(c)に示すリサージュ図を求め、さらに正弦波信号sin、cosからθ=tan-1(sin/cos)を求めることで、回転出力軸の角度位置θを算出する。   More specifically, in the rotary encoder 1, when the rotating body 2 makes one rotation, the sine wave signals sin and cos shown in FIG. 1B are output from the magnetosensitive element 4 (magnetoresistance element) for two cycles. Is done. The control unit 90 obtains the Lissajous diagram shown in FIG. 1C from the sine wave signals sin and cos amplified by the amplifier circuits 31 and 32, and further, θ = tan −1 (sin / cos) from the sine wave signals sin and cos. ) To calculate the angular position θ of the rotation output shaft.

なお、本実施の形態では、マグネット20の中心からみて90°ずれた位置に第1ホール素子61および第2ホール素子62が配置されている。このため、第1ホール素子61および第2ホール素子62の出力の組み合せにより、現在位置が正弦波信号sin、cosのいずれの区間に位置するかが分かる。その結果、ロータリエンコーダ1は、感磁素子4での検出結果、第1ホール素子61での検出結果、および第2ホール素子62での検出結果に基づいて回転体2の絶対角度位置情報を生成することができ、アブソリュート動作を行うことができる。   In the present embodiment, the first Hall element 61 and the second Hall element 62 are arranged at a position shifted by 90 ° from the center of the magnet 20. For this reason, it can be seen from the combination of the outputs of the first Hall element 61 and the second Hall element 62 which section of the sine wave signal sin or cos the current position is located. As a result, the rotary encoder 1 generates absolute angular position information of the rotating body 2 based on the detection result of the magnetosensitive element 4, the detection result of the first Hall element 61, and the detection result of the second Hall element 62. The absolute operation can be performed.

図3は、磁気センサ装置10の感磁素子4を説明するための図である。ここでは、感磁素子4の平面構成について例示しており、便宜的に温度監視用抵抗膜47については右下がりの斜線を付している。   FIG. 3 is a diagram for explaining the magnetosensitive element 4 of the magnetic sensor device 10. Here, the planar configuration of the magnetosensitive element 4 is illustrated, and the temperature monitoring resistance film 47 is provided with a slanting line with a lower right for convenience.

図示のように、磁気センサ装置10において、感磁素子4は、基板40と、基板40の一方面40aに形成された感磁膜41〜44とを備える。感磁膜41〜44は、互いに折り返しながら延在している部分によって、基板40の中央に円形の感磁領域45を構成している。基板40は、例えば、四角形の平面形状を有するシリコン基板である。   As shown in the figure, in the magnetic sensor device 10, the magnetosensitive element 4 includes a substrate 40 and magnetosensitive films 41 to 44 formed on one surface 40 a of the substrate 40. The magnetosensitive films 41 to 44 form a circular magnetosensitive area 45 in the center of the substrate 40 by the portions extending while being folded back. The substrate 40 is, for example, a silicon substrate having a square planar shape.

感磁膜41〜44からは配線部分が一体に延在しており、配線部分の端部には、A相用の電源端子VccA、A相用のグランド端子GNDA、+A相出力用の出力端子+A、−A相出力用の出力端子−A、B相用の電源端子VccB、B相用のグランド端子GNDB、+B相出力用の出力端子+B、および−B相出力用の出力端子−Bが設けられている。   A wiring portion extends integrally from the magnetic sensitive films 41 to 44, and an A-phase power supply terminal VccA, an A-phase ground terminal GNDA, and an output terminal for + A-phase output are provided at the ends of the wiring portions. + A, -A phase output terminal -A, B phase power supply terminal VccB, B phase ground terminal GNDB, + B phase output terminal + B, and -B phase output terminal -B Is provided.

また、基板40の一方面40aに温度監視用抵抗膜47が形成されている。温度監視用抵抗膜47は、図示で基板40右下領域に設けられており、感磁領域45と近接している。温度監視用抵抗膜47は、複数回、折り返しながら延在した平面形状になっている。ここで、図示の平面視では、温度監視用抵抗膜47は、感磁膜44の配線部分と部分的に重なっているが、感磁領域45とは基板40の面内方向でずれた領域に形成されており、感磁領域45とは重なっていない。   In addition, a temperature monitoring resistance film 47 is formed on one surface 40 a of the substrate 40. The resistance film 47 for temperature monitoring is provided in the lower right region of the substrate 40 in the figure, and is close to the magnetosensitive region 45. The temperature monitoring resistance film 47 has a planar shape extending while being folded a plurality of times. Here, in the plan view shown in the drawing, the temperature monitoring resistance film 47 partially overlaps the wiring portion of the magnetosensitive film 44, but in a region shifted in the in-plane direction of the substrate 40 from the magnetosensitive area 45. It is formed and does not overlap with the magnetic sensitive region 45.

温度監視用抵抗膜47は、磁気抵抗効果を示さない導電膜である。このため、温度監視用抵抗膜47に対する磁束密度が変化しても、温度を正確に監視することができる。また、温度監視用抵抗膜47は、同一基板上の感磁素子4(感磁膜41〜44)に隣接して形成されているので、感磁素子4の温度を精度及び感度良く検出することができる。   The temperature monitoring resistance film 47 is a conductive film that does not exhibit a magnetoresistance effect. For this reason, even if the magnetic flux density with respect to the temperature monitoring resistive film 47 changes, the temperature can be accurately monitored. In addition, since the temperature monitoring resistance film 47 is formed adjacent to the magnetosensitive element 4 (the magnetosensitive films 41 to 44) on the same substrate, the temperature of the magnetosensitive element 4 can be detected with high accuracy and sensitivity. Can do.

温度監視用抵抗膜47の一方の端部には、温度監視用の電源端子VccSが形成されている。また、温度監視用抵抗膜47の他方の端部は、B相用のグランド端子GNDBに接続している。このため、B相用のグランド端子GNDBは、温度監視用抵抗膜47に対するグランド端子GNDSとしても利用されている。   A temperature monitoring power supply terminal VccS is formed at one end of the temperature monitoring resistance film 47. The other end of the temperature monitoring resistance film 47 is connected to a B-phase ground terminal GNDB. For this reason, the B-phase ground terminal GNDB is also used as the ground terminal GNDS for the temperature monitoring resistance film 47.

図4は、制御部90のブロック図である。制御部90は、ADC部91と、信号処理部92と、温度算出部93と、オフセット調整部94と、メモリ95とを備える。   FIG. 4 is a block diagram of the control unit 90. The control unit 90 includes an ADC unit 91, a signal processing unit 92, a temperature calculation unit 93, an offset adjustment unit 94, and a memory 95.

ADC部91は、磁気センサ装置10からの出力をA/D変換によってアナログ信号をデジタル信号に変換する。信号処理部92は、A/D変換された信号に基づいて、磁石20の回転角度位置や回転速度等を検出する。   The ADC unit 91 converts an analog signal into a digital signal by A / D conversion of the output from the magnetic sensor device 10. The signal processing unit 92 detects the rotation angle position, rotation speed, and the like of the magnet 20 based on the A / D converted signal.

温度算出部93は、感磁素子4に関する温度演算処理して、設定温度との温度差や温度変化を温度監視用抵抗膜47の抵抗値によって検出する。   The temperature calculation unit 93 performs temperature calculation processing on the magnetosensitive element 4 and detects a temperature difference from the set temperature and a temperature change based on the resistance value of the temperature monitoring resistance film 47.

温度検出のタイミングとして、例えば、ロータリエンコーダ1を制御する所定の制御装置(上位装置)との通信周期毎に1回検出し、通信周期の中で温度演算処理を行う。すなわち、角度応答開始から次の制御装置からのリクエストまでの間に、温度演算処理が実行される。温度演算処理は、数10μsで終了するため、それよりも十分に長い期間を周期に持つ通信周期内に処理は確実に完了する。通信周期毎に温度検出を行うことで、割り込み処理などで非定期的に行うよりも、処理を簡潔にすることができる。   As temperature detection timing, for example, detection is performed once every communication cycle with a predetermined control device (higher-order device) that controls the rotary encoder 1, and temperature calculation processing is performed in the communication cycle. That is, the temperature calculation process is executed between the start of the angle response and the request from the next control device. Since the temperature calculation process is completed in several tens of μs, the process is surely completed within a communication cycle having a period sufficiently longer than that. By performing temperature detection for each communication cycle, processing can be simplified compared to non-periodic processing such as interrupt processing.

オフセット調整部94は、感磁素子4の出力をもとに求めたオフセット電圧と、温度算出部93で検出した素子の温度とを関連づけて、メモリ95に逐次記録する。そして、オフセット調整部94は、起動時にメモリ95に記録されているそれらのデータをもとに、オフセット電圧の温度特性を計算し、現在の温度から起動時のオフセット電圧を算出する。なお、メモリ95の書き込み量がフルになった場合、最も古いデータから最新のデータに上書きされる。   The offset adjustment unit 94 sequentially records the offset voltage obtained based on the output of the magnetosensitive element 4 and the temperature of the element detected by the temperature calculation unit 93 in the memory 95. Then, the offset adjusting unit 94 calculates the temperature characteristics of the offset voltage based on the data recorded in the memory 95 at the time of startup, and calculates the offset voltage at the time of startup from the current temperature. When the amount of writing in the memory 95 becomes full, the oldest data is overwritten with the latest data.

図5は、感磁素子4の温度とオフセット電圧の関係を示したグラフである。このグラフを参照して、オフセット電圧の調整処理について説明する。横軸が感磁素子4の温度(温度監視用抵抗膜47及び温度算出部93による検出結果)を示している。縦軸は、感磁素子4のオフセット電圧を示している。   FIG. 5 is a graph showing the relationship between the temperature of the magnetosensitive element 4 and the offset voltage. The offset voltage adjustment process will be described with reference to this graph. The horizontal axis indicates the temperature of the magnetosensitive element 4 (detection result by the temperature monitoring resistance film 47 and the temperature calculation unit 93). The vertical axis represents the offset voltage of the magnetosensitive element 4.

上述の様に、ロータリエンコーダ1が動作中に、オフセット調整部94は、オフセット電圧と感磁素子4の温度とをペアにして、メモリ95に逐次記録する。例えば、図5では、第1〜第4データD1〜D4がグラフ上に表されている。   As described above, during operation of the rotary encoder 1, the offset adjustment unit 94 records the offset voltage and the temperature of the magnetosensitive element 4 in pairs in the memory 95 sequentially. For example, in FIG. 5, the first to fourth data D1 to D4 are represented on the graph.

オフセット調整部94は、第1〜第4データD1〜D4を元に近似式(ここでは近似直線AL)を算出し、オフセット電圧の温度特性を算出する。温度特定として、例えば、近似直線ALの切片、傾きが算出される。   The offset adjustment unit 94 calculates an approximate expression (here, an approximate straight line AL) based on the first to fourth data D1 to D4, and calculates a temperature characteristic of the offset voltage. For example, the intercept and slope of the approximate straight line AL are calculated as the temperature specification.

そして、次にロータリエンコーダ1が起動した場合、温度監視用抵抗膜47と温度算出部93の検出結果から、オフセット調整部94は、温度特性をもとにして、起動直後からオフセット電圧を算出する。その結果、起動直後からオフセット電圧を適切に算出することができ、ロータリエンコーダ1の出力誤差、すなわち角度誤差を低減することができる。また、オフセット電圧の経年変化や、オフセット電圧温度特性の経年変化が生じても逐次補正していくことができる。すなわち、オフセット調整部94はオフセット電圧温度特性を学習することで、起動直後のオフセット電圧を精度良く、かつ感度良く算出することができる。   Then, when the rotary encoder 1 is activated next time, the offset adjusting unit 94 calculates the offset voltage immediately after activation based on the temperature characteristics based on the detection results of the temperature monitoring resistance film 47 and the temperature calculating unit 93. . As a result, the offset voltage can be calculated appropriately immediately after startup, and the output error of the rotary encoder 1, that is, the angle error can be reduced. In addition, even when the offset voltage changes with time or when the offset voltage temperature characteristic changes with time, it can be corrected sequentially. That is, the offset adjusting unit 94 can calculate the offset voltage immediately after startup with high accuracy and sensitivity by learning the offset voltage temperature characteristic.

なお、メモリ95にオフセット電圧と感磁素子4の温度とをペアにして記録する際に、温度範囲を所定範囲毎に分けて、その温度範囲内で検出したオフセット電圧を平均して格納してもよい。必要とされる容量を抑えることができるので、利用可能なメモリ95の容量に制限がある場合に有効である。また、別の観点では、データが上書きされるまでの期間を長くすることができ、長期にわたるデータを利用することができる。   When the offset voltage and the temperature of the magnetosensitive element 4 are recorded in the memory 95 as a pair, the temperature range is divided into predetermined ranges, and the offset voltage detected within the temperature range is averaged and stored. Also good. Since the required capacity can be suppressed, it is effective when the capacity of the available memory 95 is limited. In another aspect, the period until data is overwritten can be lengthened, and data over a long period can be used.

なお、オフセット電圧と感磁素子4の温度で示されるデータが近似直線ALから所定値以上離れて検出された場合、オフセット調整部94は、エラー発生と判断し、既存の温度特性をリセットしてもよい。すなわち、オフセット調整部94は、学習の初期化を行う。   When the data indicated by the offset voltage and the temperature of the magnetosensitive element 4 is detected at a predetermined value or more away from the approximate straight line AL, the offset adjustment unit 94 determines that an error has occurred and resets the existing temperature characteristics. Also good. That is, the offset adjustment unit 94 performs learning initialization.

例えば、図示のように、エラーデータDerror(Dx)が、近似直線ALよりΔVだけ低い値となっている。この場合、素子変形等の不具合が感磁素子4に発生し、感磁素子4の出力特性が変化してしまった可能性がある。そこで、そのような場合には、オフセット調整部94は、既存のデータを破棄し、以降に取得した新たなデータを記録し、利用する。また、学習の初期化が頻発するような場合、オフセット調整部94は、ロータリエンコーダ1に故障が発生したと判断し、所定の警告手段(表示手段等)によってその旨を通知してもよい。 For example, as shown in the figure, the error data D error (Dx) is a value lower than the approximate straight line AL by ΔV. In this case, a malfunction such as element deformation may occur in the magnetosensitive element 4, and the output characteristics of the magnetosensitive element 4 may have changed. Therefore, in such a case, the offset adjustment unit 94 discards the existing data and records and uses new data acquired thereafter. Further, when the initialization of learning frequently occurs, the offset adjustment unit 94 may determine that a failure has occurred in the rotary encoder 1 and notify the fact by a predetermined warning unit (display unit or the like).

<第2の実施の形態>
本実施の形態では、感磁素子(MR素子)に流れる電流をもとに感磁素子自体の温度を直接検出し、その温度のオフセット電圧を算出する。なお、感磁素子(MR素子)の温度計測技術以外の構成は第1の実施の形態と同様の構成・機能で実現できるため、本実施の形態に特徴的な技術について説明し、同様の構成・機能については同一符号を付して説明を適宜省略する。
<Second Embodiment>
In the present embodiment, the temperature of the magnetosensitive element itself is directly detected based on the current flowing through the magnetosensitive element (MR element), and the offset voltage of the temperature is calculated. Since the configuration other than the temperature measurement technique of the magnetosensitive element (MR element) can be realized with the same configuration and function as the first embodiment, the characteristic technique of this embodiment will be described and the same configuration will be described.・ Functions are denoted by the same reference numerals and description thereof is omitted as appropriate.

図6は、磁気センサ装置10およびロータリエンコーダ1に用いた感磁素子4の感磁膜41〜44(磁気抵抗膜)の電気的な接続構造を説明する図である。ここでは、A相側のブリッジ回路4aを示しており、第1の実施の形態の図2(a)の構成に、電流検出回路150を追加した構成となっている。   FIG. 6 is a diagram for explaining an electrical connection structure of the magnetosensitive films 41 to 44 (magnetoresistive films) of the magnetosensitive element 4 used in the magnetic sensor device 10 and the rotary encoder 1. Here, the bridge circuit 4a on the A phase side is shown, and the current detection circuit 150 is added to the configuration of FIG. 2A of the first embodiment.

図示のように、A相用の電源端子VccAとA相側のブリッジ回路4aとの経路途中に、すなわち、ハイサイド側に電流検出回路150が設けられている。なお、ここで示す電流検出回路150の構成は、説明を容易にするために、電流検出の基本的な回路構成を示している。現実には、専用の電流検出用ICが用いられることが一般的であり、本実施の形態においても同様である。また、ハイサイド側に限らずローサイド側で電流検出が行われてもよい。   As shown in the figure, a current detection circuit 150 is provided in the middle of the path between the A-phase power supply terminal VccA and the A-phase side bridge circuit 4a, that is, on the high side. Note that the configuration of the current detection circuit 150 shown here shows a basic circuit configuration for current detection for ease of explanation. In practice, a dedicated current detection IC is generally used, and the same applies to the present embodiment. Further, current detection may be performed not only on the high side but also on the low side.

電流検出回路150は、電流検出用抵抗151と電流検出用アンプ152とを備える。電流検出用抵抗151は、A相用の電源端子VccAとA相側のブリッジ回路4aとの経路途中に、直列的に挿入されている。こここで、感磁膜41、43の抵抗値が500〜1000Ωの場合、電流検出用抵抗151の抵抗値は数10Ωに設定されることで、S/N比を実質的に下げずに電流検出が可能となる。   The current detection circuit 150 includes a current detection resistor 151 and a current detection amplifier 152. The current detection resistor 151 is inserted in series along the path between the A-phase power supply terminal VccA and the A-phase side bridge circuit 4a. Here, when the resistance values of the magnetosensitive films 41 and 43 are 500 to 1000Ω, the resistance value of the current detection resistor 151 is set to several tens of Ω so that the S / N ratio is not substantially decreased without reducing the current. Detection is possible.

電流検出用抵抗151の両端は、電流検出用アンプ152の2つの入力(+/−)に接続されている。そして、電流検出用アンプ152の出力(Vout)は、制御部90に接続される。   Both ends of the current detection resistor 151 are connected to two inputs (+/−) of the current detection amplifier 152. The output (Vout) of the current detection amplifier 152 is connected to the control unit 90.

つづいて、温度検出処理について説明する。図4の制御部90と同様の構成により実現されるものである。メモリ95には、感磁素子4の抵抗温度係数α及びオフセット値(ある温度での抵抗値R0MR)が記録されている。温度算出部93は、感磁素子4に流れる電流及び印加電圧をもとに感磁素子4の抵抗値RMRを算出し、メモリ95を参照し、現在の感磁素子4の温度tを算出する。現在の感磁素子4の温度tは、次の関係式から導出される。
MR=R0MR+α(t−t
α:感磁素子4の抵抗温度係数
0MR:所定の温度tでの感磁素子4の抵抗値
Next, the temperature detection process will be described. This is realized by the same configuration as the control unit 90 of FIG. In the memory 95, the resistance temperature coefficient α and the offset value (resistance value R 0MR at a certain temperature) of the magnetosensitive element 4 are recorded. Temperature calculation section 93 calculates the resistance value R MR of magnetic sensing element 4 based on the current and the applied voltage flows through the sensitive element 4, with reference to the memory 95, calculates the temperature t of the current sensitive element 4 To do. The current temperature t of the magnetosensitive element 4 is derived from the following relational expression.
R MR = R 0MR + α (t−t 0 )
α: Resistance temperature coefficient of magnetosensitive element 4 R 0MR : Resistance value of magnetosensitive element 4 at predetermined temperature t 0

ここで、感磁素子4内の抵抗ブリッジを構成する各素子(感磁膜41、43)は外部磁束の印加方向により抵抗値が変化するが、図3に示したブリッジ構成(感磁膜41、43)の配置によって、全抵抗ではほぼ一定になることを利用する。B相側の素子(感磁膜42、44)も同様である。オフセット調整部94は、求めた温度を利用して、感磁素子4のオフセット電圧を求める。なお、オフセット電圧の温度特性は、あらかじめメモリ95に記録されている。   Here, the resistance value of each element (the magnetosensitive films 41 and 43) constituting the resistance bridge in the magnetosensitive element 4 varies depending on the application direction of the external magnetic flux, but the bridge configuration (the magnetosensitive film 41 shown in FIG. 3). 43), the fact that the total resistance becomes almost constant is utilized. The same applies to the B-phase side elements (magnetic films 42 and 44). The offset adjustment unit 94 obtains the offset voltage of the magnetosensitive element 4 using the obtained temperature. Note that the temperature characteristics of the offset voltage are recorded in the memory 95 in advance.

なお、電流検出回路150とともに第1の実施の形態の温度監視用抵抗膜47を設ける構成とすることで、磁気センサ装置10内の、すなわち基板40上の温度分布を把握することができ、正確に温度状況を算出することが可能となる。また、ロータリエンコーダ1が搭載するCPUには、温度センサが内蔵されるが、その温度センサ出力は較正された内容でない。したがって、電流検出回路150を内部較正用温度センサとして利用することもできる。   By providing the temperature monitoring resistance film 47 of the first embodiment together with the current detection circuit 150, the temperature distribution in the magnetic sensor device 10, that is, on the substrate 40 can be grasped accurately. It is possible to calculate the temperature condition. The CPU mounted on the rotary encoder 1 incorporates a temperature sensor, but the temperature sensor output is not calibrated. Therefore, the current detection circuit 150 can also be used as an internal calibration temperature sensor.

本発明を、実施の形態をもとに説明したが、この実施の形態は例示であり、それらの各構成要素の組み合わせ等にいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。   Although the present invention has been described based on the embodiment, this embodiment is an exemplification, and various modifications can be made to combinations of the respective components, and such modifications are also included in the present invention. It will be understood by those skilled in the art that it is in the range.

1 ロータリエンコーダ
2 回転体
4 感磁素子
4a、4b ブリッジ回路
10 磁気センサ装置
20 マグネット
21 着磁面
31、32、35、36 増幅回路
40 基板
41、42、43、44 感磁膜
45 感磁領域(感磁部)
47 温度監視用抵抗膜(温度検出部)
61 第1ホール素子
62 第2ホール素子
90 制御部
91 ADC部
92 信号処理部
93 温度算出部(温度検出部)
94 オフセット調整部
95 メモリ
150 電流検出回路(温度検出部)
151 電流検出用抵抗
152 電流検出用アンプ
DESCRIPTION OF SYMBOLS 1 Rotary encoder 2 Rotating body 4 Magnetosensitive element 4a, 4b Bridge circuit 10 Magnetic sensor apparatus 20 Magnet 21 Magnetized surface 31, 32, 35, 36 Amplifier circuit 40 Board | substrate 41, 42, 43, 44 Magnetosensitive film 45 Magnetosensitive area (Magnetic part)
47 Resistive film for temperature monitoring (temperature detector)
61 1st Hall element 62 2nd Hall element 90 Control part 91 ADC part 92 Signal processing part 93 Temperature calculation part (temperature detection part)
94 Offset adjustment unit 95 Memory 150 Current detection circuit (temperature detection unit)
151 Current detection resistor 152 Current detection amplifier

Claims (7)

基板上に形成された磁気抵抗素子と、
前記磁気抵抗素子のオフセット電圧を検出するオフセット電圧検出部と、
前記磁気抵抗素子の温度を検出する温度検出部と、
前記オフセット電圧と前記磁気抵抗素子の温度とを関連づけて記録する記憶部と、
前記記憶部に記録されている前記オフセット電圧と前記磁気抵抗素子の温度とのデータから、前記オフセット電圧と前記磁気抵抗素子の温度との関係を示す近似式を算出し、起動時において、前記磁気抵抗素子の温度から前記近似式をもとにして現在のオフセット電圧を推定し、推定した前記オフセット電圧を新たなオフセット電圧とするオフセット電圧決定部と、
を有することを特徴とするエンコーダ。
A magnetoresistive element formed on the substrate;
An offset voltage detector for detecting an offset voltage of the magnetoresistive element;
A temperature detector for detecting the temperature of the magnetoresistive element;
A storage unit that records the offset voltage and the temperature of the magnetoresistive element in association with each other;
From the data of the offset voltage and the temperature of the magnetoresistive element recorded in the storage unit, an approximate expression indicating the relationship between the offset voltage and the temperature of the magnetoresistive element is calculated. An offset voltage determination unit that estimates the current offset voltage from the temperature of the resistance element based on the approximate expression, and uses the estimated offset voltage as a new offset voltage;
The encoder characterized by having.
前記温度検出部は、前記磁気抵抗素子が形成されている同一の前記基板上に備わることを特徴とする請求項1に記載のエンコーダ。   The encoder according to claim 1, wherein the temperature detection unit is provided on the same substrate on which the magnetoresistive element is formed. 前記記憶部に、前記オフセット電圧と前記磁気抵抗素子の温度とを関連づけて記録される際に、温度範囲は所定範囲毎に分割され、前記温度範囲内で検出したオフセット電圧を平均されることを特徴とする請求項1または2に記載のエンコーダ。   When the offset voltage and the temperature of the magnetoresistive element are recorded in the storage unit in association with each other, the temperature range is divided into predetermined ranges, and the offset voltage detected within the temperature range is averaged. The encoder according to claim 1 or 2, characterized in that 前記オフセット電圧決定部は、計測されたオフセット電圧と前記磁気抵抗素子の温度との関係が、前記近似式から所定量以上離間した場合に、新たなデータをもとに新たな近似式を算出することを特徴とする請求項1から3までのいずれかに記載のエンコーダ。   The offset voltage determination unit calculates a new approximate expression based on new data when the relationship between the measured offset voltage and the temperature of the magnetoresistive element is separated from the approximate expression by a predetermined amount or more. The encoder according to any one of claims 1 to 3, wherein 前記温度検出部は、前記磁気抵抗素子の抵抗値を算出し、算出した抵抗値より現在の温度を検出することを特徴とする請求項1から4までのいずれかに記載のエンコーダ。   The encoder according to any one of claims 1 to 4, wherein the temperature detection unit calculates a resistance value of the magnetoresistive element and detects a current temperature from the calculated resistance value. 前記温度検出部は、前記磁気抵抗素子の温度を、外部の制御装置との通信周期毎に1回検出し、
前記オフセット電圧決定部は前記通信周期の中で前記近似式を算出する
ことを特徴とする請求項1から5までのいずれかに記載のエンコーダ。
The temperature detection unit detects the temperature of the magnetoresistive element once every communication cycle with an external control device,
The encoder according to any one of claims 1 to 5, wherein the offset voltage determination unit calculates the approximate expression in the communication cycle.
前記温度検出部は、前記磁気抵抗素子が形成されている前記基板上に形成された温度監視用抵抗膜を備えることを特徴とする請求項1から6までのいずれかに記載のエンコーダ。   The encoder according to any one of claims 1 to 6, wherein the temperature detection unit includes a temperature monitoring resistive film formed on the substrate on which the magnetoresistive element is formed.
JP2015168606A 2015-08-28 2015-08-28 Encoder Active JP6619974B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2015168606A JP6619974B2 (en) 2015-08-28 2015-08-28 Encoder
TW105125017A TWI688751B (en) 2015-08-28 2016-08-05 Encoder
KR1020160107761A KR20170026209A (en) 2015-08-28 2016-08-24 Encoder
CN201610719370.XA CN106482754B (en) 2015-08-28 2016-08-24 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015168606A JP6619974B2 (en) 2015-08-28 2015-08-28 Encoder

Publications (2)

Publication Number Publication Date
JP2017044625A true JP2017044625A (en) 2017-03-02
JP6619974B2 JP6619974B2 (en) 2019-12-11

Family

ID=58211914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015168606A Active JP6619974B2 (en) 2015-08-28 2015-08-28 Encoder

Country Status (4)

Country Link
JP (1) JP6619974B2 (en)
KR (1) KR20170026209A (en)
CN (1) CN106482754B (en)
TW (1) TWI688751B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102103162B1 (en) * 2018-12-13 2020-04-22 현대 파워텍 주식회사 Speed sensor

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109579880B (en) * 2018-12-26 2021-04-20 上海英威腾工业技术有限公司 Magnetic encoder with adaptive compensation function

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0738174A (en) * 1993-07-23 1995-02-07 Hamamatsu Koden Kk Hybrid ic provided with built-in magnetic detecting element
ATE495458T1 (en) * 2002-11-29 2011-01-15 Yamaha Corp MAGNETIC SENSOR AND METHOD FOR COMPENSATING TEMPERATURE-DEPENDENT PROPERTIES OF THE SAME
JP2006047004A (en) * 2004-08-02 2006-02-16 Denso Corp Temperature sensor and sensor using magnetoresistive element
US7173414B2 (en) * 2004-10-18 2007-02-06 Honeywell International Inc. Position detection apparatus and method for linear and rotary sensing applications
JP2008008883A (en) * 2006-06-02 2008-01-17 Denso Corp Magnetometric sensor and sensor
DE102009042473B4 (en) * 2009-09-24 2019-01-24 Continental Automotive Gmbh Method for evaluating signals of an angle sensor
JP6151544B2 (en) 2013-03-28 2017-06-21 日本電産サンキョー株式会社 Magnetic sensor device and rotary encoder
CN104655003B (en) * 2013-11-19 2017-03-15 吴凯 High temperature resistant magnetic resistance angle position sensor driver and sensing system
CN104677266B (en) * 2015-01-20 2017-11-10 江苏多维科技有限公司 The magneto-resistor angular transducer and its calibration method that high-intensity magnetic field calibrates for error

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102103162B1 (en) * 2018-12-13 2020-04-22 현대 파워텍 주식회사 Speed sensor

Also Published As

Publication number Publication date
JP6619974B2 (en) 2019-12-11
CN106482754B (en) 2019-03-12
KR20170026209A (en) 2017-03-08
TWI688751B (en) 2020-03-21
TW201708794A (en) 2017-03-01
CN106482754A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US9625276B2 (en) Axial and perpendicular angle sensor in single package
JP5263024B2 (en) Rotation angle detection device and rotation speed detection device
JP4858837B2 (en) Rotation angle detector
US8525513B2 (en) Angular position measuring device
US10267870B2 (en) Detecting sensor error
JP2019505811A (en) Device for detecting the angular position of rotatable components
JP6940955B2 (en) Rotary encoder
CN112344968A (en) Device and method for calibrating an angle sensor
US11500038B2 (en) Sensor, control device and method for determining the direction of a magnetic field
JP6151544B2 (en) Magnetic sensor device and rotary encoder
JP6619974B2 (en) Encoder
KR101661813B1 (en) Sensor device and method of controlling temperature in sensor device
US20210372821A1 (en) Method of monitoring a magnetic sensor
EP1704388B1 (en) Amr sensor element for angle measurement
JP7114315B2 (en) encoder
JP2023549643A (en) magnetic sensing device
JP6467901B2 (en) Rotation sensor
JP5212452B2 (en) Rotation sensor
JP2003207365A (en) Rotation angle sensor
JP2018179558A (en) Electronic device
JP2008199792A (en) Sensor signal processor and motor controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190514

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190701

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: 20191105

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191118

R150 Certificate of patent or registration of utility model

Ref document number: 6619974

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150