Next Article in Journal
A Practical Approach for High Precision Reconstruction of a Motorcycle Trajectory Using a Low-Cost Multi-Sensor System
Next Article in Special Issue
Experimental Study on Residual Bending Strength of Corroded Reinforced Concrete Beam Based on Micromagnetic Sensor
Previous Article in Journal
Loosening Monitoring of the Threaded Pipe Connection Using Time Reversal Technique and Piezoceramic Transducers
Previous Article in Special Issue
Temperature Compensation of Elasto-Magneto-Electric (EME) Sensors in Cable Force Monitoring Using BP Neural Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Lagging-Domain Model for Compensation of Hysteresis of xMR Sensors in Positioning Applications

1
RLS Merilna tehnika d.o.o., Pod vrbami 2, 1218 Komenda, Slovenia
2
Laboratory for Bioelectromagnetics, Faculty of Electrical Engineering, University of Ljubljana, Tržaška 25, 1000 Ljubljana, Slovenia
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(7), 2281; https://doi.org/10.3390/s18072281
Submission received: 1 June 2018 / Revised: 29 June 2018 / Accepted: 12 July 2018 / Published: 14 July 2018
(This article belongs to the Special Issue Magnetic Sensors)

Abstract

:
The hysteresis of magnetoresistive sensors remains a considerable cause of inaccuracy of positioning applications. The phenomena itself has been well studied and described by different physical and phenomenological models. Various biasing techniques have been proposed. However, the increased fabrication and computational price they require is undesirable. In this paper, a computational algorithm for the compensation of hysteresis of linear and rotary encoders is proposed. A lagging-domain model based on play operators is presented for prediction of hysteresis. The outlined procedure for the calibration of parameters allows the use of the algorithm for various types of encoders without knowing their exact material properties. The method was tested on different anisotropic magnetoresistive and tunneling magnetoresistive sensors. Results show that the impact of hysteresis was reduced by up to 90% without a significant increase of computational time or production costs.

Graphical Abstract

1. Introduction

Magnetic field sensors have been constantly gaining attention [1,2] in the position and angular sensing industry due to their accuracy, reasonable price, and immunity to dirt. Aside from Hall and inductive sensors, three types of magnetoresistive sensors (xMR) are currently widely used commercially [3]. These are anisotropic magnetoresistive sensors (AMR), tunneling magnetoresistive sensors (TMR) and giant magnetoresistive sensors (GMR).
The AMR effect was discovered in 1856 by William Thompson, known also as Lord Kelvin [4]. He discovered that the resistance of iron and nickel changes if they are exposed to magnetic field. Nowadays, nickel-iron alloys, called permalloys, are used to form thin film resistors that can achieve up to 4% change in resistance in the presence of magnetic field. The effect happens due to spin-orbit interaction and s-d scattering as described in [5,6,7,8,9,10,11]. When the material is magnetized up to the saturation, the resistivity only depends on the angle between the magnetization and current density. AMR sensor has much simpler structure than TMR and GMR and was therefore the first of the three to become widely used.
The TMR [12] and GMR [13,14] effect can be observed in a similar multilayer thin film structure with two separated ferromagnetic layers. The first has its magnetization pinned by another antiferromagnetic layer. The second ferromagnetic layer can change the direction of the magnetization freely and tends to follow the external magnetic field. The resistance of the structure depends on the angle between the magnetization directions of the two layers.
xMR sensors for positioning purposes are typically used in combination with a rotating magnet or moving magnetic scale, which generate the required magnetic field [2]. The magnetization of the ferromagnetic layer within a magnetoresistive sensor aligns with external magnetic field and thus influences the sensor’s resistance. The encoder may comprise multiple xMR sensors, arranged in such a way that the relative position of the fixed sensor and the moving magnetic field source can be calculated from sensors’ resistances, measured by corresponding electronic circuit. Examples of such assemblies are described in [1,2,15,16].
The unambiguous relation between the magnetic field and magnetization orientation of the ferromagnetic layer which determines the sensor’s response is crucial for accuracy of the measurement. Unfortunately, all ferromagnetic materials are subjected to magnetic hysteresis. In high-precision applications, the error caused by hysteresis may be unacceptable, even though it can be significantly reduced by optimizing the material and technology [15,17,18,19]. Therefore, it must be removed either by design or by software compensation. Possibilities for reduction of hysteresis by design are for example various biasing techniques, described by Tumanski [15]. Biasing techniques are used to shift the working point of the sensor away from the strongest hysteresis point [18]. Furthermore, sensors can be used in a closed-loop system together with a magnetic core and compensating coil, which also improves nonlinearities and temperature drift. For AMR sensors, a flipping field-based compensation method can be used. However, all solutions by design require additional steps in manufacturing procedure and therefore increase the producing time, material costs and, in case of active biasing, power consumption.
Mathematical methods for predicting and compensating hysteresis by software could be used alternatively. For prediction of sensor’s behavior, an accurate and invertible model is needed. Various physical models for understanding the behavior of magnetic materials have been proposed. The Stoner-Wohlfarth model [20] provides good results for analyzing thin-film magnetoresistors [15], even though it is based on some severe simplifications. The Jiles-Atherton model [21,22,23] considers domain interactions as well. Its main advantage is the connection to physical parameters [24]. Energetic models for thin permalloy films such as [25] have also been proposed. However, the described physical models cannot be solved easily and are therefore more useful for understanding the phenomena rather than for implementing them as a real-time embedded system procedure. On the other hand, phenomenological models may produce similar results without simulating the complicated behavior of the material. According to [26], phenomenological hysteresis models can be divided into three groups: differential-equation-based models, such as the Duhem [27,28] and Backlash-like [29] model, operator-based models (explained in more detail in the next paragraph) and other models, for example artificial neural networks and fuzzy systems [30,31], support vector machines technique [32] or a model for the linearization of a GMR current sensor Jedlicska et al. introduced in 2008 [33,34,35].
Operator-based hysteresis models comprise a weighted integral over a set of elementary hysteresis operators [26]. The Preisach hysteresis model [36] is a numerical model that is used for the construction of various shapes of hysteresis loops with Relay operators. For position encoders, a vector upgrade [37] of the Preisach model is needed. Unfortunately, the vector Preisach model is difficult to invert and computationally complex. Additionally, the discontinuity of Relay operators may cause trouble in control systems. The Prandtl-Ishlinskii model, which was originally proposed for plastic-elasticity [27] and later used for modeling piezo-actuated stages [26], tactile sensors [38] and other [39] is a subset of the Preisach model which exploits two essential, continuous operators with a single threshold: play and stop [40]. Ordinary and generalized play and stop operators are described in detail in [41]. The play operator has been further generalized into so-called K-P operator, used by the Krasnosel’skii-Pokrovkii hysteresis model [26,40,42,43].
In this work, we propose an operator-based model for estimating the error of xMR sensors in positioning applications caused by magnetic hysteresis. It is named the Lagging-domain model due to analogy of the mathematical construction of the model to the magnetic events in the material. The use of the ordinary play operators is substantiated. A complete algorithm enabling the real-time estimation of the error due to the hysteresis is thoroughly described. Its efficiency was verified on various AMR and TMR sample sensors. At the end, the model benefits and its limitations are highlighted together with the possibilities for the future work.

