TW201708794A - Encoder capable of reducing the impact to offset voltage caused by the temperature of a magneto-resistive element - Google Patents

Encoder capable of reducing the impact to offset voltage caused by the temperature of a magneto-resistive element Download PDF

Info

Publication number
TW201708794A
TW201708794A TW105125017A TW105125017A TW201708794A TW 201708794 A TW201708794 A TW 201708794A TW 105125017 A TW105125017 A TW 105125017A TW 105125017 A TW105125017 A TW 105125017A TW 201708794 A TW201708794 A TW 201708794A
Authority
TW
Taiwan
Prior art keywords
temperature
compensation voltage
magnetoresistive element
magnetic induction
encoder
Prior art date
Application number
TW105125017A
Other languages
Chinese (zh)
Other versions
TWI688751B (en
Inventor
Hirokatsu Okumura
Yutaka Saito
Hitoshi Joko
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
Publication of TW201708794A publication Critical patent/TW201708794A/en
Application granted granted Critical
Publication of TWI688751B publication Critical patent/TWI688751B/en

Links

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

The present invention provides an encoder capable of reducing the impact to offset voltage caused by the temperature of a magneto-resistive element. When in operation, an offset adjustment part 94 sequentially record the temperatures of the offset voltage and the magnetic induction element in the memory 95. Based on the data of the memory 95, the offset adjustment part 94 calculates an approximate formula, so as to calculate the temperature of the offset voltage. When the encoder is activated the next time, the offset adjustment part 94 would immediately calculate the offset voltage based on a temperature monitoring resistive film, a detection result of a temperature calculation part 93, and the temperature characteristic.

Description

編碼器 Encoder

本發明係關於一種編碼器,特別係關於一種具備磁感測器裝置之編碼器。 The present invention relates to an encoder, and more particularly to an encoder having a magnetic sensor device.

於檢測旋轉體之旋轉之編碼器中,例如設置一種於旋轉體側設置磁鐵,於固定體側具備磁阻元件(以下稱為「MR元件」)或霍爾元件之磁感測器裝置。於該磁感測器裝置中,於基板之一面形成有由磁阻膜構成之磁感應膜,基於自由磁感應膜構成之2相(A相及B相)之橋接電路輸出之輸出,檢測旋轉體之角度速度或角度位置等。 In the encoder for detecting the rotation of the rotating body, for example, a magnetic sensor device in which a magnet is provided on the side of the rotating body and a magnetoresistive element (hereinafter referred to as "MR element") or a Hall element is provided on the fixed body side. In the magnetic sensor device, a magnetic induction film made of a magnetoresistive film is formed on one surface of the substrate, and the output of the bridge circuit output of the two phases (A phase and B phase) formed by the free magnetic induction film is detected, and the rotating body is detected. Angle speed or angular position, etc.

此處,一般而言,用於在磁磁感測器裝置中使用之MR元件或霍爾元件之磁感應膜之電阻值因溫度而變化。因此,提出了一種即便環境溫度變化亦獲得穩定之檢測精度之技術(例如參照專利文獻1)。具體而言,於形成有磁感應膜之基板形成有溫度監視用電阻膜及加熱用電阻膜(加熱器圖案)。而且,利用溫度監視用電阻膜之電阻值對與設定溫度之溫度差或溫度變化進行監視,並基於監視結果向加熱用電阻膜供電,將磁感應膜加熱至設定溫度。因此,於環境溫度發生變化時,即便於因應力之影響導致之電阻變化或因膜質之差異導致之電阻變化不同之情形時,亦不易受到因環境溫度導致之影響,因此即便發生溫度變化,亦能夠獲得穩定之檢測精度。 Here, in general, the resistance value of the magnetic induction film for the MR element or the Hall element used in the magnetic 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 (for example, refer to Patent Document 1). Specifically, a temperature monitoring resistive film and a heating resistive film (heater pattern) are formed on the substrate on which the magnetic induction film is formed. Then, the temperature difference or temperature change from the set temperature is monitored by the resistance value of the temperature monitoring resistive film, and the heating resistive film is supplied with power based on the monitoring result, and the magnetic induction film is heated to the set temperature. Therefore, when the ambient temperature changes, even if the resistance change due to the influence of stress or the change in resistance due to the difference in film quality is different, it is not easily affected by the ambient temperature, so even if a temperature change occurs, A stable detection accuracy can be obtained.

[先前技術文獻] [Previous Technical Literature] [專利文獻] [Patent Literature]

[專利文獻1]日本專利特開2014-194360號公報 [Patent Document 1] Japanese Patent Laid-Open Publication No. 2014-194360

然而,於專利文獻1揭示之技術中,利用加熱器圖案進行溫度控制並將MR元件保持為固定溫度,但存在以下問題:(1)啟動時,至MR元件之溫度達到固定需要花費時間;或者(2)由於溫度感測器與磁感應膜之配置位置不同,因此晶片內之溫度不相同,容易因溫度分佈導致產生誤差;或者(3)為了應對補償電壓之經年變化,使用上次動作時之補償電壓作為啟動時之MR元件補償電壓,但此處並未考慮溫度特性。例如存在如下問題:動作時於溫度較高之狀態下記錄補償,但由於啟動時溫度較低,故而誤差較大。 However, in the technique disclosed in Patent Document 1, temperature control is performed using the heater pattern and the MR element is maintained at a fixed temperature, but there are the following problems: (1) It takes time to reach the temperature of the MR element at the time of startup; (2) Since the temperature sensor and the magnetic induction film are disposed at different positions, the temperature inside the wafer is different, and it is easy to cause an error due to temperature distribution; or (3) in order to cope with the change of the compensation voltage over the last year, when the last action is used The compensation voltage is used as the MR component compensation voltage at startup, but the temperature characteristics are not considered here. For example, there is a problem in that the compensation is recorded in a state where the temperature is high during the operation, but since the temperature is low at the time of starting, the error is large.

本發明係鑒於此種狀況而完成者,其目的在於提供一種使MR元件之溫度特性之影響降低之編碼器。 The present invention has been made in view of such circumstances, and an object thereof is to provide an encoder that reduces the influence of temperature characteristics of an MR element.

本發明之編碼器具有:磁阻元件,其形成於基板上;補償電壓檢測部,其檢測上述磁阻元件之補償電壓;溫度檢測部,其檢測上述磁阻元件之溫度;記憶部,其將上述補償電壓與上述磁阻元件之溫度建立關聯而記錄;及補償電壓決定部,其由記錄於上述記憶部之上述補償電壓與上述磁阻元件之溫度之資料,算出表示上述補償電壓與上述磁阻元件之溫度之關係之近似式,於啟動時,由上述磁阻元件之溫度基於上述近似式而推定當前之補償電壓,並將推定出之上述補償電壓作為新補償電壓。因此,於啟動時無需加熱元件等進行恆溫控制,即便未留達到固定溫度為止之時間,亦能夠獲得適當之補償值。即,能夠自啟動後立即實現精度較高之輸出。 The encoder of the present invention has: a magnetoresistive element formed on a substrate; a compensation voltage detecting unit that detects a compensation voltage of the magnetoresistive element; a temperature detecting unit that detects a temperature of the magnetoresistive element; and a memory unit that The compensation voltage is recorded in association with the temperature of the magnetoresistive element, and the compensation voltage determining unit calculates the compensation voltage and the magnetic quantity from data of the compensation voltage recorded in the memory unit and the temperature of the magnetoresistive element. An approximation of the relationship between the temperatures of the resistive elements, at the time of startup, the current compensation voltage is estimated based on the approximate expression of the temperature of the magnetoresistive element, and the estimated compensation voltage is used as the new compensation voltage. Therefore, it is possible to perform constant temperature control without a heating element at the time of starting, and an appropriate compensation value can be obtained even if the time until the fixed temperature is not reached. That is, it is possible to achieve a highly accurate output immediately after startup.

又,上述溫度檢測部亦可配備於形成有上述磁阻元件之同一上述基板上。因此,實質上能夠實現磁阻元件自身之溫度檢測,即能夠 實現精度較高之溫度檢測。 Further, the temperature detecting unit may be provided on the same substrate on which the magnetoresistive element is formed. Therefore, the temperature detection of the magnetoresistive element itself can be substantially realized, that is, Achieve high precision temperature detection.

又,亦可於將上述補償電壓與上述磁阻元件之溫度建立關聯地記錄於上述記憶部時,將溫度範圍按照每個特定範圍加以分割,並將於上述溫度範圍內檢測出之補償電壓平均化。因此,藉由按照特定之溫度範圍劃分並將補償電壓平均化而記錄,能夠抑制資料容量。例如能夠選擇容量較小之記憶部,並能夠長期地記錄資料,能夠進行長期之資料之修正。 Further, when the compensation voltage is recorded in the memory unit in association with the temperature of the magnetoresistive element, the temperature range may be divided for each specific range, and the compensation voltage detected in the temperature range may be averaged. Chemical. Therefore, by recording in accordance with a specific temperature range and averaging the compensation voltage, the data capacity can be suppressed. For example, it is possible to select a memory unit having a small capacity, and to record data for a long period of time, and to perform long-term correction of data.

又,亦可於計測出之補償電壓與上述磁阻元件之溫度之關係與上述近似式偏離特定量以上之情形時,上述補償電壓決定部基於新資料而算出新近似式。因此,於因外在原因等導致補償電壓大幅度偏離之情形時,藉由將近似式、即磁阻元件之溫度特性暫時重設,能夠獲得適應狀況之補償電壓。 Further, when the relationship between the measured compensation voltage and the temperature of the magnetoresistive element is different from the approximation by a certain amount or more, the compensation voltage determination unit calculates a new approximation formula based on the new data. Therefore, when the compensation voltage largely deviates due to an external cause or the like, the compensation voltage of the adaptive condition can be obtained by temporarily resetting the temperature characteristic of the approximate expression, that is, the magnetoresistive element.

又,亦可為上述溫度檢測部係於每個與外部之控制裝置進行通信之通信週期檢測一次上述磁阻元件之溫度,上述補償電壓決定部係於上述通信週期中算出上述近似式。即,於自角度響應開始至下一個來自控制裝置之請求期間,執行溫度運算處理。如此,藉由於每個通信週期進行溫度檢測,相較於藉由中斷處理等非定期地進行溫度檢測,能夠將處理簡化。即,能夠充分確保處理時間,因此能夠確實地使溫度運算處理結束。 Further, the temperature detecting unit may detect the temperature of the magnetoresistive element once in a communication cycle in which each of the control devices communicates with the external control unit, and the compensation voltage determining unit may calculate the approximate expression in the communication cycle. That is, the temperature calculation process is executed from the start of the angle response to the next request from the control device. As described above, by performing temperature detection for each communication cycle, the process can be simplified as compared with the non-periodical temperature detection by interrupt processing or the like. In other words, since the processing time can be sufficiently ensured, the temperature calculation processing can be surely completed.

又,亦可為上述溫度檢測部算出上述磁阻元件之電阻值,根據算出之電阻值而檢測當前之溫度。因此,由於使用磁阻元件自身之電阻值,故而無需另外設置溫度檢測部。又,由於能夠檢測出磁阻元件之磁感應部之溫度,故而因晶片內之溫度分佈導致之誤差減少。 Further, the temperature detecting unit may calculate a resistance value of the magnetoresistive element, and may detect a current temperature based on the calculated resistance value. Therefore, since the resistance value of the magnetoresistive element itself is used, it is not necessary to separately provide the temperature detecting portion. Further, since the temperature of the magnetic induction portion of the magnetoresistive element can be detected, the error due to the temperature distribution in the wafer is reduced.

又,亦可為上述溫度檢測部具備溫度監視用電阻膜,該溫度監視用電阻膜形成於形成有上述磁阻元件之上述基板上。因此,配合檢測磁阻元件之磁感應部之溫度,而使用溫度監視用電阻膜,能夠掌握 晶片內(基板上)之溫度分佈,從而能夠減少因溫度分佈導致之誤差。 Moreover, the temperature detecting unit may include a temperature monitoring resistive film formed on the substrate on which the magnetoresistive element is formed. Therefore, by using the temperature monitoring magnetic resistance film to detect the temperature of the magnetic induction portion of the magnetoresistive element, it is possible to grasp The temperature distribution within the wafer (on the substrate) can reduce errors due to temperature distribution.

根據本發明,能夠提供一種使磁阻元件之溫度特性對補償電壓之影響降低之編碼器。 According to the present invention, it is possible to provide an encoder which reduces the influence of the temperature characteristics of the magnetoresistive element on the compensation voltage.

1‧‧‧旋轉編碼器 1‧‧‧Rotary encoder

2‧‧‧旋轉體 2‧‧‧Rotating body

4‧‧‧磁感應元件 4‧‧‧Magnetic sensing elements

4a‧‧‧橋接電路 4a‧‧‧Bridge circuit

4b‧‧‧橋接電路 4b‧‧‧Bridge circuit

10‧‧‧磁感測器裝置 10‧‧‧Magnetic sensor device

20‧‧‧磁鐵 20‧‧‧ magnet

21‧‧‧磁化面 21‧‧‧Magnetized surface

31、32‧‧‧放大電路 31, 32‧‧‧Amplification circuit

35、36‧‧‧放大電路 35, 36‧‧‧Amplification circuit

40‧‧‧基板 40‧‧‧Substrate

40a‧‧‧基板之一面 40a‧‧‧One side of the substrate

41‧‧‧磁感應膜 41‧‧‧Magnetic Sensing Film

42‧‧‧磁感應膜 42‧‧‧Magnetic Sensing Film

43‧‧‧磁感應膜 43‧‧‧Magnetic Sensing Film

44‧‧‧磁感應膜 44‧‧‧Magnetic Sensing Film

45‧‧‧磁感應區域(磁感應部) 45‧‧‧Magnetic sensing area (magnetic sensing part)

47‧‧‧溫度監視用電阻膜(溫度檢測部) 47‧‧‧Resistance film for temperature monitoring (temperature detection unit)

61‧‧‧第1霍爾元件 61‧‧‧1st Hall element

62‧‧‧第2霍爾元件 62‧‧‧2nd Hall element

90‧‧‧控制部 90‧‧‧Control Department

91‧‧‧ADC部 91‧‧‧ADC Department

92‧‧‧信號處理部 92‧‧‧Signal Processing Department

93‧‧‧溫度運算部(溫度檢測部) 93‧‧‧Temperature calculation unit (temperature detection unit)

94‧‧‧補償調整部 94‧‧‧Compensation Adjustment Department

95‧‧‧記憶體 95‧‧‧ memory

150‧‧‧電流檢測電路(溫度檢測部) 150‧‧‧current detection circuit (temperature detection unit)

151‧‧‧電流檢測用電阻 151‧‧‧Resistance for current detection

152‧‧‧電流檢測用放大器 152‧‧‧Amplifier for current detection

AL‧‧‧近似直線 AL‧‧‧ Approximate straight line

D1~D4‧‧‧第1~第4資料 D1~D4‧‧‧1st to 4th information

Dx‧‧‧錯誤資料 Dx‧‧‧Wrong data

GNDA‧‧‧接地端子 GNDA‧‧‧ Grounding terminal

GNDB‧‧‧接地端子 GNDB‧‧‧ Grounding terminal

GNDS‧‧‧接地端子 GNDS‧‧‧ Grounding terminal

L‧‧‧旋轉軸線方向 L‧‧‧Rotation axis direction

sin、cos‧‧‧正弦波信號 Sin, cos‧‧‧ sine wave signal

VccA‧‧‧電源端子 VccA‧‧‧ power terminal

VccB‧‧‧電源端子 VccB‧‧‧ power terminal

VccS‧‧‧電源端子 VccS‧‧‧ power terminal

Vout‧‧‧輸出 Vout‧‧‧ output

θ‧‧‧角度 Θ‧‧‧ angle

圖1(a)~(c)係表示第1實施形態之磁感測器裝置及旋轉編碼器之原理之圖。 1(a) to 1(c) are views showing the principle of a magnetic sensor device and a rotary encoder according to the first embodiment.

圖2(a)、(b)係表示第1實施形態之用於磁感測器裝置及旋轉編碼器之磁感應元件之磁感應膜之電性連接構造之圖。 2(a) and 2(b) are views showing an electrical connection structure of a magnetic induction film of a magnetic induction element for a magnetic sensor device and a rotary encoder according to the first embodiment.

圖3係表示第1實施形態之磁感測器裝置之磁感應元件之平面構成之圖。 Fig. 3 is a view showing a planar configuration of a magnetic induction element of the magnetic sensor device of the first embodiment.

圖4係第1實施形態之控制部之方塊圖。 Fig. 4 is a block diagram of a control unit according to the first embodiment.

圖5係表示第1實施形態之磁感應元件之溫度與補償電壓之關係之圖表。 Fig. 5 is a graph showing the relationship between the temperature of the magnetic induction element of the first embodiment and the compensation voltage.

圖6係表示第2實施形態之用於磁感測器裝置及旋轉編碼器之磁感應元件之磁感應膜之電性連接構造之圖。 Fig. 6 is a view showing an electrical connection structure of a magnetic induction film for a magnetic induction element of a magnetic sensor device and a rotary encoder according to a second embodiment.

以下,參照圖式對應用本發明之磁感測器裝置及旋轉編碼器之實施形態進行說明。再者,於旋轉編碼器中,於檢測旋轉體相對於固定體之旋轉時,可採用於固定體設置磁鐵且於旋轉體設置磁感應元件之構成、及於固定體設置磁感應元件且於旋轉體設置磁鐵之構成中之任一構成,但於以下之說明中,以於固定體設置磁感應元件且於旋轉體設置磁鐵之構成為中心進行說明。 Hereinafter, embodiments of a magnetic sensor device and a rotary encoder to which the present invention is applied will be described with reference to the drawings. Further, in the rotary encoder, when detecting the rotation of the rotating body with respect to the fixed body, a magnet may be disposed on the fixed body, a magnetic induction element may be disposed on the rotating body, and the magnetic induction element may be disposed on the fixed body and disposed on the rotating body. In the following description, the configuration of the magnet is mainly described in which the magnetic induction element is provided in the fixed body and the magnet is provided in the rotating body.

<第1實施形態> <First embodiment>

圖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之圖。 Fig. 1 is an explanatory view showing the principle of the magnetic sensor device 10 and the rotary encoder 1 according to the first embodiment of the present invention. Fig. 1(a) illustrates a signal processing system for a magnetic induction element 4 or the like. The map of the system. Fig. 1(b) is a view showing a signal output from the magnetic induction element 4. Fig. 1(c) is a view showing the relationship between the signal and the angular position (electrical angle) of the rotating body 2. 2 is a view for explaining an electrical connection structure of magnetic induction films 41 to 44 (magnetoresistive films) used in the magnetic sensor device 10 and the magnetic induction element 4 of the rotary encoder 1. Fig. 2(a) is a view showing a bridge circuit 4a composed of a magnetic induction film 43 of the +A phase and a magnetic induction film 41 of the -A phase. Fig. 2(b) is a view showing a bridge circuit 4b composed of a magnetic induction film 44 of the +B phase and a magnetic induction film 42 of the -B phase.

圖1所示之旋轉編碼器1係藉由磁感測器裝置10磁性檢測旋轉體2相對於固定體(未圖示)繞軸線(繞旋轉軸線)之旋轉之裝置。固定體係固定於馬達裝置之框架等,旋轉體2係於與馬達裝置之旋轉輸出軸等連結之狀態下使用。於旋轉體2側保持有磁鐵20,該磁鐵20係將周向上磁化有N極與S極各1極之磁化面21朝向旋轉軸線方向L之一側。該磁鐵20與旋轉體2一體地繞旋轉軸線旋轉。 The rotary encoder 1 shown in Fig. 1 magnetically detects a rotation of the rotary body 2 relative to a fixed body (not shown) about an axis (around an axis of rotation) by the magnetic sensor device 10. The fixing system is fixed to a frame of the motor device or the like, and the rotating body 2 is used in a state of being coupled to a rotating output shaft of the motor device or the like. The magnet 20 is held on the side of the rotating body 2, and the magnet 20 is magnetized in the circumferential direction so that the magnetized surface 21 of each of the N pole and the S pole faces the one side in the rotation axis direction L. The magnet 20 rotates integrally with the rotating body 2 about the rotation axis.

於固定體側設置有磁感測器裝置10,該磁感測器裝置10具備於旋轉軸線方向L之一側與磁鐵20之磁化面21對向之磁感應元件4、及進行下述處理之控制部90等。又,磁感測器裝置10係於與磁鐵20對向之位置具備第1霍爾元件61與第2霍爾元件62。第2霍爾元件62位於相對於第1霍爾元件61於周向上以機械角偏離90°之位置。 A magnetic sensor device 10 is provided on the fixed body side, and the magnetic sensor device 10 is provided with a magnetic induction element 4 facing the magnetized surface 21 of the magnet 20 on one side in the rotation axis direction L, and is controlled by the following processing. Department 90 and so on. Further, the magnetic sensor device 10 includes the first Hall element 61 and the second Hall element 62 at a position facing the magnet 20. The second Hall element 62 is located at a position shifted by 90° from the first Hall element 61 by a mechanical angle in the circumferential direction.

磁感應元件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 magnetic induction element 4 is provided with a magnetic field of a magnetic induction film (a phase (SIN) magnetic induction film and a B phase (COS) magnetic induction film) having a phase difference of 90° with respect to the phase of the magnet 20; Resistance element. Specifically, the magnetic induction film of the A phase includes a magnetic induction film 43 of a +A phase (SIN+) having a phase difference of 180° and detecting the movement of the rotating body 2, and a magnetic induction film 41 of the -A phase (SIN-). Similarly, the magnetic induction film of the B phase includes a magnetic induction film 44 of a +B phase (COS+) having a phase difference of 180° and detecting the movement of the rotating body 2, and a magnetic induction film 42 of a -B phase (COS-).

如圖2(a)所示,+A相之磁感應膜43及-A相之磁感應膜41之一端與A相用之電源端子VccA連接,另一端與A相用之接地端子GNDA 連接。於+A相之磁感應膜43之中點位置設置有輸出+A相之輸出端子+A。於-A相之磁感應膜41之中點位置設置有輸出-A相之輸出端子-A。 As shown in Fig. 2(a), one end of the magnetic induction film 43 of the +A phase and the magnetic induction film 41 of the -A phase are connected to the power supply terminal VccA for the A phase, and the ground terminal GNDA for the other end and the phase A is used. connection. An output terminal +A of the output +A phase is provided at a midpoint of the magnetic induction film 43 of the +A phase. An output-A phase output terminal -A is provided at a midpoint of the magnetic induction film 41 of the -A phase.

如圖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. 2(b), the magnetic induction film 44 of the +B phase and the magnetic induction film 42 of the -B phase are also used in the same manner as the magnetic induction film 44 of the +A phase and the magnetic induction film 41 of the -A phase. The power supply terminal VccB is connected, and the other end is connected to the ground terminal GNDB for the B phase. An output terminal +B of the output +B phase is provided at a midpoint of the magnetic induction film 44 of the +B phase, and an output terminal -B of the output -B phase is provided at a position of the magnetic induction film 42 of the -B phase.

再者,為了方便,於圖2中記載有A相用之電源端子VccA及B相用之電源端子VccB之各者,但A相用之電源端子VccA與B相用之電源端子VccB亦可共用。又,為了方便,於圖2中記載有A相用之接地端子GNDA及B相用之接地端子GNDB之各者,但A相用之接地端子GNDA與B相用之接地端子GNDB亦可共用。 In addition, for convenience, each of the power supply terminal VccA for the A phase and the power supply terminal VccB for the B phase is described in FIG. 2, but the power supply terminal VccA for the A phase and the power supply terminal VccB for the B phase may be shared. . Further, for convenience, each of the ground terminal GNDA for the A phase and the ground terminal GNDB for the B phase is described in FIG. 2, but the ground terminal GNDA for the A phase and the ground terminal GNDB for the B phase may be shared.

如圖1(a)所示,此種構成之磁感應元件4配置於在旋轉軸線方向L上與磁鐵20之磁化邊界部分重合之位置。因此,磁感應元件4之磁感應膜41~44能夠於各磁感應膜41~44之電阻值之飽和感度區域以上之磁場強度下檢測於磁化面21之面內方向上朝向變化之旋轉磁場。即,於磁化邊界線部分,產生於各磁感應膜41~44之電阻值之飽和感度區域以上之磁場強度下面內方向之朝向變化之旋轉磁場。 As shown in Fig. 1(a), the magnetic induction element 4 of such a configuration is disposed at a position overlapping the magnetization boundary portion of the magnet 20 in the rotation axis direction L. Therefore, the magnetic induction films 41 to 44 of the magnetic induction element 4 can detect the rotating magnetic field that changes in the in-plane direction of the magnetized surface 21 under the magnetic field intensity above the saturation sensitivity region of the resistance values of the magnetic induction films 41 to 44. In other words, in the portion of the magnetization boundary line, a rotating magnetic field which changes in the direction of the inner direction of the magnetic field intensity above the saturation sensitivity region of the resistance values of the respective magnetic induction films 41 to 44 is generated.

此處,飽和感度區域一般而言係指電阻值變化量k能夠與磁場強度H近似地用「kH2」之式表示之區域以外之區域。又,於飽和感度區域以上之磁場強度下檢測旋轉磁場(磁向量之旋轉)之方向時之原理利用下述事項:於對磁感應膜41~44通電之狀態下,施加電阻值飽和之磁場強度時,於磁場與電流方向所成之角度θ與磁感應膜41~44之電阻值R之間存在下式表示之關係。 Here, the saturation sensitivity region generally means that the resistance value change amount k can be approximated to the magnetic field strength H by "k" The area outside the area indicated by H2". Further, the principle of detecting the direction of the rotating magnetic field (rotation of the magnetic vector) in the magnetic field intensity above the saturation sensitivity region is as follows: when the magnetic field strength of the magnetic resistance film 41 to 44 is applied, when the magnetic field strength of the resistance value is applied There is a relationship between the angle θ between the magnetic field and the current direction and the resistance value R of the magnetic induction films 41 to 44.

R=R0-k×sin2θ R=R 0 -k×sin2θ

R0:無磁場中之電阻值 R 0 : no resistance value in the magnetic field

k:電阻值變化量(飽和感度區域以上時為常數) k: amount of change in resistance value (constant when saturated sensitivity region or more)

若基於此種原理檢測旋轉磁場,則當角度θ變化時,電阻值R沿著正弦波變化,因此能夠獲得波形品質較高之A相輸出及B相輸出。 When the rotating magnetic field is detected based on such a principle, when the angle θ changes, the resistance value R changes along the sine wave, so that the A-phase output and the B-phase output with high waveform quality can be obtained.

如圖1(a)所示,於磁感測器裝置10,連接有控制部90。具體而言,磁感應元件4經由放大電路31、32連接有控制部90,又,於第1霍爾元件61及第2霍爾元件62經由放大電路35、36連接有控制部90。 As shown in FIG. 1(a), a control unit 90 is connected to the magnetic sensor device 10. Specifically, the magnetic induction element 4 is connected to the control unit 90 via the amplifier circuits 31 and 32, and the control unit 90 is connected to the first Hall element 61 and the second Hall element 62 via the amplifier circuits 35 and 36.

控制部90具備對自磁感測器裝置10輸出之正弦波信號sin、cos進行內插處理或各種運算處理之CPU(運算電路)等,基於來自磁感應元件4、第1霍爾元件61、及第2霍爾元件62之輸出,求出旋轉體2相對於固定體之旋轉角度位置。 The control unit 90 includes a CPU (arithmetic circuit) that performs interpolation processing or various arithmetic processing on the sine wave signals sin and cos output from the magnetic sensor device 10, based on the magnetic induction element 4, the first Hall element 61, and The output of the second Hall element 62 determines the rotational angle position of the rotating body 2 with respect to the fixed body.

更具體而言,於旋轉編碼器1中,若旋轉體2旋轉一周,則自磁感應元件4(磁阻元件)輸出2個週期之圖1(b)所示之正弦波信號sin、cos。控制部90根據由放大電路31、32放大之正弦波信號sin、cos求出圖1(c)所示之利薩如圖,進而根據正弦波信號sin、cos求出θ=tan-1(sin/cos),算出旋轉輸出軸之角度位置θ。 More specifically, in the rotary encoder 1, when the rotary body 2 rotates once, the sine wave signals sin and cos shown in FIG. 1(b) are outputted from the magnetic induction element 4 (magnetoresistive element) for two cycles. The control unit 90 obtains the Lissajous figure shown in Fig. 1(c) based on the sine wave signals sin and cos amplified by the amplifier circuits 31 and 32, and further obtains θ=tan-1 based on the sine wave signals sin and cos (sin). /cos), calculate the angular position θ of the rotary output shaft.

