Sensor, controller and method for determining magnetic field direction
By combining the magnetoresistive sensor and the Hall sensor, the phase error of the magnetoresistive sensor is corrected, which solves the problem of insufficient measurement accuracy of the magnetic field direction and achieves high-precision measurement and long-term stability of the rotation angle.
Patent Information
- Application Number
- CN202110078365.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-21
- Filing Date
- 2021-01-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-01-20
Smart Images

Figure CN113219379B_ABST
Abstract
Description
Technical Field
[0001] Embodiments relate to sensors and controllers for determining a direction of a magnetic field. Background Art
[0002] Sensors for determining the direction of a magnetic field and their controllers are used, for example, to determine the position of a rotating shaft, at the end of which a magnet is mounted. The magnet (e.g. a bar magnet) generates a bipolar magnetic field. If the shaft is a rotating shaft, the sensor therefore uses the direction of the magnetic field to measure the position of the shaft, i.e. the current angle of rotation. This measured variable is particularly required for the shaft of an electric motor in order to control the motor. Such motors are used, for example, in electric drive systems. To measure the magnetic field, magnetoresistive sensors (XMR sensors) that generate a high-amplitude output signal are usually used. Such magnetoresistive sensors usually operate in saturation at low field strengths and their measured values are not very noisy.
[0003] As the precision of motor control increases, the requirements for the maximum permissible angular error when determining the rotation angle are becoming increasingly stringent, so that even XMR sensors calibrated during production may not always meet these requirements. During the service life of the sensor or under changing environmental conditions, the calibrated parameters of the sensor element may change significantly, so that the sensor element may no longer meet the requirements for the maximum permissible angular error during its service life. Although, for example, the arrangement of magnetoresistive sensor elements that are sensitive to mutually orthogonal components of the magnetic field can in principle track and continuously correct the amplitude changes of the two measured magnetic field components, the offset of the changes, and the deterioration of the orthogonality during operation, this is in principle impossible for the phase of the measured magnetic field direction. The phase corresponds to the reference direction, relative to which the angle is determined by means of the sensor element, so that an error in the phase inevitably leads to an incorrect measured value of the angle.
[0004] Therefore, there is a need to provide improved sensors or measurement methods for determining the direction of a magnetic field. Summary of the invention
[0005] This requirement is achieved by the technical solution according to the present invention.
[0006] An embodiment of a sensor for determining the direction of a magnetic field comprises at least one magnetoresistive sensor element for determining the direction of a magnetic field and at least one further sensor element of another type suitable for determining the direction of a magnetic field. While the direction of a magnetic field can be reliably determined with a single measurement using the magnetoresistive sensor element, the further sensor element of such a sensor can make it possible to determine a slowly varying phase error or a slowly varying reference direction of the magnetoresistive sensor element. This makes it possible to correct the direction of the magnetic field determined by means of the magnetoresistive sensor element accordingly.
[0007] An embodiment of a controller for determining the direction of a magnetic field is designed to determine a first angle indicating the direction of the magnetic field based on the measured values of the magnetoresistive sensor element. In addition, the controller is designed to correct the first angle based on the measured values of a different type of further sensor element suitable for determining the direction of the magnetic field. With the aid of such a controller, phase errors of the measured values of the magnetoresistive sensor element can be compensated, which would otherwise lead to errors in the calculated angle indicating the direction of the magnetic field during operation.
[0008] According to one embodiment of the method for determining the direction of a magnetic field, a first angle indicating the direction of the magnetic field is determined by means of at least one magnetoresistive sensor element. Furthermore, the first angle is corrected based on the measured values of a different type of further sensor element suitable for determining the direction of the magnetic field, so that a long-term stable measured value of the first angle with only a small error is obtained as a result. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Some examples of the apparatus and / or method are explained in detail below with reference to the accompanying drawings, only by way of example.
[0010] Figure 1 An embodiment of a sensor is schematically shown;
[0011] Figure 2 An exemplary embodiment of a sensor having two measuring bridges composed of magnetoresistive sensor elements and two further sensor elements is schematically shown;
[0012] Figure 3 An example of an assembly of a sensor for determining the angle of a rotating shaft is shown;
[0013] Figure 4 shows that during a complete rotation of the measured magnetic field Figure 2 Example of measured values of the two measuring bridges of the sensor in;
[0014] Figure 5 An embodiment of a controller for determining a magnetic field direction based on measurements of a sensor is schematically shown;
[0015] Figure 6 An example of the accuracy of the determination of the phase value when using one embodiment of the controller is shown;
[0016] Figure 7 A diagram showing a possible approach for correcting an angle determined by means of a magnetoresistive sensor element based on measured values of a further sensor element;
[0017] Figure 8 Shown in use Figure 7 a graphical representation of the accuracy that can be achieved with the corrections shown; and
[0018] Fig. 9 A flow chart of an embodiment of a method for determining a magnetic field direction is schematically shown. DETAILED DESCRIPTION
[0019] Various examples will now be described in more detail with reference to the accompanying drawings. However, this detailed description does not limit other examples to the detailed embodiments. Other examples may cover modifications, equivalents, and alternatives that fall within the scope of the present disclosure. The terms used herein to describe specific examples are not intended to limit other examples.
[0020] Throughout the description of the drawings, the same or similar reference numerals represent the same or similar elements that may be implemented identically or in a modified form when compared to each other, while providing the same or similar functions. In the drawings, the thickness of lines, the thickness of layers, and / or the size of regions may be exaggerated for clarity.
[0021] When two elements A and B are combined by using "or", unless otherwise explicitly or implicitly defined, it should be understood that all possible combinations are disclosed, i.e., only A, only B, and A and B. Alternative expressions for the same combination are "at least one of A and B" or "A and / or B". The same applies to combinations of more than two elements.
[0022] If a singular form, such as "a", "an", and "this", is used, and the use of only a single element is neither explicitly nor implicitly defined as mandatory, other examples may also use multiple elements to achieve the same function. When a function is described below as being achieved by using multiple elements, other examples may achieve the same function by using a single element or a single processing entity. In addition, it should be understood that the words "comprise", "include", "have" and / or "have" when used indicate the presence of specified features, integers, steps, operations, processes, elements, components and / or a group of features, integers, steps, operations, processes, elements, components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, processes, elements, components and / or a group of other features, integers, steps, operations, processes, elements, components.
[0023] Figure 1An embodiment of a sensor 100 is schematically shown. The sensor 100 has a magnetoresistive sensor element 110 for determining the direction of a magnetic field. The magnetoresistive sensor element 110 or XMR sensor element has a variable resistance which depends on the relative orientation between an external magnetic field and a preferred direction (Vorzugsrichtung) applied to the sensor element. Although the maximum resistance change may differ in absolute magnitude in different magnetoresistive sensor elements, such as AMR (anisotropic magnetoresistive effect), GMR (giant magnetoresistive) or TMR (tunnel magnetoresistive) elements, this maximum resistance change is usually large enough so that a low-noise measurement signal can be obtained. Therefore, from a single measurement signal, the relative orientation between the preferred direction of the magnetoresistive sensor element and the magnetic field direction can be determined with low statistical errors. This relative orientation is usually given as an angle.
[0024] Although the offset of the measured values and the maximum amplitude of the change over time can be corrected by a plurality of measured values, each corresponding to a different relative orientation between the magnetic field and the preferred direction of the magnetoresistive sensor element, this is not possible for a changing preferred direction. However, this may change slowly with the applied preferred direction, for example due to aging, temperature differences or other influences in the XMR sensor. The preferred direction may correspond, for example, to the direction of the fixed magnetization of one or more layers in the sensor, and a change in the preferred direction may be caused, for example, by a changing ambient temperature, which leads to an intensification of the thermal excitation of the spin direction. Due to the fact that the measured values of the magnetoresistive sensor element have a sine- or cosine-shaped curve during a complete rotation of 360° between the preferred direction and the magnetic field direction, an error in the preferred direction is also referred to as a phase error, since the phase of the sine or cosine is thereby changed. This error inevitably leads to an erroneous angle, provided that it should be referred to a fixed coordinate system as usual.
[0025] Other types of further sensor elements 120 also enable determination of the magnetic field direction, thereby providing further measurements of the relative orientation between the magnetic field and the further sensor element. As described in more detail in the following examples, the further measurements can be used to compensate for phase errors of the magnetoresistive sensor element or errors caused thereby when determining the direction or angle of the magnetic field. Other types of sensor elements may be understood to mean that the further sensor element generates measurements based on a different physical mechanism than the magnetoresistive sensor element used in the specific example.
[0026] For example, a sensor element with a measuring principle having intrinsic phase stability can be used as the further sensor element. This is possible even if the individual measured values of such a further sensor element are noisy, so that the relative orientation between the magnetic field and the further sensor element cannot be determined with the required accuracy by a single measurement.
[0027] Therefore, according to some embodiments, a Hall sensor element is used as a further sensor element, which Hall sensor element inherently has a very high phase stability. The measured values of the Hall sensor element are usually disturbed by noise, because the measurable Hall voltage is relatively low. However, the Hall effect does not depend on the relative orientation between the direction applied in the Hall sensor (no such direction exists in the Hall sensor element) and the direction of the magnetic field. Therefore, the measured values of the Hall sensor element are in principle free from the above-mentioned long-term changes (drifts) of the phase, so that due to its inherent properties, the Hall sensor element is very suitable for correcting the phase errors of the magnetoresistive sensor element.
[0028] According to some embodiments, the magnetoresistive sensor element 110 of the sensor 100 is arranged on the surface of the substrate 130. In such an arrangement, the use of a Hall sensor element can have the advantage that the Hall sensor element can be arranged in the substrate 130 itself. The Hall sensor element does not require a special doping profile or other additional process steps and can therefore be integrated into an established process for producing a sensor which, in the substrate 130, can also contain, for example, a signal processing circuit for evaluating the measured values of the magnetoresistive sensor element. Since in the Hall effect a magnetic field acts on charge carriers in the Hall sensor element, according to some embodiments, if a magnetic field direction parallel to the surface of the substrate 130 is to be determined with the help of the magnetoresistive sensor element, a further sensor element extends in the substrate in a direction perpendicular to the surface of the substrate 130. In this case, the exact position of the Hall sensor element relative to the magnetoresistive sensor element 110 can in principle be freely selected. For example, in a top view of the substrate surface, the Hall sensor element can be arranged next to or below the magnetoresistive sensor element 110.
[0029] Furthermore, using conventional semiconductor structuring processes (e.g., CMOS processes for manufacturing magnetoresistive sensor element 110 and Hall sensor element in or on substrate 130) can make the relative orientation or angular position between magnetoresistive sensor element 110 and Hall sensor element very high while adhering to high conventional process precision.
[0030] Figure 1 The schematic diagram shows the basic structure of a sensor 100 for correcting the phase of a magnetoresistive sensor element. Figures 2 to 4 An example of a practical use of the sensor is shown.
[0031] Figure 2 The sensor 200 shown in FIG. 1 has a first full bridge 210, which is composed of four magnetoresistive sensor elements 210 a to 210 d connected to one another in a bridge circuit, which determine a magnetic field component in an X direction 230. In addition, the sensor 200 has a second full bridge 220, which is composed of four magnetoresistive sensor elements 220 a to 220 d connected to one another in a bridge circuit, which determine a magnetic field component in a Y direction 240 orthogonal to the X direction. The first Hall sensor element 250 is arranged such that it is suitable for determining a magnetic field component or a magnetic field direction in the X direction. The second Hall sensor element 260 is arranged such that it is suitable for determining a magnetic field direction in the Y direction 240. For this purpose, the Hall sensor elements are connected such that their current directions are respectively perpendicular to the magnetic field components to be measured.
[0032] With the help of Figure 2 The sensor shown can measure the magnetic field direction in an XY coordinate system by evaluating the measured values of the two measuring bridges 210 and 220 as described below: Phase errors in the measured values of the magnetoresistive sensor element can be compensated by means of the measured values of the Hall sensor elements 250 and 260 .
[0033] exist Figure 4 The method for determining Figure 3 The orientation of the axis of rotation is shown for the intended measurement values of a practical application.
[0034] exist Figure 3 In the illustrated measuring assembly for determining the rotation angle of a rotating shaft 310, a magnet 320 is mounted at the axial end of the shaft 310, which generates a directional magnetic field, such as a dipole field. The direction of the magnetic field generated by the magnet 320 is determined by means of an embodiment of a sensor 330, which is located in a chip housing and is connected by means of a PCB (printed circuit board).
[0035] The sensor has Figure 2 Arrangement of magnetoresistive sensor elements and Hall sensor elements shown. By combined evaluation of the measured values provided by the first bridge circuit 210 and the second bridge circuit 220, a rotation angle is determined, which indicates the angle of the shaft 310 relative to the initially determined direction. Figure 4 Examples of ideal measured values without errors and measured values with errors are shown in FIG.
[0036] exist Figure 4In the left graph 410 of FIG. 3 , the rotation angle of the shaft 310 is plotted on the x-axis 412, and the measured values 420, 422 of the first bridge circuit 210 measuring the X component of the magnetic field are plotted on the Y-axis 414. In addition, the measured values 430 and 432 of the second bridge circuit 220 measuring the Y component of the magnetic field are shown. Here, the curves 422 and 432 respectively show ideal measured values without errors, and the curves 420 and 430 show measured values with errors, and the measured values with errors have amplitude errors, offsets, and phase errors, respectively.
[0037] Since the measured values of the two bridge circuits represent the X-component and the Y-component of the magnetic field, the magnetic field direction can be determined by combining the two measured values. In the case of appropriate normalization of the measured values, an ideal angle circle (Winkelkreis) 470 shown in the right diagram 450 is obtained as long as the measured values are error-free. In the diagram 450, the normalized measured values of the X-component of the magnetic field are plotted on the X-axis 452, and the normalized measured values of the Y-component of the magnetic field are plotted on the Y-axis 454. The right diagram 450 illustrates how the position on the angle circle can be clearly determined by combining the measured values, which position in turn defines the first angle 480 determined by means of the magnetoresistive sensor element. In the actual case with errors, which is represented by the deformed elliptical angle circle 460, errors in the angle determination result, which can result in the required accuracy of the angle determination not being achieved.
[0038] Although amplitude errors and offsets of measurement values 420 and 430 can be compensated for by evaluating multiple measurement values during a complete rotation in measurement values 420 and 430 and, furthermore, a relative phase shift between measurement values 420 and 430 can be identified, an absolute phase error of the measurement values cannot be determined based on the measurement values of the magnetoresistive sensor element itself.
[0039] Embodiments may enable determination of an absolute phase error of the measured values by using further sensor elements, by means of which the direction of the magnetic field can be determined. Although Hall sensors are used for this in the specifically described embodiments, any other type of sensor element that can determine the direction of a magnetic field may also be used.
[0040] The correction of the first angle 480 can be performed, for example, in the controller 500 to determine the direction of the magnetic field. Figure 5. The controller 500 evaluates the measured values of at least one magnetoresistive sensor element 110 and the measured values of at least one further sensor element 120. This method for determining the direction of a magnetic field can be executed on a controller or on hardware located inside the sensor housing or on other computing units located outside the sensor housing. An example of this is an electronic controller for driving an electric motor, which usually has a higher computing performance than the electronic components in the sensor, which usually only serve to determine the angle 480 from the measured voltage or measured value by simple mathematical operations and output it as a measured value.
[0041] like Figure 4 As shown, the angle 480 is determined by combining the measured value Y of the Y component 430 (also called the sine component) and the measured value X of the X component 420 (also called the cosine component) with the aid of the inverse tangent function.
[0042]
[0043] In some applications an implementation of the inverse tangent function is used that extends the domain of the function from + / -90 to + / -180.
[0044]
[0045] The actual system has Figure 4 As shown in the signal amplitude A, phase and the error in offset O, so the actual measured value results are as follows:
[0046]
[0047]
[0048] These can be aided by Figure 5 The exemplary embodiments of control unit 500 schematically shown in FIG. 5 or of the method used therein are corrected in different ways with the aid of measured values of further sensor elements.
[0049] for Figure 2 The arrangement using the Hall sensor element as the additional sensor element is shown in the following. The following will describe how to perform the first angle 480 in the controller 500. Various methods of correction.
[0050] Although the measured values of the Hall sensor may have relatively large offsets and small signal amplitudes, the Hall sensor is phase accurate due to the measuring principle. Just for the sake of completeness, it should also be noted that as long as the Hall sensor element has a phase drift (phase change over a long time scale) caused by the voltage in the Hall sensor element substrate, this phase drift will appear equivalently in the X-direction and the Y-direction in the shown arrangement, so that this phase drift can be achieved through the two phase and The combination is corrected as follows:
[0051]
[0052] Since this influence, which is correctable in principle, is irrelevant for the understanding of the correction of first angle 480 , the following is based on measured values of the Hall sensor element without such a phase shift.
[0053] A first possible approach to correcting the first angle 480, i.e. the direction of the magnetic field determined by means of the magnetoresistive sensor element, is to first determine a phase value from the measured values of the Hall sensor element, which phase value defines the rotation of the axis 310 relative to the specified coordinate system, and to use this phase value as a basis for correcting the first angle 480. According to this method for correcting the first angle 480, a phase value is therefore first determined in order to correct the first angle 480 based on the measured values of the further sensor element or the Hall sensor element.
[0054] One possible approach to determining the phase value based on the measured values of the Hall sensor element is to determine an absolute phase value for the X component and the Y component in the following manner based on a plurality of measured values recorded at constant angle increments during a complete rotation of the shaft 310 by means of a discrete Fourier transform (DFT) or a fast Fourier transform (FFT), and then use the absolute phase value to correct the phase of the measured values of the electrically limited sensor element. The absolute phase value is determined as follows:
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061] The recording of measured values in constant angular increments can be performed, for example, during a calibration process, in which the shaft 310 or a motor connected to the shaft 310 is rotated in a controlled manner. In this case, the recording of the measured values of the Hall sensor element can be triggered, for example, by the control of the motor or by an external sensor, which determines the position of the shaft 310 and triggers the determination of measured values by the Hall sensor (further sensor element) when an angular increment is reached.
[0062] Another possibility for obtaining such a measured value is to use the angle determined by means of the magnetoresistive sensor during operation to trigger the determination of a measured value by means of a further sensor element at each angle increment. Thus, in these embodiments, the controller 500 can be designed to trigger the determination of a measured value by means of a further sensor element when the first angle satisfies a predetermined rule, i.e., for example, when the first angle reaches a further angle increment.
[0063] Another possibility for obtaining equidistant measured values is to interpolate the temporally consecutive measured values of the Hall sensor, so that although these measured values can be recorded equidistantly in time, after the interpolation the measured values corresponding to the constant angle increment can be used as input variables for the Fourier transformation. Thus, according to such an embodiment, the controller can be designed to interpolate the temporally consecutive measured values of the further sensor elements.
[0064] Since the Hall sensor element provides measured values with low amplitude, the measured values of the Hall sensor element may be relatively noisy. In order to improve the accuracy of the determination of the phase value of the further sensor element, according to some embodiments, a plurality of measured values of the further sensor element may be combined in order to obtain a phase value with higher accuracy. As a possible combination, the measured values recorded separately for the angle increments may be weighted added, for example, for a plurality of complete rotations, or may be averaged.
[0065] Alternatively, a phase value can be determined for each complete rotation, and the individual phase values can be combined to obtain a phase value with higher accuracy. One possible solution for combining the phase values can be averaging, and another possible solution is to use a low-pass filter. For example, the following low-pass filter can be used:
[0066] X n (t) = 0.99*X n (t-1)+0.01*X ADC,n (t)
[0067] Of course, any other possible filters or combinations for the individual phase values may also be used to reduce the statistical error.
[0068] exist Figure 6 The result of filtering the phase values determined for consecutive complete rotations in each case by means of the above-mentioned filter is shown in FIG. Figure 6 The upper graph 610 and the lower graph 650 of illustrative embodiments show on the x-axis 612 , 616 , 652 , and 656 , respectively, the number of complete rotations considered in order to determine the filtered phase value from the measured values of the Hall sensor element.
[0069] exist Figure 6 In the case of the upper diagram 610, 32 measurements are recorded for each full rotation, and in the case of the lower diagram 650, only 8 measurements are recorded. The phase values obtained for each individual rotation are shown in the form of curves 616 and 656, and the filtered phase values (i.e., the phase values obtained from a combination of multiple measurements or phase values) are represented by curves 614 and 654. Figure 6 The corresponding right graph in shows the residual phase error of the filtered phase values 614 and 654.
[0070] As can be seen from the figure, with 32 measurements per revolution, a very high accuracy can be achieved with a residual error of less than 0.02°, and even with only eight measurements per full rotation the error is still less than 0.04°.
[0071] For example, in other embodiments the low-pass characteristics of the filter may be adjusted to achieve faster stabilization of the filtered phase.
[0072] According to other embodiments, another possible solution for correcting first angle 480 is to first directly determine a second angle (A-VHALL) for each measured value of the Hall sensor element and use the second angle to correct first angle 480 (also referred to as A-XMR below).
[0073] Figure 7 Another possible solution is shown, and the actual rotation angle of the shaft 310 is shown on the X-axis 704 and the angle value determined by the magnetoresistive sensor element and the angle value determined by the Hall sensor element are shown on the Y-axis 704. The first curve 710 shows the angle obtained by the measurement value of the magnetoresistive sensor element, and the second curve 720 shows the angle obtained by the measurement value of the Hall sensor element, which has a high individual error due to the noise of the measurement signal. The third curve 730 shows the difference between the angles of the magnetoresistive sensor element 710 and the Hall sensor element 720. This difference has an error like the angle of the Hall sensor element 730. Therefore, according to this embodiment, the controller 500 is designed to: in order to correct the first angle A-XMR, first determine the second angle A-VHALL based on the measurement value of the other sensor element, and find the difference between the first angle A-XMR and the second angle A-VHALL determined at the same time point.
[0074] According to some embodiments, the difference (curve 730) between a plurality of continuously measured first angles A-XMR (curve 710) and second angles A-VHALL (curve 720) is combined. According to some embodiments, the combination may be performed, for example, by averaging or by using a low-pass filter with suitable filter characteristics in a manner similar to that discussed above. Here, the combination may involve the difference of a single complete rotation or the difference of a plurality of continuous rotations. If the number of differences between the first angle A-XMR and the second angle A-VHALL to be combined is selected to be large enough and suitable for the problem, the combined angle difference converges to a value that reflects the actual phase difference with high precision. Therefore, according to this embodiment, the controller 500 is designed to appropriately combine a plurality of differences between the first angle A-XMR and the second angle A-VHALL determined for consecutive time points to correct the first angle A-XMR.
[0075] Then, in Figure 8 The combined values of the angular differences plotted in φ for a plurality of consecutive complete rotations can be used to correct each individual angle determination performed by means of the magnetoresistive sensor in order to correct its phase error. Figure 8 The number of consecutive full rotations is shown on the X-axis 810 and the average value of the difference between the first angle A-XMR and the second angle A-VHALL is shown on the Y-axis 820, which converges to a constant value as the number of differences averaged (given in full rotations) increases. Figure 7 and Figure 8 In the test arrangement of , a Hall sensor element with a high amplitude error is assumed to be used, the standard deviation of which is 10% of the amplitude, and an offset error of 10% is also assumed for this Hall sensor element. Even for such high errors, the phase difference can be determined with high accuracy if the number of averaged angular differences is high enough, in the specific example for example for 100 complete rotations the phase difference can be determined with a standard deviation of less than 0.1 revolution.
[0076] Fig. 9 A flow chart of an exemplary embodiment of a method 900 for determining a magnetic field direction is again schematically shown.
[0077] The method comprises determining 910 a first angle indicating a magnetic field direction by means of at least one magnetoresistive sensor element. Furthermore, the method comprises correcting 920 the first angle based on measured values of further sensor elements of other types suitable for determining a magnetic field direction.
[0078] Embodiments of method 900 can be performed on any programmable hardware component, independent of whether the hardware component is located in a common chip or housing with the sensor. For example, the method can be performed with the aid of a dedicated circuit located in the sensor substrate. According to other embodiments, the method can also be performed on a controller or ECU (electronic control unit) located outside the sensor housing, such as in an ECU of a motor vehicle.
[0079] Even if in the previous embodiments it was assumed that the magnetoresistive sensor element and the other sensor elements are located within one chip or even on the same substrate, other embodiments of the controller or the method for determining the direction of a magnetic field can likewise use sensor elements arranged on different substrates or even in different chips, provided that their relative arrangement with respect to each other is known or calibrable.
[0080] Although in the preceding paragraphs, sensors having at least one other type of sensor element that can measure a magnetic field in addition to a magnetoresistive sensor element, by means of which a phase error in an angle measurement can be calibrated, have been mainly discussed, such sensors can also be used in other advantageous ways. For example, the redundant information of the additional sensor element can be used additionally or alternatively to check the functionality of the magnetoresistive sensor element in the sense of "functional safety". If it can be verified with the aid of the additional sensor element that the expected measurement result of the magnetoresistive sensor element has a strong deviation, the test can, for example, generate an error signal. Other error states of the measuring assembly that cannot be detected with the aid of the magnetoresistive sensor element can also be detected with the aid of the measured values of the Hall sensor element. It is operated, for example, in a saturated state, so that changes in the magnetic field strength that may have different causes cannot be verified with the aid of the measured values of the magnetoresistive sensor element. However, this can be detected with the aid of the measured values of the Hall sensor element in order to infer from this, for example, that the magnet 320 has moved relative to the shaft 310, for example, in the axial direction. The prerequisite for this is necessarily a disturbance of the geometric structure and the resulting deterioration of the measurement result, but only a single magnetoresistive sensor element is not sensitive enough for this.
[0081] with one or more of the previously detailed examples and appendices Figure 1 The aspects and features described above may also be combined with one or more other examples in order to replace the same or similar features of the other examples or to introduce the features into the other examples.
[0082] In addition, the example may be or relate to a computer program with a program code, which is used to perform one or more of the above methods when the computer program is run on a computer or processor. The steps, operations or processes of the various methods described above can be performed by a programmed computer or processor. The example may also cover a program storage device, such as a digital data storage medium, which is machine-readable, processor-readable or computer-readable, and encodes a machine-executable, processor-executable or computer-executable instruction program. The instructions will perform some or all of the steps in the above method or cause them to be performed. The program storage device may be or include, for example, a digital memory, a magnetic storage medium (such as a disk and a tape), a hard drive or an optically readable digital data storage medium. Other examples may also cover a computer, a processor or a control unit programmed to perform the steps of the above method, or a (field) programmable logic array ((F)PLA=(Field)Programmable Logic Array) or a (field) programmable gate array ((F)PGA=(Field)Programmable Gate Array) programmed to perform the steps of the above method.
[0083] It should be understood that, unless otherwise explicitly or implicitly indicated for example for technical reasons, the disclosure of multiple steps, processes, operations or functions disclosed in the specification or claims should not be interpreted as being arranged in a specific order. Therefore, it will not be limited to a specific order by the disclosure of multiple steps or functions, unless these steps or functions are not interchangeable for technical reasons. In addition, in some examples, a single step, function, process or operation may include and / or be decomposed into multiple sub-steps, sub-functions, sub-processes or sub-operations. Unless such sub-steps are explicitly excluded, such sub-steps may be included and are part of the disclosure of the single step.
[0084] The claims are hereby incorporated into the Detailed Description, where each claim may represent its own separate example. Although each claim may stand alone as an independent example, it should be noted that - while one dependent claim in the claims may refer to a specific combination with one or more other claims - other examples may also include combinations of the dependent claim with the subject matter of any other dependent claim or independent claim. Unless it is stated that a particular combination is not intended, such a combination is expressly suggested herein. In addition, even if a claim is not directly dependent on any other independent claim, features of the claim may still be incorporated into any other independent claim.
Claims
1. A sensor (100; 200) for determining the direction of a magnetic field, include: at least one magnetoresistive sensor element (110; 210, 220) for determining the direction of the magnetic field; as well as at least one further sensor element (120; 250, 260), the at least one further sensor element being a sensor element of another type suitable for determining the direction of the magnetic field, wherein the at least one further sensor element is configured to determine a phase value defining a rotation angle associated with the magnetic field relative to a specified coordinate system, The phase value is used as a reference for correcting the direction of the magnetic field.
2. The sensor (100; 200) according to claim 1, wherein the magnetoresistive sensor element (110; 210, 220) is arranged on a surface of a substrate; and The further sensor element (120; 250, 260) is arranged in (next to, below) the substrate.
3. The sensor (100; 200) according to claim 2, wherein the further sensor element (120; 250, 260) extends within the substrate perpendicular to the surface of the substrate.
4. The sensor (100; 200) according to any one of claims 1 to 3, wherein the further sensor element (120; 250, 260) is a Hall sensor element.
5. A controller (500) for determining a magnetic field direction, designed to: determining a first angle (180) indicative of the direction of the magnetic field based on the measured values of the magnetoresistive sensor element (110; 210, 220); and correcting the first angle (180) based on measured values of a different type of further sensor element (120; 250, 260) suitable for determining the direction of the magnetic field, The first angle is corrected include: determining a phase value based on the measurement values from the further sensor element, the phase value defining a rotation angle associated with the magnetic field relative to a specified coordinate system; and By using the phase value as a reference, the first angle is corrected.
6. The controller (500) according to claim 5 is further designed to: in order to correct the first angle (180), perform Fourier transform on multiple measurement values of the additional sensor elements (120; 250, 260) to obtain phase values (614, 616, 654, 656) of the additional sensor elements (120; 250, 260).
7. The controller (500) according to any one of claims 5 or 6 is further designed to interpolate temporally consecutive measured values of the further sensor elements (120; 250, 260).
8. The controller (500) according to claim 5 or 6, wherein the controller is designed to trigger the determination of a measurement value by means of the further sensor element (120; 250, 260) when the first angle (180) meets a predetermined rule.
9. The controller (500) according to claim 5, further being designed to determine a second angle (720) based on the measurement value of the further sensor element (120; 250, 260) to correct the first angle (180; 710).
10. The controller (500) according to claim 9, being designed to combine a plurality of measured values of the further sensor elements (120; 250, 260) to determine the second angle (720).
11. The controller (500) according to claim 9 or 10, being designed to calculate a difference between a first angle (180; 710) and a second angle (720) determined for the same time point to correct the first angle (180, 710).
12. The controller (500) according to claim 11 is designed to combine a plurality of differences (730) between a first angle (180; 710) and a second angle (720) determined for consecutive time points to correct the first angle (180; 710).
13. An angle sensor for determining the direction of a magnetic field, include: A sensor (100; 200) for determining the direction of the magnetic field according to any one of claims 1 to 4; as well as A controller (500) according to any one of claims 5 to 12, the controller being coupled to the magnetoresistive sensor element (110; 210, 220) and the further sensor element (120; 250, 260) of the sensor (100; 200).
14. The angle sensor according to claim 13, further comprising: include: The measurement signal output terminal is designed to output an output signal, wherein the output signal indicates the corrected first angle of the magnetic field.
15. A method (900) for determining a magnetic field direction, include: Determining (910) a first angle indicative of the direction of the magnetic field by means of a measurement value of at least one magnetoresistive sensor element; as well as correcting the first angle based on measurement values of a further sensor element of a different type suitable for determining the direction of the magnetic field (920), Wherein correcting the first angle comprises: determining a phase value based on the measurement values from the further sensor element, the phase value defining a rotation angle associated with the magnetic field relative to a specified coordinate system; and By using the phase value as a reference, the first angle is corrected.
16. The method (900) of claim 15, further comprising: include: A plurality of measured values of the further sensor element is Fourier transformed to obtain phase values of the further sensor element.
17. The method (900) according to claim 15 or 16, further comprising: include: Temporally consecutive measured values of the further sensor element are interpolated.
18. The method (900) according to claim 15 or 16, further comprising: include: A second angle is determined based on the measured values of the further sensor element in order to correct the first angle.
19. The method (900) of claim 18, wherein the correction of the first angle further comprises: include: The difference between the first angle and the second angle determined for the same point in time is determined.
20. A computer program product having a program code which, when executed on a programmable hardware component, causes the execution of the method (900) according to any one of claims 15 to 19.