2. The Lagging-Domain Model

The encoder is modeled in terms of an open-loop SISO (single input, single output) system. The measured position is proportional to the direction of the external magnetic field. As the field only rotates in the x-z plane of the sensor (the setup is explained in more detail in chapter Calibration), its direction can be uniquely described by angle θ. In this paper, angular degrees will be used as the units for the angle of rotation for rotary or for position within a magnetic pole for linear encoders. Otherwise, they may be replaced by micrometers or other units, respectively. The model accepts the actual direction of the external magnetic field as an input and calculates the measured direction as an output. The signal diagram is shown in Figure 1a. For explanation of symbols see Table 1. The model is time-discrete as is the duty cycle of the encoder.
The idea for the Lagging-domain model comes from the magnetic behavior of the material. The external magnetic field affects magnetic domains by torque; therefore, they reform, causing energy losses. The energy provided by external field increases with the magnetic torque, the torque depends on the angle between external magnetic field and the magnetization of the domain. Some domains need more energy to turn than others. The orientation of magnetization of such parts of the material will be “dragged” behind the external field with a lag, bigger than of those which turn more easily.
Similarly, the response of an xMR sensor can be mathematically subdivided into components called domains. The domain function must be defined with respect to three requirements for the model: continuity, symmetry, and space invariance. From the operators, discussed in the first chapter, an ordinary play operator is chosen for the domain function, while the relay operator fails to provide continuity, the stop operator and the generalized play operator are not space invariant and the K-P operator is generally not symmetric.
The value of domain Di in a time step tj depends on the direction of the external magnetic field and on the history of the domain according to Equation (1), where parameter ϕ i is the lag between directions of external magnetic field and domain magnetization in saturation. The response is represented graphically in Figure 2. Each of N domains has its own value ϕ i .
The hysteresis loop of the described operator-based models, including the common Prandtl-Ishlinskii model is constructed as a weighted sum of mathematical domains. The Lagging-domain model’s output is the estimated error of measurement due to hysteresis and is calculated in a slightly different way by Equation (2). This way, the output of the model can be directly used for the compensation of measurement error due to hysteresis. Also, the weights can be easily determined with the calibration routine described in the chapter Calibration.
D i ( t j ,   x j ) = { x j ϕ i x j + ϕ i D i ( t j 1 ) ; x j D i ( t j 1 ) > ϕ i ; x j D i ( t j 1 ) < ϕ i ; e l s e
e ^ ( t j , x j ) = i = 1 N w i   · ( D i ( t j , x j ) x j )
The pseudo code of the algorithm is presented in Figure 3. We can see that the computational complexity is proportional to N. Computational space is taken mostly by arrays D, ϕ and w which are of length N.
Please note that the lags φ do not depend on the absolute position of the encoder. The shape of the hysteresis loop only depends on the change of the position and not on the absolute point of turn. The model is therefore suitable only for modeling sensors without a significant anisotropy of the material which would result in a spatially dependent hysteresis effect. The significance of anisotropy depends on the type of the sensor and its process parameters. A quick suitability test to check the appropriateness of the sensor for the Lagging-domain algorithm can be carried out by recording the error during straight-line upward and downward movement. The difference between the two should be constant over the whole operating range.

2.1. Calibration

The shape of the hysteresis is determined by arrays Φ and w. The calibration of the two is performed with the data, collected from the encoder and the reference encoder during the calibration procedure (Figure 4). The advantage of an experimental approach to calibration is that no material parameters must be known. The procedure is identical for all types of xMR sensors and their applications and can be remade anytime.
During the calibration procedure, the sensor must move monotonically in one direction and then monotonically in the reverse direction. The movement must be slow enough to exclude all transients and it must cover the range wide enough that the sensor’s delay due to hysteresis settles down to a constant value. The output of the encoder and the reference signal are collected. The measurement must be free of other sources of errors such as irregularities of the magnetic scale or higher harmonics, which often occur in position measurements. Some errors can be artificially removed after the measurement is taken as they are common to both upward and downward movement. The noise can be reduced with a non-causal filter such as a Hamming window. The algorithm will be described for the case where the output value decreases in the first part of the measurement and then increases after the change of direction. The calibration for the opposite case can be done similarly with some minor changes.
First, four typical points are identified as shown in Figure 5. (t0) and (t3) are the beginning and the end of the measurement, (t1) is the point of turn. (t2) is the moment when the transient of hysteresis reaches saturation. The distance that the sensor makes between points (t1) and (t2) is marked with L. The array of values Φ is constructed by placing N values on the interval [0, L/2]. For fast implementation it is recommended to place them equidistantly in an ascending order.
The measurement error e is calculated by subtracting the reference signal from the sensor’s output as shown in Figure 5b. According to Equation (2), the error can be represented as a weighted sum of contributions of domains (Figure 5c). The behavior of domains can be deduced from their definition. Graph e(x) between the critical points (t1) and (t2) (shown in Figure 5b) can be split into N linear sections with a gradient k = Δ e / Δ x (Figure 5c above). By rewriting the gradients from right to left we obtain Equation (3), or, rewritten in a vector form and generalized for various number of domains, (4). The system of equations is solved by (5) to obtain the weights.
k 3 = w 3 k 2 = w 2 + w 3 k 1 = w 1 + w 2 + w 3
k = [ 1 1 1 0 1 1 0 0 1 ] w
w = [ 1 1 1 0 1 1 0 0 1 ] 1 k
In general, vector Φ does not have to depend on the calibration procedure but can be chosen in advance. In this case, L must be bigger than the expected range of a hysteresis effect. However, the accuracy of the model can be optimized by varying combinations of N and L.

2.2. Compensation

The Lagging-domain model is used to estimate the current error of the xMR encoder. Once the error is known, it can be subtracted from the output angle and thus eliminated. Since the reference signal x, which was the input of the model, is not known, the output of the sensor is used instead (see Figure 1). There is a slight mismatch between the two, but its impact can be reduced by using the sensor’s output instead of the reference signal already in the calibration routine. The compensation algorithm may be built in the encoder’s microprocessor or added as a post-processing module.

3. Experiment and Results

The developed algorithm was tested on AMR and TMR linear sensor samples. The magnetic field of a sinusoidal shape was provided by a magnetic scale with alternating, 2  mm long magnetic poles. Sensing elements were connected in a double Wheatstone bridge and were thus providing the information about the sine and cosine component of magnetic field. The setup for testing is shown in Figure 6. A linear stage with an optical reference encoder with the resolution of 0.1 µm, which exhibits no significant hysteresis, was used for accurate measurements of the linear position. The magnetic scale was placed right next to the scale for the optical encoder so that there were no moving mechanical parts between them. Therefore, there were no additional hysteresis effects caused by the reference encoder or the stage which could be unwittingly mistaken for the error of the MR encoder. The signal acquisition and processing was performed partly by the microcontroller and partly by PC with MATLAB.
The data from sensing elements were collected along with the reference position. After some basic calibration of the signals, the angle of magnetic field above the magnetic scale was calculated from the sine and cosine signal. The position along the horizontal axis is proportional to this angle. The distance of 360° corresponds to one electrical period of the signal, which is one magnetic pole for AMR and one magnetic period (two poles) for TMR sensor.
In multi-turn applications with single-turn encoders, the overflow between 360° and 0° must be considered. The proposed solution is that whenever an overflow of the input signal is detected, all domains are accordingly transferred for 360°. This may sometimes result in an output which is not within the [0°, 360°) interval, but this can be corrected by division by module 360.
Before the first use, the calibration sequence was carried out. The sensor was moved as proposed in the chapter Calibration. The collected data are shown in Figure 7. The number of domains N was set to 5. Vector Φ was determined. The data were split into linear regions and vector w was calculated according to Equation (5). Then, vector D was initialized. Since no information about the state of the material before the beginning of simulation is available, a demagnetized state is assumed, and D was filled with random numbers from range [0°, 360°).
After initialization and calibration of the Lagging-domain model of a sensor, the measurements were taken. The sensor was moved in an arbitrary sequence. The reference signal and the output of the sensor were collected. The actual error was calculated by subtracting the reference signal x from the output y (Figure 8, blue). Then, the Lagging-domain model was used to calculate the estimated error, using the reference signal as the input (Figure 8, dotted). The estimated error was used to compensate the effect of the hysteresis at the output of the sensor by subtracting it. The difference between the measured value after correction and the reference is shown red in Figure 8.
For the validation of the compensating algorithm, the test for quantitatively evaluating the error due to hysteresis had to be defined. The sensor was moved over the whole operating range with occasional changes of direction. The severity of the hysteresis impact on the measurement error (HME) was evaluated by finding the maximal difference of a measurement at the same position during upward and during downward movement. HME is expressed in the same unit as the error, in our case angular degrees. Please note that the noise may also false contribute to the HME.
The efficiency of the compensation was evaluated by comparing the HME before and after the compensation as shown in Figure 8. The result of tests performed on AMR sensor samples is shown in Figure 9. The result for tests on TMR sensors is in Figure 10. The detailed experimental data and samples descriptions are provided in the Appendix A. The tests have shown that the impact of hysteresis was reduced by up to 90% for AMR and by 70% for TMR samples.
The Lagging-domain algorithm with 5 domains was implemented into an encoder with the STM32F303 microcontroller. The duty cycle was extended for approximately 5 µs. Refresh rates of similar encoders are typically 20 to 50 µs. The latency, caused by described algorithm, is therefore just within the acceptable range. The power consumption was not noticeably affected.

4. Discussion

The algorithm for compensating the error of xMR motion sensors due to the hysteresis effect using the Lagging-domain model was developed and tested on different AMR and TMR sensor samples. The resemblance of the concept of xMR sensors suggests that the model may be suitable for all three types. However, there may be exceptions, so the properties of material must be checked by performing the suitability test before applying the algorithm.
The algorithm cannot calculate the error prediction correctly directly after the start-up. The state of the material before the turn-on of the encoder is unknown and the domains are therefore initialized to an arbitrary state. The encoder must move far enough to align the domains in the right position before the model converges to the right value. We suggest moving a sensor for at least one magnetic period after the start-up before the first use. However, a similar movement is required for all quasi-absolute positioning systems with an incremental scale and a reference mark, which must be reached to set the zero position. Because xMR sensors are often used in such systems, the compensating algorithm may be set up during the scan for the reference.
The algorithm does not include any temperature compensation. The hysteresis effect in general depends on the temperature because it affects the movement of the magnetic domains in the material. However, in applications that need the accuracy in the range of noticeable hysteresis, the temperature must be kept stable due to thermal expansions. Therefore, there is no need for additional temperature monitoring.
The proposed Lagging-domain model is designed for the encoders where the sensing distance does not change after the installation and calibration. In the future work, the extension for variable magnitude of magnetic field may be considered. The hysteresis increases significantly with the sensing distance. The solution may lie with the concurrent adaptation of parameters φ.
The computation time of the described algorithm is within the acceptable range. However, the speed of the algorithm could be further improved. The number of operations is proportional to the number of domains. Shorter computation time could be achieved by optimizing the code or by using fewer domains.

5. Conclusions

An algorithm for the compensation of hysteresis error for the linear and rotary encoders using the Lagging-domain model is proposed. The play operators were used for modeling the magnetoresistive sensors in a positioning application for the first time. The tests have shown that the Lagging-domain algorithm reduces the hysteresis of AMR encoders by up to 90%. The implementation into an embedded system with a microcontroller requires no additional resources. The duty cycle of the encoder was extended for approximately 5 µs. The calibration of the system can be performed within a microcontroller or externally, as long as the required moving sequence can be performed.

Author Contributions

Conceptualization, D.D.; Methodology, D.D.; Software, D.D.; Validation, D.D. and D.K.; Formal Analysis, D.D. and D.K.; Investigation, D.D.; Data Curation, D.D.; Writing-Original Draft Preparation, D.D.; Writing-Review & Editing, D.D. and D.K.; Visualization, D.D.; Supervision, D.D. and D.K.; Project Administration, D.D. and D.K.; Funding Acquisition, D.D.

Acknowledgments

This work has been supported in part by RLS d.o.o. and University of Ljubljana.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Full experimental data is provided. All experiments on AMR sensor samples are described in Table A1 and all on TMR samples in Table A2. Experiments were conducted for various starting HME values, which depend mostly on the sensing distance and the sensor quality.
Table A1. The experimental data for AMR sensor samples.
Table A1. The experimental data for AMR sensor samples.
Product Name/MarkCompanyElectrical Period [μm]HME Before Compensation [°]HME After Compensation [°]HME Before Compensation [μm]HME After Compensation [μm]Relative Improvement
5BUnder NDA 120001.7270.3339.5941.84881%
20001.6800.3339.3321.85280%
20007.5070.86441.7084.80088%
20000.4270.1332.3730.73869%
A5Under NDA20000.5400.2443.0011.35855%
SM2L [44] #1iC Haus20000.7610.2684.2261.48965%
20002.1090.44511.7142.47179%
20000.4160.1962.3141.08753%
20001.0810.3666.0072.03566%
W3_2Under NDA20001.3590.1667.5500.92188%
20000.1590.0560.8810.31065%
W3_1Under NDA20000.5520.1373.0670.76075%
20000.1780.0700.9870.38961%
W5_8Under NDA20000.6530.0963.6250.53385%
20001.2250.2326.8061.29081%
20000.2170.0701.2070.38868%
W5_3Under NDA20000.5950.1453.3060.80576%
20003.5780.36219.8762.01490%
7AUnder NDA20001.7590.1949.7701.07789%
20000.5310.1112.9520.61479%
2CUnder NDA200010.8291.24260.1636.90289%
20005.8350.42032.4182.33493%
SM2L [44] #2iC Haus20000.8400.2454.6691.35871%
20000.1440.1010.7990.56130%
1: Under a non-disclosure agreement. Only an internal experimental labeling of the sample is provided.
Table A2. The experimental data for TMR sensor samples.
Table A2. The experimental data for TMR sensor samples.
Product Name/MarkCompanyElectrical Period [μm]HME Before Compensation [°]HME After Compensation [°]HME Before Compensation [μm]HME After Compensation [μm]Relative Improvement
TL912 z [45]Sensitec10006.4973.15218.0468.75551%
10004.9082.94013.6348.16740%
100012.1794.02233.83011.17267%
10000.5480.3581.5240.99635%
10002.3921.5896.6444.41334%
10000.1550.1460.4300.4066%
MDT TMR40xx package [46]Multi Dimension Technology (MDT)12000.0300.0210.1000.07030%
MDT TMR40xx custom designMulti Dimension Technology (MDT)12001.0500.1503.5000.50086%
12000.4200.0901.4000.30079%
12000.6000.2402.0000.80060%
12000.3900.2101.3000.70046%
TMR4012 [47]Multi Dimension Technology (MDT)12001.5000.4505.0001.50070%
MIS6301 [48]Multi Dimension Technology (MDT)20001.4400.7208.0004.00050%
20000.9000.4505.0002.50050%
20003.6000.90020.0005.00075%
20002.7000.90015.0005.00067%
200010.8003.06060.00017.00072%
TL912 [45] cSensitec10009.0002.52025.0007.00072%
10007.2001.80020.0005.00075%

References

  1. Bolandi, H.; Riahi, N.; Esmaeilzadeh, M.; Abedi, M.; Ghorbani, B. Implementation of an AMR magnetic sensor by means of a microcontroller to achieve more accurate response. In Proceedings of the 21st Iranian Conference on Electrical Engineering, ICEE, Mashhad, Iran, 14–16 May 2013. [Google Scholar]
  2. Tran, T.-H.; Chao, P.; Chien, P.-C. The Front-End Readout as an Encoder IC for Magneto-Resistive Linear Scale Sensors. Sensors 2016, 16, 1416. [Google Scholar] [CrossRef] [PubMed]
  3. Haji-Sheikh, M.J.; Michael, J. Commercial Magnetic Sensors (Hall and Anisotropic Magnetoresistors). Lect. Notes Electr. Eng. 2008, 1, 23–43. [Google Scholar] [CrossRef]
  4. Thomson, W. On the Electro-Dynamic Qualities of Metals—Effects of Magnetization on the Electric Conductivity of Nickel and of Iron. Proc. R. Soc. Lond. 1857, 8, 546–550. [Google Scholar] [CrossRef]
  5. Smit, J. Magnetoresistance of ferromagnetic metals and alloys at low temperature. Physica 1951, 17, 612–627. [Google Scholar] [CrossRef]
  6. Jan, J.P. Galvanometric and thermomagnetic effects in metals. Solid State Phys. 1957, 5. [Google Scholar] [CrossRef]
  7. McGuire, R.I.; Potter, T.R. Anisotropic magnetoresistance in ferromagnetic 3d alloys. IEEE Trans. Magn. 1975, 11, 1018–1038. [Google Scholar] [CrossRef]
  8. Kondo, J. Anomalus Hall effect and magnetoresistance of ferromagnetic metals. Progr. Theor. Phys. 1962, 27, 772–792. [Google Scholar] [CrossRef]
  9. Berger, L. Influence of spin-orbit interaction on the transport processes in ferromagnetic nickel alloys, in the presence of a degeneracy of the 3d band. J. Appl. Phys. 1963. [Google Scholar] [CrossRef]
  10. Ky, V.D. Theory of the anisotropy of resistance in ferromagnetic metals. Sov. Phys. JETP 1967, 24, 995–999. [Google Scholar]
  11. Campbell, I.A.; Fert, A.; Jaoul, O. The spontaneous resistivity anisotropy in Ni-based alloys. J. Phys. C 1970, 3, S95. [Google Scholar] [CrossRef]
  12. Julliere, M. Tunneling between ferromagnetic films. Phys. Lett. A 1975, 54, 225–226. [Google Scholar] [CrossRef]
  13. Baibich, M.N.; Broto, J.M.; Fert, A.; Nguyen Van Dau, F.; Petroff, F.; Eitenne, P.; Creuzet, G.; Friedrich, A.; Chazelas, J. Giant Magnetoresistance of (001)Fe/(001)Cr Magnetic Superlattices. Phys. Rev. Lett. 1988, 61, 2472–2475. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Binasch, G.; Grünberg, P.; Saurenbach, F.; Zinn, W. Enhanced magnetoresistance in layered magnetic structures with antiferromagnetic interlayer exchange. Phys. Rev. B 1989, 39, 4828–4830. [Google Scholar] [CrossRef]
  15. Tumanski, S. Thin Film Magnetoresistive Sensors; CRC Press: Boca Raton, FL, USA, 2001; ISBN 9781420033243. [Google Scholar]
  16. Jogschies, L.; Klaas, D.; Kruppe, R.; Rittinger, J.; Taptimthong, P.; Wienecke, A.; Rissing, L.; Wurz, M. Recent Developments of Magnetoresistive Sensors for Industrial Applications. Sensors 2015, 15, 28665–28689. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Podhraški, M.; Trontelj, J. A differential monolithically integrated inductive linear displacement measurement microsystem. Sensors 2016, 16, 384. [Google Scholar] [CrossRef] [PubMed]
  18. Xie, F.; Weiss, R.J. Hysteresis Compensation Based on Controlled Current Pulses for Magnetoresstive Sensors. IEEE Trans. Ind. Electron. 2015, 62, 7804–7809. [Google Scholar] [CrossRef]
  19. Maček, M.; Oblak, A. Ni-Fe alloy thin films for AMR sensors. Mater. Tehnol. 2017, 51, 499–501. [Google Scholar] [CrossRef]
  20. Stoner, E.C.; Wohlfarth, E.P. A mechanism of magnetic hysteresis in heterogeneous alloys. Phil. Trans. R. Soc. Lond. A 1948, 240, 599–642. [Google Scholar] [CrossRef]
  21. Jiles, D.; Atherton, D. Ferromagnetic hysteresis. IEEE Trans. Magn. 1983, 19, 2183–2185. [Google Scholar] [CrossRef]
  22. Jiles, D.C.; Thoelke, J.B. Theory of ferromagnetic hysteresis: Determination of model parameters from experimental hysteresis loops. IEEE Trans. Magn. 1989, 25, 3928–3930. [Google Scholar] [CrossRef]
  23. Jiles, D.C.C.; Atherton, D.L.L. Theory of ferromagnetic hysteresis. J. Appl. Phys. 1984, 55, 48–60. [Google Scholar] [CrossRef]
  24. Jiang, W.; Shi, Y.; Zhao, W.; Wang, X. Parameters identification of fluxgate magnetic core adopting the Biogeography-Based Optimization algorithm. Sensors 2016, 16, 979. [Google Scholar] [CrossRef] [PubMed]
  25. Haumer, H.; Hauser, D.P. Bajalan: Hysteresis modeling of Thin Permalloy Films and Parameter Interpretation. IEEE Trans. Magn. 2004, 40, 2745–2747. [Google Scholar] [CrossRef]
  26. Gu, G.Y.; Zhu, L.M.; Su, C.Y.; DIng, H.; Fatikow, S. Modeling and control of piezo-actuated nanopositioning stages: A survey. IEEE Trans. Autom. Sci. Eng. 2016, 13, 313–332. [Google Scholar] [CrossRef]
  27. Macki, J.W.; Nistri, P.; Zecca, P. Mathematical Models for Hysteresis. IEEE Trans. Magn. 1993, 35, 94–123. [Google Scholar] [CrossRef] [Green Version]
  28. Kim, J.-S.; Kim, G.-W. Hysteresis Compensation of Piezoresistive Carbon Nanotube/Polydimethylsiloxane Composite-Based Force Sensors. Sensors 2017, 17, 229. [Google Scholar] [CrossRef] [PubMed]
  29. Su, C.-Y.; Stepanenko, Y.; Svoboda, J.; Leung, T.P. Robust adaptive control of a class of nonlinear systems with unknown backlash-like hysteresis. IEEE Trans. Autom. Contr. 2000, 45, 2427–2432. [Google Scholar] [CrossRef]
  30. Zhao, X.; Tan, Y. Modeling hysteresis and its inverse model using neural networks based on expanded input space method. IEEE Trans. Contr. Syst. Technol. 2008, 16, 484–490. [Google Scholar] [CrossRef]
  31. Lin, J.-H.; Chiang, M.-H. Tracking Control of a Magnetic Shape Memory Actuator Using an Inverse Preisach Model with Modified Fuzzy Sliding Mode Control. Sensors 2016, 16, 1368. [Google Scholar] [CrossRef] [PubMed]
  32. Xu, Q.; Wong, P.K. Hysteresis modeling and compensation of a piezostage using least squares support vector machines. Mechatronics 2011, 21, 1239–1251. [Google Scholar] [CrossRef]
  33. Jedlicska, I.; Weiss, R.; Weigel, R. Linearizing the output characteristic of GMR current sensors through hysteresis modeling. IEEE Trans. Ind. Electron. 2010, 57, 1728–1734. [Google Scholar] [CrossRef]
  34. Jedlicska, I.; Weiss, R.; Weigel, R. Increasing the measurement accuracy of GMR current sensors through hysteresis modeling. In Proceedings of the IEEE International Symposium on Industrial Electronics, Cambridge, UK, 30 June–2 July 2008. [Google Scholar]
  35. Han, J.; Hu, J.; Ouyang, Y.; Wang, S.X.; He, J. Hysteretic modeling of output characteristics of giant magnetoresistive current sensors. IEEE Trans. Ind. Electron. 2015, 62, 512–524. [Google Scholar] [CrossRef]
  36. Preisach, F. Über die magnetische Nachwirkung. Z. Phys. 1935, 94, 277–302. [Google Scholar] [CrossRef]
  37. Mayergoyz, I.D. Vector Preisach hysteresis models. J. Appl. Phys. 1988, 63, 2995–3000. [Google Scholar] [CrossRef]
  38. Sánchez-Durán, J.A.; Vidal-Verdú, F.; Oballe-Peinado, Ó.; Castellanos-Ramos, J.; Hidalgo-López, J.A. A new model based on adaptation of the external loop to compensate the hysteresis of tactile sensors. Sensors 2015, 15, 26170–26197. [Google Scholar] [CrossRef] [PubMed]
  39. Wang, D.; Yu, P.; Wang, F.; Chan, H.Y.; Zhou, L.; Dong, Z.; Liu, L.; Li, W.J. Improving atomic force microscopy imaging by a direct inverse asymmetric PI hysteresis model. Sensors 2015, 15, 3409–3425. [Google Scholar] [CrossRef] [PubMed]
  40. Hassani, V.; Tjahjowidodo, T.; Do, T.N. A survey on hysteresis modeling, identification and control. Mech. Syst. Signal Process. 2014, 49, 209–233. [Google Scholar] [CrossRef]
  41. Bobbio, S.; Miano, G.; Serpico, C.; Visone, C. Models of magnetic hysteresis based on play and stop hysterons. IEEE Trans. Magn. 1997, 33, 4417–4426. [Google Scholar] [CrossRef]
  42. Zhang, Z.; Ma, Y. Modeling of rate-dependent hysteresis using a GPO-Based adaptive filter. Sensors 2016, 16, 205. [Google Scholar] [CrossRef] [PubMed]
  43. Galinaitis, W.S. Two Methods for Modeling Scalar Hysteresis and Their Use in Controlling Actuators with Hysteresis; Virginia Tech: Blacksburg, VA, USA, 1999. [Google Scholar]
  44. iC-Haus Homepage—Product: IC-SM2L. Available online: http://www.ichaus.de/iC-SM2L (accessed on 28 June 2018).
  45. Evaluation Boards Sensitec GmbH. Available online: https://www.sensitec.com/products-solutions/angle-and-length-measurement/evaluation-boards (accessed on 26 June 2018).
  46. TMR Gear Speed Sensors—Sensors—MultiDimension Technology, The Leading Supplier of TMR Magnetic Sensors. Available online: http://www.dowaytech.com/en/sensor/gear_speed_sensors.html (accessed on 27 June 2018).
  47. TMR4012—TMR Gear Speed Sensors—Sensors—MultiDimension Technology, The Leading Supplier of TMR Magnetic Sensors—MultiDimension Technology Co., Ltd. Available online: http://www.dowaytech.com/en/1961.html (accessed on 27 June 2018).
  48. MIS6301—Magnetic Image Sensors—Modules—MultiDimension Technology, The Leading Supplier of TMR Magnetic Sensors—MultiDimension Technology Co., Ltd. Available online: http://www.dowaytech.com/en/1724.html (accessed on 27 June 2018).
Figure 1. Signal diagram of the encoder and the model. (a) The measured error of the encoder is compared to the result of the simulation with the Lagging-domain model. (b) The Lagging-domain model is used for compensation of the hysteresis error of the encoder. Since the reference angle is not known in this case, the output of the encoder is used as an input of the model.
Figure 1. Signal diagram of the encoder and the model. (a) The measured error of the encoder is compared to the result of the simulation with the Lagging-domain model. (b) The Lagging-domain model is used for compensation of the hysteresis error of the encoder. Since the reference angle is not known in this case, the output of the encoder is used as an input of the model.
Sensors 18 02281 g001
Figure 2. The ordinary play operator is used to describe the mathematical domain response to direction of external magnetic field x. (a) The value of the domain D does not change unless the difference between x and D exceeds the value of parameter φ. In that case, the domain response follows one of the dotted lines with a unity slope. (b) Responses of two different domains to the change in the direction of movement where ϕ 1 > ϕ 2 . The sensor was first moving upwards and then downwards along the scale.
Figure 2. The ordinary play operator is used to describe the mathematical domain response to direction of external magnetic field x. (a) The value of the domain D does not change unless the difference between x and D exceeds the value of parameter φ. In that case, the domain response follows one of the dotted lines with a unity slope. (b) Responses of two different domains to the change in the direction of movement where ϕ 1 > ϕ 2 . The sensor was first moving upwards and then downwards along the scale.
Sensors 18 02281 g002
Figure 3. The pseudo code for modeling the sensor’s output using the Lagging-domain model. At each time step the true position of the sensor is read from the reference encoder. Then, the states of the domains are updated. The estimated error of the sensor is calculated. The estimated output of the sensor is the sum of the correct value and the estimated error.
Figure 3. The pseudo code for modeling the sensor’s output using the Lagging-domain model. At each time step the true position of the sensor is read from the reference encoder. Then, the states of the domains are updated. The estimated error of the sensor is calculated. The estimated output of the sensor is the sum of the correct value and the estimated error.
Sensors 18 02281 g003
Figure 4. The setup of a linear encoder. A read-head with xMR sensor moves along the x axis above the magnetic scale with alternating poles, magnetized up and down along the z axis and thus providing a magnetic field in interchanging direction. The movement during the calibration is indicated with the blue line.
Figure 4. The setup of a linear encoder. A read-head with xMR sensor moves along the x axis above the magnetic scale with alternating poles, magnetized up and down along the z axis and thus providing a magnetic field in interchanging direction. The movement during the calibration is indicated with the blue line.
Sensors 18 02281 g004
Figure 5. Data for calibration with identified critical points. (a) The collected signals x and y in time domain. The values of domains are shown for N = 3. (b) It is easier to identify critical points by observing the plot of sensor’s error e relative to the reference signal x. (c) The error signal e(x) between critical points (t1) and (t2) is split into N linear regions. Each can be expressed as a linear combination of the N domains.
Figure 5. Data for calibration with identified critical points. (a) The collected signals x and y in time domain. The values of domains are shown for N = 3. (b) It is easier to identify critical points by observing the plot of sensor’s error e relative to the reference signal x. (c) The error signal e(x) between critical points (t1) and (t2) is split into N linear regions. Each can be expressed as a linear combination of the N domains.
Sensors 18 02281 g005
Figure 6. The setup for the measurements. The xMR sensor is attached to an electronic circuit, which provides power supply, signal amplification, A/D conversion, a signal processing unit, and a communication unit for data transmission. Beneath the sensor is the moving magnetic scale. A very accurate reference encoder is needed for calibration and verification.
Figure 6. The setup for the measurements. The xMR sensor is attached to an electronic circuit, which provides power supply, signal amplification, A/D conversion, a signal processing unit, and a communication unit for data transmission. Beneath the sensor is the moving magnetic scale. A very accurate reference encoder is needed for calibration and verification.
Sensors 18 02281 g006
Figure 7. Data collected for the calibration-the error of the encoder during downward movement, a turn and then the upward movement. The typical points are identified. The section between (t1) and (t2) is split into five linear regions.
Figure 7. Data collected for the calibration-the error of the encoder during downward movement, a turn and then the upward movement. The typical points are identified. The section between (t1) and (t2) is split into five linear regions.
Sensors 18 02281 g007
Figure 8. Error of the sensor with and without hysteresis compensation. Before the compensation, a noticeable gap between the error during upward and downward movement can be seen. The gap is decreased after the compensation is applied. The remaining error is mostly due to the imperfections of the magnetic scale.
Figure 8. Error of the sensor with and without hysteresis compensation. Before the compensation, a noticeable gap between the error during upward and downward movement can be seen. The gap is decreased after the compensation is applied. The remaining error is mostly due to the imperfections of the magnetic scale.
Sensors 18 02281 g008
Figure 9. The efficiency of the compensation algorithm was tested on 10 different types of AMR sensors by comparing the indicator HME before and after compensation. The hysteresis before the compensation depends mostly on the sensing distance and on the method of construction.
Figure 9. The efficiency of the compensation algorithm was tested on 10 different types of AMR sensors by comparing the indicator HME before and after compensation. The hysteresis before the compensation depends mostly on the sensing distance and on the method of construction.
Sensors 18 02281 g009
Figure 10. The efficiency of the compensation algorithm, tested on 6 different TMR sensors. The algorithm performs worse on TMR than on AMR sensors. The result is expected because some of the TMR samples hardly fulfill the test for suitability for use with the Lagging-domain algorithm.
Figure 10. The efficiency of the compensation algorithm, tested on 6 different TMR sensors. The algorithm performs worse on TMR than on AMR sensors. The result is expected because some of the TMR samples hardly fulfill the test for suitability for use with the Lagging-domain algorithm.
Sensors 18 02281 g010
Table 1. List of used symbols.
Table 1. List of used symbols.
SymbolMeaningUnit
N Number of mathematical domains/
D Domain function-play operator°
B Magnetic flux densitymT
ϕ = { ϕ 1 ,   ϕ 2 ,   ,   ϕ N } Domain lags-parameters for play operators°
D = { D 1 ,   D 2 ,   ,   D N } Current domain orientation angles°
w = { w 1 ,   w 2 ,   ,   w N } Weights/
x Actual angle of B in x-y plane, measured by a reference encoder°
y Measured angle of B ; encoder’s output, affected by hysteresis°
e = y x Error of measured angle°
e ^ Estimated error°
t Times
t i Time step/

Share and Cite

MDPI and ACS Style

Domajnko, D.; Križaj, D. Lagging-Domain Model for Compensation of Hysteresis of xMR Sensors in Positioning Applications. Sensors 2018, 18, 2281. https://doi.org/10.3390/s18072281

AMA Style

Domajnko D, Križaj D. Lagging-Domain Model for Compensation of Hysteresis of xMR Sensors in Positioning Applications. Sensors. 2018; 18(7):2281. https://doi.org/10.3390/s18072281

Chicago/Turabian Style

Domajnko, Dora, and Dejan Križaj. 2018. "Lagging-Domain Model for Compensation of Hysteresis of xMR Sensors in Positioning Applications" Sensors 18, no. 7: 2281. https://doi.org/10.3390/s18072281

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop