DOI QR코드

DOI QR Code

Study on the Temperature Drift Adaptive Compensation Algorithm of a Magneto-Electric Encoder Based on a Simple Neuron

  • Wang, Lei (school of Mechanical Engineering, Harbin Institute of Technology) ;
  • Hao, Shuang-Hui (School of Mechanical Engineering, Harbin Institute of Technology) ;
  • Song, Bao-Yu (School of Mechanical Engineering, Harbin Institute of Technology) ;
  • Hao, Ming-Hui (School of Mechanical Engineering, Harbin Institute of Technology)
  • 투고 : 2014.04.25
  • 심사 : 2014.07.16
  • 발행 : 2014.11.20

초록

Magneto-electric encoders have been widely used in industry and military applications because of their good shock resistance, small volume, and convenient data processing. However, the characteristics of a magneto-electric encoder's signal generator and hall sensor changes minimally with temperature variation. These changes cause an angle drift. The main purpose of this study is to construct the compensation system of a neural network and constantly update weight coefficients of temperature correction by finite iteration calculation so that the angle value modified can approach the angle value at the target temperature. This approach is used in adaptive correction of the angle value.

키워드

I. INTRODUCTION

Encoders that can translate rotary motion into electrical signals represent the most popular angular transducer. It is widely used in several applications, such as mechanical engineering, robotics, astronomical applications, precision optics, and high-performance controllers. It also plays an important role in modern industry, especially in motor control. Motor control relies on the accuracy and achievable resolution from the encoder [1], [2].

Currently, high-accuracy encoders can be divided into two categories, namely, magnetic and optical encoders. An optical encoder is an opto-mechanical-electronic device that transforms light distribution into two sinusoidal electrical signals that are used to determine the relative position between a scanning head and a scale (linear or angular) [3]. This encoder type is small, lightweight, and characterized by high response frequencies and resolutions. Although optical encoders are widely used in industrial applications, they have some significant disadvantages. First, they are made of easily breakable materials and are costly. They are also unsuitable for several special situations because of their frangibility and bad mounting environment; they also accumulate reading errors and loss of position caused by power interruptions [4], [6]. Magnetic encoders are based on the principles of reading and writing to magnetic media. Unlike optical encoders, magnetic encoders are characterized by their strong anti-interference ability and are unaffected by dusty and misty conditions. Given that the code disk can be recorded and erased repeatedly, magnetic rotary encoders are suited for small-lot production.

However, magnetic encoders also have some drawbacks. A typical magnetic encoder is described as follows: Under different temperatures, the features of the signal generating components and hall sensors of the magnetic encoder change slightly. As a result, angle temperature drift occurs. Several methods that attempt to solve the abovementioned problems were presented in [7], [8], and traditional solutions have been proposed. The compensation method in hardware is presented in [7]. Four sensor elements are connected in each unit of the MAGFET array such that the signal currents of the magnetic field are added and offset currents caused by the piezo-resistive effect are canceled out. A compensation technique that uses the successive approximation algorithm is presented in [8]. A novel method for continuous time calibration of hall sensors has been proposed. It can eliminate all drift sources, including temperature drift. Among the intelligent compensation methods, the artificial neural network compensation method has some advantages, such as less demand for the sample number [9], having a simple algorithm, and ability of arbitrary function approximation [10]. A novel design model based on slant multi-phase filter theory is presented in [11]. The nth harmonic voltage [n = 2nd, 3rd, and 4th... (V)] can be decreased easily. Magnetic encoders with a sinusoidal output voltage waveform have been developed. The sinusoidal output waveform can be easily improved, and the angle drift with temperature can be decreased. A novel magnetic encoder has also been presented in [12], which utilizes an iterative algorithm to suppress the angle drift when temperature changes. The implementation aspects of cyclic and tracking displacement converters based on a single-chip integrated microcircuit of a sine-cosine magnetic encoder have been proposed in [13].

The reason for the angle drift in magnetic encoders when during temperature change is analyzed in Section III. We construct a compensation system of temperature drift in Section III to solve the problem above. A temperature compensation-modified algorithm based on neurons is presented. The temperature weight coefficient is updated constantly through finite iterative computation, which causes the drifting angle at low temperature to approach the target angle at normal temperature automatically. The gradient method used in this paper also implements the fastest convergence of the neutron iterative calculation. Thus, the angle value of the magnetic encoder can be calibrated at different temperatures at the same mechanical position. Experiments are performed in Section IV to verify the efficiency of this method. Finally, conclusions and several remarks are discussed in Section V.

 

II. STRUCTURE OF A MAGNETO-ELECTRIC ENCODER AND PRINCIPAL OF ANGLE CALCULATE

Fig. 1 shows the structure of the magneto-electric encoder. It has four halls divided by 90° in a circle.

Fig. 1.Magneto-electric encoder structure.

Under the action of single pole magnetic steel, four signals with a phase difference of 90° were produced on the hall sensor and the signal value centered at approximately 2.5 V [Fig. 2(a)]. The hall signals A+, A˗, and B+, B˗ are subtracted as shown in Formulas (1) and (2), then the hall value of the dand q-axes is obtained, as shown in Fig. 2(b).

Fig. 2.Original hall signals of the encoder and signal on the dand q-axes. (a) Original hall signals. (b) Hall signal on the d- and q-axes.

Arctangent Formula (3) is used to calculate the angle of the magneto-electric encoder.

 

III. ANALYSIS OF THE CHARACTERISTICS OF THE MAGNETO-ELECTRIC ENCODER’S TEMPERATURE DRIFT AND COMPENSATION ALGORITHM BASED ON NEURON THEORY

A. Analysis of the Angle Drift of a Magneto-electric Encoder

The calculation of a magneto-electric encoder’s angle is based on the analog value obtained by hall sensors. The drift of the analog value has two types: temperature drift and zero-point drift. We set variable bi as the error value of the zero-point drift. The temperature drift amplifies or lowers the ratio of the hall signal amplitude. We set this value to ki . The value of dd and qd after temperature change should then be as follows:

where dd is the AD value of the hall on the d-axis after temperature change, qd is the AD value of the hall on the q-axis after temperature change, dc is the AD value of the hall on the d-axis under the initial temperature, and qc is the AD value of the hall on the q-axis under the initial temperature.

Fig. 3 shows the zero-point drift and temperature drift effect on the angle drift.

Fig. 3.Zero-point drift and temperature drift on the influence of the original signal.

The picture above clearly shows that if we want to correct the angular deviation because of temperature change, we need to modify the hall value of the d- and q-axes to the value under the initial temperature.

B. Temperature Compensation Algorithm based on a Simple Neuron

Fig. 4 shows the deviation of the hall signal curve caused by temperature change. The previous analysis clearly shows a group of ideal values (i.e., k1 , k2 , b1 , and b2) that can completely modify the curve deviation.

Fig. 4.Diagram of the temperature drift correction process. Suppose the following target function:

Suppose the following approximating function:

Bi(γ) is the benchmark function.

ωi is the modification weight coefficient. Thus, the error measuring function should be as follows:

This study directly uses the hall value on the d-axis dd and q-axis qd , whose changes are caused by the temperature drift as benchmark function Bi(γ). Thus,

where dd is the AD value of the hall on the d-axis after temperature drift, and qd is the AD value of the hall on the q-axis after temperature drift. ω1, ω2, ω3, and ω4 are taken as the weight coefficients, and the compensation function is built as the neural network output. Thus,

where df is the value of the d-axis after modification, qf is the value of the q-axis after modification, ω1, ω3 is the weight coefficient of the hall temperature drift, and ω2, ω4 is the weight coefficient of hall zero point drift. A structure diagram of the temperature compensation based on a neural network is shown in Fig. 5. The iterative calculation of a neuron algorithm is used to determine the best weight coefficient ω1, ω2, ω3, and ω4 . These four weight coefficients are used to modify dd and qd after the temperature drift and cause df and qf to approach dc and qc under the target temperature. The approximating function h(dd, qd, ) is intended to approach the target function h(dc, qc).

Fig. 5.BP neural network temperature compensation structure.

The error measuring function is constructed as follows:

The error measuring function in this study is a non-negative value. The value of the error measuring function should decrease by continuously regulating ω1, ω2, ω3, and ω4 during the iterative calculation process to cause df and qf to approach dc and qc under the target temperature. The steep descent direction of the error measuring function V(X) to ω1, ω2, ω3, and ω4 needs to be determined first to make the error measuring function decrease rapidly to ensure that the angle compensation can be completed in the least iteration times. Thus,

From the characteristic of the error measuring function, the function is non-negative to ensure that the function can approach zero fastest in the negative gradient direction and quickly implement the result of df and qf approaching dc and qc . Let T be the iteration step. Thus,

The neuron modification process is shown in Fig. 6. The data acquisition system is used to collect the angle value θc of the whole round under +20 ℃ as the initial angle value, hall value on d-axis dc , and hall value on q-axis qc . A table where the horizontal value is the angle value divided by 0.1° is then generated, and the value of the vertical coordinates is the hall value on the d- and q-axes.

Fig. 6.Flowchart of the temperature correction algorithm.

Table I is generated based on the above description.

TABLE IHALL VALUES OF D-Q AXIS

The permanent magnet synchronous motor(PMSM) in the open loop system (utilizing the direct-axis current to control the PMSM without the encoder feedback) is controlled, which results in accurate positioning of the rotor at 3600 points in the entire round. The PMSM has three stator slots, and the position of each stator slot is fixed, which is unaffected by different temperatures. When the controller outputs the direct-axis current, the rotor will locate at one of the three stator slots shown in Fig. 7(a). The motor then rotates 0.1° each time, and the position controller is shown in Fig. 7(b). The angle used in the position controller is calculated by a micro control unit interrupt timer (Renesas, RX62T, 32-bit floating micro control unit). For example, the interrupt timer is 50 μs, and the rotor rotates by 0.1° in 3 ms. Therefore, the timer adds 2.90888E˗05 rad in each control circle (50 μs). The rotor then rotates by 0.1° after 60 times, and the motor speed is 5.555 rpm. Set iq* = 0 , id* = 5A , in each positioning process. The temperature in the thermal cycling chamber then changes. The d-q hall values are sampled before and after the temperature changes. The angle value before temperature changes is used to check Table I as shown in Fig. 8.

Fig. 7.Positioning process with an open-loop controller. (a) The positioning system structure. (b) The position controller.

Fig. 8.Diagram of the table look-up process of temperature correction.

Each sampling point where temperature drift occurs can determine the respective hall values on the d- and q-axes under the initial temperature. Let the initial weight coefficient ω1 = 1, ω2 = 0, ω3 = 1, and ω4 = 0. These coefficients are placed in the error measuring function to complete the first iterative calculation cycle. The steepest descent directions are used to obtain the four weight coefficients by the gradient method. Formulas (17) to (20) are then used to calculate the weight coefficient value for the next calculation cycle. The new weight coefficient will be used as the correction coefficient in the next calculation. The value of the error measuring function is determined after every calculation cycle finishes. If Vi+1(X) ˂ Vi(X) , then the calculation continues; otherwise, the calculation is stopped. If Vi(X) ˂ the value set, then the correction coefficient at this point is the most optimal. Fig. 9 shows the whole process of the neuron correction iteration algorithm. Unlike the method in [7], the proposed method solves the problem without complicated hardware. It can also solve the problem of temperature drift that still exists at high temperature in [6], and the algorithm is simpler than that in [8].

Fig. 9.Flowchart of the neuron iterative calculation algorithm.

 

IV. EXPERIMENTAL RESULTS AND ANALYSIS

The temperature control cabinet (Fig. 10) is used to change the temperature in this experiment. The angle value of the magneto-electric encoder under +20 ℃ is set as the target angle value, and its angle value under ˗40 and +60 ℃ is the object that has to be modified.

Fig. 10.Configuration of the experimental system.

Fig. 10 shows that the four hall sensors are used to obtain the hall signals, and the data processing board is utilized to calculate the angle value. The analog signals enter the micro control unit’s internal AD module (12-bit Renesas RX62T internal AD), and the sampling period is 50 μs. After signal processing, the SPI communication method is used to transfer the data to the communication board (Renesas 62N which has USB module), which is then used to transfer the data to the computer.