再者,於本實施形態中,於自磁鐵20之中心觀察偏離90°之位置配置有第1霍爾元件61及第2霍爾元件62。因此,藉由第1霍爾元件61及第2霍爾元件62之輸出之組合,可知當前位置位於正弦波信號sin、cos之哪一個區間。其結果,旋轉編碼器1能夠基於磁感應元件4之檢測結果、第1霍爾元件61之檢測結果、及第2霍爾元件62之檢測結果生成旋轉體2之絕對角度位置資訊,並能夠進行絕對動作。 Further, in the present embodiment, the first Hall element 61 and the second Hall element 62 are disposed at positions shifted by 90 from the center of the magnet 20. Therefore, by the combination of the outputs of the first Hall element 61 and the second Hall element 62, it can be seen which of the sine wave signals sin and cos the current position is. As a result, the rotary encoder 1 can generate the absolute angular position information of the rotating body 2 based on the detection result of the magnetic induction element 4, the detection result of the first Hall element 61, and the detection result of the second Hall element 62, and can perform absolute action.

圖3係用於說明磁感測器裝置10之磁感應元件4之圖。此處,例示磁感應元件4之平面構成,為了方便,對溫度監視用電阻膜47標註朝向右下方之斜線。 FIG. 3 is a view for explaining the magnetic induction element 4 of the magnetic sensor device 10. Here, the planar configuration of the magnetic induction element 4 is exemplified, and for the sake of convenience, the temperature monitoring resistive film 47 is marked with a diagonal line toward the lower right.

