WO2009154157A1 - Magnetic sensor and magnetic encoder - Google Patents
Magnetic sensor and magnetic encoder Download PDFInfo
- Publication number
- WO2009154157A1 WO2009154157A1 PCT/JP2009/060826 JP2009060826W WO2009154157A1 WO 2009154157 A1 WO2009154157 A1 WO 2009154157A1 JP 2009060826 W JP2009060826 W JP 2009060826W WO 2009154157 A1 WO2009154157 A1 WO 2009154157A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- magnetic
- sensor
- peak
- output
- threshold value
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING 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/00—Mechanical 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/12—Mechanical 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/14—Mechanical 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/142—Mechanical 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 using Hall-effect devices
- G01D5/145—Mechanical 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 using Hall-effect devices influenced by the relative movement between the Hall device and magnetic fields
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING 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/00—Mechanical 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/12—Mechanical 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/244—Mechanical 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
- G01D5/24471—Error correction
- G01D5/2448—Correction of gain, threshold, offset or phase control
Definitions
- the present invention particularly relates to a magnetic sensor and a magnetic encoder capable of obtaining a stable output with a constant duty ratio of a high / low binary signal.
- the magnetic encoder is provided with a magnet in which N poles and S poles are alternately magnetized in the relative movement direction, and a position away from the magnet, and includes, for example, a GMR element (giant magnetoresistive effect element). And a sensor.
- GMR element giant magnetoresistive effect element
- the magnetic encoder is known to have a double frequency mode in which an output of two pulses can be obtained with respect to a relative movement of one period ⁇ , where the distance ⁇ between the centers of the N and S poles is one period.
- This double frequency mode is characterized in that detection can be performed with higher accuracy than the single frequency mode in which an output for one pulse can be obtained in one cycle ( ⁇ ).
- FIG. 7 is a plan view of a conventional rotary magnetic encoder
- FIG. 8 is a side view of the rotary magnetic encoder as viewed from the direction of arrow a
- FIG. 9 is a rotary magnetic encoder of FIG. It is the front view of the rotary magnetic encoder which looked at the encoder from the arrow b direction.
- Reference numeral 1 shown in FIG. 7 is a rotating drum type magnet.
- the side surface 1a of the magnet 1 is a magnetized surface (radial magnetized magnet), and the N pole and the S pole are alternately magnetized.
- Reference numeral 2 denotes a magnetic sensor, and the magnetic sensor 2 is provided at a position away from the side surface 1a of the magnet 1 by a predetermined distance.
- the magnetic sensor 2 is supported by a support plate 3.
- the magnet 1 rotates around the axis center O1.
- the electric resistance value of the GMR element changes.
- a sensor output based on a change in the electrical resistance of the GMR element is converted into a high / low binary signal by a comparator having a threshold set by an integrated circuit (IC) provided in the magnetic sensor 2.
- IC integrated circuit
- the center O2 of the magnetic sensor 2 is in a positional relationship facing the center line CL of the side surface 1a of the magnet 1.
- the center 2 of the magnetic sensor 2 is When the center line CL is shifted in the vertical direction, or when at least one of the rotation modes ⁇ , ⁇ , ⁇ shown in FIGS. It has been found that the duty ratio of the binary signal varies and, in the worst case, a detection error occurs.
- FIG. 10 shows the sensor output when the magnetic sensor 2 has a rotation mode ⁇ of 10 ° with the Y axis direction as the rotation center from the normal state of FIG. 8
- FIG. 11 shows the magnetic sensor 2 from the normal state of FIG. Is the sensor output when a rotation mode ⁇ of 10 ° occurs with the Z-axis direction as the center of rotation. 10 and 11 show both actual measurement values and simulation results.
- the sensor output is distorted. Therefore, if the threshold value for generating the high / low binary signal is fixed, the duty ratio of the high / low binary signal varies as shown in FIG. Further, in order to suppress the occurrence of chattering, it is desirable to set the threshold value as close to the maximum peak and minimum peak of the sensor output as possible.
- a fixed threshold is set in accordance with the high maximum peak (high), and this fixed threshold is set. Is larger than the low maximum peak (low), a signal cannot be generated at the protruding waveform portion having the maximum peak (low), and a detection error occurs. Therefore, conventionally, the threshold value cannot be set to a value close to the maximum peak and the minimum peak of the sensor output and must be reduced, and a stable output cannot be obtained.
- Patent Document 1 describes an invention in which a peak of a sensor output immediately before is detected, and thereby a threshold is set as needed.
- Patent Document 1 cannot cope with threshold correction for sensor output distortion in the double-frequency mode, cannot make the duty ratio of the binary signal of high / low constant, and causes a detection error. There is a possibility. JP 2005-91073 A
- the present invention is to solve the above-described conventional problems, and in particular, to provide a magnetic sensor and a magnetic encoder capable of obtaining a stable output with a constant duty ratio of a high / low binary signal. With the goal.
- a magnetic field generating member having a magnetized surface in which N and S poles are alternately magnetized in the relative movement direction is disposed at a position away from the magnetized surface, and has an electric resistance value with respect to an external magnetic field.
- a magnetic sensor comprising: a sensor unit including a magnetic detection element that changes; and a control unit for generating a high / low binary signal based on a sensor output from the sensor unit.
- the control unit compares the sensor output with a threshold value to obtain the binary signal, and a threshold setting circuit that sets the threshold value based on the maximum peak and the minimum peak of the two previous sensor outputs It is characterized by having. As a result, a stable output with a constant duty ratio of the high / low binary signal can be obtained.
- the threshold setting circuit includes a peak detection unit that detects a maximum peak and a minimum peak of the sensor output, a first storage unit that stores a maximum peak and a minimum peak of the previous sensor output, and 2 It is preferable to have a second storage unit that stores a maximum peak and a minimum peak of the previous sensor output, and a threshold generation unit that generates the threshold based on data in the second storage unit.
- the threshold value can be dynamically set based on the maximum peak and the minimum peak of the sensor output two times before by a simple circuit.
- the magnetic detection element is an MR element utilizing a magnetoresistive effect.
- a magnetic encoder includes any one of the magnetic sensors described above and the magnetic field generating member.
- the present invention can be used for a single-frequency magnetic encoder, but can be preferably applied to a double-frequency configuration that outputs two pulses in one cycle.
- the threshold value is set based on the maximum peak and the minimum peak of the sensor output two times before, so that even if the magnetic sensor causes a positional deviation or the like with respect to the magnetic field generating member, A stable output with a constant duty ratio of the / low binary signal can be obtained.
- FIG. 1 is a perspective view of the magnetic encoder of the present embodiment
- FIG. 2 is a partial cross-sectional view of the magnetic detection element of the present embodiment
- FIG. 3 is a circuit configuration diagram of the magnetic sensor of the present embodiment
- FIG. 5 is a circuit configuration diagram of a magnetic sensor in the embodiment
- FIG. 5 is a diagram for explaining output processing from sensor output to comparator output (conversion to a binary signal) in this embodiment.
- (d) Comparator threshold value e
- the X1-X2 direction, the Y1-Y2 direction, and the Z1-Z2 direction are orthogonal to the remaining two directions.
- the Y1-Y2 direction is the relative movement direction of the magnet 21 and the magnetic sensor 22, and is the lateral direction of the substrate 23 constituting the magnetic sensor 22.
- the “relative movement direction” refers to the relative movement direction of the magnetic sensor.
- the relative movement direction of the magnetic sensor 22 is the Y1 direction. Therefore, when the magnet 21 is fixed and the magnetic sensor 22 is moved, the magnetic sensor 22 is moved in the Y1 direction. When the magnetic sensor 22 is fixed and the magnet 21 is moved, the magnet 21 is moved in the Y2 direction.
- the X1-X2 direction is the longitudinal direction of the magnetic sensor 22 orthogonal to the relative movement direction in the plane of the substrate 23.
- the Z1-Z2 direction is a height direction in which the magnet 21 and the magnetic sensor 22 face each other with a predetermined interval.
- the magnetic encoder 20 includes a magnet (magnetic field generating member) 21 and a magnetic sensor 22.
- the magnet 21 has a rod shape extending in the Y1-Y2 direction shown in the figure, and the magnetized surface in which the facing surface 21a facing the magnetic sensor 22 is alternately magnetized with N and S poles with a predetermined width in the Y1-Y2 direction shown in the figure. It is.
- the center-to-center distance (pitch) between the N pole and the S pole is ⁇ .
- the magnetic sensor 22 has a substrate 23 and a plurality of magnetic detection elements A1, A2, B1, and B2 provided on a surface 23a (a surface facing the magnet 21) of the common substrate 23. Composed.
- the eight magnetic detection elements A1, A2, B1, and B2 are arranged in a matrix with four elements in the Y1-Y2 direction and two elements in the X1-X2 direction. As shown in FIG. 1, the interval between the centers of adjacent magnetic detection elements in the Y1-Y2 direction is ⁇ / 4.
- each of the magnetic detection elements A1, A2, B1, and B2 is laminated in order of an antiferromagnetic layer 7, a fixed magnetic layer 8, a nonmagnetic layer 9, a free magnetic layer 10, and a protective layer 11 from the bottom. It is formed with the structure.
- the laminated structure of FIG. 2 is an example.
- the pinned magnetic layer 8 may be formed with a laminated ferrimagnetic structure.
- the antiferromagnetic layer 7 is made of IrMn
- the pinned magnetic layer 8 is made of CoFe
- the nonmagnetic layer 9 is made of Cu
- the free magnetic layer 10 is made of NiFe
- the protective layer 11 is made of Ta.
- the magnetic detection elements A1, A2, B1, and B2 include a laminated portion in which at least the pinned magnetic layer 8 and the free magnetic layer 10 are laminated with the nonmagnetic layer 9 interposed therebetween.
- An exchange coupling magnetic field (Hex) is generated between the antiferromagnetic layer 7 and the pinned magnetic layer 8, and the magnetization direction (P direction) of the pinned magnetic layer 8 is pinned in one direction.
- the magnetization direction (F direction) of the free magnetic layer 10 is not fixed as in the fixed magnetic layer 8 and easily changes in magnetization due to the external magnetic field H.
- the interface between the free magnetic layer 10 and the nonmagnetic layer 9 constituting the magnetic detection elements A1, A2, B1, B2 is a plane direction (XY) parallel to the magnetized surface 21a of the magnet 21. Face direction).
- the above configuration is a configuration of a giant magnetoresistive effect element (GMR element) in which the nonmagnetic layer 9 is formed of Cu.
- GMR element giant magnetoresistive effect element
- the nonmagnetic layer 9 is formed of an insulating material such as Al 2 O 3 or MgO.
- TMR element tunnel type magnetoresistive effect element
- the magnetic detection elements A1, A2, B1, and B2 of the present embodiment may be anisotropic magnetoresistive elements (AMR elements) using the anisotropic magnetoresistive effect.
- the magnetization direction (P direction) of the pinned magnetic layer 8 of each of the magnetic detection elements A1, A2, B1, and B2 is the X1 direction.
- the magnetization direction (F direction) of the free magnetic layer 10 is the same as the magnetization direction (P direction) of the pinned magnetic layer 8 in the absence of a magnetic field (a state in which no external magnetic field is applied).
- the magnetization direction (F direction) of the free magnetic layer 10 is changed to the magnetization direction (P direction) of the pinned magnetic layer 8. It can be in the same direction or in the opposite direction.
- an A-phase bridge circuit (sensor unit) 55 is constituted by the two magnetic detection elements A1 and the two magnetic detection elements A2.
- One magnetic detection element A1 and one magnetic detection element A2 are connected in series via an A-phase first output terminal (Va1) 50.
- the other magnetic detection element A1 and the other magnetic detection element A2 are connected in series via the A-phase second output terminal (Va2) 51.
- Reference numeral 52 is an input terminal
- reference numeral 60 is a ground terminal.
- the bridge circuit 55 is connected to an integrated circuit (IC) 56 that is a control unit. As shown in FIG. 3, the integrated circuit 56 includes a main signal circuit 57 and a threshold setting circuit 53.
- IC integrated circuit
- the main signal circuit 57 includes an amplifier 58 and a comparator 59.
- the A-phase first output terminal (Va1) 50 and the A-phase second output terminal (Va2) 51 are connected to the input section of the amplifier 58, and the output section of the amplifier 58 is the input section of the comparator 59. It is connected to the.
- the threshold setting circuit 53 includes a peak detection unit 61, an A / D converter 62, a first storage unit (Shift Register) 63, a second storage unit (Shift Register) 64, and a D / A converter. 65 and a threshold generation unit 66.
- the threshold setting circuit 53 branches from the main signal circuit 57, and the input unit of the peak detection unit 61 constituting the threshold setting circuit 53 is connected to the output unit of the amplifier 58 to configure the threshold setting circuit 53.
- the output unit of the threshold generation unit 66 is connected to the input unit of the comparator 59.
- the B phase also constitutes a circuit similar to FIG.
- the magnetic encoder 20 shown in FIG. 1 has a double frequency configuration (outputs two pulses in one period ( ⁇ )), and the interval between the centers of the magnetic detection elements connected in series in the bridge circuit shown in FIG. 2
- the external magnetic fields H1, H2 enter the magnetic detection elements A1, A2, B1, B2 from the magnetized surface 21a of the magnet 21.
- the directions of the external magnetic field H1 and the external magnetic field H2 are different, and when the magnetic detection element is positioned on the magnetic pole, the perpendicular magnetic field is dominant in the magnetic field component with respect to the magnetic detection element, and the external magnetic field is zero. (No magnetic field state).
- the magnetic detection element A1 and the magnetic detection element A2 are separated from each other by ⁇ / 2 in the relative movement direction (Y1 direction).
- the magnetization direction (P Direction) and the magnetization direction (F direction) of the free magnetic layer 10 are parallel to each other, so that the electric resistance value is a minimum value.
- the magnetic detection element A2 receives the external magnetic field H1 or the external magnetic field H2, and the electrical resistance value increases from the minimum value.
- the magnetic detection element A1 receives the external magnetic field H1 or the external magnetic field H2, and the electric resistance value is the minimum value. It grows from.
- the sensor output shown in FIG. 5 (a) is the sensor output (analog value) amplified by the amplifier 58.
- the sensor output shown in FIG. 5A is an actual measurement value when the magnetic sensor 22 of the double frequency configuration travels away from a position opposite to the center line of the magnet 21.
- a sensor output in which a maximum peak and a minimum peak appear twice each in one period ( ⁇ ). can get.
- the maximum peak A and the maximum peak C have different output values.
- the minimum peak B and the minimum peak D have different output values.
- the output waveform (1) reaching the minimum peak B, the maximum peak C, and the minimum peak D is different from the output waveform (2) reaching the minimum peak D, the maximum peak E, and the minimum peak F, and the output waveform ( It can be seen that 1) and the output waveform (2) appear alternately.
- the sensor output amplified by the amplifier 58 is sent to both the comparator 59 and the peak detection unit 61 constituting the threshold setting circuit 53.
- the peak detector 61 detects the maximum peak output value (Vmax) of the sensor output. Further, the peak detection unit 61 detects the output value (Vmin) of the minimum peak of the sensor output.
- the output value detected by the peak detector 61 is preferably an analog value for reliable detection, but the analog value is converted to a digital value by the A / D converter 62 in order to maintain the peak value for a long period of time. Is preferred.
- FIG. 5B shows a digitized maximum peak
- FIG. 5C shows a digitized minimum peak.
- a comparator threshold value is preset as an initial setting value.
- a rising threshold value (VTH1) and a falling threshold value (VTL1) are set as initial threshold values (see FIG. 5D).
- the threshold values (VTH1, VTL1) in the initial setting are all set to small values close to the reference level.
- the sensor output gradually increases from the initial position (0), and when the sensor output exceeds the rising threshold value (VTH1), (1) in FIG. ), The comparator output becomes a high level.
- the sensor output passes the maximum peak A.
- the peak detection unit 61 detects the maximum peak A and holds the value of the maximum peak A digitized by the A / D converter 62.
- the comparator output becomes the low level as shown in (2) of FIG.
- the held value of the maximum peak A is stored in the maximum storage portion of the first storage unit 63.
- the detection level of the maximum peak is returned to the initial state (FIG. 5B).
- the sensor output passes through the minimum peak B.
- the minimum peak B is detected by the peak detector 61 and the value of the minimum peak B digitized by the A / D converter 62 is held.
- the comparator output becomes a high level as shown in (3) of FIG.
- the held minimum peak B is stored in the minimum storage portion of the first storage unit 63.
- the detection level of the minimum peak is returned to the initial state (FIG. 5C).
- the sensor output passes through the maximum peak C.
- the peak detection unit 61 detects the maximum peak C and holds the maximum peak C digitized by the A / D converter 62.
- the held maximum peak C is stored in the maximum storage portion of the first storage unit 63, but the maximum peak A stored in the first storage unit 63 is stored in the second storage unit. Forwarded to the department. At the same time, the detection level of the maximum peak is returned to the initial state (FIG. 5B).
- the data of the maximum peak A transferred to the second storage unit 64 is D / A converted by the D / A converter 65 shown in FIG. 3, and based on this value, the threshold value generation unit 66 sets a new rising threshold value (VTH2). generate. This rising threshold value (VTH2) is set as the next comparator threshold value. At this time, the minimum peak has not yet been stored in the second storage unit 64, and thus the complete threshold value has not been set.
- the sensor output passes through the minimum peak D.
- the minimum peak D is detected by the peak detector 61 and the minimum peak D digitized by the A / D converter 62 is held.
- the held minimum peak D is stored in the minimum storage portion of the first storage unit 63, but the minimum peak B stored in the first storage unit 63 is stored in the minimum storage of the second storage unit. Forwarded to the department. At the same time, the detection level of the minimum peak is returned to the initial state (FIG. 5C).
- the data of the minimum peak B transferred to the second storage unit 64 is D / A converted by the D / A converter 65 shown in FIG. 3, and based on this value, the threshold value generation unit 66 generates a new falling threshold value (VTL3). Is generated. This falling threshold value (VTL3) is sent to the comparator 59 and set to the next comparator threshold value.
- a threshold value that does not exceed the minimum peak B and is as close as possible to the minimum peak B is set. From here, a completely dynamic threshold setting is performed.
- the sensor output passes through the maximum peak E.
- the peak detection unit 61 detects the maximum peak E and holds the maximum peak E digitized by the A / D converter 62.
- the held maximum peak E is stored in the maximum storage portion of the first storage unit 63, but the maximum peak C stored in the first storage unit 63 is stored in the maximum storage of the second storage unit. Forwarded to the department. At the same time, the detection level of the maximum peak is returned to the initial state (FIG. 5B).
- the data of the maximum peak C transferred to the second storage unit 64 is D / A converted by the D / A converter 65 shown in FIG. 3, and based on this value, the threshold value generation unit 66 sets a new rising threshold value (VTH3). generate.
- This rising threshold value (VTH3) is sent to the comparator 59 and set to the next comparator threshold value.
- a threshold value that does not exceed the maximum peak C and is as close as possible to the maximum peak C is set.
- the dynamic threshold setting based on the maximum peak and the minimum peak of the sensor output described above is repeated to obtain the comparator output shown in FIG.
- the rising threshold value (VTH4) shown in FIG. 5 (d) is a threshold value generated based on the maximum peak E ⁇ having a smaller protruding amount than the maximum peaks C and G ⁇ .
- the falling threshold value (VTL4) shown in FIG. 5 (d) is a threshold value generated based on the minimum peak D ⁇ having a smaller protruding amount than the minimum peaks B and F ⁇ .
- the threshold value in the present embodiment described above is generated based on the previous maximum peak and minimum peak.
- the rising threshold value (VTH3) for the protruding waveform portion of the maximum peak G is generated based on the maximum peak C two times before the maximum peak G.
- the minimum peak is generated based on the maximum peak B two times before the minimum peak F.
- the threshold value is based on the two previous maximum and minimum peaks as in this embodiment.
- the threshold value can be dynamically changed close to the maximum peak and minimum peak, chattering can be prevented, and stable output can be obtained without causing detection errors as in the past. Is possible.
- the initial setting value of the comparator threshold is a value close to the reference level assuming the minimum value of the sensor output peak.
- the duty ratio decreases as described above, but a high / low binary signal can be reliably output from the beginning.
- the threshold value may be set based on the maximum peak and the minimum peak stored in the second storage. Since the maximum peak and the minimum peak stored in the second storage may be different from the original maximum peak and minimum peak due to drift, when the operation stops for a predetermined time or more, the first storage 63 and the second storage It is preferable to perform dynamic threshold setting again after erasing the data in the device 64 and using the initial threshold value described with reference to FIG.
- only the A phase may be used, but by using both the A phase and the B phase, it is possible to know the moving direction in addition to the moving speed and the moving distance.
- the A / D converter 62 and the D / A converter 65 having a relatively large circuit scale can be shared by time-division driving, so that a threshold setting circuit is configured.
- One A / D converter 62 and one D / A converter 65 may be provided.
- the circuit can be made smaller.
- the same reference numerals as those in FIG. 3 denote the same components.
- reference numeral 70 is a B-phase amplifier
- reference numeral 71 is a B-phase comparator
- reference numeral 72 is a B-phase peak detection unit
- reference numeral 73 is a first B-phase storage unit
- reference numeral 74 is a second B-phase signal.
- a storage unit, reference numeral 75 is a B-phase threshold generation unit.
- the magnetic sensor 22 linearly moves relative to the magnet 21 as shown in FIG. 1, but as shown in FIG.
- This is a rotary magnetic encoder having a rotating drum magnet 80 and magnetic sensor 22 alternately magnetized with S poles, and the rotation speed, rotation speed, and rotation direction are determined by the output obtained by rotation of the magnet 80. It may be a rotary magnetic encoder that can be detected.
- the magnet may be either a radial type or an axial type.
- the rotary magnetic encoder even if the magnetic sensor 22 is displaced in the vertical direction from the center line of the side surface 80a of the magnet 80, or the same variation as in the prior art shown in FIGS.
- the threshold By setting the threshold based on the previous maximum peak and minimum peak, the duty ratio of the high / low binary signal is constant and a stable output can be obtained.
- the perspective view of the magnetic encoder of this embodiment Partial sectional view of the magnetic detection element of the present embodiment,
- the circuit configuration diagram of the magnetic sensor of the present embodiment The circuit block diagram of the magnetic sensor in other embodiment, It is for demonstrating the output process from the sensor output in this embodiment to a comparator output (conversion to a binary signal), (a) Sensor output (b) Peak detection (maximum value), (c) Peak detection (Minimum value) (d) Comparator threshold (e) Diagram showing comparator output, A plan view of the rotary magnetic encoder of the present embodiment, Plan view of a conventional rotary magnetic encoder, FIG. 7 is a side view of the rotary magnetic encoder as viewed from the direction of arrow a.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Transmission And Conversion Of Sensor Element Output (AREA)
Abstract
Description
本発明は、特に、ハイ/ローの2値信号のデューティ比が一定で且つ安定した出力を得ることが出来る磁気センサ及び磁気エンコーダに関する。 The present invention particularly relates to a magnetic sensor and a magnetic encoder capable of obtaining a stable output with a constant duty ratio of a high / low binary signal.
磁気エンコーダは、相対移動方向に向けてN極とS極とが交互に着磁された磁石と、磁石から離れた位置に設けられ、例えばGMR素子(巨大磁気抵抗効果素子)を備えて成る磁気センサとを有して構成される。 The magnetic encoder is provided with a magnet in which N poles and S poles are alternately magnetized in the relative movement direction, and a position away from the magnet, and includes, for example, a GMR element (giant magnetoresistive effect element). And a sensor.
磁気エンコーダには、N極とS極の中心間距離λを1周期としたとき、1周期λの相対移動に対して2パルス分の出力が得られる倍周波モードが知られている。この倍周波モードでは、1周期(λ)に1パルス分の出力を得ることが出来る単周波モードに比べて高精度な検出を行うことが出来る特徴がある。 The magnetic encoder is known to have a double frequency mode in which an output of two pulses can be obtained with respect to a relative movement of one period λ, where the distance λ between the centers of the N and S poles is one period. This double frequency mode is characterized in that detection can be performed with higher accuracy than the single frequency mode in which an output for one pulse can be obtained in one cycle (λ).
図7は、従来の回転型磁気エンコーダの平面図、図8は、図7の回転型磁気エンコーダを矢印a方向から見た回転型磁気エンコーダの側面図、図9は、図7の回転型磁気エンコーダを矢印b方向から見た回転型磁気エンコーダの正面図、である。 7 is a plan view of a conventional rotary magnetic encoder, FIG. 8 is a side view of the rotary magnetic encoder as viewed from the direction of arrow a, and FIG. 9 is a rotary magnetic encoder of FIG. It is the front view of the rotary magnetic encoder which looked at the encoder from the arrow b direction.
図7に示す符号1は回転ドラム型の磁石であり、例えば図7の形態では磁石1の側面1aが着磁面であり(ラジアル着磁磁石)、N極とS極とが交互に着磁されている。符号2は磁気センサであり、磁気センサ2は磁石1の側面1aから所定距離離れた位置に設けられる。磁気センサ2は支持板3に支持されている。例えば磁石1が軸中心O1を回転中心として回転する。すると磁気センサ2に作用する磁石1からの磁場が変化するため、GMR素子の電気抵抗値が変動する。GMR素子の電気抵抗変化に基づくセンサ出力を、磁気センサ2内に設けられた集積回路(IC)にて、閾値が設定されたコンパレータにより、ハイ/ローの2値信号に変換する。
図8や図9では、磁気センサ2の中心O2が、磁石1の側面1aのセンタラインCLに対向した位置関係となっているが、倍周波モードの磁気エンコーダにおいて、磁気センサ2の中心2がセンタラインCLから上下方向にずれたり、あるいは、磁石1に対して磁気センサ2に図7~図9に示す少なくともいずれかの回転モードα,β,γが生じた場合等では、ハイ/ローの2値信号のデューティ比にばらつきが生じたり、最悪の場合、検出エラーを起こすことがわかった。
8 and 9, the center O2 of the
図10は、図8の正常な状態から磁気センサ2がY軸方向を回転中心として10°の回転モードγが生じたときのセンサ出力、図11は、図9の正常な状態から磁気センサ2がZ軸方向を回転中心として10°の回転モードβが生じたときのセンサ出力である。なお図10及び図11には実測値とシミュレーション結果を共に掲載した。
10 shows the sensor output when the
図10及び図11から明らかなようにセンサ出力に歪みが生じる。よって、ハイ/ローの2値信号を生成するための閾値を固定すると、図12に示すように、ハイ/ローの2値信号のデューティ比にばらつきが生じてしまう。また、チャタリングの発生を抑制等するために、閾値は出来る限り、センサ出力の極大ピーク及び極小ピークに近い値に設定することが望ましい。しかしながら、図11に示すようにセンサ出力に歪みが生じて、センサ出力の極大ピーク及び極小ピークにばらつきが発生した場合、例えば高い極大ピーク(高)に合わせて固定閾値を設定し、この固定閾値が低い極大ピーク(低)よりも大きいと、極大ピーク(低)を備える突出波形部分にて信号を生成できなくなり、検出エラーを起こす。よって、従来では、閾値を、センサ出力の極大ピーク及び極小ピークに近い値に設定できずに小さくしなければならず、安定した出力を得ることが出来なかった。 As is clear from FIGS. 10 and 11, the sensor output is distorted. Therefore, if the threshold value for generating the high / low binary signal is fixed, the duty ratio of the high / low binary signal varies as shown in FIG. Further, in order to suppress the occurrence of chattering, it is desirable to set the threshold value as close to the maximum peak and minimum peak of the sensor output as possible. However, when the sensor output is distorted as shown in FIG. 11 and variations occur in the maximum peak and the minimum peak of the sensor output, for example, a fixed threshold is set in accordance with the high maximum peak (high), and this fixed threshold is set. Is larger than the low maximum peak (low), a signal cannot be generated at the protruding waveform portion having the maximum peak (low), and a detection error occurs. Therefore, conventionally, the threshold value cannot be set to a value close to the maximum peak and the minimum peak of the sensor output and must be reduced, and a stable output cannot be obtained.
特許文献1には、直前のセンサ出力のピークを検出し、これにより、閾値を随時設定する発明が記載されている。
しかしながら特許文献1に記載された方法では、倍周波モードでのセンサ出力の歪みに対する閾値補正に対応できず、ハイ/ローの2値信号のデューティ比を一定にできないし、また、検出エラーを起こす可能性もある。
そこで本発明は上記従来の課題を解決するためのものであり、特に、ハイ/ローの2値信号のデューティ比が一定で且つ安定した出力を得ることが出来る磁気センサ及び磁気エンコーダを提供することを目的とする。 Accordingly, the present invention is to solve the above-described conventional problems, and in particular, to provide a magnetic sensor and a magnetic encoder capable of obtaining a stable output with a constant duty ratio of a high / low binary signal. With the goal.
本発明は、相対移動方向に交互にN極とS極が着磁された着磁面を有する磁界発生部材に対し前記着磁面から離れた位置に配置され、外部磁界に対して電気抵抗値が変化する磁気検出素子を備えたセンサ部と、前記センサ部からのセンサ出力に基づいてハイ/ローの2値信号を生成するための制御部とを有して成る磁気センサにおいて、
前記制御部は、前記センサ出力を閾値と比較して前記2値信号を得るための比較器と、2つ前の前記センサ出力の極大ピーク及び極小ピークに基づいて前記閾値を設定する閾値設定回路と、を有することを特徴とするものである。これにより、ハイ/ローの2値信号のデューティ比が一定で且つ安定した出力を得ることが出来る。
In the present invention, a magnetic field generating member having a magnetized surface in which N and S poles are alternately magnetized in the relative movement direction is disposed at a position away from the magnetized surface, and has an electric resistance value with respect to an external magnetic field. In a magnetic sensor comprising: a sensor unit including a magnetic detection element that changes; and a control unit for generating a high / low binary signal based on a sensor output from the sensor unit.
The control unit compares the sensor output with a threshold value to obtain the binary signal, and a threshold setting circuit that sets the threshold value based on the maximum peak and the minimum peak of the two previous sensor outputs It is characterized by having. As a result, a stable output with a constant duty ratio of the high / low binary signal can be obtained.
本発明では、前記閾値設定回路は、前記センサ出力の極大ピーク及び極小ピークを検出するピーク検出部と、1つ前の前記センサ出力の極大ピーク及び極小ピークを格納する第1格納部と、2つ前の前記センサ出力の極大ピーク及び極小ピークを格納する第2格納部と、前記第2格納部のデータに基づいて前記閾値を発生する閾値発生部と、を有することが好ましい。これにより簡単な回路にて適切に、2つ前のセンサ出力の極大ピーク及び極小ピークに基づいて動的に閾値設定を行うことができる。 In the present invention, the threshold setting circuit includes a peak detection unit that detects a maximum peak and a minimum peak of the sensor output, a first storage unit that stores a maximum peak and a minimum peak of the previous sensor output, and 2 It is preferable to have a second storage unit that stores a maximum peak and a minimum peak of the previous sensor output, and a threshold generation unit that generates the threshold based on data in the second storage unit. As a result, the threshold value can be dynamically set based on the maximum peak and the minimum peak of the sensor output two times before by a simple circuit.
また本発明では、前記磁気検出素子は、磁気抵抗効果を利用したMR素子であることが好ましい。 In the present invention, it is preferable that the magnetic detection element is an MR element utilizing a magnetoresistive effect.
また本発明における磁気エンコーダは、上記のいずれかに記載の磁気センサと、前記磁界発生部材を備えることを特徴とするものである。本発明は、単周波構成の磁気エンコーダにも使用できるが、1周期に2パルスを出力する倍周波構成に好ましく適用できる。 Further, a magnetic encoder according to the present invention includes any one of the magnetic sensors described above and the magnetic field generating member. The present invention can be used for a single-frequency magnetic encoder, but can be preferably applied to a double-frequency configuration that outputs two pulses in one cycle.
倍周波構成の磁気エンコーダでは、磁気センサが磁界発生部材に対して位置ずれ等を起こした場合、図10や図11に示すように、センサ出力には異なる2つの出力波形が交互に現れることがわかった。そのため本発明の磁気センサのように、2つ前のセンサ出力の極大ピーク及び極小ピークに基づいて閾値を設定することで、磁気センサが磁界発生部材に対して位置ずれ等を起こしても、ハイ/ローの2値信号のデューティ比が一定で且つ安定した出力を得ることが出来る。 In a magnetic encoder having a double-frequency configuration, when the magnetic sensor is displaced from the magnetic field generating member, two different output waveforms appear alternately in the sensor output as shown in FIGS. all right. Therefore, as in the case of the magnetic sensor of the present invention, the threshold value is set based on the maximum peak and the minimum peak of the sensor output two times before, so that even if the magnetic sensor causes a positional deviation or the like with respect to the magnetic field generating member, A stable output with a constant duty ratio of the / low binary signal can be obtained.
本発明によれば、ハイ/ローの2値信号のデューティ比が一定で且つ安定した出力を得ることが出来る。 According to the present invention, it is possible to obtain a stable output with a constant duty ratio of a high / low binary signal.
図1は、本実施形態の磁気エンコーダの斜視図、図2は、本実施形態の磁気検出素子の部分断面図、図3は、本実施形態の磁気センサの回路構成図、図4は他の実施形態における磁気センサの回路構成図、図5は、本実施形態におけるセンサ出力からコンパレータ出力(2値信号への変換)までの出力処理を説明するためのものであり、(a)センサ出力(b)極大ピーク検出(デジタル値)、(c)極小ピーク(デジタル値)(d)コンパレータ閾値(e)コンパレータ出力を示す図、である。 1 is a perspective view of the magnetic encoder of the present embodiment, FIG. 2 is a partial cross-sectional view of the magnetic detection element of the present embodiment, FIG. 3 is a circuit configuration diagram of the magnetic sensor of the present embodiment, and FIG. FIG. 5 is a circuit configuration diagram of a magnetic sensor in the embodiment, and FIG. 5 is a diagram for explaining output processing from sensor output to comparator output (conversion to a binary signal) in this embodiment. b) Maximum peak detection (digital value), (c) Minimum peak (digital value), (d) Comparator threshold value (e) A diagram showing a comparator output.
各図におけるX1-X2方向、Y1-Y2方向、及びZ1-Z2方向の各方向は残り2つの方向に対して直交した関係となっている。Y1-Y2方向は、磁石21及び磁気センサ22の相対移動方向であり、磁気センサ22を構成する基板23の横方向である。この実施形態において特に断らない限り「相対移動方向」とは磁気センサの相対移動方向を指す。そしてこの実施形態では、磁気センサ22の相対移動方向はY1方向である。よって、磁石21が固定で磁気センサ22が移動する場合は、磁気センサ22はY1方向に動き、磁気センサ22が固定で磁石21が移動する場合は、磁石21がY2方向に動いている。なお磁石21及び磁気センサ22の双方が動く形態でもよい。X1-X2方向は、基板23の平面内にて相対移動方向に対して直交する磁気センサ22の縦方向である。Z1-Z2方向は磁石21と磁気センサ22とが所定の間隔を空けて対向する高さ方向である。
In each figure, the X1-X2 direction, the Y1-Y2 direction, and the Z1-Z2 direction are orthogonal to the remaining two directions. The Y1-Y2 direction is the relative movement direction of the
図1に示すように磁気エンコーダ20は、磁石(磁界発生部材)21と磁気センサ22を有して構成される。
As shown in FIG. 1, the
磁石21は図示Y1-Y2方向に延びる棒形状であり、磁気センサ22との対向面21aが図示Y1-Y2方向に所定幅にてN極とS極とが交互に着磁された着磁面である。N極とS極との中心間距離(ピッチ)はλである。
The
図1に示すように磁気センサ22は、基板23と、共通の基板23の表面(磁石21との対向面)23aに設けられた複数の磁気検出素子A1,A2,B1,B2を有して構成される。
As shown in FIG. 1, the
図1に示すように、8個の磁気検出素子A1,A2,B1,B2は、Y1-Y2方向に4個ずつ、X1-X2方向に2個ずつマトリクス状に配列している。図1に示すようにY1-Y2方向にて隣り合う各磁気検出素子の中心間の間隔はλ/4となっている。 As shown in FIG. 1, the eight magnetic detection elements A1, A2, B1, and B2 are arranged in a matrix with four elements in the Y1-Y2 direction and two elements in the X1-X2 direction. As shown in FIG. 1, the interval between the centers of adjacent magnetic detection elements in the Y1-Y2 direction is λ / 4.
各磁気検出素子A1,A2,B1,B2は、図2に示すように、下から反強磁性層7、固定磁性層8、非磁性層9、フリー磁性層10及び保護層11の順で積層された構造で形成される。ただし、図2の積層構造は一例である。例えば固定磁性層8は積層フェリ構造で形成されてもよい。また、例えば反強磁性層7はIrMn、固定磁性層8はCoFe、非磁性層9はCu、フリー磁性層10はNiFe、保護層11はTaで形成される。
As shown in FIG. 2, each of the magnetic detection elements A1, A2, B1, and B2 is laminated in order of an
磁気検出素子A1,A2,B1,B2は、少なくとも固定磁性層8とフリー磁性層10が非磁性層9を介して積層された積層部分を備える。反強磁性層7と固定磁性層8との間には交換結合磁界(Hex)が生じて固定磁性層8の磁化方向(P方向)は一方向に固定される。一方、フリー磁性層10の磁化方向(F方向)は固定磁性層8のように固定されておらず外部磁界Hによって容易に磁化変動する。
The magnetic detection elements A1, A2, B1, and B2 include a laminated portion in which at least the pinned
本実施形態では、磁気検出素子A1,A2,B1,B2を構成するフリー磁性層10と非磁性層9との間の界面は、磁石21の着磁面21aと平行な面方向(X-Y面方向)を向いている。
In the present embodiment, the interface between the free
上記の構成では非磁性層9がCuで形成された巨大磁気抵抗効果素子(GMR素子)の構成であるが、例えば非磁性層9がAl2O3、MgO等の絶縁材料で形成されるとき、トンネル型磁気抵抗効果素子(TMR素子)として構成される。また本実施形態の磁気検出素子A1,A2,B1,B2は異方性磁気抵抗効果を利用した異方性磁気抵抗効果素子(AMR素子)であってもよい。
The above configuration is a configuration of a giant magnetoresistive effect element (GMR element) in which the
図1,図2に示すように各磁気検出素子A1,A2,B1,B2の固定磁性層8の磁化方向(P方向)は、X1方向である。
1 and 2, the magnetization direction (P direction) of the pinned
またこの実施形態では、無磁場状態(外部磁界が作用していない状態)にてフリー磁性層10の磁化方向(F方向)は固定磁性層8の磁化方向(P方向)と同方向である。フリー磁性層10と固定磁性層8間で発生する層間結合磁界(Hin)を調整することで、フリー磁性層10の磁化方向(F方向)を、固定磁性層8の磁化方向(P方向)と同方向あるいは逆方向にすることができる。
In this embodiment, the magnetization direction (F direction) of the free
図3に示すように、2個の磁気検出素子A1と、2個の磁気検出素子A2とでA相のブリッジ回路(センサ部)55が構成されている。一方の磁気検出素子A1と一方の磁気検出素子A2とがA相第1出力端子(Va1)50を介して直列接続されている。また、他方の磁気検出素子A1と、他方の磁気検出素子A2とがA相第2出力端子(Va2)51を介して直列接続される。符号52は入力端子、符号60はグランド端子である。
As shown in FIG. 3, an A-phase bridge circuit (sensor unit) 55 is constituted by the two magnetic detection elements A1 and the two magnetic detection elements A2. One magnetic detection element A1 and one magnetic detection element A2 are connected in series via an A-phase first output terminal (Va1) 50. The other magnetic detection element A1 and the other magnetic detection element A2 are connected in series via the A-phase second output terminal (Va2) 51.
ブリッジ回路55は、制御部である集積回路(IC)56に接続されている。
図3に示すように集積回路56は主信号回路57と、閾値設定回路53を備える。
The
As shown in FIG. 3, the
図3に示すように、主信号回路57は、アンプ58とコンパレータ59とを有して構成される。図3に示すように、A相第1出力端子(Va1)50と、A相第2出力端子(Va2)51はアンプ58の入力部に接続され、アンプ58の出力部がコンパレータ59の入力部に接続されている。
As shown in FIG. 3, the
図3に示すように、閾値設定回路53は、ピーク検出部61、A/D変換器62、第1格納部(Shift Register)63、第2格納部(Shift Register)64、D/A変換器65、及び、閾値発生部66を有して構成される。図3に示すように、閾値設定回路53は主信号回路57から分岐し、閾値設定回路53を構成するピーク検出部61の入力部はアンプ58の出力部に接続され、閾値設定回路53を構成する閾値発生部66の出力部はコンパレータ59の入力部に接続されている。
なお図示しないが、B相も、図3と同様の回路を構成している。
As shown in FIG. 3, the
Although not shown, the B phase also constitutes a circuit similar to FIG.
図1に示す磁気エンコーダ20は倍周波構成(1周期(λ)に2パルスを出力)であり、図3に示すブリッジ回路にて直列接続される磁気検出素子どうしの中心間の間隔はλ/2となっている。
The
磁気センサ22が磁石21に対してY1方向に相対移動すると、各磁気検出素子A1,A2,B1,B2には、磁石21の着磁面21aから外部磁界H1,H2が進入する。図1に示すように外部磁界H1と外部磁界H2の方向は異なり、またちょうど磁気検出素子が磁極上に位置すると、磁気検出素子に対して磁場成分は垂直磁場が支配的となり、外部磁場がゼロの状態(無磁場状態)となる。
When the
ここで代表して、A相のブリッジ回路を構成し直列接続される磁気検出素子A1と磁気検出素子A2に対する外部磁界の進入状態について説明する。 As a representative example, a state in which an external magnetic field enters the magnetic detection element A1 and the magnetic detection element A2 that constitute an A-phase bridge circuit and are connected in series will be described.
磁気検出素子A1と磁気検出素子A2は相対移動方向(Y1方向)にλ/2離れており、磁気検出素子A1が無磁場状態である磁極上に位置すると、固定磁性層8の磁化方向(P方向)とフリー磁性層10の磁化方向(F方向)とが平行であるため、電気抵抗値が最小値となっている。一方、磁気検出素子A2は外部磁界H1あるいは外部磁界H2を受けて、電気抵抗値が最小値から大きくなる。
The magnetic detection element A1 and the magnetic detection element A2 are separated from each other by λ / 2 in the relative movement direction (Y1 direction). When the magnetic detection element A1 is positioned on the magnetic pole in the non-magnetic state, the magnetization direction (P Direction) and the magnetization direction (F direction) of the free
また、磁気検出素子A2が無磁場状態である磁極上に位置して電気抵抗値が最小値であると、磁気検出素子A1は外部磁界H1あるいは外部磁界H2を受けて、電気抵抗値が最小値から大きくなる。 Further, when the magnetic detection element A2 is positioned on the magnetic pole in the non-magnetic field state and the electric resistance value is the minimum value, the magnetic detection element A1 receives the external magnetic field H1 or the external magnetic field H2, and the electric resistance value is the minimum value. It grows from.
図5(a)に示すセンサ出力は、アンプ58にて増幅されたセンサ出力(アナログ値)である。図5(a)に示すセンサ出力は、倍周波構成の磁気エンコーダ20において、磁気センサ22が磁石21のセンタラインとの対向位置から外れて走行した場合の実測値である。
The sensor output shown in FIG. 5 (a) is the sensor output (analog value) amplified by the
図5(a)に示すように初期位置(0)から磁気センサ22がY1方向に相対移動すると、1周期(λ)の間に、極大ピークと極小ピークとが夫々2回ずつ現れるセンサ出力が得られる。図5(a)に示すように、例えば、極大ピークAと極大ピークCは異なる出力値であることがわかる。また図5(a)に示すように、極小ピークBと極小ピークDは異なる出力値であることがわかる。そして例えば、極小ピークB、極大ピークC、及び極小ピークDに至る出力波形(1)と、極小ピークD、極大ピークE、及び極小ピークFに至る出力波形(2)は異なるともに、出力波形(1)と出力波形(2)とが交互に現れることがわかる。
As shown in FIG. 5A, when the
アンプ58により増幅されたセンサ出力は、コンパレータ59と閾値設定回路53を構成するピーク検出部61の双方に送られる。
The sensor output amplified by the
ピーク検出部61により、センサ出力の極大ピークの出力値(Vmax)が検出される。またピーク検出部61により、センサ出力の極小ピークの出力値(Vmin)が検出される。確実に検出すべくピーク検出部61で検出される出力値はアナログ値であることが望ましいが、ピーク値を長期間保持すべく、A/D変換器62によりアナログ値をデジタル値に変換することが好ましい。図5(b)はデジタル化された極大ピーク、図5(c)はデジタル化された極小ピークを示す。
The
初期段階(静止状態から動き始めるとき)では、初期設定値としてのコンパレータ閾値が予め設定されている。閾値の初期設定値には立上がり閾値(VTH1)と、立下がり閾値(VTL1)が設定されている(図5(d)参照)。初期設定での閾値(VTH1,VTL1)はいずれも基準レベルに近い小さい値に設定される。 In the initial stage (when starting to move from a stationary state), a comparator threshold value is preset as an initial setting value. A rising threshold value (VTH1) and a falling threshold value (VTL1) are set as initial threshold values (see FIG. 5D). The threshold values (VTH1, VTL1) in the initial setting are all set to small values close to the reference level.
静止状態から磁気センサ22がY1方向に相対移動を開始すると、センサ出力が初期位置(0)から徐々に大きくなり、センサ出力が立上がり閾値(VTH1)を上回ると、図5(e)の(1)に示すようにコンパレータ出力がハイ(High)レベルとなる。
When the
そのうち、センサ出力が極大ピークAを通過する。このとき、ピーク検出部61で極大ピークAを検知し、A/D変換器62によりデジタル化された極大ピークAの値を保持する。
Among them, the sensor output passes the maximum peak A. At this time, the
センサ出力が極大ピークAから徐々に低下し、初期設定での立下がり閾値(VTL1)を下回ると、図5(e)の(2)に示すようにコンパレータ出力がロー(Low)レベルとなる。このとき、保持されていた極大ピークAの値が、第1格納部63の極大用格納部分へ格納される。それと共に、極大ピークの検出レベルが初期状態に戻される(図5(b))。
When the sensor output gradually decreases from the maximum peak A and falls below the falling threshold value (VTL1) in the initial setting, the comparator output becomes the low level as shown in (2) of FIG. At this time, the held value of the maximum peak A is stored in the maximum storage portion of the
続いて、センサ出力が極小ピークBを通過する。このとき、ピーク検出部61で極小ピークBを検知し、A/D変換器62によりデジタル化された極小ピークBの値を保持する。
Subsequently, the sensor output passes through the minimum peak B. At this time, the minimum peak B is detected by the
センサ出力が極小ピークBから徐々に上昇し、初期設定での立上がり閾値(VTH1)を上回ると、図5(e)の(3)に示すようにコンパレータ出力がハイ(High)レベルとなる。このとき、保持されていた極小ピークBが、第1格納部63の極小用格納部分へ格納される。それと共に、極小ピークの検出レベルが初期状態に戻される(図5(c))。
When the sensor output gradually rises from the minimum peak B and exceeds the rising threshold value (VTH1) in the initial setting, the comparator output becomes a high level as shown in (3) of FIG. At this time, the held minimum peak B is stored in the minimum storage portion of the
続いて、センサ出力が極大ピークCを通過する。このとき、ピーク検出部61で極大ピークCを検知し、A/D変換器62によりデジタル化された極大ピークCを保持する。
Subsequently, the sensor output passes through the maximum peak C. At this time, the
センサ出力が極大ピークCから徐々に低下し、初期設定での立下がり閾値(VTL1)を下回ると、図5(e)の(4)に示すようにコンパレータ出力がロー(Low)レベルとなる。 When the sensor output gradually decreases from the maximum peak C and falls below the falling threshold value (VTL1) in the initial setting, the comparator output becomes a low level as shown in (4) of FIG.
このとき、保持されていた極大ピークCは、第1格納部63の極大用格納部分へ格納されるが、第1格納部63に格納されていた極大ピークAが第2格納部の極大用格納部へ転送される。それと共に、極大ピークの検出レベルが初期状態に戻される(図5(b))。
At this time, the held maximum peak C is stored in the maximum storage portion of the
第2格納部64に移った極大ピークAのデータが図3に示すD/A変換器65によりD/A変換され、この値に基づいて閾値発生部66では、新たな立上がり閾値(VTH2)を発生させる。この立上がり閾値(VTH2)を次のコンパレータ閾値に設定する。なお、この時点でまだ極小ピークが第2格納部64に格納されていないため、完全な閾値設定にはなっていない。
The data of the maximum peak A transferred to the
続いて、センサ出力が極小ピークDを通過する。このとき、ピーク検出部61で極小ピークDを検知し、A/D変換器62によりデジタル化された極小ピークDを保持する。
Subsequently, the sensor output passes through the minimum peak D. At this time, the minimum peak D is detected by the
センサ出力が極小ピークDから徐々に上昇し、立上がり閾値(VTH2)を上回ると、図5(e)の(5)に示すようにコンパレータ出力がハイ(High)レベルとなる。 When the sensor output gradually rises from the minimum peak D and exceeds the rising threshold value (VTH2), the comparator output becomes a high level as shown in (5) of FIG.
このとき、保持されていた極小ピークDが、第1格納部63の極小用格納部分へ格納されるが、第1格納部63に格納されていた極小ピークBが第2格納部の極小用格納部へ転送される。それと共に、極小ピークの検出レベルが初期状態に戻される(図5(c))。
At this time, the held minimum peak D is stored in the minimum storage portion of the
第2格納部64に移った極小ピークBのデータが図3に示すD/A変換器65によりD/A変換され、この値に基づいて閾値発生部66では、新たな立下がり閾値(VTL3)を発生させる。この立下がり閾値(VTL3)をコンパレータ59に送り次のコンパレータ閾値に設定する。
The data of the minimum peak B transferred to the
ここで極小ピークBを超えず且つ極小ピークBに出来るだけ近い閾値を設定する。ここから完全に動的な閾値設定を行う。 Here, a threshold value that does not exceed the minimum peak B and is as close as possible to the minimum peak B is set. From here, a completely dynamic threshold setting is performed.
続いて、センサ出力が極大ピークEを通過する。このとき、ピーク検出部61で極大ピークEを検知し、A/D変換器62によりデジタル化された極大ピークEを保持する。
Subsequently, the sensor output passes through the maximum peak E. At this time, the
センサ出力が極大ピークEから徐々に低下し、立下がり閾値(VTL3)を下回ると、図5(e)の(6)に示すようにコンパレータ出力がロー(Low)レベルとなる。 When the sensor output gradually decreases from the maximum peak E and falls below the falling threshold value (VTL3), the comparator output becomes a low level as shown in (6) of FIG.
このとき、保持されていた極大ピークEが、第1格納部63の極大用格納部分へ格納されるが、第1格納部63に格納されていた極大ピークCが第2格納部の極大用格納部へ転送される。それと共に、極大ピークの検出レベルが初期状態に戻される(図5(b))。
At this time, the held maximum peak E is stored in the maximum storage portion of the
第2格納部64に移った極大ピークCのデータが図3に示すD/A変換器65によりD/A変換され、この値に基づいて閾値発生部66では、新たな立上がり閾値(VTH3)を発生させる。この立上がり閾値(VTH3)をコンパレータ59に送り次のコンパレータ閾値に設定する。ここで極大ピークCを超えず且つ極大ピークCに出来るだけ近い閾値を設定する。
The data of the maximum peak C transferred to the
本実施形態では、上記したセンサ出力の極大ピーク及び極小ピークに基づく動的な閾値設定を繰り返して、図5(e)に示すコンパレータ出力を得る。 In the present embodiment, the dynamic threshold setting based on the maximum peak and the minimum peak of the sensor output described above is repeated to obtain the comparator output shown in FIG.
なお図5(d)に示す立上がり閾値(VTH4)は、極大ピークC,G・・よりも突出量の小さい極大ピークE・・に基づいて発生した閾値である。また、図5(d)に示す立下がり閾値(VTL4)は、極小ピークB,F・・よりも突出量の小さい極小ピークD・・に基づいて発生した閾値である。 The rising threshold value (VTH4) shown in FIG. 5 (d) is a threshold value generated based on the maximum peak E ·· having a smaller protruding amount than the maximum peaks C and G ··. Further, the falling threshold value (VTL4) shown in FIG. 5 (d) is a threshold value generated based on the minimum peak D ·· having a smaller protruding amount than the minimum peaks B and F ··.
上記した本実施形態における閾値は、2つ前の極大ピーク及び極小ピークに基づいて発生したものである。例えば極大ピークGの突出波形部分に対する立上がり閾値(VTH3)は、極大ピークGから2つ前の極大ピークCに基づいて発生したものである。極小ピークについても同様で、例えば極小ピークFの突出波形部分に対する立下がり閾値(VTL3)は、極小ピークFから2つ前の極大ピークBに基づいて発生したものである。 The threshold value in the present embodiment described above is generated based on the previous maximum peak and minimum peak. For example, the rising threshold value (VTH3) for the protruding waveform portion of the maximum peak G is generated based on the maximum peak C two times before the maximum peak G. The same applies to the minimum peak. For example, the falling threshold value (VTL3) for the protruding waveform portion of the minimum peak F is generated based on the maximum peak B two times before the minimum peak F.
ここで上記したように、倍周波構成では、センサ出力は、異なる出力波形(1)と出力波形(2)とが交互に現れ、ほぼ同じ極大ピーク及び極小ピークは一つ置きに現れる(図5(a)参照)。よって本実施形態のように、閾値を2つ前の極大ピーク及び極小ピークに基づいて設定することで、図5(e)の(5)以降のコンパレータ出力に示すようにハイ/ローの2値信号のデューティ比を一定にできる。 As described above, in the double frequency configuration, different output waveforms (1) and output waveforms (2) appear alternately in the sensor output, and almost the same maximum peak and minimum peak appear alternately (see FIG. 5). (See (a)). Therefore, as shown in the present embodiment, by setting the threshold based on the previous maximum peak and minimum peak, binary values of high / low as shown in the comparator output after (5) of FIG. The duty ratio of the signal can be made constant.
また、静止状態から数パルス分(図5(e)では2パルス分)まではややデューティ比が低くなるものの、その後は本実施形態のように閾値を2つ前の極大ピーク及び極小ピークに基づいて設定することで、閾値を極大ピーク及び極小ピークに近づけ動的に変化させることができ、チャタリングの発生等を防止でき、しかも従来のように検出エラーを引き起こすこともなく安定した出力を得ることが可能になる。 Further, although the duty ratio is slightly reduced from the resting state to several pulses (two pulses in FIG. 5E), thereafter, the threshold value is based on the two previous maximum and minimum peaks as in this embodiment. By setting the threshold, the threshold value can be dynamically changed close to the maximum peak and minimum peak, chattering can be prevented, and stable output can be obtained without causing detection errors as in the past. Is possible.
図5(d)に示すようにコンパレータ閾値の初期設定値はセンサ出力のピークの最小値を想定して、基準レベルに近い値にすることが好ましい。これにより、上記したようにデューティ比は低下するものの、最初から確実にハイ/ローの2値信号を出力できる。 As shown in FIG. 5D, it is preferable that the initial setting value of the comparator threshold is a value close to the reference level assuming the minimum value of the sensor output peak. As a result, the duty ratio decreases as described above, but a high / low binary signal can be reliably output from the beginning.
また動作後、停止し、しばらくして再び動作するとき、停止時間が短い場合には、第2格納器に格納されている極大ピーク及び極小ピークに基づいて閾値を設定してもよいが、温度ドリフトにより第2格納器に格納されている極大ピーク及び極小ピークが本来の極大ピーク及び極小ピークと異なってしまう場合もあるので、所定以上、停止したときは、第1格納器63及び第2格納器64のデータを消去し、図5で説明した初期設定による閾値を用いた後、再び、動的な閾値設定を行うことが好適である。
In addition, when the operation is stopped after the operation and then restarted for a while, and the stop time is short, the threshold value may be set based on the maximum peak and the minimum peak stored in the second storage. Since the maximum peak and the minimum peak stored in the second storage may be different from the original maximum peak and minimum peak due to drift, when the operation stops for a predetermined time or more, the
本実施形態では、A相だけでもよいが、A相及びB相の双方を用いることで、移動速度や移動距離のほかに移動方向を知ることができる。 In this embodiment, only the A phase may be used, but by using both the A phase and the B phase, it is possible to know the moving direction in addition to the moving speed and the moving distance.
また図4に示すようにB相及びA相において、比較的回路規模が大きいA/D変換器62及びD/A変換器65は時分分割駆動にて共用出来るため、閾値設定回路を構成するA/D変換器62及びD/A変換器65を夫々1個ずつとしてもよい。これにより回路を小さくできる。図4において図3と同じ符号は同じ構成部分である。図4の符号70は、B相のアンプ、符号71はB相のコンパレータ、符号72は、B相のピーク検出部、符号73はB相の第1格納部、符号74はB相の第2格納部、符号75はB相の閾値発生部である。
Further, as shown in FIG. 4, in the B phase and the A phase, the A /
本実施形態の磁気エンコーダ20は、図1に示すように磁気センサ22が磁石21に対して直線的に相対移動するものであったが、図6に示すように、例えば側面80aにN極とS極とが交互に着磁された回転ドラム型の磁石80と磁気センサ22とを有する回転型磁気エンコーダであり、磁石80の回転によって得られた出力により、回転速度や回転数、回転方向を検知できる回転型の磁気エンコーダであってもよい。
In the
磁石はラジアルタイプであっても、アキシャルタイプであってもどちらでもよい。
回転型磁気エンコーダにおいて磁気センサ22が磁石80の側面80aのセンタライン上から上下方向にずれたり、図7~図9に示した従来と同様のばらつき等が生じても、本実施形態のように2つ前の極大ピーク及び極小ピークに基づいて閾値を設定することで、ハイ/ローの2値信号のデューティ比が一定で且つ安定した出力を得ることが出来る。
The magnet may be either a radial type or an axial type.
In the rotary magnetic encoder, even if the
7 反強磁性層
8 固定磁性層
9 非磁性層
10 フリー磁性層
11 保護層
20 磁気エンコーダ
21、80 磁石
22 磁気センサ
23 基板
53 閾値設定回路
55 センサ部(ブリッジ回路)
56 制御部(集積回路)
57 主信号回路
58、70 アンプ
59、71 コンパレータ
61、72 ピーク検出部
62 A/D変換器
63、73 第1格納部
64、74 第2格納部
65 D/A変換器
66、75 閾値発生部
A1、A2、B1、B2 磁気検出素子
A、C、E、G 極大ピーク
B、D、F 極小ピーク
H1、H2 外部磁界
7
56 Control unit (integrated circuit)
57
Claims (5)
前記制御部は、前記センサ出力を閾値と比較して前記2値信号を得るための比較器と、2つ前の前記センサ出力の極大ピーク及び極小ピークに基づいて前記閾値を設定する閾値設定回路と、を有することを特徴とする磁気センサ。 A magnetic field generating member having a magnetized surface in which N and S poles are alternately magnetized in the relative movement direction is disposed at a position away from the magnetized surface, and the magnetic resistance value changes with respect to an external magnetic field. In a magnetic sensor comprising a sensor unit having a detection element and a control unit for generating a high / low binary signal based on a sensor output from the sensor unit,
The control unit compares the sensor output with a threshold value to obtain the binary signal, and a threshold setting circuit that sets the threshold value based on the maximum peak and the minimum peak of the two previous sensor outputs And a magnetic sensor.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008159434 | 2008-06-18 | ||
| JP2008-159434 | 2008-06-18 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2009154157A1 true WO2009154157A1 (en) | 2009-12-23 |
Family
ID=41434072
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/JP2009/060826 Ceased WO2009154157A1 (en) | 2008-06-18 | 2009-06-15 | Magnetic sensor and magnetic encoder |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2009154157A1 (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014149238A1 (en) * | 2013-03-15 | 2014-09-25 | Allegro Microsystems, Llc | Magnetic field sensor and associated method that can store a measured threshold value in a memory device during a time when the magnetic field sensor is powered off |
| US9052349B2 (en) | 2010-10-12 | 2015-06-09 | Allegro Microsystems, Llc | Magnetic field sensor and method used in a magnetic field sensor that adjusts a sensitivity and/or an offset over temperature |
| US9644999B2 (en) | 2012-01-06 | 2017-05-09 | Allegro Microsystems, Llc | Magnetic field sensor and associated method that can establish a measured threshold value and that can store the measured threshold value in a memory device |
| CN107947782A (en) * | 2017-11-28 | 2018-04-20 | 南京优倍电气有限公司 | A kind of circuit for improving optocoupler transmission characteristic |
| US10845434B2 (en) | 2012-01-06 | 2020-11-24 | Allegro Microsystems, Llc | Magnetic field sensor having a temperature compensated threshold on power up |
| US12455301B2 (en) | 2023-12-11 | 2025-10-28 | Allegro Microsystems, Llc | Hall plate current sensor having stress compensation |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6390770A (en) * | 1986-10-02 | 1988-04-21 | Toyota Motor Corp | Speed detecting device for vehicle |
| JP2002257591A (en) * | 2001-03-05 | 2002-09-11 | Canon Inc | Position encoder, image recording apparatus and electronic device using the same, and control method thereof |
| JP2005106822A (en) * | 2003-10-01 | 2005-04-21 | Robert Bosch Gmbh | Method and apparatus for correcting evaluation of switching threshold of magnetic sensor device |
-
2009
- 2009-06-15 WO PCT/JP2009/060826 patent/WO2009154157A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6390770A (en) * | 1986-10-02 | 1988-04-21 | Toyota Motor Corp | Speed detecting device for vehicle |
| JP2002257591A (en) * | 2001-03-05 | 2002-09-11 | Canon Inc | Position encoder, image recording apparatus and electronic device using the same, and control method thereof |
| JP2005106822A (en) * | 2003-10-01 | 2005-04-21 | Robert Bosch Gmbh | Method and apparatus for correcting evaluation of switching threshold of magnetic sensor device |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9052349B2 (en) | 2010-10-12 | 2015-06-09 | Allegro Microsystems, Llc | Magnetic field sensor and method used in a magnetic field sensor that adjusts a sensitivity and/or an offset over temperature |
| US9644999B2 (en) | 2012-01-06 | 2017-05-09 | Allegro Microsystems, Llc | Magnetic field sensor and associated method that can establish a measured threshold value and that can store the measured threshold value in a memory device |
| US10066965B2 (en) | 2012-01-06 | 2018-09-04 | Allegro Microsystems, Llc | Magnetic field sensor and associated method that can establish a measured threshold value and that can store the measured threshold value in a memory device |
| US10845434B2 (en) | 2012-01-06 | 2020-11-24 | Allegro Microsystems, Llc | Magnetic field sensor having a temperature compensated threshold on power up |
| WO2014149238A1 (en) * | 2013-03-15 | 2014-09-25 | Allegro Microsystems, Llc | Magnetic field sensor and associated method that can store a measured threshold value in a memory device during a time when the magnetic field sensor is powered off |
| US9395391B2 (en) | 2013-03-15 | 2016-07-19 | Allegro Microsystems, Llc | Magnetic field sensor and associated method that can store a measured threshold value in a memory device during a time when the magnetic field sensor is powered off |
| EP3696513A1 (en) * | 2013-03-15 | 2020-08-19 | Allegro MicroSystems, LLC | Magnetic field sensor and associated method that can store a measured threshold value in a memory device during a time when the magnetic field sensor is powered off |
| US11009565B2 (en) | 2013-03-15 | 2021-05-18 | Allegro Microsystems, Llc | Magnetic field sensor and associated method that can store a measured threshold value in a memory device during a time when the magnetic field sensor is powered off |
| CN107947782A (en) * | 2017-11-28 | 2018-04-20 | 南京优倍电气有限公司 | A kind of circuit for improving optocoupler transmission characteristic |
| CN107947782B (en) * | 2017-11-28 | 2024-05-10 | 南京优倍电气技术有限公司 | Circuit for improving transmission characteristics of optocoupler |
| US12455301B2 (en) | 2023-12-11 | 2025-10-28 | Allegro Microsystems, Llc | Hall plate current sensor having stress compensation |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4880066B2 (en) | Origin position signal detector | |
| CN103443590B (en) | Absolute encoder device and motor | |
| CN105785290B (en) | Magnetic field sensor | |
| US9200884B2 (en) | Magnetic sensor system including three detection circuits | |
| WO2009154157A1 (en) | Magnetic sensor and magnetic encoder | |
| US11313666B2 (en) | Angle sensor and angle sensor system | |
| CN111707977B (en) | Magnetic field sensing device | |
| JP5116751B2 (en) | Magnetic detector | |
| JPWO2008081797A1 (en) | Magnetic detector | |
| US10337891B2 (en) | Magnetic detection apparatus with a tunnel magnetoresistive element | |
| KR100658859B1 (en) | Magnetic Detector | |
| JP4861483B2 (en) | GMR sensor | |
| JP7734317B2 (en) | Magnetic sensor and magnetic detection system | |
| JP2006300906A (en) | Magneto-impedance sensor element | |
| JPH10206104A (en) | Position detecting apparatus | |
| JP7463593B2 (en) | Magnetic sensor system and lens position detection device | |
| EP3729119A1 (en) | Magnetoresitive magnetic field sensor bridge with compensated cross-axis effect | |
| EP2447674B1 (en) | Magnetic detection device | |
| JP4805784B2 (en) | Position sensor | |
| CN119487408A (en) | Magnetic sensor and magnetic measurement method | |
| JP2008008699A (en) | Rotation detecting apparatus | |
| JP5959686B1 (en) | Magnetic detector | |
| JP2008151759A (en) | Magnetic sensor, and magnetic encoder using the same | |
| JP2009281938A (en) | Magnetic sensor and magnetic encoder | |
| JP2015095630A (en) | Magnetic sensor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 09766605 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 09766605 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: JP |