Fig. 11 shows a table based on the angle value under normal temperature and the hall value on the d- and q-axes, and the groups of data are divided by 0.1°. The interpolation calculation for the arbitrary angle is conducted based on this table to find the hall values on the corresponding d- and q-axes.

Fig. 11.Hall value of the d- and q-axes under normal temperature.

Fig. 12(a) shows the difference value between the q-axis hall under target temperature (+20 ℃) and q-axis hall after the temperature change (˗40 ℃) at 3600 positioning points. Fig. 12(b) shows the difference value between the d-axis hall under the target temperature (+20 ℃) and d-axis hall after the temperature change (˗40 ℃) at 3600 positioning points.

Fig. 12.Correction effect with the proposed method under temperature changes from +20 ℃ to ˗40℃. (a) The deviation value of the hall sensor on the q-axis before and after modification. (b) The deviation value of the hall sensor on the d-axis before and after modification.

The analog signals collected by the four halls are not orthogonally perfect, and the magnetic field-sensitive features of the halls are different. Thus, the hall signals of the d-q axis are not sinusoidally perfect, which makes d2 + q2 non-constant. This paper mainly discusses the angle compensation after the temperature drift. Fig. 13 shows the value of d2 + q2 under normal temperature (+20 ℃), the value when temperature drift occurs (˗40 ℃), and the value modified by the neuron compensation algorithm after temperature drift. The value of vertical coordinates divided the maximum value in the collected data, and the horizontal axis means the whole circle is divided by 0.1° into 3600 points.

Fig. 13.Value of d2 + q2 before and after modification under temperature changes from +20 ℃ to ˗40 ℃.

Fig. 14 shows the convergence curve of the error measuring function when iterated 1000 times with iteration step length T = 0.001. The error measuring function begins to converge to zero after iterating for 200 times.

Fig. 14.Convergence curve of the error measuring function.

The PMSM in the open-loop system (utilizing the direct-axis current to control the PMSM without the encoder feedback) is controlled, which results in accurate positioning of the rotor at 3600 points in the entire round. The encoder angle is sampled before the temperature changes in the positioning process. The temperature then changes, and then the angle value after the temperature change and that modified with the neuron compensation algorithm are collected. Finally, the experimental results validate that the angle deviation in the proposed method decreases to almost 0, as shown in Fig. 15. The horizontal axis indicates that the whole circle is divided by 0.1° into 3600 points.

Fig. 15.Deviation of the angle value before and after modification under the temperature change from +20 ℃ to ˗40 ℃.

Fig. 16(a) shows the difference value between the q-axis hall under the target temperature (+20 ℃) and q-axis hall after the temperature change (+60 ℃) at 3600 positioning points. Fig. 16(b) shows the difference value between the d-axis hall under the target temperature (+20 ℃) and d-axis hall after the temperature change (+60 ℃) at 3600 positioning points.

Fig. 16.Correction effect with the proposed method under the temperature change from +20 ℃ to +60 ℃. (a) The deviation value of the hall sensor on the q-axis before and after modification. (b) The deviation value of the hall sensor on the d-axis before and after modification.

Fig. 17 shows the value of d2 + q2 under normal temperature (+20 ℃), when temperature drift occurred (+60 ℃) and the value modified by the neuron compensation algorithm after temperature drift. The vertical coordinate values divide the maximum value in the collected data to facilitate observation.

Fig. 17.Value of d2 + q2 before and after modification under temperature change from +20 ℃ to +60 ℃.

The angle deviation in the proposed method decreases to almost 0 as shown in Fig. 18 when the temperature changes from +20 ℃ to +60 ℃.

Fig. 18.Deviation of the angle value before and after modification when the temperature changes from +20 ℃ to +60 ℃.

 

V. CONCLUSIONS

This paper analyzes the cause of angular deflection in magneto-electric encoders when temperature drift occurs as well as proposes a method that uses a temperature compensation algorithm based on neural network. The gradient method is used to initiate fast iterative calculation convergence. The self-adaptive adjustment of the angle value of the magneto-electric encoder is implemented when temperature drift occurs. The effectiveness of the proposed method is verified experimentally. Adaptive correction for angular deflection when the temperature changes from 20 ℃ to ˗40 ℃ and 20 ℃ to +60 ℃ is implemented. The angle deviation decreases to almost 0 with the proposed method.

