Magnetic position sensor system, method and apparatus with error detection
Through the multi-sensor system, the error of the magnetic position sensor equipment is detected, and the problem of insufficient error detection capability in the prior art is solved, and high-precision position measurement and error correction are achieved under the external interference field.
Patent Information
- Application Number
- CN202410984761.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-05-27
- Filing Date
- 2022-05-23
- Publication Date
- 2024-11-05
AI Technical Summary
The existing magnetic position sensor systems lack error detection capabilities, making it difficult to accurately determine the position of the sensor device relative to the magnet or magnetic structure in the presence of an external interference field, and it is difficult to detect and correct sensor or transducer-related errors.
Using a multi-sensor system, by measuring multiple magnetic field components and calculating the difference value and signal ratio, the angle of the sensor device is determined, and errors are detected by comparing angles, diagnostic signals are provided to correct errors, and the system's anti-interference ability is improved.
It realizes accurate detection of position errors of sensor equipment in the presence of external interference fields, improves the system's robustness and error correction capabilities, and enhances resistance to external interference fields.
Smart Images

Figure CN118896540A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number 202210565964.5, entitled “Magnetic position sensor system, method and device with error detection”, filed on May 23, 2022. Technical Field
[0002] The present invention relates generally to the field of magnetic position sensor systems, devices and methods, and more particularly to linear and / or angular magnetic position sensor systems and devices with error detection capabilities and methods of determining linear position or angular position and detecting whether an error has occurred. Background Art
[0003] Magnetic sensor systems, in particular linear position or angular position sensor systems are known in the art. They offer the advantage of being able to measure linear or angular position without physical contact, thus avoiding mechanical wear, scratching, friction and other issues.
[0004] There are many variations of position sensor systems that address one or more of the following requirements: using simple or inexpensive magnetic structures, using simple or inexpensive sensor equipment, being able to measure over a relatively large range, being able to measure with high accuracy, requiring only simple arithmetic, being able to measure at high speed, being highly robust to positioning errors, being highly robust to external interference fields, providing redundancy, being able to detect errors, being able to detect and correct errors, having a good signal-to-noise ratio (SNR), etc.
[0005] Often, two or more of these requirements conflict with each other, so trade-offs need to be made.
[0006] EP3783316 (A1) discloses a magnetic position sensor system comprising a magnet or a magnetic structure and a sensor device mounted movably relative to the magnet or magnetic structure. However, the system described in this document does not have error detection capabilities.
[0007] There is always room for improvement or substitution. Summary of the invention
[0008] It is an object of embodiments of the present invention to provide a magnetic position sensor system that is able to determine the position of a sensor device relative to a magnet or magnetic structure and to detect errors (eg errors associated with a defective sensor or transducer).
[0009] It is also an object of embodiments of the present invention to provide a sensor device specifically adapted for use in such systems.
[0010] It is also an object of embodiments of the present invention to provide methods of determining the position of a sensor device relative to a magnet or magnetic structure and to provide additional information indicative of an error and / or to allow another processor connected to the sensor device to detect an error.
[0011] It is an object of embodiments of the present invention to provide such a system, device and method, in which the position is determined in a manner that is highly insensitive to external interfering fields (also called "stray fields").
[0012] These objects are achieved by embodiments of the present invention.
[0013] According to a first aspect, the present invention provides a position sensor device, comprising: a first sensor, the first sensor being configured to determine a first magnetic field component (e.g., Bx1) and a second magnetic field component (e.g., By1 or Bz1) at a first sensor position, the first magnetic field component being oriented in a first direction (e.g., X), and the second magnetic field component being oriented in a second direction (e.g., Y or Z) perpendicular to the first direction; and a second sensor, the second sensor being configured to determine a third magnetic field component (e.g., Bx2) and a fourth magnetic field component (e.g., By2 or Bz2) at a second sensor position spaced apart from the first sensor position, the third magnetic field component being oriented in the first direction, and the fourth magnetic field component being oriented in the second direction; a processing unit, the processing unit being connected to the first sensor and the second sensor, and being configured to determine a first difference (e.g., ΔBx) between the first magnetic field component and the third magnetic field component, and to determine a second difference (e.g., ΔBy or ΔBz) between the second magnetic field component and the fourth magnetic field component, and to determine a first angle (e.g., θ1) based on a ratio of the first difference and the second difference, and to output the first angle; wherein the processing unit is further configured to perform one of the following operations:
[0014] i) determining a first sum (e.g., ∑Bx) of the first magnetic field component and the third magnetic field component, and determining a second sum (e.g., ∑By or ∑Bz) of the second magnetic field component and the fourth magnetic field component, and outputting the first sum and the second sum to allow an external processor to determine a second angle (e.g., θ2) and compare the first angle and the second angle to detect an error; ii) determining a first sum (e.g., ∑Bx) of the first magnetic field component and the third magnetic field component, and determining a second sum (e.g., ∑By or ∑Bz) of the second magnetic field component and the fourth magnetic field component, and determining a second angle (e.g., θ2) based on a ratio of the first sum and the second sum, and outputting the second angle to allow an external processor to compare the first angle and the second angle to detect an error; iii) determining a first sum (e.g., ∑Bx) of the first magnetic field component and the third magnetic field component, and determining a second sum (e.g., ∑By or ∑Bz) of the second magnetic field component and the fourth magnetic field component, and determining a second angle (e.g., θ2) based on a ratio of the first sum and the second sum, and comparing the first angle and the second angle, and outputting a diagnostic signal based on a result of the comparison.
[0015] An advantage is that calculating the first angle (also referred to herein as the "main angle") based on the ratio of the two difference signals (or gradients) is highly robust to external interfering fields (also referred to as "stray fields").
[0016] The advantage of this sensor system is that the second angle is calculated based on the ratio of the two sum signals, since the comparison of the first angle and the second angle allows detection of errors, such as a defect in one of the sensor elements. The inventors surprisingly found that such a comparison is very feasible even in the presence of external interference fields.
[0017] In an embodiment, the first sensor includes a first integrated magnetic concentrator and first and second horizontal Hall elements arranged on opposite sides of the first IMC; and the second sensor includes a second integrated magnetic concentrator and third and fourth horizontal Hall elements arranged on opposite sides of the second IMC.
[0018] Examples of such position sensor devices are Figure 3 Part (c) of Figure 3 Part (d) of Figure 4 Part (c) of Figure 5 Part (d) of Figure 5 The first sensor and the second sensor may be spaced 1.0 mm to 3.0 mm apart.
[0019] In some of these embodiments, the position sensor device includes two IMCs, each IMC has only two horizontal Hall elements, and thus has only four horizontal Hall elements in total, such as Figure 3 Part (c) and Figure 5 The advantage of these embodiments is that the diagnostic function is provided without increasing the number of sensor elements.
[0020] In an embodiment, the first sensor further includes a fifth horizontal Hall element and a sixth horizontal Hall element, which are spaced 90° apart from the first horizontal Hall element and the second horizontal Hall element; and the second sensor further includes a seventh horizontal Hall element and an eighth horizontal Hall element, which are spaced 90° apart from the third horizontal Hall element and the fourth horizontal Hall element.
[0021] Examples of such position sensor devices are Figure 3 Part (d) of Figure 4 Part (c) of Figure 5 It is shown in part (e).
[0022] In an embodiment, the second magnetic field component (By1) and the fourth magnetic field component (By2) are oriented in the Y direction, parallel to the semiconductor substrate, for example Figure 4 As shown in part (c) of .
[0023] In an embodiment, the second magnetic field component (Bz1) and the fourth magnetic field component (Bz2) are oriented in the Z direction, perpendicular to the semiconductor substrate, e.g. Figure 3 Part (d) and Figure 5 It can be based on the signal obtained from the Hall element not located on the X-axis, that is, based on Figure 3 Part (d) and Figure 5 The signals h3, h4, h7, h8 of part (e) are used to determine the second magnetic field component and the fourth magnetic field component.
[0024] In an embodiment, the first sensor includes a first horizontal Hall element and a first vertical Hall element; and the second sensor includes a second horizontal Hall element and a second vertical Hall element.
[0025] Examples of such position sensor devices are Figure 3 Part (e) and Figure 5 Preferably, in this case, the position sensor device does not include an integrated magnetic concentrator. An advantage of these embodiments is that diagnostic functionality is provided without increasing the number of sensor elements. The vertical Hall element may have a maximum sensitivity direction oriented in the first direction (X).
[0026] In an embodiment, the first sensor includes a first vertical Hall element and a second vertical Hall element; and the second sensor includes a third vertical Hall element and a fourth vertical Hall element.
[0027] Examples of such position sensor devices are Figure 4 Preferably, in this case, the position sensor device does not comprise an integrated magnetic concentrator. An advantage of these embodiments is that diagnostic functionality is provided without increasing the number of sensor elements.
[0028] According to a second aspect, the invention also provides a magnetic position sensor system comprising: a magnetic source for generating a magnetic field having at least two poles; and a position sensor device according to the first aspect, movable relative to the magnetic source or vice versa.
[0029] In an embodiment, the magnetic source is a permanent magnet, rotatable about the rotation axis; and the position sensor device is mounted at a non-zero radial distance and oriented such that the first direction is tangential to an imaginary circle having a center on the rotation axis.
[0030] Such position sensor systems are often referred to as "angular position sensor systems".
[0031] The magnet may be an axially or diametrically or radially magnetized ring magnet or disk magnet, more specifically an axially or diametrically two-pole ring magnet or disk magnet, or an axially or radially magnetized ring magnet or disk magnet having more than two poles, for example at least four poles or at least six poles, or at least eight poles.
[0032] In an embodiment, the magnetic source is an elongated structure comprising a plurality of alternating magnetic poles extending in a longitudinal direction; and the position sensor device is movable in the longitudinal direction at a non-zero distance from the magnetic source.
[0033] Preferably, the distance is substantially constant.Preferably, the sensor device is oriented with its first direction (X) parallel to the longitudinal direction of the magnetic source.
[0034] Such position sensor systems are often referred to as “linear position sensor systems.” Preferably, in this case, the position sensor device is further configured for converting at least the first angle θ1 into a first linear position in a manner known in the art.
[0035] In an embodiment, the magnetic position sensor system further includes a second processor (e.g., an ECU) that is communicatively connected to the position sensor device and is configured to perform one of the following operations: i) receiving the first angle, the first sum, and the second sum, and determining the second angle based on a ratio of the first sum to the second sum, and comparing the first angle and the second angle to detect an error; ii) receiving the first angle and the second angle, and comparing the first angle and the second angle to detect an error; iii) receiving the first angle and a diagnostic signal indicating an error.
[0036] In this embodiment, the first processor and the second processor can cooperate to detect whether an error has occurred, and / or take appropriate actions at the system level. By executing certain functions on two different processors, the probability of detecting an error can be further increased.
[0037] According to a third aspect, the present invention also provides a method for determining the position of a position sensor device relative to a magnetic source, comprising the following steps: a) determining a first magnetic field component and a second magnetic field component at a first sensor position, the first magnetic field component being oriented in a first direction, and the second magnetic field component being oriented in a second direction perpendicular to the first direction; b) determining a third magnetic field component and a fourth magnetic field component at a second sensor position spaced apart from the first sensor position, the third magnetic field component being oriented in the first direction, and the fourth magnetic field component being oriented in the second direction; c) determining a first difference between the first magnetic field component and the third magnetic field component, and determining a second difference between the second magnetic field component and the fourth magnetic field component, and determining a first angle based on the ratio of the first difference and the second difference, and outputting the first angle; d) determining a first sum of the first magnetic field component and the third magnetic field component, and determining a second sum of the second magnetic field component and the fourth magnetic field component, and optionally outputting or transmitting the first sum and the second sum to a second processor; e) determining a second angle based on the ratio of the first sum and the second sum, and optionally outputting or transmitting the second angle; f) comparing the first angle and the second angle, and optionally outputting a diagnostic signal based on the result of the comparison.
[0038] These steps are performed by the angular position sensor system, and some or all of these steps may be performed by a processing unit within the position sensor device. More specifically, steps e) and f) may be performed by a second processor that is communicatively connected to the position sensor device itself, but physically located outside the position sensor device itself.
[0039] In an embodiment, the system further includes a second processor connected to the position sensor device, and the method further includes the following steps: receiving the first angle by the second processor; and performing one of the following operations: i) receiving the first angle and receiving the first sum and the second sum, and determining the second angle based on the ratio of the first sum and the second sum, and comparing the first angle and the second angle to detect an error; ii) receiving the first angle and receiving the second angle, and comparing the first angle and the second angle to detect an error; iii) receiving the first angle and receiving a diagnostic signal indicating an error.
[0040] As mentioned in the claims, these steps may be performed by a second processor, such as an ECU external to the magnetic sensor device.
[0041] In an embodiment, the step of comparing the first angle and the second angle comprises testing whether a difference between the first angle and the second angle is a value within a predefined range.
[0042] The predefined range may be a range of [90°±ε], or a range of [-90°±ε].
[0043] The value of ε may be chosen depending on the maximum allowed external magnetic field, but typical values are less than 10°, or less than 5°, or less than 2.0°, or less than 1.0°, or less than 0.5°.
[0044] Particular and preferred aspects of the invention are set out in the accompanying independent and dependent claims. Features from the dependent claims may be combined with features of the independent claims and with features of other dependent claims as appropriate and not just as explicitly set out in a claim.
[0045] These and other aspects of the invention will be apparent from and elucidated with reference to the embodiment(s) described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a schematic block diagram of a sensor structure that can be used in embodiments of the present invention. The sensor structure includes a first sensor located at a first position X1 along the X-axis and a second sensor located at a second position X2 along the X-axis, each sensor including an integrated magnetic concentrator (IMC) and a pair of two horizontal Hall elements arranged on opposite sides of the IMC.
[0047] Figure 2 As Figure 1 Schematic block diagram of a variant sensor structure.
[0048] Figure 3 Part (a) and Figure 3 Part (b) shows a first example of the angular magnetic position sensor system proposed by the present invention in a front view and a top view, respectively. Figure 3 Part (c) to Figure 3 Part (e) is available in Figure 3 Part (b) is a schematic block diagram of the sensor structure used in the sensor device. Figure 3 Part (f) shows Figure 3 Part (b) is a table of formulas that can be used by the sensor device.
[0049] Figure 4 Part (a) and Figure 4 Part (b) shows a second example of the angular magnetic position sensor system proposed by the present invention in a front view and a top view respectively. Figure 4 Part (c) and Figure 4 Part (d) is available in Figure 4Part (b) is a schematic block diagram of the sensor structure used in the sensor device. Figure 4 Part (e) shows Figure 4 Part (b) is a table of formulas that can be used by the sensor device.
[0050] Figure 5 (a) to Figure 5 Part (c) shows a third example of the angular magnetic position sensor system proposed by the present invention in front view, top view and side view respectively. Figure 5 Part (d) to Figure 5 Part (f) is available in Figure 5 Part (b) is a schematic block diagram of the sensor structure used in the sensor device.
[0051] Figure 5 Part (g) shows Figure 5 Part (b) is a table of formulas that can be used by the sensor device.
[0052] Figure 6 FIG. 1 is a flow chart showing a method for determining two angles and generating a diagnostic signal according to the present invention. Figure 3 Part (b) to Figure 5 Some or all of the steps may be performed by the position sensor device shown in part (b); alternatively, some of the steps may be performed by a second processor connected to the position sensor device.
[0053] Figures 7 to 9 Shows Figure 6 A specific example of a method is shown, which illustrates steps that may be performed by a position sensor device of a position sensor system according to the present invention.
[0054] Figures 10 to 12 An electrical block diagram of a circuit that may be used in the position sensor apparatus described above is shown.
[0055] Figure 13(a) to Figure 13(c) Several circuit topologies are shown which may be used to read out and optionally process the signals provided by two sets of magnetic sensor elements, as may be used in embodiments of the present invention.
[0056] The drawings are schematic and non-limiting. In the drawings, for illustrative purposes, the size of some of the elements may be exaggerated and not drawn to scale. Any reference numerals in the claims should not be interpreted as limiting the scope. In different drawings, the same reference numerals refer to the same or similar elements. DETAILED DESCRIPTION
[0057] The present invention will be described with respect to particular embodiments and with reference to certain drawings but the invention is not limited thereto but only by the claims.
[0058] The terms first, second, etc. in the specification and in the claims are used to distinguish between similar elements and not necessarily to describe a sequence in time, space, level, or in any other manner. It should be understood that the terms so used are interchangeable where appropriate, and that the embodiments of the invention described herein are capable of operating in a different sequence than described or illustrated herein.
[0059] Furthermore, the terms top, bottom, etc. in the specification and claims are used for descriptive purposes and not necessarily for describing relative positions. It is to be understood that the terms so used are interchangeable under appropriate circumstances, and that the embodiments of the invention described herein are capable of operation in orientations other than those described or illustrated herein.
[0060] It is to be noted that the term "comprising" used in the claims should not be interpreted as being limited to the means listed thereafter; it does not exclude other elements or steps. Therefore, the term should be interpreted as specifying the presence of the stated features, integers, steps or components as mentioned, but does not exclude the presence or addition of one or more other features, integers, steps or components, or groups thereof. Therefore, the scope of the expression "a device comprising means A and B" should not be limited to devices consisting only of components A and B. It means that for the present invention, the only relevant components of the device are A and B.
[0061] References throughout this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification do not necessarily all refer to the same embodiment, but may refer to the same embodiment. Furthermore, in one or more embodiments, as will be apparent to one of ordinary skill in the art from this disclosure, the particular features, structures, or characteristics may be combined in any suitable manner.
[0062] Similarly, it should be understood that in the description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and assisting in understanding one or more of the various inventive aspects. However, this disclosure method should not be interpreted as reflecting an intention that the claimed invention requires more features than those expressly recited in each claim. On the contrary, as reflected in the appended claims, inventive aspects reside in fewer features than all of the features of a single preceding disclosed embodiment. Therefore, the claims appended after the detailed description are hereby expressly incorporated into this detailed description, with each claim itself representing a separate embodiment of the present invention.
[0063] In addition, although some embodiments described herein include some features included in other embodiments but do not include other features included in other embodiments, as will be understood by those skilled in the art, the combination of features of different embodiments is intended to fall within the scope of the present invention and form different embodiments. For example, in the appended claims, any of the claimed embodiments can be used in any combination.
[0064] In the description provided herein, numerous specific details are set forth. However, it should be understood that embodiments of the present invention may be practiced without these specific details. In other examples, well-known methods, structures, and techniques are not shown in detail to avoid confusing the understanding of this description.
[0065] In this document, unless explicitly mentioned otherwise, the term "magnetic sensor device" or "sensor device" refers to a device comprising at least one "magnetic sensor" or at least one magnetic "sensor element", preferably integrated in a semiconductor substrate. The sensor device may be included in a package (also referred to as a "chip"), but this is not absolutely necessary. The sensor device preferably comprises a semiconductor substrate.
[0066] In this document, the term "sensor element" or "magnetic sensor element" or "magnetic sensor" may refer to a component or a group of components or a subcircuit or structure capable of measuring magnetic quantities, such as, for example, a magnetoresistive element, a GMR element, an XMR element, a horizontal Hall plate, a vertical Hall plate, a Wheatstone bridge comprising at least one (but preferably four) magnetoresistive elements, etc. or a combination thereof.
[0067] In certain embodiments of the present invention, the term "magnetic sensor" or "magnetic sensor structure" may refer to an arrangement including one or more integrated magnetic concentrators (IMCs) (also referred to as integrated flux concentrators) and one or more horizontal Hall elements arranged near the periphery of the IMCs, for example, a disk-shaped IMC having two horizontal Hall elements spaced 180° apart from each other (e.g., as shown in FIG. Figure 1 ), or an IMC with four horizontal Hall elements spaced 90° apart (e.g., Figure 2 shown).
[0068] In this document, the expressions "in-plane component of the magnetic field vector" and "projection of the magnetic field vector in the sensor plane" have the same meaning. If the sensor device is or comprises a semiconductor substrate, this also means "the magnetic field component is parallel to the semiconductor plane".
[0069] In this document, the expressions "out-of-plane component of a vector" and "Z-component of a vector" and "projection of the vector onto the axis perpendicular to the sensor plane" have the same meaning.
[0070] Embodiments of the present invention are generally described using an orthogonal coordinate system that is fixed to the sensor device and has three axes X, Y, Z, wherein the X-axis and the Y-axis are parallel to the substrate and the Z-axis is perpendicular to the substrate. Furthermore, the X-axis is preferably oriented "parallel to the direction of relative movement" in the case of a linear position sensor, or preferably "tangential to the movement trajectory" in the case of a curved movement trajectory, or preferably "circumferential direction" (i.e. tangential to an imaginary circle having a center located on the rotation axis) in the case of an angular position sensor system comprising a rotatable magnet. In the case of an angular position sensor system, one of the other axes (Y or Z) is preferably oriented parallel to the rotation axis of the magnet. For example, in Figure 3 Part (a) and Figure 4 In part (a), the Z axis is parallel to the rotation axis of the magnet, while in Figure 5 In part (a), the Y axis is parallel to the rotation axis.
[0071] In this document, the expressions "spatial derivative" or "derivative" or "spatial gradient" or "gradient" are used as synonyms. In the context of the present invention, the gradient is usually determined as the difference between two values measured at two positions spaced apart in the X direction. In theory, the gradient is calculated as the difference between the two values divided by the distance "dx" between the sensor positions, but in practice, the division by "dx" is usually omitted because the measured signal needs to be scaled anyway. Therefore, in the context of the present invention, the magnetic field difference (ΔBx) and the magnetic field gradient dBx / dx are used interchangeably.
[0072] In this document, the term "amplitude of the magnetic field component By" means "the maximum value of the absolute value of the By signal over the entire 360° rotation", and the same applies to Bx and Bz.
[0073] In this application, horizontal Hall plates are generally represented by H1, H2, etc., and signals from these horizontal Hall plates are generally represented by h1, h2, etc.; vertical Hall plates are generally represented by V1, V2, etc.; and signals from these vertical Hall plates are generally represented by v1, v2, etc.
[0074] In the context of the present invention, the formulas arctan(x / y), atan2(x,y), arccot(y / x) are considered equivalent.
[0075] The present invention generally relates to a linear or angular magnetic position sensor system comprising a sensor device and a magnetic source, such as a permanent magnet, such as an axially or diametrically or radially magnetized ring or disk magnet, such as an axially or diametrically magnetized two-pole ring or disk magnet, or an axially or diametrically magnetized ring or disk magnet with more than two poles, such as at least four poles or at least six poles or at least eight poles. The present invention also relates to a linear position sensor system comprising a sensor device and a magnetic source in the form of an elongated magnetic structure comprising a plurality of alternating poles. More specifically, the present invention relates to a magnetic sensor method and system, which is robust to external interference fields and has error detection capabilities.
[0076] Refer to the attached drawings.
[0077] Figure 1 A sensor structure is shown, which includes a first sensor S1 located at a first position X1 on the X-axis and a second sensor S2 located at a second position X2 on the X-axis spaced apart from X1. Each of the first sensor S1 and the second sensor S2 includes a disk-shaped integrated magnetic concentrator (IMC) and two horizontal Hall elements arranged on the X-axis and located on opposite sides of the IMC. The first sensor S1 includes a first horizontal Hall element H1 configured to provide a first signal h1 and a second horizontal Hall element H2 configured to provide a second signal h2. The second sensor S2 includes a third horizontal Hall element H3 configured to provide a third signal h3 and a fourth horizontal Hall element H4 configured to provide a fourth signal h4.
[0078] To understand the present invention, it is only necessary to know that the signal h1 and the signal h2 of the first sensor S1 can be combined to determine the in-plane magnetic field component Bx1 (parallel to the sensor substrate) and the out-of-plane magnetic field component Bz1 (perpendicular to the sensor substrate). More specifically, the in-plane magnetic field component Bx1 can be calculated by subtracting the signals, while the out-of-plane magnetic field component Bz1 can be calculated by summing the signals. This can be expressed mathematically as follows:
[0079] Bx1=(h2-h1) [1]
[0080] Bz1=(h2+h1) [2]
[0081] Similarly, the in-plane magnetic field component Bx2 and the out-of-plane magnetic field component Bz2 at the second sensor position X2 may be determined, for example according to the following formulas:
[0082] Bx2=(h4-h3) [3]
[0083] Bz2=(h4+h3) [4]
[0084] And from these values the in-plane magnetic field gradient ΔBx and the out-of-plane magnetic field gradient ΔBz can be determined, for example according to the following formula:
[0085] ΔBx=Bx2-Bx1 [5]
[0086] ΔBz=Bz2-Bz1 [6]
[0087] The value ΔBx may also be referred to as dBx / dx, and the value ΔBz may also be referred to as dBz / dx. As mentioned above, the scaling factor "dx" is usually omitted, since it is constant, and the values need to be scaled anyway. For this reason, in this application, the terms "magnetic field gradient" and "magnetic field difference" have the same meaning.
[0088] It is well known that the gradient signals ΔBx, ΔBz are highly insensitive to external interference fields.
[0089] It should be noted that a sensor device ( Figure 1 Not shown, but see e.g. Figure 3 Part (e) and Figure 5 Part (f) can also measure Bx1, Bx2, Bz1, and Bz2.
[0090] Figure 2 FIG. 4 shows a sensor structure including two sensors S1 and S2, each of which has an IMC structure and four horizontal Hall elements, as can be used in embodiments of the present invention. The sensor structure is Figure 1 A variation of the sensor structure, the main difference is that each sensor includes four horizontal Hall elements arranged near the periphery of the integrated magnetic concentrator IMC, instead of only two. The four Hall elements are spaced at multiples of 90°. Two of the Hall elements of each sensor are located on the X-axis, and the other two are located on the Y-axis, which is perpendicular to the X-axis.
[0091] The sensor structure is also capable of measuring a magnetic field component By1 at a first sensor position X1, and measuring a magnetic field component By2 at a second sensor position X2, both oriented in the Y direction, perpendicular to the X and Z directions. The values of By1 and By2 can be calculated according to the following formulas:
[0092] By1=(h3-h4) [7]
[0093] By2=(h7-h8) [8]
[0094] And from these values, the other in-plane magnetic field gradient ΔBy along the x-axis can be determined, sometimes also expressed as "dBy / dx", for example according to the following formula:
[0095] ΔBy=By2-By1[9]
[0096] It should be noted that a sensor device ( Figure 2 Not shown, but see e.g. Figure 4 Part (d) of ) can also measure Bx1, By1 at the first sensor position and Bx2, By2 at the second sensor position, so that the magnetic field gradients ΔBx, ΔBy can be determined.
[0097] Figure 3 Part (a) and Figure 3 Part (b) of shows an angular magnetic position sensor system 300 in a front view and a top view, respectively. The system 300 comprises a cylindrical magnet 301 and a sensor device 302. The magnet may be an axially or diametrically magnetized two-pole annular magnet or a disk magnet, or an axially or diametrically magnetized multi-pole annular magnet or a disk magnet having at least four, at least six, or at least eight poles. In the example shown, the magnet is rotatable about an axis of rotation A. The sensor device is mounted in an "off-axis" position relative to the magnet. The sensor device comprises two sensors located at a radial distance Rs from the axis of rotation A and at an axial distance "g" from the magnet.
[0098] The magnet may have a diameter of 4.0 mm to 20 mm, such as about 10 mm or about 12 mm. The radial distance Rs may be 30% to 70%, or 40% to 60% of the outer radius Ro of the magnet. The axial distance "g" may be 0.5 mm to 5.0 mm, such as about 2.0 mm, but the invention is not limited thereto and other values may also be used.
[0099] Figure 3 Part (c) to Figure 3 Part (e) is available in Figure 3 Part (b) is a schematic block diagram of a sensor structure used in the sensor device 302. Figure 3 The sensor structure of part (c) is Figure 1 Shown in. Figure 3 The sensor structure of part (d) is Figure 2 As shown in the above Figure 3 The sensor structure of part (e) is described as Figure 1However, it should be noted that the present invention is not limited to these sensor structures, and other sensor structures may also be used, for example, a sensor structure including two sensors, each sensor including a horizontal Hall element and at least one magnetoresistive (MR) element.
[0100] The first sensor and the second sensor may be spaced apart by a distance "dx" ranging from 1.0 mm to 3.0 mm, or from 1.5 mm to 2.5 mm, such as equal to about 1.8 mm, or about 2.0 mm, or about 2.2 mm.
[0101] Figure 3 Part (f) shows Figure 3 Part (b) is a table of formulas that can be used by the sensor device.
[0102] It is known that the angular position θ of the sensor device 302 relative to the magnet 301 can be determined as the inverse tangent of the ratio of ΔBx and ΔBz according to the following formula: θ=atan2(ΔBx, ΔBz), and it is known that this value is highly insensitive to external interference fields. The sensor device 302 can be configured to provide this value as the first angle value:
[0103] θ1=atan2(ΔBx,ΔBz)
[10]
[0104] However, this angle value alone does not allow detecting errors, for example detecting whether one of the sensor elements is defective, and / or whether its biasing is defective, and / or whether its readout circuit is defective.
[0105] In order to provide an angle sensor system that can measure angular position in a manner that is highly insensitive to external interference fields, but is further capable of detecting errors, the inventors have conceived of calculating a first sum of Bx values, and a second sum of Bz values, and determining a second angle θ2 based on a ratio of the first sum to the second sum, for example, according to the following formula:
[0106] ∑Bx=(Bx1+Bx2)
[11]
[0107] ∑Bz=(Bz1+Bz2)
[12]
[0108] θ2=atan2(∑Bx,∑Bz)
[13]
[0109] It is counterintuitive to use values (θ1 and θ2) sensitive to external disturbance fields to assess the correct operation of a sensor device that has to be highly insensitive to external disturbance fields. It should also be noted that the first angle θ1 and the second angle θ2 are not identical, so using this second angle θ2 to check the error of the first angle θ1 is not trivial.
[0110] Despite these obstacles, the experiment was conducted and the results showed that:
[0111] i) In the absence of an external interference field, if all sensor elements work correctly, the angle values θ1 and θ2 differ by approximately 90°;
[0112] ii) in the presence of a moderate or relatively weak external interference field, if all sensor elements operate correctly, the angle values θ1 and θ2 differ by a value within the range [90°±ε], where ε is less than 10°, or less than 5°, or less than 2°, or less than 1.0°, or less than 0.5°;
[0113] iii) Without taking into account external interference fields, if one of the sensor elements is defective, the angle values θ1 and θ2 differ by a value outside the range [90°±τ], where τ is less than 10°, or less than 5°, or less than 2°, or less than 1.0°, or less than 0.5°.
[0114] The tolerance margin(s) may be selected depending on the expected amplitude of the external disturbance field. It should be noted that the tolerance margin τ may be equal to or greater than the tolerance margin ε. In case τ is selected to be greater than ε, the sensor device may output a warning, which may mean a defect or an abnormally high external disturbance field, or a malfunction.
[0115] Taking into account that in practice angle sensor systems are usually designed (magnetic field strength of the magnet, distance from the magnet) so that the size of the external disturbance field has an amplitude that is typically less than 10% of the magnetic field component caused by the magnet, these experiments show that even in the presence of moderate external disturbance fields it is possible to detect an error by comparing the first angle and the second angle. This is one of the basic principles of the invention.
[0116] Back to Figure 3 Now we can understand that the formula of "Example 1" and Figure 3 The sensor structure of part (c) can be used to calculate two angle values θ1 and θ2, one of which (i.e. θ1) is highly insensitive to external interference fields, and the other (i.e. θ2) depends on the external interference fields, but as explained above, surprisingly, it was found to be accurate enough for detecting errors, for example, detecting whether one of the sensor elements is defective. An advantage of this embodiment is that no physical sensor element needs to be added, but diagnostic information can be obtained by processing the signal obtained from the already existing sensor element in a different way.
[0117] Similarly, Figure 3 The formula in part (f) of "Example 3" and Figure 3The sensor structure of part (e) can be used to calculate two angle values θ1 and θ2 and to detect errors, for example, to detect whether one of the sensor elements is defective.
[0118] Similarly, Figure 3 The formula in part (f) of "Example 2" and Figure 3 The sensor structure of part (d) can be used to calculate two angle values θ1 and θ2 and detect errors, such as detecting whether one of the sensor elements is defective, but Figure 3 Compared to the sensor structure of part (c), four physical sensor elements are added for redundancy purposes, namely: Figure 3 Part (d) of H3, H4, H7, and H8.
[0119] It should be noted that while it is possible to calculate both angles θ1 and θ2 within the sensor device 302, and it is possible to compare these values within the sensor device 302, and it is possible to provide a diagnostic signal indicating an error, this is not absolutely necessary for the invention to work. In fact, in some embodiments of the invention, the sensor device 302 is configured to calculate and provide the two angles θ1 and θ2, but the comparison is performed external to the sensor device 302, for example in another processing unit, such as in an electronic control unit (ECU) connected to the sensor device 302 (see, for example, Figure 10 to Figure 12 ). In some embodiments of the present invention, the sensor device 302 provides the first angle θ1 and the first sum ∑Bx and the second sum ∑Bz, and the second angle θ2 can be calculated outside the sensor device 302, and the comparison of the first angle and the second angle can be performed outside the sensor device 302. This will be discussed in further detail.
[0120] exist Figure 3 Part (a) and Figure 3 In a variation of part (b) of , the sensor device 302 is not arranged at a radial distance Rs substantially equal to Rs=Ro / 2 (in the case of a disk magnet) or Rs=(Ri+Ro) / 2 (in the case of a ring magnet) (Ri is the inner radius and Ro is the outer radius), but is positioned at a radial distance Rs close to the rotation axis or further away from the rotation axis. In this case, the first angle and the second angle can be calculated according to the following formula:
[0121] θ1=atan2(L*ΔBx,ΔBz) [10b]
[0122] θ2=atan2(M*∑Bx,∑Bz) [13b]
[0123] Where L and M are predefined constants that may be determined during design or simulation, or determined during calibration and stored in the non-volatile memory of the sensor device.
[0124] Figure 4 Part (a) and Figure 4 Part (b) of FIG. 4 shows another angular magnetic position sensor system 400 in front view and top view, respectively, comprising a magnet 401 and a sensor device 402. Again, the magnet is movable relative to the sensor device, or vice versa. The sensor system 400 can be viewed as Figure 3 A variation of the sensor system 300 of part (a) of FIG. 1 and most of what has been described above also applies here mutatis mutandis. The main differences are:
[0125] i) the sensor device 402 is located at a radial distance Rs greater than the outer radius Ro of the magnet and at an axial position between the bottom surface and the top surface, preferably substantially half the height of the magnet 401;
[0126] ii) The sensor device 402 is configured to measure two in-plane gradients ΔBx and ΔBy, and calculate a first angle θ1 according to the following formula:
[0127] θ1=atan2(ΔBx,ΔBy)
[14]
[0128] iii) The sensor device 402 is configured to measure the first sum ∑Bx and the second sum ∑By, for example according to the following formula:
[0129] ∑Bx=(Bx1+Bx2)
[15]
[0130] ∑By=(By1+By2)
[16]
[0131] θ2=atan2(∑Bx,∑By)
[17]
[0132] Figure 4 Part (c) and Figure 4 Part (d) is a schematic block diagram of a sensor structure that can be used in the sensor device 402. Figure 4 The sensor structure of part (c) is Figure 2 Shown in. Figure 4 The sensor structure of part (d) includes two sensors, each sensor having two perpendicular Hall plates, one perpendicular Hall plate oriented with its maximum sensitivity axis in the Y direction, and one perpendicular Hall plate oriented with its maximum sensitivity axis in the X direction. It should be noted that other sensor structures capable of measuring Bx and By may also be used, such as a sensor structure including a magnetoresistive (MR) element (e.g., a GMR element or an XMR element).
[0133] Figure 4Part (e) of is a table showing formulas that can be used by sensor device 402. More specifically, the formula of "Example 1" can be used with Figure 4 The sensor structure of part (c) of the embodiment of the present invention is used in combination with the sensor structure of part (c) of the present invention, and the formula of "Example 2" can be used with Figure 4 The sensor structure of part (d) is used in combination to calculate two angle values θ1 and θ2 and detect errors, for example, to detect whether one of the sensor elements is defective based on the angular difference between the angles θ1 and θ2, for example, by testing whether the value (θ1-θ2) falls within the range (90°±ε) and / or outside the range (90°±τ), where ε and τ are predefined thresholds. As mentioned above, ε and τ can be equal, or can be different.
[0134] As mentioned above, it is possible to calculate the angles θ1 and θ2 internally or externally to the sensor device 402 , and / or to compare the values θ1 and θ2 internally or externally to the sensor device 402 .
[0135] exist Figure 4 Part (a) and Figure 4 In part (b) of FIG. 4 , the sensor device is located at an axial position substantially halfway between the bottom and top surfaces of the cylindrical magnet 401 , but the present invention will also work if the magnet is moved axially upward or downward. In this case, the following formula can be used:
[0136] θ1=atan2(L*ΔBx,ΔBy) [14b]
[0137] θ2=atan2(M*∑Bx,∑By) [17b]
[0138] Where L and M are predefined constants that may be determined during design or simulation, or determined during calibration and stored in the non-volatile memory of the sensor device.
[0139] Figure 5 (a) to Figure 5 Part (c) of FIG. 5 shows an angular magnetic position sensor system 500 in front view, top view and side view, respectively, including a magnet 501 and a sensor device 502. The sensor system 500 can be viewed as Figure 3 A variation of the sensor system 300 of part (a), or Figure 4 A variant of the sensor system 400 of part (a) of FIG. 4 , wherein the sensor device is rotated 90° about the X-axis. Most of what has been described above also applies here mutatis mutandis.
[0140] Figure 5 Part (d) to Figure 5 Part (f) of FIG. 5 is a schematic block diagram of a sensor structure that can be used in sensor device 502. Figure 3Part (c) to Figure 3 The same sensor structure shown in part (e) of .
[0141] Figure 5 Part (g) shows Figure 5 The table of formulas that can be used for sensor devices in part (b) can be used Figure 3 The same formula shown in part (f) of .
[0142] Although not explicitly shown, the principles described above also work for a linear position sensor system. In this case, the magnet is preferably an elongated structure with a plurality of alternating magnetic poles, and the sensor device will further be configured for converting the angular position value θ1 into a linear position value X in a known manner. The sensor element may be arranged substantially in a symmetry plane of the magnetic structure extending along the elongated direction.
[0143] Figure 6 A flow chart of a method 600 for determining two angles θ1 and θ2 and detecting errors, for example by generating a diagnostic signal (eg, a validity signal or an error signal) is shown. The method 600 comprises the following steps:
[0144] a) determining a first magnetic field component (e.g., Bx1) and a second magnetic field component (e.g., By1 or Bz1) at a first sensor location (e.g., X1), the first magnetic field component being oriented in a first direction (e.g., X, tangential to the direction of relative movement), and the second magnetic field component (e.g., By1 or Bz1) being oriented in a second direction (e.g., Y or Z) perpendicular to the first direction (601);
[0145] b) determining a third magnetic field component (e.g., Bx2) and a fourth magnetic field component (e.g., By2 or Bz2) at a second sensor location (e.g., X2) spaced apart (e.g., by a distance ΔX) from the first sensor location (e.g., X1), the third magnetic field component (e.g., Bx2) being oriented in a first direction (e.g., X), and the fourth magnetic field component (e.g., By2 or Bz2) being oriented in a second direction (e.g., Y or Z) (602);
[0146] c) determining a first difference (e.g., ΔBx) between the first magnetic field component (e.g., Bx1) and the third magnetic field component (e.g., Bx2), and determining a second difference (e.g., ΔBy or ΔBz) between the second magnetic field component (e.g., By1 or Bz1) and the fourth magnetic field component (e.g., By2 or Bz2), and determining a first angle (θ1) based on a ratio of the first difference and the second difference, and outputting the first angle (θ1) (603);
[0147] d) determining a first sum (e.g., ∑Bx) of a first magnetic field component (e.g., Bx1) and a third magnetic field component (e.g., Bx2), and determining a second sum (e.g., ∑By or ∑Bz) of a second magnetic field component (e.g., By1 or Bz1) and a fourth magnetic field component (e.g., By2 or Bz2), and optionally outputting or transmitting the first sum (e.g., ∑Bx) and the second sum (e.g., ∑By or ∑Bz) (604);
[0148] e) determining a second angle (θ2) based on a ratio of the first sum (e.g., ∑Bx) to the second sum (e.g., ∑By or ∑Bz), and optionally outputting or transmitting the second angle (θ2) (605);
[0149] f) comparing the first angle (θ1) and the second angle (θ2), and detecting an error based on the result of the comparison, and optionally outputting or transmitting a corresponding diagnostic signal (606).
[0150] The method may comprise further steps such as providing an acoustic signal (eg an audible sound) or a visible signal (eg a light signal) if an error is detected.If the sensor device is connected to an ECU, the ECU may take appropriate action in a manner known in the art.
[0151] Method steps 601 to 606 may be performed solely by the position sensor device, or partially by the position sensor device and partially by a second processor, such as an electronic control unit (ECU) communicatively connected to the position sensor device. Three examples are described:
[0152] In an embodiment, all steps in steps a) to f) are performed by the position sensor device itself. In this case, the first sum and the second sum do not need to be output in step d), the second angle does not need to be output in step e), but the diagnostic signal must be output in step f). In this embodiment, in order to detect whether an error has occurred, steps do not need to be performed outside the position sensor device. Such method 700 is Figure 7 It is shown in Figure 7 yes Figure 6 A subset of .
[0153] In an embodiment, the position sensor system includes the second processor (e.g., ECU), and the second controller is configured to receive the first angle and the second angle and to compare them in step f). In this embodiment, the position sensor device does not have to perform step f), and does not have to output the first sum and the second sum in step d), but must output the second angle in step e) to allow the second processor to perform the comparison. Such method 800 is Figure 8 It is shown in Figure 8 yes Figure 6 Another subset of .
[0154] In an embodiment, the position sensor system includes the second processor (e.g., ECU), and the second controller is configured to receive the first sum and the second sum in step d), and to calculate the second angle in step e), and to compare the first angle and the second angle in step f) to detect whether an error has occurred. In this embodiment, the position sensor device does not have to perform steps e) and f), but must output the first sum and the second sum in step d) to allow the second processor to calculate the second angle. Such method 900 is Fig. 9 It is shown in Fig. 9 yes Figure 6 Another subset of .
[0155] Figures 10 to 12 An electrical block diagram of a circuit that may be used in the position sensor apparatus described above is shown.
[0156] Fig.10 1 shows an electrical block diagram of a circuit 1010 that can be used in the position sensor device described above. The circuit 1010 includes a plurality of magnetic sensor elements H1 to H4 and includes a processing unit 1030 and a non-volatile memory 1031. The block diagram can be used, for example, in a sensor device having a sensor structure capable of determining a magnetic field gradient dBx / dx and a magnetic field gradient dBz / dx, such as Figure 1 or Figure 3 Part (c) or Figure 3 Part (e) or Figure 4 Part (d) of Figure 5 Part (d) of Figure 5 As shown in part (f) of FIG. 1 , the sensor element may be a Hall element, such as a vertical Hall element and / or a horizontal Hall element, an MR element, etc.
[0157] The processing unit 1030 may be configured to perform Figures 6 to 9 Any of the methods shown. The sensor device 1010 can be connected to a second processor 1040, for example, to an electronic control unit 1040 (ECU), by one or more wires or wirelessly (for example, via a radio frequency link RF or an infrared link IR). Depending on the method implemented, the sensor device 1010 can output one or more of the following values: a first angle θ1, a second angle θ2, a first sum ∑Bx, a second sum ∑By or ∑Bz, and a diagnostic signal "diag"; and the second processor 1040 (if present) can be configured to receive one or more of these values, and can be configured to calculate the second angle θ2 and / or to compare the two angles, as described above.
[0158] The first angle θ1 can be determined in the manner described above, for example by using some of the mathematical formulas [1] to [17b] described above, or using a lookup table, optionally using interpolation. As explained above, the first angle θ1 is based on the ratio of the difference signal. The subtraction can be performed in the analog domain before or after amplification, or in the digital domain.
[0159] The processing unit 1030 may include a digital processor, which may optionally include or be connected to a non-volatile memory 1031. The memory may be configured to store one or more constants, such as one or more of the predefined thresholds ε, τ, L, M. The digital processor 1030 may be, for example, an 8-bit processor or a 16-bit processor.
[0160] Although not explicitly shown, the circuit 1010 may further include one or more components or sub-circuits selected from the group consisting of: a bias source (e.g., a current source, a voltage source), an amplifier, a differential amplifier, an analog-to-digital converter (ADC), etc. The ADC may have a resolution of at least 8 bits, or at least 10 bits, or at least 12 bits, or at least 14 bits, or at least 16 bits.
[0161] Fig.11 FIG. 1 shows an electrical block diagram of a circuit 1110 that can be used in the position sensor device described above. The circuit 1110 can be viewed as Fig.10 and most of what has been described above also applies here mutatis mutandis.
[0162] Fig.10 Sensor devices and Fig.11 The main difference between the sensor devices of is that the circuit 1110 includes eight magnetic sensor elements H1 to H8 instead of only four, and other formulas or (multiple) lookup tables can be used to calculate the first angle and the second angle. Figure 2 or Figure 3 Part (d) of Figure 4 Part (c) or Figure 5 Part (e) shows the sensor structure of the sensor device.
[0163] Fig.12 Shows Fig.11 A variant of the electrical block diagram of , which has a first processing unit 1230 and a second processing unit 1232 and has eight sensor elements H1 to H8.
[0164] The first processing unit may be configured to Fig.10 The first angle θ1 is determined in the same manner as the circuit, for example using equations [1] to [6] and
[10] to
[13] , for example according to Figure 3The formula for “Example 1” in part (f) of .
[0165] The second processing unit 1232 may be configured to use Figure 3 The formula shown in part (f) of "Example 2" or using Figure 4 The second angle θ2 is determined by the formula shown as "Example 1" in part (e) of FIG. 1. If the comparison of the two angles is performed within the device 1210, the first processing unit 1230 can be further configured to provide the first angle value θ1 to the second processing unit 1232 to allow comparison.
[0166] The first processing unit 1230 receives signals h1, h2, h5, h6 from a first subset of eight sensor elements in which these signals are digitized. The second processing unit 1232 receives signals originating from all sensor elements H1 to H8. A second subset of signals h3, h4, h7, h8 is received from sensor elements H3, H4, H7, H8, but the second processing unit 1232 also requires the first subset of signals in order to detect whether an error has occurred. These signals may be received directly from the sensor elements or indirectly via the first processing unit 1230, for example after being digitized into values d1, d2, d5, d6.
[0167] Figure 13(a) to Figure 13(c) Several circuit topologies are shown that may be used to read out and optionally process the signals provided by the sensor devices described above.
[0168] FIG13( a) shows a block diagram of a readout circuit, which includes a multiplexer MUX, a single analog-to-digital converter ADC, and a single digital processor DSP. This block diagram can be used to Fig.10 The main purpose of this block diagram is to illustrate that the signals from all sensor elements are processed by a single ADC and a single signal processor, such as also shown in FIG. Fig.10 and Fig.11 As shown in .
[0169] FIG13( c ) shows a block diagram of two main independent readout circuits, each of which includes an analog-to-digital converter ADC and a dedicated digital processor DSP. The upper subcircuit is configured to digitize and process the first set of sensor signals. The lower subcircuit is configured to digitize and process the second set of sensor signals, but the first processor can provide data to the second processor. This block diagram can be seen in FIG13( c ). Fig.12ADC 1 is used in a circuit, where for example, a first processor DSP1 can provide a first angle θ1 and a digital representation of the Hall signals h1, h2, h5, h6 in the form of digital values d1, d2, d5, d6 to a second processor DSP2. The main purpose of this block diagram is to illustrate that each of the sensor signals is processed by a single ADC.
[0170] FIG13( b ) shows a block diagram of another solution, which can be considered an “intermediate solution”, having a multiplexer, a single ADC and a single digital processor DSP and a circuit that sends the digitized values originating from the first set of Hall elements to the DSP for further processing, but does not send the digitized values originating from the second set of Hall elements to the DSP, but to a digital circuit and / or arithmetic unit capable of calculating the first sum ∑Bx, the second sum ∑By or ∑Bz described above, and outputs this data to an external processor, such as an ECU. The main purpose of FIG13( b ) is to show that it is possible to digitize some of the sensor values in the ADC without processing them within the DSP.
[0171] from Figure 10 to Figure 13(c) While examples are shown, it should be apparent to readers skilled in the art that many hardware implementations are possible.
[0172] The systems, methods, and devices described herein may be well suited for industrial, robotic, or automotive applications where "functional safety" is important.
[0173] The formulas
[10] ,
[13] ,
[14] ,
[17] and [10b], [13b], [14b], [17b] described above are applicable to two-pole magnets, but the present invention is not limited to this and is also applicable to magnets having at least four poles or at least six poles, or at least eight poles, etc., in which case the inverse tangent function provides θ / 2 or θ / 3 or θ / 4, etc., where θ represents the mechanical rotation angle.
[0174] In the not shown Figure 3 In a variation of part (a) of FIG. 1 , the sensor device is rotated 90° about the X axis so that its semiconductor substrate is parallel to the rotation axis A. In this case, the sensor device can be used Figure 4 The formula in part (e) is based on ΔBx, ΔBy, ∑Bx, ∑By, rather than ΔBx, ΔBz, ∑Bx, ∑Bz.
[0175] The above describes a mechanism for detecting an error based on the result of a comparison of a first angle calculated as a first function of the ratio of two differences and a second angle calculated as a second function of the ratio of two sums. Optionally, additional tests may be performed to detect whether an error has occurred. For example, in an embodiment, the processing unit is further configured to determine a third sum (Sum3) as the sum of the square of the first difference (ΔBx) and the square of the second difference (ΔBy; ΔBz), for example, according to the following formula:
[0176] Sum3=sqr(ΔBx)+sqr(ΔBz)
[18]
[0177] and optionally outputting the third sum; and further configured to determine and calculate the fourth sum (Sum4) as the sum of the square of the first sum (∑Bx) and the square of the second sum (∑By; ∑Bz), for example, according to the following formula:
[0178] Sum4=sqr(∑Bx)+sqr(∑Bz)
[19]
[0179] and optionally outputting the fourth sum; and further configured to scale the fourth sum using a predefined constant K4, which constant K4 may be determined during design, or may be determined during calibration and stored in a non-volatile memory of the sensor device; and further configured to determine whether the third sum (Sum3) and the scaled fourth sum (Sum4) are substantially the same within a predefined tolerance margin of a maximum of ±10% or a maximum of ±5%, for example, by calculating the ratio R as (Sum3) / (K4*Sum4), and by testing whether this value is within the range of 90% to 100%, or within the range of 95% to 105%. If the ratio falls within the range, this indicates that no additional error has been detected. If the ratio falls outside the range, it indicates that an additional error has been detected. Similar to the above, the calculation of formulas
[18] and
[19] may be calculated entirely within the sensor device itself, or partially within the sensor device itself and partially by a second processor (e.g., an ECU) connected to the sensor device but located outside the sensor device. Of course, in this case, the sensor device needs to output one or more intermediate values to allow calculations and / or comparisons to be performed outside the sensor device. For example, the third sum Sum3 and the fourth sum Sum4 can be output by the sensor device, and the scaling using factor K4 and the comparison of Sum3 and (K4*Sum4) can be performed by the ECU.
Claims
1. A position sensor device, comprising: a first sensor configured to determine a first magnetic field component and a second magnetic field component at a first sensor location, the first magnetic field component being oriented in a first direction and the second magnetic field component being oriented in a second direction perpendicular to the first direction; as well as a second sensor configured to determine a third magnetic field component and a fourth magnetic field component at a second sensor location spaced apart from the first sensor location, the third magnetic field component being oriented in the first direction and the fourth magnetic field component being oriented in the second direction; a processing unit connected to the first sensor and to the second sensor, and The device is configured to: determine a first sum of the first magnetic field component and the third magnetic field component, determine a second sum of the second magnetic field component and the fourth magnetic field component, determine an angle based on a ratio of the first sum and the second sum, and output the determined angle.
2. The position sensor device according to claim 1, in, The first sensor and the second sensor are integrated in a semiconductor substrate; Wherein, one of the first direction and the second direction is perpendicular to the semiconductor substrate, and wherein the other of the first direction and the second direction is parallel to the semiconductor substrate.
3. The position sensor device according to claim 1, in, The first sensor and the second sensor are integrated in a semiconductor substrate; Wherein, each of the first direction and the second direction is parallel to the semiconductor substrate.
4. The position sensor device according to claim 1, in, The second sensor location is spaced apart from the first sensor location by a distance of 1.0 mm to 3.0 mm.
5. The position sensor device according to claim 1, in, The first sensor includes a first integrated magnetic concentrator and a first horizontal Hall element and a second horizontal Hall element disposed on opposite sides of the first integrated magnetic concentrator; and The second sensor includes a second integrated magnetic concentrator and a third horizontal Hall element and a fourth horizontal Hall element arranged on opposite sides of the second integrated magnetic concentrator.
6. The position sensor device according to claim 5, in, The first sensor further includes a fifth horizontal Hall element and a sixth horizontal Hall element, the fifth horizontal Hall element and the sixth horizontal Hall element being spaced 90° from the first horizontal Hall element and the second horizontal Hall element; and The second sensor further includes a seventh horizontal Hall element and an eighth horizontal Hall element, and the seventh horizontal Hall element and the eighth horizontal Hall element are spaced 90° from the third horizontal Hall element and the fourth horizontal Hall element.
7. The position sensor device according to claim 1, in, The first sensor includes a first horizontal Hall element and a first vertical Hall element; and The second sensor includes a second horizontal Hall element and a second vertical Hall element.
8. The position sensor device according to claim 1, in, The first sensor includes a first vertical Hall element and a second vertical Hall element; and Wherein, the second sensor includes a third vertical Hall element and a fourth vertical Hall element.
9. The position sensor device according to claim 1, wherein: The processing unit is further configured to: A sum of the square of the first sum and the square of the second sum is determined, and the sum of the squares is output.
10. The position sensor device according to claim 1, in, The first sensor location and the second sensor location are spaced apart in one of the first direction and the second direction.
11. The position sensor device according to claim 1, in, The processing unit is further configured to output the first sum and the second sum.
12. The position sensor device according to claim 1, in, The processing unit is further configured to determine a second angle different from the determined angle based on the first magnetic field component, the second magnetic field component, the third magnetic field component, and the fourth magnetic field component.
13. A magnetic position sensor system comprising: a magnetic source for generating a magnetic field having at least two poles; The position sensor device according to claim 1, being movable relative to the magnetic source, or vice versa.
14. The magnetic position sensor system according to claim 13, in, The magnetic source is a permanent magnet that can rotate around a rotation axis; and Therein, the position sensor device is mounted at a non-zero radial distance and is oriented such that the first direction is tangential to an imaginary circle having its center on the rotational axis.
15. The magnetic position sensor system according to claim 13, in, The magnetic source is an elongated structure including alternating magnetic poles, the elongated structure extending in a longitudinal direction; and Therein, at a non-zero distance from the magnetic source, the position sensor device is movable in the longitudinal direction.
16. A method for determining a position of a position sensor device relative to a magnetic source, the method comprising the steps of: a) determining a first magnetic field component and a second magnetic field component at a first sensor position, the first magnetic field component being oriented in a first direction and the second magnetic field component being oriented in a second direction perpendicular to the first direction; b) determining a third magnetic field component and a fourth magnetic field component at a second sensor position spaced apart from the first sensor position, the third magnetic field component being oriented in the first direction and the fourth magnetic field component being oriented in the second direction; c) determining a first sum of the first magnetic field component and the third magnetic field component, determining a second sum of the second magnetic field component and the fourth magnetic field component, and determining an angle based on a ratio of the first sum and the second sum.
17. The method according to claim 16, in, The second sensor position is spaced apart from the first sensor position by a distance of 1.0 mm to 3.0 mm.
18. The method according to claim 16, in, The magnetic source is a permanent magnet capable of rotating about an axis of rotation; and Therein, the position sensor device is mounted at a non-zero radial distance and is oriented such that the first direction is tangential to an imaginary circle having its center on the rotational axis.
19. The method according to claim 16, in, The magnetic source is an elongated structure including alternating magnetic poles, the elongated structure having a plurality of alternating magnetic poles extending in a longitudinal direction; and Therein, the position sensor device is movable in the longitudinal direction at a non-zero distance from the magnetic source.
20. The method according to claim 16, Further including: A second angle different from the determined angle is determined based on the first magnetic field component, the second magnetic field component, the third magnetic field component, and the fourth magnetic field component.
21. A position sensor device comprising: a first sensor configured to determine a first magnetic field component, a second magnetic field component, and a third magnetic field component at a first sensor location, the first magnetic field component being oriented in a first direction, the second magnetic field component being oriented in a second direction perpendicular to the first direction, and the third magnetic field component being oriented in a third direction perpendicular to the first direction and the second direction; as well as a second sensor configured to determine a fourth magnetic field component, a fifth magnetic field component, and a sixth magnetic field component at a second sensor location spaced apart from the first sensor location, the fourth magnetic field component being oriented in the first direction, the fifth magnetic field component being oriented in the second direction, and the sixth magnetic field component being oriented in the third direction; a processing unit connected to the first sensor and to the second sensor, and is configured to: determine a first difference between a first set of two components, the first set of two components including a component obtained from the first sensor and a component obtained from the second sensor; determine a second difference between a second set of two components different from the first set; and determining a first angle based on a ratio of the first difference to the second difference; And is configured to: determine a second angle based on at least a third group of two components and a fourth group of two components, the third group including a component obtained from the first sensor and a component obtained from the second sensor, and the fourth group including a component obtained from the first sensor and a component obtained from the second sensor, wherein the third group is different from the fourth group.
