METHOD FOR DETECTING AND COMPENSATING A STRAY MAGNETIC FIELD WHEN DETERMINING A ROTATION ANGLE OF A ROTATABLE ELEMENT BY MEANS OF A MAGNETO-RESISTIVE SENSOR SYSTEM AND MAGNETO-RESISTIVE SENSOR SYSTEM
20230258742 · 2023-08-17
Inventors
Cpc classification
G01R33/0017
PHYSICS
G01D5/145
PHYSICS
International classification
Abstract
A method is provided for detecting and compensating a stray magnetic field when determining a rotation angle of a rotatable element to which a magnetic element is attached. A magneto-resistive sensor system comprises a first magneto-resistive sensor disposed on a first surface of a printed circuit board and a second magneto-resistive sensor disposed on a second surface of the printed circuit board opposite the first surface.
Claims
1. A method for detecting and compensating a stray magnetic field when determining a rotation angle of a rotatable element to which a magnetic element is attached, by a magneto-resistive sensor system comprising a first magneto-resistive sensor disposed on a first surface of a printed circuit board and a second magneto-resistive sensor disposed on a second surface of said printed circuit board opposite to said first surface, the method comprising the steps of a) measuring an angle of the magnetic field during rotation of the rotatable element by the first magneto-resistive sensor, b) measuring the angle of the magnetic field during the rotation of the rotatable element by the second magneto-resistive sensor, c) computing an angle difference between the angles of the magnetic field measured in steps a) and b) by the magneto-resistive sensors, d) determining a direction of rotation of the rotatable element, e) computing the angle and amplitude of the stray magnetic field based upon the angle of the magnetic field measured by the first magneto-resistive sensor or measured by the second magneto-resistive sensor and the angle difference computed in step c) and the direction of rotation determined in step d), and determining a compensation angle for compensating the stray magnetic field.
2. The method according to claim 1, wherein a stray field-to-main field ratio is computed, which stray field-to-main field ratio is used for determining the compensation angle for compensating the stray magnetic field.
3. The method according to claim 1, wherein an angle difference between the angle of the magnetic field measured by the first magneto-resistive sensor or measured by the second magneto-resistive sensor and the angle of the stray magnetic field obtained in step e) is computed, which angular difference is used for determining the compensation angle for compensating the stray magnetic field.
4. The method according to claim 2, wherein the stray field-to-main field ratio and the angle difference between the angle of the magnetic field and the angle of the stray magnetic field are fed as input variables to a two-dimensional look-up table in which compensation angles assigned to these input variables are stored in a retrievable manner.
5. The method according to claim 4, wherein the look-up table outputs a compensation angle which is added to the angle detected by one of the two magneto-resistive sensors.
6. A magneto-resistive sensor system, comprising: a printed circuit board with two surfaces opposite one another, a first magneto-resistive sensor being arranged on a first surface of the two opposite surfaces printed circuit board, and a second magneto-resistive sensor being arranged on a second surface of the two opposite surfaces, opposite the first surface, and an evaluation device.
7. A magneto-resistive sensor system, comprising: a printed circuit board with two surfaces opposite one another, a first magneto-resistive sensor being arranged on a first surface of the two opposite surfaces printed circuit board, and a second magneto-resistive sensor being arranged on a second surface of the two opposite surfaces, opposite the first surface, and an evaluation device, wherein the magneto-resistive sensor system is configured to carry out a method according to claim 1.
8. The magneto-resistive sensor system according to claim 7, wherein the evaluation device has a detection module which is configured to determine the amplitude and angle of the stray magnetic field.
9. The magneto-resistive sensor system according to claim 8, wherein the detection module is configured to detect the direction of rotation of the rotatable element.
10. The magneto-resistive sensor system according to claim 7, wherein the evaluation device has a compensation module which is configured to compute a compensation angle and to add said compensation angle to the angle detected by one of the two magneto-resistive sensors.
11. The magneto-resistive sensor system according to claim 7, wherein the magneto-resistive sensor system is part of an electronic control unit or is connected to an electronic control unit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Reference is now made more particularly to the drawings, which illustrate the best presently known mode of carrying out the invention and wherein similar reference characters indicate the same parts throughout the views.
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
DETAILED DESCRIPTION OF THE DRAWINGS
[0035] With reference to
[0036] A magnetic element 6 is attached to said rotatable element 5, which may, for example, be part of an electrically assisted steering device of a motor vehicle, which interacts with the two magneto-resistive sensors 3, 4 during the rotational movement of the rotatable element 5. The magneto-resistive sensors 3, 4 detect angle of the magnetic field of the magnetic element 6 during the rotational movement and thus the angle of rotation of the rotatable element 5.
[0037] The configuration of the magneto-resistive sensor system 1 with two magneto-resistive sensors 3, 4 shown in
[0038] When measuring the angle of rotation of the rotatable element 5, the problem occurs that stray magnetic fields falsify the measurement result and thus the measured angle of rotation of the rotatable element 5 does not correspond to the actual angle of rotation. Therefore, it is desirable to realize a stray field compensation in the simplest possible way.
[0039] The basic idea of detecting and compensating a stray magnetic field when determining the angle of rotation of the rotating element 5, to which the magnetic element 6 is attached, is to exploit different magnetic field-induced disturbances, which can be detected by means of the magneto-resistive sensors 3, 4. This basic principle will be explained in more detail below with further reference to
[0040] From the representation in
[0041] The magnetic flux density acting on the first magneto-resistive sensor 3 is always higher than the magnetic flux density acting on the second magneto-resistive sensor 4 due to the shorter distance from the magnetic element 6. It follows that the strength of the magnetic flux density represented in
[0045] From the representation in
[0046] With reference to
[0047]
[0058] For example, if B_Sensor_1/B_Sensor_2 = 1, both the first magneto-resistive sensor 3 and the second magneto-resistive sensor 4 are exposed to the same magnetic field. In particular, depending on the size of the stray field-to-main field ratio (SMR), the following conditions can be determined. With a ratio B_Sensor_1/B_Sensor_2 = 0.9 between the field density impacting the first magneto-resistive sensor 3 and the field density impacting the second magneto-resistive sensor 4, the stray field can be detected up to 90% of the nominal field. The vertical ranges of the curves 100-109 indicate the detection limits.
[0059] The rule of thumb is: B_Sensor_2 > B_Sensor_1 .Math. SMR
[0060] For example, if a stray magnetic field of 20 mT is to be compensated and the magnetic flux density impacting the first (upper) magneto-resistive sensor 3 is 40 mT, it follows that SMR = 0.5, which means that, according to the rule of thumb given above, the magnetic flux density impacting the second (lower) magneto-resistive sensor 4 is at least 20 mT.
[0061] With reference to
[0062] The angles of the magnetic field (rawAngle_Sensor_1, rawAngle_Sensor_2) measured by means of the two magneto-resistive sensors 3, 4 during the rotation of the rotatable element 5 form the input values of the detection module 70. The detection module 70 has a subtraction module 700 which is designed to compute a difference between the angles of the magnetic field measured by the two magneto-resistive sensors 3, 4, whereby the following applies:
[0063] Furthermore, the detection module 70 has a rotation direction detection module 701, which is configured to compute the rotation direction (angleDirection) of the rotatable element 5 on the basis of the angle (rawAngle_Sensor_1) measured by the first magneto-resistive sensor 3.
[0064] Furthermore, the detection module 70 has a stray field detection module 702, which receives as input variables the angle difference (angleDiff), the angle (rawAngle_Sensor_1) measured by the first magneto-resistive sensor 3 as the rotation angle (rawAngle) and the rotation direction (angleDirection). The stray field detection module 702 is configured to compute a stray field amplitude (strayFieldAmplitude) and a stray field angle (strayFieldAngle) based upon these input variables on the basis of the relationships shown in
[0065] Furthermore, the stray field detection module 702 of the detection module 70 is configured to determine the stray field amplitude (based on the principles shown in
[0066] When the rotating element 5 is rotating, the nominal sensing field from the magnet element 6 will be added to the constant stray field. As shown in
[0067] The amplitude of the stray magnetic field (strayFieldAmplitude) is sampled according to the angle of the stray magnetic field (strayFieldAngle), in order to catch the minimum and the maximum deviations between the input values rawAngle_Sensor_1 and rawAngle_Sensor_2:
with k depending particularly on the magnetic configuration of the ECU (magnetic field, airgaps). The terms maxDiff and minDiff refer to
[0068] As explained before, the deviation (DeviationAmplitude_Sensor_1 -DeviationAmplitude_Sensor_2) depends on the amplitude of the stray magnetic field. The deviation is not constant, as depicted in
[0069] The compensation module 71 shown in detail in
[0070] The compensation module 71 receives as input values the magnetic field (magnetField), the angle (rawAngle) measured by the first magneto-resistive sensor element 3, and the stray field angle (strayFieldAngle) and stray field amplitude (strayFieldAmplitude) determined by the detection module 70. The compensation module 71 comprises a subtraction module 710 which is designed to compute a difference between the measured angle (rawAngle) and the stray field angle (strayFieldAngle). Furthermore, the compensation module 71 comprises a SMR calculation module 711, which is configured to compute the stray field-to-main field ratio (SMR) from the stray field amplitude (strayFieldAmplitude) and the magnetic field (magnetField).
[0071] During operation the stray magnetic field generates a sine ripple onto the measured angle, wherein this ripple is periodic to the mechanical angle. As shown in
TABLE-US-00001 List of reference signs 1 magneto-resistive sensor system 2 printed circuit board 3 first magneto-resistive sensor 4 second magneto-resistive sensor 5 rotatable element 6 magnetic element 7 evaluation device 70 detection module 71 compensation module 100-109 curves representing different ratios of the magnitude of the nominal magnetic flux density 200-204 curves representing stray field disturbances 300-302 vectors 700 subtraction module 701 rotational direction detection module 702 stray field detection module 710 subtraction module 711 SMR calculation module 712 look-up-table 713 addition module