如圖所示,於磁感測器裝置10中,磁感應元件4具備基板40與形 成於基板40之一面40a之磁感應膜41~44。磁感應膜41~44藉由相互回折地延伸之部分於基板40之中央構成圓形之磁感應區域45。基板40例如為具有四邊形之平面形狀之矽基板。 As shown, in the magnetic sensor device 10, the magnetic sensing element 4 is provided with a substrate 40 and a shape The magnetic induction films 41 to 44 are formed on one surface 40a of the substrate 40. The magnetic induction films 41 to 44 constitute a circular magnetic induction region 45 by a portion extending in a mutually folded manner at the center of the substrate 40. The substrate 40 is, for example, a crucible substrate having a quadrangular planar shape.

自磁感應膜41~44一體地延伸有配線部分,於配線部分之端部設置有A相用之電源端子VccA、A相用之接地端子GNDA、+A相輸出用之輸出端子+A、-A相輸出用之輸出端子-A、B相用之電源端子VccB、B相用之接地端子GNDB、+B相輸出用之輸出端子+B、及-B相輸出用之輸出端子-B。 The magnetic induction films 41 to 44 integrally extend the wiring portion, and the power supply terminal VccA for the A phase, the ground terminal GNDA for the A phase, and the output terminal +A, -A for the +A phase output are provided at the end portion of the wiring portion. Output terminal for phase output - power supply terminal VCCB for phase B, ground terminal GNDB for phase B, output terminal +B for +B phase output, and output terminal -B for -B phase output.