참고문헌

  1. Z. D. Buckner, M. L.Reed, and J. H.Aylor, "Antialiasing encoder interface with sub-nyquist sampling," IEEE Trans. Instrum. Meas., Vol. 55, No. 6, pp. 2029-2033, Dec. 2006. https://doi.org/10.1109/TIM.2006.884285
  2. C. Attaianese and G. Tomasso, "Position measurement in industrial drives by means of low-cost resolver-to-digital converter," IEEE Trans. Instrum. Meas., Vol. 56, No. 6, pp. 2155-2159, Dec. 2007. https://doi.org/10.1109/TIM.2007.908120
  3. F. T. Jorgensen, T. O. Andersen, and P. O. Rasmussen, "The cycloid permanent magnetic gear," IEEE Trans. Ind. Appl., Vol. 44, No. 6, pp. 1659-1665, Nov./Dec. 2008. https://doi.org/10.1109/TIA.2008.2006295
  4. B. Fodor and I. Kollar, "ADC Testing With Verification," IEEE Trans. Instrum. Meas., Vol. 57, No. 12, pp. 2762-2768, Dec. 2008. https://doi.org/10.1109/TIM.2008.928404
  5. A. Flammini, D. Marioli, and E. Sisinni, "A Multichannel DSP-based instrument for displacement measurement using differential variable reluctance transducer," IEEE Trans. Instrum. Meas., Vol. 54, No. 1, pp. 178-183, Feb. 2005. https://doi.org/10.1109/TIM.2004.834052
  6. D. Draxelmayr and R. Borgschulze, "A self-calibrating hall sensor IC with direction detection," IEEE J. Solid-State Circuits, Vol. 38, No. 7, pp. 1207-1212, Jul. 2003. https://doi.org/10.1109/JSSC.2003.813240
  7. T. Emura, L. Wang, and A. Arakawa, "A high-resolution interpolator for incremental encoders by tow-phase type PLL method," in Proc. IEEE 19th IECON Conf., pp. 1540-1545, 1993.
  8. F. Burger, P.-A. Besse, and R. S. Popovic, "New single chip Hall sensor for three phases brushless motor control," Sensors and Actuators, Vol. 81, No. 1, pp. 320-323, Apr. 2000. https://doi.org/10.1016/S0924-4247(99)00101-6
  9. B. Ali, D. O. Abdeslam, T. Otmane-Cherif, and H. Seddiki, "Adaptive neural PLL for grid-connected dfig synchronization," Journal of Power Electronics, Vol. 14, No. 3, pp. 608-620, May 2014. https://doi.org/10.6113/JPE.2014.14.3.608
  10. R. Kayalvizhi, S. P. Natarajan, and P. Palanisamy, "Development of a neuro controller for a negative output elementary luo converter," Journal of Power Electronics, Vol. 7, No. 2, pp. 140-145, Apr. 2007.
  11. Y. Shi, H. Zhang, X. Jiang, Q. Wen, and B. Han, "Design of output voltage waveform on magnetic encoder," Journal of Magnetism and Magnetic Materials, Vol. 282, No. SI, pp. 317-320, Nov. 2004. https://doi.org/10.1016/j.jmmm.2004.04.074
  12. S. Hao, J. Liu, and Y. Mizugaki, "Development of novel magnetic encoder and vector control method for servo control of high-speed motor," Journal of Advanced Mechanical Design Systems And Manufacturing, Vol. 3, No. 4, pp. 345-354, Apr. 2009. https://doi.org/10.1299/jamdsm.3.345
  13. Y. S. Smirnov, T. A. Kozina, E. V. Yurasova, and A. V. Sokolov, "Analog-to-Digital Converters of the Components of a Displacement with the Use of Microelectronic Sine-Cosine Magnetic Encoders," Measurement Techniques,Vol. 57, No. 1, pp. 41-46, Apr. 2014. https://doi.org/10.1007/s11018-014-0404-5

피인용 문헌

  1. Development of a combined magnetic encoder vol.36, pp.4, 2016, https://doi.org/10.1108/SR-01-2016-0020