Magnetoresistive angle sensor and corresponding strong magnetic field error correction and calibration methods
11022468 · 2021-06-01
Assignee
Inventors
Cpc classification
G01D18/00
PHYSICS
G01D5/165
PHYSICS
G01B7/30
PHYSICS
International classification
G01D18/00
PHYSICS
G01B7/30
PHYSICS
Abstract
A biaxial magnetoresistive angle sensor with a corresponding calibration method for magnetic field error correction, comprising two single-axis magnetoresistive angle sensors for detecting an external magnetic field in an X-axis direction and a Y-axis direction that are perpendicular to each other, a unit for calculating a vector magnitude of the voltage outputs of the single-axis magnetoresistive angle sensors along the X axis and the Y axis in real time, a unit for calculating a difference between a known calibration vector magnitude and the measured vector magnitude, a unit for dividing the difference by the square root of 2 in order to calculate an error signal, a unit for adding the error signal to the X-axis output and the Y-axis output respectively or subtracting the error signal from the X-axis output and the Y-axis output in order to calculate the calibrated output signals of the X-axis and the Y-axis angle sensors, a unit for calculating an arc tangent of a factor obtained by dividing the calibrated Y-axis output signal by the calibrated X-axis output signal to provide a rotation angle of the external magnetic field. This method for applying the magnetic field error calibration to the biaxial magnetoresistive angle sensor reduces the measurement error and expands the magnetic field application range in addition to improving the measurement precision in a high magnetic field.
Claims
1. A biaxial magnetoresistive angle sensor for detecting a rotation angle of an external magnetic field, comprising: two orthogonal single-axis magnetoresistive angle sensors for detecting the external magnetic field in an X-axis direction and a Y-axis direction that are perpendicular to each other, a unit for calculating a measured vector magnitude of the outputs of the single-axis magnetoresistive angle sensors along the X-axis and the Y-axis in real time, a unit for calculating a difference between a known calibration vector magnitude and the measured vector magnitude, a unit for dividing the difference by the square root of 2 in order to calculate an error signal, a unit for adding the error signal to the X-axis output and the Y-axis output respectively or subtracting the error signal from the X-axis output and the Y-axis output in order to calculate the calibrated output signals of the X-axis and the Y-axis angle sensors, and a unit for calculating an arc tangent of a factor obtained by dividing the calibrated Y-axis output signal by the calibrated X-axis output signal to provide the rotation angle of the external magnetic field.
2. The biaxial magnetoresistive angle sensor according to claim 1, wherein the X-axis output and the Y-axis output are respectively an offset-calibrated X-axis voltage output and an offset-calibrated Y-axis voltage output, a first offset calibration value is subtracted from the X-axis voltage output to obtain the offset-calibrated X-axis voltage output; and a second offset calibration value is subtracted from the Y-axis voltage output to obtain the offset-calibrated Y-axis voltage output.
3. The biaxial magnetoresistive angle sensor according to claim 2, wherein the first offset calibration value is Vox={Max[V.sub.cos(θ,H)]+Min[V.sub.cos(θ,H)]}/2, and the second offset calibration value is Voy={Max[V.sub.sin(θ,H)]+Min[V.sub.sin(θ,H)]}/2.
4. The biaxial magnetoresistive angle sensor according to claim 1, wherein each of the single-axis magnetoresistive angle sensors is a GMR spin valve or a TMR sensor.
5. The biaxial magnetoresistive angle sensor according to claim 1, comprising a temperature sensor.
6. The biaxial magnetoresistive angle sensor according to claim 1, wherein the voltage outputs of the X-axis single-axis magnetoresistive sensor and the Y-axis single-axis magnetoresistive sensor that are orthogonal to each other have approximately identical maximum amplitudes.
7. The biaxial magnetoresistive angle sensor according to claim 1, wherein the known calibration vector magnitude is
V.sub.p={Max[Vx(θ,H)]−Min[Vx(θ,H)]+Max[Vy(θ,H)]−Min[Vy(θ,H)]}/4.
8. The biaxial magnetoresistive angle sensor according to claim 1, comprising a unit for storing the offset value and a calibration constant of the maximum amplitude, the calibration constant of the maximum amplitude being calculated by using the maximum peak value and the minimum peak value obtained when each single-axis magnetoresistive angle sensor rotates by 360 degrees in the external magnetic field, and the biaxial magnetoresistive angle sensor only needing to store the peak value and the offset value for calibration of each of the single-axis magnetoresistive sensor.
9. A biaxial magnetoresistive angle sensor, comprising: two orthogonal single-axis magnetoresistive angle sensors for detecting an external magnetic field in an X-axis direction and a Y-axis direction that are perpendicular to each other, a unit for calculating a measured vector magnitude of the outputs of the single-axis magnetoresistive angle sensor along the X-axis and the Y-axis in real time, a unit for calculating a difference between a known calibration vector magnitude and the measured vector magnitude, a unit for dividing the difference by the square root of 2 in order to calculate an error signal, a unit for adding the error signal to the X-axis output and the Y-axis output respectively or subtracting the error signal from the X-axis output and the Y-axis output in order to calculate the calibrated output signals of the X-axis and the Y-axis angle sensors, a unit for calculating an arc tangent of a factor obtained by dividing the calibrated Y-axis output signal by the calibrated X-axis output signal to provide a rotation angle of the external magnetic field, and a temperature sensor, wherein a temperature signal generated by the temperature sensor is used for calculating a linearly varying peak value, the offset calibration value, and/or vector magnitude calibration value with respect to temperature.
10. A method for calibrating error correction of a magnetoresistive angle sensor that is configured for detecting a rotation angle of an external magnetic field, comprising: detecting the external magnetic field in an X-axis direction and a Y-axis direction that are perpendicular to each other by using two orthogonal single-axis magnetoresistive angle sensors; calculating a measured vector magnitude of the voltage outputs of the single-axis magnetoresistive angle sensors along the X-axis and the Y-axis in real time; calculating a difference between a known calibration vector magnitude and the measured vector magnitude; dividing the difference by the square root of 2 in order to calculate an error signal; adding the error signal to the X-axis output and the Y-axis output respectively or subtracting the error signal from the X-axis output and the Y-axis output in order to calculate the calibrated output signals of the X-axis and the Y-axis angle sensors; and calculating an arc tangent of a factor obtained by dividing the calibrated Y-axis output signal by the calibrated X-axis output signal to provide the rotation angle of the external magnetic field.
11. The method according to claim 10, wherein the X-axis output and the Y-axis output are respectively an offset-calibrated X-axis voltage output and an offset-calibrated Y-axis voltage output, a first offset calibration value is subtracted from the X-axis voltage output to obtain the offset-calibrated X-axis voltage output; and a second offset calibration value is subtracted from the Y-axis voltage output to obtain the offset-calibrated Y-axis voltage output.
12. The method according to claim 11, wherein the first offset calibration value is Vox={Max[V.sub.cos(θ,H)]+Min[V.sub.cos(θ,H)]}/2, and the second offset calibration value is Voy={Max[V.sub.sin(θ,H)]+Min[V.sub.sin(θ,H)]}/2.
13. The method according to claim 10, wherein the voltage outputs of the X-axis single-axis magnetoresistive sensor and the Y-axis single-axis magnetoresistive sensor that are orthogonal to each other have approximately identical maximum amplitudes.
14. The method according to claim 10, wherein the known calibration vector magnitude is
V.sub.p={Max[Vx(θ,H)]−Min[Vx(θ,H)]+Max[Vy(θ,H)]−Min[Vy(θ,H)]}/4.
15. The method according to claim 10, wherein the offset value and a calibration constant of the maximum amplitude are stored; the calibration constant of the maximum amplitude is calculated by using the maximum peak value and the minimum peak value obtained when each single-axis magnetoresistive angle sensor rotates by 360 degrees in the external magnetic field, and the magnetoresistive angle sensor only needs to store the peak value and the offset value for calibration of each of the single-axis magnetoresistive sensor.
16. A calibration method for magnetic field measurement error correction of a magnetoresistive angle sensor, comprising: detecting an external magnetic field in an X-axis direction and a Y-axis direction that are perpendicular to each other by using two orthogonal single-axis magnetoresistive angle sensors; calculating a measured vector magnitude of the voltage outputs of the magnetoresistive angle sensor along the X-axis and the Y-axis in real time; calculating a difference between a known calibration vector magnitude and the measured vector magnitude; dividing the difference by the square root of 2 in order to calculate an error signal; adding the error signal to the X-axis output and the Y-axis output respectively or subtracting the error signal from the X-axis output and the Y-axis output in order to calculate the calibrated output signals of the X-axis and the Y-axis angle sensors; and calculating an arc tangent of a factor obtained by dividing the calibrated Y-axis output signal by the calibrated X-axis output signal to provide a rotation angle of the external magnetic field, wherein a peak value, the offset calibration value and/or vector magnitude calibration value are expanded linearly with respect to temperature.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
DETAILED DESCRIPTION
(24)
(25)
(26)
(27) There is generally an optimal value that can minimize the measurement error of the non-linear external magnetic field 2 output by the sensor; however, generally, the measurement error increases as the intensity of the applied external magnetic field 2 increases.
(28)
(29) Such an error deviating from the ideal output curve may be caused by a non-ideal behavior of an incompletely saturated layer as in the case of a free layer in a low external magnetic field. It may also be caused by limited strength of a pinning field of a pinning layer (PL) in a strong external magnetic field. The high field error mainly is caused by the non-ideal behavior of the pinning layer as will be illustrated in the following, wherein a magnetization direction of the pinned layer is slightly moved due to the applied external magnetic field, and such movement increases as the intensity value of the applied external magnetic field increases.
(30) The present invention discloses a correction algorithm for calibrating the high field error of the sensor output caused by the pinning layer or other reasons.
(31)
(32) It is assumed that the magnetization of the FL17 completely follows the angle of the applied external magnetic field, and analysis on the error may be made by merely considering a magnetization direction 21 of the PL21.
(33)
(34) The rotation angle of the magnetization direction of the PL may be obtained by using an equation (3), and the rotation angle is expressed as θ.sub.err.
(35)
(36) The intensity of the pinning magnetic field (Hp) in the equation (4) is generally about 1500 Oe, and this limits the precision of the MTJ magnetoresistive sensor.
(37) The measured data indicates that the measurement error of the angle is the worst when the angle of the applied external magnetic field is about 30 degrees, and this may be observed by mapping a data point from the non-ideal curve 15 to the ideal curve 9, see
(38)
(39)
(40) It should be noted that the magnitudes of the non-ideal curves 11 and 13 are always equal to or less than the magnitudes of the ideal curves 5 and 7, and the magnitudes of the measurement errors are in a 90-degree phase. The non-ideal curves 11 and 13 and the ideal curves 5 and 7 have identical maximum and minimum peak values. The above model is universal in measurement, indicating that a correction algorithm may be established accordingly.
(41) To explain this correction method,
(42) It should be noted that the magnitude difference can be easily calculated in real time. The triangular error 33 is unknown in actual measurement, but it is related to the magnitude difference; this is displayed in
1.39≈1.41=√{square root over (2)} (6)
(43) It can be seen that, a difference calculated by the vector magnitudes between non-ideal and ideal responses may be added back to the output of the sensor 1 in real time to calibrate an orthogonal single-axis waveform. The result is that, a triangular error 34 in
(44) The non-ideal sine waveform 13 is expressed as V.sub.SIN(θ,H); the non-ideal cosine wave 11 is expressed as Vcos (θ,H); offsets of the sine and cosine waveforms are respectively expressed as V.sub.os and V.sub.oc; peak values of the sine and cosine waveforms are expressed as V.sub.ps and V.sub.pc; V′ sin(θ,H) and V′ cos(θ,H) are used as sensor outputs having corrected offsets and magnitudes; and then the following equation can be used for correcting the non-ideal output waveform in real time:
(45)
(46) By calculation through formulas 12 to 15, V.sub.peak (V.sub.peak is the sensor or amplitude of the maximum or minimum signal) and V.sub.offset (offset of the sensor signal) may be obtained:
V.sub.pc={Max[V.sub.cos(θ,100)]−Min[V.sub.cos(θ,100)]}/2 (12)
V.sub.ps={Max[V.sub.sin(θ,100)]−Min[V.sub.sin(θ,100)]}/2 (13)
V.sub.oc={Max[V.sub.cos(θ,100)]+Min[V.sub.cos(θ,100)]}/2 (14)
V.sub.os={Max[V.sub.sin(θ,100)]+Min[V.sub.sin(θ,100)]}/2 (15)
(47) Generally, it only needs to calculate the four parameters (V.sub.pc, V.sub.ps, V.sub.oc, and V.sub.os,). In an actual operation, if the sine and cosine waveforms match with each other, only V.sub.p is enough. This method is advantageous in that no waveform needs to be stored, and it only needs to store at most four parameters. The magnet 3 only needs to rotate by 360 degrees. H may be any value as long as the magnetoresistive angle sensor 1 is saturated.
(48) Suppose that the sensor is saturated, as indicated by experience, the sensor only needs to be calibrated in a single magnetic field. Suppose that the sensor is saturated at 100 G, and the sine and cosine curves are well matched, then the following embodiment illustrates how the sensor 1 is calibrated:
V.sub.p={Max[V.sub.c(θ,100)]−Min[V.sub.c(θ,100)]+Max[V.sub.s(θ,100)]−Min[V.sub.s(θ,100)]}/4 (16)
(49) The following equations are added to each measurement value for correcting the error:
(50)
(51) In another embodiment, the offset value is small, and the sine and cosine waves have identical peak values; then, the calibration may be conducted through the following equations:
(52)
(53)
(54) When this algorithm is used, it should be noted that if the peak value and the offset varies with the temperature, in this case, temperature related calibration needs to be conducted. Generally, the calibration may be conducted through the following assumptions:
V.sub.os=V.sub.os(T)=V.sub.os(T1)−aT (26)
V.sub.oc=V.sub.oc(T)=V.sub.oc(T1)−aT (27)
V.sub.os=V.sub.os(T)=V.sub.os(T1)−βT (28)
V.sub.oc=V.sub.oc(T)=V.sub.oc(T1)−βT (29)
(55) Here, α and β are known temperature coefficients of the sensor 1, T1 is the temperature of the MR angle sensor 1 when being calibrated, and T is an operating temperature measured by using an on-chip thermometer. These temperature correction coefficients may be used in the formulas (7) and (8) to compensate the error caused by the temperature in the algorithm of the present invention.
(56) In an alternative method, if the peak value and the offset compensation value do not vary greatly with the temperature, the algorithm does not need temperature compensation.
(57)
(58)
(59)
(60) The biaxial magnetic field angle sensor 1 is deposited to or connected to an application specific integrated chip (ASIC) circuit or another apparatus to run the algorithm disclosed in the present invention. The design further includes internal or external data storage. Specifically, the ASIC includes an apparatus for calculating a difference between a known vector magnitude calibration value and a real-time biaxial vector magnitude according to the voltage outputs of the X-axis and the Y-axis of each single-axis magnetic field angle sensor, an apparatus for dividing the difference by the square root of 2 to calculate an error signal, and an apparatus for adding the error signal to or subtracting the error signal from the X and Y voltage outputs to generate an error-corrected X voltage output signal and an error-corrected Y voltage output signal, wherein an arc tangent of a factor of the error-corrected Y voltage output signal and the error-corrected X voltage output signal is a to-be-measured angle value of the applied external magnetic field.
(61) The biaxial magnetic field angle sensor 1 may further include a temperature sensor, and a temperature signal from the temperature sensor is used for the known linearly expanded calibration and offset values with respect to the temperature.
(62) The temperature sensor and the data storage may be included in the ASIC124, or they may be located in the angle sensor chip or connected to the chip separated from the ASIC124.
(63) The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes, and the implementations in the present invention may also have different combinations and changes. Any modification, equivalent replacement, improvement and the like without departing from the spirit and principle of the present invention should all fall within the protection scope of the present invention.