又,於基板40之一面40a形成有溫度監視用電阻膜47。溫度監視用電阻膜47設置於圖示之基板40之右下區域,且與磁感應區域45接近。溫度監視用電阻膜47成為複數次回折並延伸之平面形狀。此處,於圖示之俯視時,溫度監視用電阻膜47與磁感應膜44之配線部分局部重合,但溫度監視用電阻膜47形成於與磁感應區域45於基板40之面內方向上偏離之區域,而不與磁感應區域45重合。 Further, a temperature monitoring resistive film 47 is formed on one surface 40a of the substrate 40. The temperature monitoring resistive film 47 is provided in the lower right area of the substrate 40 as shown, and is close to the magnetic sensing region 45. The temperature monitoring resistive film 47 has a planar shape that is folded back and extended a plurality of times. Here, the temperature monitoring resistive film 47 partially overlaps the wiring portion of the magnetic induction film 44 in the plan view, but the temperature monitoring resistive film 47 is formed in a region deviated from the magnetic induction region 45 in the in-plane direction of the substrate 40. Without coincident with the magnetic sensing region 45.

溫度監視用電阻膜47係不顯現磁阻效應之導電膜。因此,即便相對於溫度監視用電阻膜47之磁通密度變化,亦能夠準確地監視溫度。又,由於溫度監視用電阻膜47與同一基板上之磁感應元件4(磁感應膜41~44)相鄰地形成,因此能夠高精度及高感度地檢測磁感應元件4之溫度。 The temperature monitoring resistive film 47 is a conductive film that does not exhibit a magnetoresistance effect. Therefore, even if the magnetic flux density of the temperature monitoring resistive film 47 changes, the temperature can be accurately monitored. Further, since the temperature monitoring resistive film 47 is formed adjacent to the magnetic induction elements 4 (magnetic induction films 41 to 44) on the same substrate, the temperature of the magnetic induction element 4 can be detected with high precision and high sensitivity.

於溫度監視用電阻膜47之一端部,形成有溫度監視用之電源端子VccS。又,溫度監視用電阻膜47之另一端部連接於B相用之接地端子GNDB。因此,B相用之接地端子GNDB亦可作為對於溫度監視用電阻膜47之接地端子GNDS而使用。 A power supply terminal VccS for temperature monitoring is formed at one end of the temperature monitoring resistive film 47. Further, the other end portion of the temperature monitoring resistive film 47 is connected to the ground terminal GNDB for the B phase. Therefore, the ground terminal GNDB for the B phase can also be used as the ground terminal GNDS of the temperature monitoring resistive 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, a compensation adjustment unit 94, and a memory 95.

ADC部91藉由對來自磁感測器裝置10之輸出進行A/D轉換而將類 比信號轉換為數位信號。信號處理部92基於經A/D轉換之信號,檢測磁鐵20之旋轉角度位置或旋轉速度等。 The ADC section 91 classifies the output from the magnetic sensor device 10 by A/D conversion. The ratio signal is converted to a digital signal. The signal processing unit 92 detects the rotational angle position, the rotational 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 magnetic induction element 4, and detects a temperature difference and a temperature change from the set temperature by the resistance value of the temperature monitoring resistor film 47.

作為溫度檢測之時序,例如於每個與控制旋轉編碼器1之特定之控制裝置(上位裝置)進行通信之通信週期檢測1次,並於通信週期中進行溫度運算處理。即,於自角度響應開始至收到下一個來自控制裝置之請求期間,執行溫度運算處理。溫度運算處理以數10μs結束,而週期具有較10μs足夠長之期間,故處理係於通信週期內確實地結束。藉由於每個通信週期進行溫度檢測,相較於藉由中斷處理等非定期地進行溫度檢測,能夠將處理簡化。 As the timing of the temperature detection, for example, each communication cycle that communicates with a specific control device (upper device) that controls the rotary encoder 1 is detected once, and temperature calculation processing is performed in the communication cycle. That is, the temperature calculation process is executed from the start of the angle response until the next request from the control device is received. The temperature calculation process ends with a number of 10 μs, and the period has a period longer than 10 μs, so the processing is surely ended in the communication cycle. By performing temperature detection for each communication cycle, the process can be simplified as compared with non-periodical temperature detection by interrupt processing or the like.

補償調整部94將基於磁感應元件4之輸出而求出之補償電壓與利用溫度運算部93檢測出之元件之溫度建立關聯地依序記錄於記憶體95。而且,補償調整部94係於啟動時基於記錄於記憶體95之該等資料,計算補償電壓之溫度特性,根據當前之溫度算出啟動時之補償電壓。再者,於記憶體95之寫入量滿之情形時,自最舊之資料覆寫成最新之資料。 The compensation adjustment unit 94 sequentially records the compensation voltage obtained based on the output of the magnetic induction element 4 in the memory 95 in association with the temperature of the element detected by the temperature calculation unit 93. Further, the compensation adjustment unit 94 calculates the temperature characteristic of the compensation voltage based on the data recorded in the memory 95 at the time of startup, and calculates the compensation voltage at the time of startup based on the current temperature. Furthermore, when the amount of writing of the memory 95 is full, the oldest data is overwritten with the latest information.

圖5係表示磁感應元件4之溫度與補償電壓之關係之圖表。參照該圖表對補償電壓之調整處理進行說明。橫軸表示磁感應元件4之溫度(由溫度監視用電阻膜47及溫度運算部93檢測出之檢測結果)。縱軸表示磁感應元件4之補償電壓。 Fig. 5 is a graph showing the relationship between the temperature of the magnetic induction element 4 and the compensation voltage. The adjustment process of the compensation voltage will be described with reference to this chart. The horizontal axis represents the temperature of the magnetic induction element 4 (the detection result detected by the temperature monitoring resistive film 47 and the temperature calculating unit 93). The vertical axis represents the compensation voltage of the magnetic induction element 4.

如上所述,於旋轉編碼器1動作過程中,補償調整部94將補償電壓與磁感應元件4之溫度成對地依序記錄於記憶體95。例如,於圖5中,第1~第4資料D1~D4表示於圖表上。 As described above, during the operation of the rotary encoder 1, the compensation adjustment unit 94 sequentially records the compensation voltage in the memory 95 in pairs with the temperature of the magnetic induction element 4. For example, in Fig. 5, the first to fourth data D1 to D4 are shown on the graph.

補償調整部94係基於第1~第4資料D1~D4算出近似式(此處,近似直線AL),從而算出補償電壓之溫度特性。作為溫度特定,例如算 出近似直線AL之截距、斜率。 The compensation 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 the temperature characteristic of the compensation voltage. As temperature specific, such as The intercept and slope of the approximate straight line AL are obtained.

然後,於接下來旋轉編碼器1啟動之情形時,根據溫度監視用電阻膜47與溫度運算部93之檢測結果,補償調整部94基於溫度特性,自啟動後立即算出補償電壓。其結果,能夠自啟動後立即適當地算出補償電壓,從而能夠降低旋轉編碼器1之輸出誤差,即角度誤差。又,即便產生補償電壓之經年變化、或補償電壓溫度特性之經年變化,亦能夠依序修正。即,藉由補償調整部94學習補償電壓溫度特性,能夠高精度且高感度地算出剛啟動後之補償電壓。 Then, when the rotary encoder 1 is started, the compensation adjustment unit 94 calculates the compensation voltage from the start of the self-starting based on the temperature characteristics based on the detection results of the temperature monitoring resistor film 47 and the temperature calculation unit 93. As a result, the compensation voltage can be appropriately calculated immediately after the start, and the output error of the rotary encoder 1, that is, the angular error can be reduced. Further, even if the year-to-year variation of the compensation voltage or the year-to-year variation of the compensation voltage temperature characteristic occurs, it can be corrected in order. In other words, the compensation adjustment unit 94 learns the compensation voltage temperature characteristic, and can calculate the compensation voltage immediately after startup with high accuracy and high sensitivity.

再者,於在記憶體95成對地記錄補償電壓與磁感應元件4之溫度時,亦可按照特定範圍劃分溫度範圍,將於溫度範圍內檢測出之補償電壓平均化而儲存。由於能夠抑制所需之容量,因此於能夠利用之記憶體95之容量有限制之情形時有效。又,就另一觀點而言,能夠使至資料被覆寫為止之期間延長,從而能夠利用長期之資料。 Further, when the compensation voltage and the temperature of the magnetic induction element 4 are recorded in pairs in the memory 95, the temperature range may be divided according to a specific range, and the compensation voltage detected in the temperature range may be averaged and stored. Since the required capacity can be suppressed, it is effective when the capacity of the usable memory 95 is limited. Moreover, from another point of view, it is possible to extend the period until the data is overwritten, and it is possible to use long-term data.

再者,亦可於檢測出補償電壓與磁感應元件4之溫度所示之資料自近似直線AL偏離特定值以上之情形時,補償調整部94判斷為錯誤發生,重設既有之溫度特性。即,補償調整部94進行學習之初始化。 Further, when it is detected that the compensation voltage and the data indicated by the temperature of the magnetic induction element 4 deviate from the approximate straight line AL by a certain value or more, the compensation adjustment unit 94 determines that an error has occurred and resets the existing temperature characteristic. That is, the compensation adjustment unit 94 performs initialization of learning.

例如,如圖所示,錯誤資料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 line AL by ΔV. In this case, there is a possibility that the magnetic induction element 4 has a defect such as a change in the element, and the output characteristic of the magnetic induction element 4 changes. Therefore, in this case, the compensation adjustment unit 94 discards the existing data, records the new data acquired thereafter, and uses it. Further, when the initialization of the learning is frequently performed, the compensation adjustment unit 94 determines that the rotary encoder 1 has failed, and notifies the intention by a specific warning mechanism (display means or the like).

<第2實施形態> <Second embodiment>

於本實施形態中,基於流動於磁感應元件(MR元件)之電流而直接檢測磁感應元件自身之溫度,算出該溫度之補償電壓。再者,磁感應元件(MR元件)之溫度計測技術以外之構成能夠藉由與第1實施形態 相同之構成、功能來實現,因此對本實施形態之特徵技術進行說明,對於相同之構成、功能標註相同符號並適當省略說明。 In the present embodiment, the temperature of the magnetic induction element itself is directly detected based on the current flowing through the magnetic induction element (MR element), and the compensation voltage of the temperature is calculated. Furthermore, the configuration other than the temperature measurement technique of the magnetic induction element (MR element) can be configured by the first embodiment. The features and functions of the present embodiment are described in the same manner, and the same components and functions are denoted by the same reference numerals, and their description will be appropriately omitted.

圖6係說明用於磁感測器裝置10及旋轉編碼器1之磁感應元件4之磁感應膜41~44(磁阻膜)之電性連接構造之圖。此處,表示A相側之橋接電路4a,成為於第1實施形態之圖2(a)之構成上追加電流檢測電路150之構成。 FIG. 6 is a view for explaining an electrical connection structure of the magnetic induction films 41 to 44 (magnetoresistive films) used in the magnetic sensor device 10 and the magnetic induction element 4 of the rotary encoder 1. Here, the bridge circuit 4a on the A-phase side has a configuration in which the current detecting circuit 150 is added to the configuration of FIG. 2(a) of the first embodiment.

如圖所示,於A相用之電源端子VccA與A相側之橋接電路4a之路徑中途,即,於高端側設置有電流檢測電路150。再者,此處示出之電流檢測電路150之構成為了易於說明,示出電流檢測之基本之電路構成。實際上,通常使用專用之電流檢測用IC,於本實施形態中亦同樣。又,不限於高端側,亦可於低端側進行電流檢測。 As shown in the figure, in the middle of the path of the power supply terminal VccA for the A phase and the bridge circuit 4a on the A phase side, that is, the current detecting circuit 150 is provided on the high side. Furthermore, the configuration of the current detecting circuit 150 shown here is a basic circuit configuration for current detection for ease of explanation. Actually, a dedicated current detecting IC is usually used, and the same applies to the present embodiment. Further, it is not limited to the high side, and current detection can be performed on the low side.

電流檢測電路150具備電流檢測用電阻151與電流檢測用放大器152。電流檢測用電阻151於A相用之電源端子VccA與A相側之橋接電路4a之路徑中途串聯地插入。此處,於磁感應膜41、43之電阻值為500Ω~1000Ω之情形時,藉由將電流檢測用電阻151之電阻值設定為數10Ω,能夠以S/N比實質上不降低之方式進行電流檢測。 The current detecting circuit 150 includes a current detecting resistor 151 and a current detecting amplifier 152. The current detecting resistor 151 is inserted in series in the middle of the path of the power supply terminal VccA for the A phase and the bridge circuit 4a for the A phase. Here, when the resistance values of the magnetic induction films 41 and 43 are 500 Ω to 1000 Ω, by setting the resistance value of the current detecting resistor 151 to several tens of Ω, current detection can be performed without substantially reducing the S/N ratio. .

電流檢測用電阻151之兩端連接於電流檢測用放大器152之2個輸入(+/-)。而且,電流檢測用放大器152之輸出(Vout)連接於控制部90。 Both ends of the current detecting resistor 151 are connected to two inputs (+/-) of the current detecting amplifier 152. Further, an output (Vout) of the current detecting amplifier 152 is connected to the control unit 90.

接下來,對溫度檢測處理進行說明。藉由與圖4之控制部90相同之構成來實現溫度檢測處理。於記憶體95記錄有磁感應元件4之電阻溫度係數α及補償值(某種溫度下之電阻值ROMR)。溫度運算部93係基於流動於磁感應元件4之電流及施加電壓而算出磁感應元件4之電阻值RMR,參照記憶體95,算出當前之磁感應元件4之溫度t。當前之磁感應元件4之溫度t根據以下之關係式導出。 Next, the temperature detection processing will be described. The temperature detection process is realized by the same configuration as that of the control unit 90 of Fig. 4 . The temperature coefficient of resistance α of the magnetic induction element 4 and the compensation value (resistance value R OMR at a certain temperature) are recorded in the memory 95. The temperature calculation unit 93 calculates the resistance value R MR of the magnetic induction element 4 based on the current flowing through the magnetic induction element 4 and the applied voltage, and refers to the memory 95 to calculate the temperature t of the current magnetic induction element 4. The temperature t of the current magnetic induction element 4 is derived according to the following relationship.

RMR=ROMR+α(t-t0) R MR =R OMR +α(tt 0 )

α:磁感應元件4之電阻溫度係數 α : temperature coefficient of resistance of the magnetic induction element 4

ROMR:於特定之溫度t0下之磁感應元件4之電阻值 R OMR : resistance value of the magnetic induction element 4 at a specific temperature t 0

此處,構成磁感應元件4內之電阻電橋之各元件(磁感應膜41、43)之電阻值因外部磁通之施加方向而變化,但利用藉由圖3所示之電橋構成(磁感應膜41、43)之配置而於整個電阻中大致固定之情形。B相側之元件(磁感應膜42、44)亦同樣。補償調整部94利用求出之溫度,求出磁感應元件4之補償電壓。再者,補償電壓之溫度特性預先記錄於記憶體95。 Here, the resistance values of the respective elements (magnetic induction films 41, 43) constituting the resistance bridge in the magnetic induction element 4 vary depending on the direction in which the external magnetic flux is applied, but are constituted by the bridge shown in Fig. 3 (magnetic induction film) 41, 43) The configuration is substantially fixed throughout the resistor. The same applies to the elements on the B-phase side (magnetic induction films 42, 44). The compensation adjustment unit 94 obtains the compensation voltage of the magnetic induction element 4 using the obtained temperature. Furthermore, the temperature characteristics of the compensation voltage are recorded in advance in the memory 95.

再者,藉由設為設置電流檢測電路150並且設置第1實施形態之溫度監視用電阻膜47的構成,能夠掌握磁感測器裝置10內之、即基板40上之溫度分佈,能夠準確地算出溫度狀況。又,於旋轉編碼器1搭載之CPU,內置有溫度感測器,但該溫度感測器輸出並非經校準之內容。因此,亦能夠將電流檢測電路150用作內部校準用溫度感測器。 In addition, by providing the current detecting circuit 150 and providing the temperature monitoring resistive film 47 of the first embodiment, it is possible to grasp the temperature distribution in the magnetic sensor device 10, that is, the temperature distribution on the substrate 40, and it is possible to accurately Calculate the temperature condition. Further, the CPU mounted on the rotary encoder 1 has a built-in temperature sensor, but the temperature sensor output is not calibrated. Therefore, the current detecting circuit 150 can also be used as a temperature sensor for internal calibration.

以上基於實施形態對本發明進行說明,但對於本領域技術人員應當能夠理解,該實施形態為例示,該等各構成要素之組合等能夠實現各種變化例,並且該等變化例亦處於本發明之範圍內。 The present invention has been described above based on the embodiments, but it should be understood by those skilled in the art that the embodiments are exemplified, and various combinations of the constituent elements and the like can be implemented, and the modifications are also within the scope of the present invention. Inside.

90‧‧‧控制部 90‧‧‧Control Department

91‧‧‧ADC部 91‧‧‧ADC Department

92‧‧‧信號處理部 92‧‧‧Signal Processing Department

93‧‧‧溫度運算部(溫度檢測部) 93‧‧‧Temperature calculation unit (temperature detection unit)

94‧‧‧補償調整部 94‧‧‧Compensation Adjustment Department

95‧‧‧記憶體 95‧‧‧ memory

Claims (10)

一種編碼器,其特徵在於具有:磁阻元件,其形成於基板上;補償電壓檢測部,其檢測上述磁阻元件之補償電壓;溫度檢測部,其檢測上述磁阻元件之溫度;記憶部,其將上述補償電壓與上述磁阻元件之溫度建立關聯而記錄;及補償電壓決定部,其由記錄於上述記憶部之上述補償電壓與上述磁阻元件之溫度之資料,算出表示上述補償電壓與上述磁阻元件之溫度之關係之近似式,於啟動時,由上述磁阻元件之溫度基於上述近似式而推定當前之補償電壓,並將推定出之上述補償電壓作為新補償電壓。 An encoder comprising: a magnetoresistive element formed on a substrate; a compensation voltage detecting unit that detects a compensation voltage of the magnetoresistive element; a temperature detecting unit that detects a temperature of the magnetoresistive element; and a memory unit; And recording the compensation voltage in association with the temperature of the magnetoresistive element; and the compensation voltage determining unit calculates the compensation voltage by using the data of the compensation voltage recorded in the memory unit and the temperature of the magnetoresistive element In the approximate expression of the relationship between the temperatures of the magnetoresistive elements, the current compensation voltage is estimated based on the approximate expression of the temperature of the magnetoresistive element at the start, and the estimated compensation voltage is used as the new compensation voltage. 如請求項1之編碼器,其中上述溫度檢測部係配備於形成有上述磁阻元件之同一上述基板上。 An encoder according to claim 1, wherein said temperature detecting portion is provided on said same substrate on which said magnetoresistive element is formed. 如請求項2之編碼器,其中於將上述補償電壓與上述磁阻元件之溫度建立關聯地記錄於上述記憶部時,將溫度範圍按照每個特定範圍加以分割,並將於上述溫度範圍內檢測出之補償電壓平均化。 The encoder of claim 2, wherein when the compensation voltage is recorded in the memory unit in association with the temperature of the magnetoresistive element, the temperature range is divided according to each specific range, and is detected within the temperature range. The compensation voltage is averaged out. 如請求項3之編碼器,其中於計測出之補償電壓與上述磁阻元件之溫度之關係與上述近似式偏離特定量以上之情形時,上述補償電壓決定部基於新資料而算出新近似式。 The encoder of claim 3, wherein the compensation voltage determination unit calculates a new approximation based on the new data when the relationship between the measured compensation voltage and the temperature of the magnetoresistive element deviates from the approximation by a certain amount or more. 如請求項4之編碼器,其中上述溫度檢測部係於每個與外部之控制裝置進行通信之通信週期檢測一次上述磁阻元件之溫度,上述補償電壓決定部係於上述通信週期中算出上述近似式。 The encoder of claim 4, wherein the temperature detecting unit detects the temperature of the magnetoresistive element once in each communication cycle in communication with an external control device, and the compensation voltage determining unit calculates the approximation in the communication cycle. formula. 如請求項1至5中任一項之編碼器,其中上述溫度檢測部算出上 述磁阻元件之電阻值,根據算出之電阻值而檢測當前之溫度。 The encoder according to any one of claims 1 to 5, wherein the temperature detecting unit calculates The resistance value of the magnetoresistive element is measured, and the current temperature is detected based on the calculated resistance value. 如請求項1至5中任一項之編碼器,其中上述溫度檢測部具備溫度監視用電阻膜,該溫度監視用電阻膜形成於形成有上述磁阻元件之上述基板上。 The encoder according to any one of claims 1 to 5, wherein the temperature detecting unit includes a temperature monitoring resistive film formed on the substrate on which the magnetoresistive element is formed. 如請求項1之編碼器,其中於將上述補償電壓與上述磁阻元件之溫度建立關聯而記錄於上述記憶部時,將溫度範圍按照每個特定範圍加以分割,並將於上述溫度範圍內檢測出之補償電壓平均化。 The encoder of claim 1, wherein when the compensation voltage is associated with the temperature of the magnetoresistive element and recorded in the memory portion, the temperature range is divided according to each specific range, and is detected within the temperature range. The compensation voltage is averaged out. 如請求項1之編碼器,其中於計測出之補償電壓與上述磁阻元件之溫度之關係與上述近似式偏離特定量以上之情形時,上述補償電壓決定部係基於新資料而算出新近似式。 The encoder of claim 1, wherein the compensation voltage determining unit calculates a new approximation based on the new data when the relationship between the measured compensation voltage and the temperature of the magnetoresistive element is different from the approximation by a certain amount or more . 如請求項1之編碼器,其中上述溫度檢測部係於每個與外部之控制裝置進行通信之通信週期檢測一次上述磁阻元件之溫度,上述補償電壓決定部係於上述通信週期中算出上述近似式。 An encoder according to claim 1, wherein said temperature detecting unit detects a temperature of said magnetoresistive element once in each communication cycle in communication with an external control device, and said compensation voltage determining unit calculates said approximation in said communication cycle. formula.
TW105125017A 2015-08-28 2016-08-05 Encoder TWI688751B (en)

Applications Claiming Priority (2)

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

Publications (2)

Publication Number Publication Date
TW201708794A true TW201708794A (en) 2017-03-01
TWI688751B TWI688751B (en) 2020-03-21

Family

ID=58211914

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105125017A TWI688751B (en) 2015-08-28 2016-08-05 Encoder

Country Status (4)

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

Families Citing this family (2)

* 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
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
JP4333582B2 (en) * 2002-11-29 2009-09-16 ヤマハ株式会社 Magnetic sensor and temperature dependent characteristic compensation method for magnetic sensor
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

Also Published As

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

Similar Documents

Publication Publication Date Title
US9625276B2 (en) Axial and perpendicular angle sensor in single package
US9389060B2 (en) Magnetic field sensor and related techniques that provide an angle error correction module
JP5263024B2 (en) Rotation angle detection device and rotation speed detection device
US8024956B2 (en) Angle measurement system
JP5096442B2 (en) Rotation angle measuring device, motor system and electric power steering system
US9400164B2 (en) Magnetic field sensor and related techniques that provide an angle correction module
JP4044880B2 (en) Non-contact angle measuring device
US9377285B2 (en) Magnetic field sensor and related techniques that provide varying current spinning phase sequences of a magnetic field sensing element
JP4858837B2 (en) Rotation angle detector
US8525513B2 (en) Angular position measuring device
CN108426590B (en) Rotary encoder
JP2019505811A (en) Device for detecting the angular position of rotatable components
JP5795152B2 (en) MR sensor aging correction method and current measurement method
US10393555B2 (en) Calibration of an angle sensor without a need for regular rotation
TW201629436A (en) Encoder and method of calculating rotational angle position
JP6151544B2 (en) Magnetic sensor device and rotary encoder
TWI688751B (en) Encoder
TWI545302B (en) A sensor device and a control temperature method for the sensor device
CN211205181U (en) Angle sensor and correction parameter calculation unit
CN109075736A (en) The control system of motor
JP5212452B2 (en) Rotation sensor