The present invention relates to a measurement method for detecting a relative position of a magnetic field source in relation to a magnetic field sensor, and more particularly, to a method for compensating for the effect of thermally caused variations of magnetic control fields on the output signal of a magnetic sensor.
As is known in the prior art, magnetic field sensors such as Hall sensors may be used to detect changes in a magnetic field, for example, to detect a relative position of a magnetic field source. The Hall sensor may detect at least two magnetic flux density components to determine a magnetic flux density vector; with reference to exemplary values of flux density components Bz and By, the value |B| of the magnetic flux density B and the angle α between the radial component By and the vector of the flux density B can be calculated according to the following equations:
European Patent Application EP 2159546 A2 discloses a measurement method for detecting linear relative movements between a Hall sensor which detects two mutually perpendicular magnetic field components (R, A) and a permanent magnet. The output signals of the Hall sensor form a quasi-linear position measurement curve U=f(y) according to the relationship y=a+b·R/f·(c·Rn+d·An) where R is the radial field component, A is the axial field component, U is the measurement voltage and a, b, c, d and n are constant factors. In this method, the factor b may be dynamically adapted as a scaling factor for the temperature coefficient of the permanent magnet, detected for example by means of a temperature sensor.
Although EP 2159546 A2 discloses compensating for the temperature coefficient of the permanent magnet, both the measurement method of EP 2159546 A2 and conventional 2D and 3D Hall sensors and measurement methods react to variations in the spacing between the control magnet and the Hall sensor in a very sensitive manner. Variations in spacing, for example, because of mechanical vibrations or even thermally caused material expansion, can significantly influence the accuracy of the measurements of the Hall sensor.
In order to overcome or at least minimize the effect of the spacing between the permanent magnetic field and the Hall sensor, a measurement method was developed with Offset-Slope adaption (OS adaption) and a corresponding displacement sensor, as described in the published German Patent Application DE 10 2011 115 302 A1. In comparison with conventional Hall sensors having internal arctangent calculation as shown in Equation 2 above, a 2D or 3D Hall sensor with OS adaption uses a different calculation method in which the direct quotient of the detected magnetic field components Bz to By are not used for the calculation of the measurement signal or the angle α. Instead, the magnetic field component Bz which extends in a movement direction of the magnet is corrected by means of a constant offset value.
That offset value OS results in a slope assimilation of the curves for the angle α for different spacings d between a permanent magnet and Hall sensor. The corrected values of the angle α are established according to the following equation:
In order to obtain an adequate effect for the OS adaption, the offset value OS is generally defined at from 20% to 60% of the value of the magnetic field component Bz. The OS values can be established by one of the methods described in DE 10 2011 115 302 A1.
The use of the evaluation method with OS adaption can result in a negative influence on the temperature behaviour of the arctangent calculation by means of the magnetic field of a control magnet. Although the values of the detected magnetic field components Bz and By for the temperature T of the magnetic field are influenced by the same thermal variations of the control magnet, temperature compensation is not provided in Equation 3 using the OS adaption. Depending on the relationship of the individual terms in Equation 3, there is produced a temperature-dependent additional error of up to 12%, which is unacceptable for the measurement accuracy of the 3D Hall sensor.
In order to be able to completely utilise the evaluation behaviour with OS adaption, therefore, a compensation of the temperature effect of the magnetic control field on the measurement signals of the magnetic sensor is absolutely necessary.
An object of the invention, among others, is to provide a measurement method and a displacement sensor producing a temperature-independent measurement signal within a broad temperature range. The disclosed measurement method comprises the steps of detecting at least two magnetic field components of a magnetic field produced by a magnetic field source using a magnetic field sensor, determining a temperature effect compensation which compensates for a temperature effect on the magnetic field components, and establishing an output signal corresponding to the relative position of the magnetic field source based on a quotient of the magnetic field components, the temperature effect compensation, and an offset correction.
The invention will now be described by way of example with reference to the accompanying figures, of which:
The invention is explained in greater detail below with reference to embodiments of a measurement method and displacement sensor. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and still fully convey the scope of the invention to those skilled in the art. The magnetic flux density is referred to below only as the magnetic field for simplicity.
A displacement sensor arrangement according to the invention is shown generally in
A magnetic field sensor 100, for example, a 3D Hall sensor, is mounted so as to be fixed in position whereas a permanent magnet 102 is arranged so as to be linearly movable in relation to the Hall sensor 100. The permanent magnet 102 has such poles that its north/south axis is orientated parallel with a movement direction 104 of the permanent magnet 102. In principle, however, it is also possible to apply the present invention to arrangements in which the permanent magnet 102 has such poles that its north/south axis extends transversely relative to the movement direction. The permanent magnet 102 can be displaced from the zero position shown in
The component Bz which extends in the movement direction 104 and the components By and Bx, which are perpendicular thereto, (the component Bx is not illustrated in
The angle α shown in
The angle α is generally used as a measuring signal. In particular, the result of the angle α calculated from Equation 2 may be linearised as α_lin shown in
The magnetic control field of a magnet can vary over the temperature range, for example, in the automotive industry of from −40° C. to 150° C. by up to 30%. Temperature-dependent magnetic field variations of a control magnet may be incorporated into Equations 1 and 2 in the measured flux density values By and Bz. In particular, Equation 4 below determines angle α having temperature independence because the flux density variations are shortened in the ratio calculation Bz(T) to By(T):
where km(T) is a temperature factor of the magnetic field, and Bz and By correspond to the flux densities established in the 3D Hall sensor in the Z direction and Y direction for a predetermined reference temperature, for example, 20° C. In Equation 4, therefore, thermally caused magnetic field variations of the control magnet do not have any influence on the result for the angle values α.
Temperature-dependent magnetic field variations of a control magnet may also be incorporated in the measured flux density values By and Bz of Equation 3 above. According to the invention, the temperature effect of the permanent magnet 102 on the values of the produced components Bz and By is compensated for before the output signal is established.
Temperature-compensated values of the magnetic field components Bz(T) and By(T) which are measured by the magnetic field sensor 100 for a given temperature T of the permanent magnet 102 are established on the basis of temperature-dependent temperature compensation factor kc(T). The following Equation 5 is produced for the calculation of the angle αOS_TK with temperature compensation:
where the measured magnetic field components Bz(T) and By(T) are multiplied by the temperature compensation factor kc(T). The OS adaption is then applied to the temperature-compensated values of the magnetic field components kc(T)×Bz(T). As set out in Equation 5, the compensated magnetic field component kc(T)×Bz(T) can be corrected by the addition of a constant offset value OS.
The offset value OS can be established by one of the methods with OS adaption which are described in the patent application DE 10 2011 115 302 A1. For example, the offset value can be established for a predetermined reference temperature of the magnetic field source 102 by means of the following steps: establishing a curve of the magnetic field component for a large number of positions of the magnetic field source 102 in the movement direction; calculating a second derivative of the curve in relation to the position of the magnetic field source 102; establishing a zero position of the second derivative; and subtracting the functional value of the curve at the zero location from the functional value at the position of the smallest spacing between the magnetic field source 102 and the magnetic field sensor 100 in order to calculate the value of the offset correction.
The temperature compensation factor kc(T) is adapted in order to compensate for the thermally caused variations of the magnetic field, as described below. The temperature behaviour of magnetic fields of commercially available magnets is strictly dependent on the materials and can therefore be described relatively easily. Usually, the temperature behaviour of the magnet is described by a temperature coefficient TKmagnet of the material. The temperature coefficient TKmagnet describes the relative change of the value of the magnetic flux density in accordance with the change of the temperature with respect to a fixed reference temperature. A temperature coefficient TKmagnet of −0.1%/° C. therefore corresponds to a reduction of the magnetic flux density B by 10% if the temperature increases by 100° C. (or Kelvin).
The temperature-dependent magnetic field factor km(T) of Equation 4 can be expressed by the following linear function of the temperature coefficient TKmagnet and the temperature T of the permanent magnet 102:
where a reference temperature of 20° C. is used.
Magnets comprising NdFeB materials have, for example, a temperature coefficient of typically TKmagnet=−0.11%/° C. The Equation 6 results, for example, in the following temperature-dependent values of the magnetic field factor for a control magnet comprising such materials:
The Equation 6 results in a standardised magnetic field loss B(T)/B(20° C.)=km(T) of the magnetic field over the temperature, as shown in
If the temperature information of the magnet is known to the 3D Hall sensor 100 or is made accessible to it from another location (for example, internal temperature measurement in the 3D Hall sensor 100) and the magnetic properties of the control magnet are also known in the form of the temperature coefficient TKmagnet, then the temperature-dependent magnetic field variation can be compensated for by the extended calculation of Equation 5. This is achieved by a temperature-dependent calculated decrease or increase of the temperature factor km(T) of the magnetic control field on the basis of the additional compensation factor kc(T). Ideally, the following compensation result is achieved:
km(T)×kc(T)=1 (7)
Equation 7 produces the following relationship for the compensation factor kc(T):
In order to be able to periodically calculate the compensation factor kc(T) in the 3D Hall sensor 100, the temperature coefficient TKmagnet of the control magnet 102 used has to be communicated to the 3D Hall sensor 100 or accordingly has to be stored in the sensor 100 for calculation. The temperature information of the magnet 102 can be established, for example, externally directly or in the close environment of the control magnet 102 and be made available to the 3D Hall sensor 100 via a communication connection. Alternatively, the internal temperature information in the 3D Hall sensor 100 can be used and optionally adapted with respect to the temperature of the magnet 102 to be anticipated.
The effect of the temperature compensation according to Equation 5 can be indicated as follows. If the values of the measured magnetic field components Bz(T) and By(T) are expressed by means of the magnetic field factor as Bz(T)=km(T)×Bz or as By(T)=km(T)×By, a shortening of the temperature factors km(T) is produced, as set out in the following equation:
Bz and By are magnetic field component values for the predetermined reference temperature and are therefore temperature-independent. The reference temperature corresponds to 20° C. for a temperature compensation factor kc(T) according to Equation 8.
The relationship km(T)×kc(T)=1 produces the following for the calculation of the angle with OS adaption and temperature compensation αOS_TK:
The temperature compensation factor kc(T) then leads to a shortening of the temperature effect of the control magnet 102 to the values of the detected magnetic field components in a measurement method based on an arctangent calculation with OS adaption.
A temperature-independent output signal OUT can then be established from the result of the angle αOS_TK according to Equation 9 which is further influenced only by a small amount by a possible spacing variation between the magnetic field source 102 and the magnetic field sensor 100. Equation 10 corresponds in terms of form to the original equation for the angle calculation of a 3D Hall sensor with OS adaption, the temperature-dependent magnetic field variations now being compensated for.
Further specification of the temperature compensation can be achieved through a more complex type of the temperature compensation factor kc(T) by the complete temperature behaviour of the magnet 102 being described in the form of a line equation or in the form of correction tables and, for example, being stored in the 3D Hall sensor for calculation. For example, the value of the temperature compensation factor kc(T) for a given temperature T of the magnetic field source 102 can be established on the basis of a temperature compensation table or file, the compensation table or file containing a large number of temperatures of the magnetic field source 102 and a large number of corresponding values of the magnetic field factor km(T) or the temperature compensation factor kc(T).
In another embodiment, the compensation for the temperature effect on the detected magnetic field components in a Hall sensor with OS adaption can be carried out by an alternative calculation, the temperature effect being compensated for by a temperature-dependent offset correction instead of by establishing temperature-compensated values from the measured magnetic field components Bz(T) and By(T). The compensated offset value OS(T) can be established on the basis of the temperature-dependent temperature compensation factor kc(T), the constant offset value of the OS adaption being multiplied by a factor 1/kc(T). The angle αOD_TK with temperature compensation and OS adaption is then established from the following equation:
In this embodiment, there is also used a calculation method which corrects the temperature-dependent magnetic control field according to Equation 7. As in the first embodiment, the angle calculation with OS adaption and temperature compensation results in:
The calculation according to the invention can be carried out in the sensor in a two-dimensional or three-dimensional Hall sensor which is already provided with an integrated microprocessor. A linear displacement measurement signal which is independent of the temperature of the control magnet can then be output directly by the sensor. Alternatively, the evaluation by an external analogue or digital calculation unit or a processor which functions in a digital or analogue manner can follow.
Naturally, it is also possible to transfer the principles according to the invention to other magnetic field sources, for example, electromagnets, and to other magnetic field sensors, such as magnetoresistive sensors or inductive sensors. Furthermore, two or three individual sensors can be used in place of a two-dimensional or three-dimensional Hall sensor for detecting different field components.
Advantageously, in both embodiments, the terms of the quotient are compensated for before the arctangent calculation by means of a temperature compensation factor kc(T). Since the calculation according to the invention is a comparatively simple calculation operation, the temperature compensation method of magnetic control fields can be carried out in a 2D or 3D Hall sensor with OS adaption in an extremely simple manner and the precision of a displacement sensor of the generic type can be improved.
Number | Date | Country | Kind |
---|---|---|---|
10 2013 222 097 | Oct 2013 | DE | national |
This application is a continuation of PCT International Patent Application No. PCT/EP2014/073199, filed Oct. 29, 2014, and German Patent Application No. 102013222097.9, filed Oct. 30, 2013.
Number | Name | Date | Kind |
---|---|---|---|
4833406 | Foster | May 1989 | A |
5589769 | Krahn | Dec 1996 | A |
6969988 | Kakuta et al. | Nov 2005 | B2 |
20020167306 | Zalunardo | Nov 2002 | A1 |
20050007105 | Siegle et al. | Jan 2005 | A1 |
20050140450 | Pitz | Jun 2005 | A1 |
20070268015 | Hatanaka et al. | Nov 2007 | A1 |
20080224692 | Baak | Sep 2008 | A1 |
20110227567 | Reidmueller | Sep 2011 | A1 |
Number | Date | Country |
---|---|---|
1576798 | Feb 2005 | CN |
1643341 | Jul 2005 | CN |
10 2008 045 177 | Mar 2010 | DE |
2013045430 | Apr 2013 | WO |
2013156916 | Oct 2013 | WO |
Entry |
---|
PCT Notification, International Search Report and Written Opinion, Application No. PCT/EP2014/073199, dated Feb. 5, 2015, 14 pages. |
Chinese Second Office Action with English translation, Chinese Patent Application No. 201480059479.4, dated Nov. 5, 2018, 19 pages. |
Chinese First Office Action with English translation, Chinese Patent Application No. 2014800594794, dated Jan. 3, 2018, 19 pages. |
Machine translation from Espacenet of DE 10 2008 045 177, dated Mar. 4, 2010, 6 pages. |
German Office Action, dated Jul. 3, 2014, German Patent Application No. 10 2013 222 097.9, 7 pages. |
Number | Date | Country | |
---|---|---|---|
20160238672 A1 | Aug 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/EP2014/073199 | Oct 2014 | US |
Child | 15142603 | US |