Device and method for determining the orientation of a magnet and a joystick
By arranging multiple magnetic sensors on the semiconductor substrate, measuring the magnetic field gradient and calculating the magnet angle, the problems in the existing technology of being unstable to external interference fields and difficult to detect positioning errors are solved, and high accuracy and multiple degrees of freedom are achieved. Magnet orientation measurement.
Patent Information
- Application Number
- CN202210693577.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-06-17
AI Technical Summary
When existing magnetic position sensor systems measure the orientation of a pivotable magnet around a fixed reference point, they are not robust to external interference fields and have difficulty in detecting positioning errors, especially when high accuracy and multi-degree-of-freedom measurements are required. Down.
Multiple magnetic sensors on a semiconductor substrate are used to determine the orientation of the magnet by measuring magnetic field gradients, including magnetic field components in directions parallel and perpendicular to the substrate. Processing circuitry is used to calculate the angle of the magnet based on these gradients, improving external visibility. Robustness of interference fields and measurement accuracy.
It achieves high-accuracy measurement of magnet orientation, especially in the presence of external interference fields, improves the system's robustness and positioning error detection capabilities, and ensures high signal-to-noise ratio measurement results.
Smart Images

Figure CN115494435B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates generally to the field of magnetic position sensor systems, devices and methods, and more particularly to magnetic position sensor systems for measuring the orientation of a magnet pivotable about a fixed reference point. The present invention also relates to a position sensor system in which the magnet is connected to a joystick. Background Art
[0002] Magnetic position sensor systems, particularly linear position or angular position sensor systems are known in the art. There are many variations of position sensor systems that address one or more of the following requirements: use simple or inexpensive magnetic structures, use simple or inexpensive sensor devices, be able to measure over a relatively large range, be able to measure with high accuracy, require only simple arithmetic, be able to measure at high speeds, be highly robust to positioning errors, be highly robust to external interference fields, provide redundancy, be able to detect errors, be able to detect and correct errors, have a good signal-to-noise ratio (SNR), have only one degree of freedom (translation or rotation), have two degrees of freedom (e.g., one translation and one rotation, or two rotations), etc.
[0003] In many known systems, the system has only one degree of freedom of motion, for example, rotation about a single axis, or translation along a single axis.
[0004] Magnetic position sensor systems in which the magnet has at least two degrees of freedom are also known in the art, for example, from EP21159804.0 filed on February 28, 2021, disclosing a magnet movable along an axis and rotatable about said axis; or from US2021 / 0110239 (A1) disclosing a circuit comprising at least one trained neural network for determining information about the position, attitude or orientation of the magnet. These examples show that position sensor systems in which the magnet has at least two degrees of freedom are much more complex than systems with only one degree of freedom.
[0005] There is always room for improvement or substitution. Summary of the invention
[0006] It is an object of embodiments of the present invention to provide a sensor device, a position sensor system, and a method for determining the orientation (α, β) of a magnet.
[0007] An object of embodiments of the present invention is to provide a sensor device, a position sensor system, and a method for determining the orientation (α, β) of a cylindrical magnet pivotable about a fixed reference point. The fixed reference point may be located at a predefined height above or below a semiconductor substrate ("above" means on the same side of the substrate as the magnet, and "below" means on the opposite side of the substrate from the magnet).
[0008] A specific object of embodiments of the present invention is to provide a sensor device, a position sensor system and a method for determining the orientation (α, β) of the axis of an axially magnetized cylindrical magnet which is pivotable about a reference position located on a semiconductor substrate.
[0009] In a preferred embodiment, the orientation is determined in a manner that is highly robust to external interfering fields (also called "stray fields").
[0010] It is a particular object of embodiments of the invention to provide a joystick comprising such a magnet, wherein the orientation of the joystick is determined with improved accuracy, for example in a manner that is substantially insensitive to external interfering fields.
[0011] These objects are achieved by embodiments of the present invention.
[0012] According to a first aspect, the present invention provides a sensor device for determining the orientation of a magnet having an axis (e.g., a two-pole magnet), the sensor device comprising: a semiconductor substrate comprising a plurality of magnetic sensors, each magnetic sensor being configured to determine at least two of the following magnetic field gradients: i) a first magnetic field gradient (e.g., dBx / dx) of a first magnetic field component oriented in a first direction parallel to the semiconductor substrate along the first direction; ii) a second magnetic field gradient (e.g., dBy / dy) of a second magnetic field component oriented in a second direction parallel to the semiconductor substrate and perpendicular to the first direction along the second direction; iii) a third magnetic field gradient (e.g., dBz / dx) of a third magnetic field component oriented in a third direction perpendicular to the semiconductor substrate along the first direction; iv) a fourth magnetic field gradient (e.g., dBz / dy) of a third magnetic field component oriented in the third direction along the second direction; the sensor device further comprises a processing circuit configured to determine a first angle (e.g., α) and a second angle (e.g., β) based on at least some of the magnetic field gradients.
[0013] In an embodiment, the sensor element is configured for determining only two magnetic field gradients, namely: dBz / dx and dBz / dy; and the processing unit is configured for determining a first angle (e.g. α) that is dependent on only one magnetic field gradient (i.e.: dBz / dx), and for determining a second angle (e.g. β) that is dependent on only the other magnetic field gradient (i.e.: dBz / dy).
[0014] The first angle can be formed between the orthogonal projections of the magnet's axis A on the first virtual plane XZ parallel to the first direction X and the third direction Z, and the second angle can be formed between the orthogonal projections of the magnet's axis A on the second plane YZ parallel to the second direction Y and the third direction Z.
[0015] The magnet may be a cylindrical magnet.
[0016] The magnet may be a two-pole magnet, for example a cylindrical two-pole magnet, or a two-pole bar magnet or a two-pole spherical magnet.
[0017] The magnet may be an axially magnetized ring magnet or an axially magnetized disc magnet.
[0018] The outer diameter of the cylindrical magnet may be in the range of 3.0 mm to 15.0 mm, or in the range of 4.0 mm to 12.0 mm, or in the range of 4.0 mm to 10.0 mm.
[0019] The cylindrical magnet may have a height H (in the axial direction) and an outer diameter D such that a ratio of the height to the outer diameter (H / D) is a value in the range of 20% to 100%, in the range of 20% to 80%, or in the range of 25% to 75% (e.g., equal to approximately 50%).
[0020] In an embodiment, the processing circuit is configured to determine the first angle based on at least the first magnetic field gradient (e.g., dBx / dx) and the third magnetic field gradient (e.g., dBz / dx), and to determine the second angle based only on at least the second magnetic field gradient (e.g., dBy / dy) and the fourth magnetic field gradient (e.g., dBz / dy).
[0021] In an embodiment, the processing circuit is configured to determine the first angle based only on the first magnetic field gradient (e.g., dBx / dx) and the third magnetic field gradient (e.g., dBz / dx), and to determine the second angle based only on the second magnetic field gradient (e.g., dBy / dy) and the fourth magnetic field gradient (e.g., dBz / dy).
[0022] In an embodiment, a plurality of magnetic sensors include a first sensor, a second sensor, a third sensor, and a fourth sensor; the first sensor is located at a first sensor position and the second sensor is located at a second sensor position, on a first virtual line oriented in a first direction, and spaced a first distance apart from each other, the first sensor is configured to measure a first magnetic field component oriented in the first direction and a second magnetic field component oriented in a third direction, the second sensor is configured to measure a third magnetic field component oriented in the first direction and a fourth magnetic field component oriented in the third direction; the third sensor is located at a third sensor position and the fourth sensor is located at a fourth sensor position, on a second virtual line oriented in the second direction, and spaced a second distance apart from each other, the third sensor is configured to measure a fifth magnetic field component oriented in the second direction and a sixth magnetic field component oriented in the third direction, and the fourth sensor is configured to measure a seventh magnetic field component oriented in the first direction and an eighth magnetic field component oriented in the third direction.
[0023] Using such a configuration, a first magnetic field gradient (e.g., dBx / dx) can be based on the difference between the first and third magnetic field components; a second magnetic field gradient (e.g., dBz / dx) can be based on the difference between the second and fourth magnetic field components; a third magnetic field gradient (e.g., dBy / dy) can be based on the difference between the fifth and seventh magnetic field components; and a fourth magnetic field gradient (e.g., dBz / dy) can be based on the difference between the sixth and eighth magnetic field components.
[0024] In an embodiment, the first angle (α) is determined according to the following formula:
[0025] α=K1*atan2(dBz / dx, dBx / dx), where α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, and dBz / dx is the third magnetic field gradient, and K1 is a first predefined constant; and the second angle (β) is determined according to the following formula:
[0026] β=K2*atan2(dBz / dy, dBy / dy), where β is the second angle, atan2() is a two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 is a second predefined constant.
[0027] In an embodiment, the first angle (α) is determined according to the following formula:
[0028] α=K1*atan2(K3*dBz / dx, dBx / dx), where α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, dBz / dx is the third magnetic field gradient, and K1 and K3 are predefined constants; and where the second angle (β) is determined according to the following formula: β=K2*atan2(K4*dBz / dy, dBy / dy), where β is the second angle, atan2() is a two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 and K4 are predefined constants.
[0029] In an embodiment, the magnet is movable such that a virtual axis of the magnet is pivotable about a reference point (eg, Pref) having a predefined position relative to the semiconductor substrate.
[0030] In an embodiment, a reference point (eg, P Ref ) is located on the semiconductor substrate and thus is located on the same plane as the sensor.
[0031] In an embodiment, a reference point (e.g., Preference) is located on an imaginary axis perpendicular to the semiconductor substrate, at a predefined non-zero distance from the semiconductor substrate (e.g., dreference), such as above or below the semiconductor substrate. The reference point and the magnet may be located on the same side of the semiconductor substrate, or on opposite sides. The reference point may be located between the substrate and the magnet when the magnet is in its intermediate position (i.e., oriented with its axis perpendicular to the semiconductor substrate), or within a space defined by the magnet (when it is in its intermediate position), or the magnet (when in its intermediate position) may be located between the reference point and the semiconductor substrate.
[0032] In some embodiments, the ratio of the distance "d ref" to the (axial) height H of the magnet (d ref / H) can be a value in the range of 50% to 200%, or a value in the range of 50% to 150%, or a value in the range of 75% to 125%.
[0033] In an embodiment, a first distance (e.g., ΔX) between the first sensor position and the second sensor position is substantially equal to a second distance (e.g., ΔY) between the third sensor position and the fourth sensor position. In this embodiment, the sensors may be located on a virtual circle. The reference point may be located at the center of the circle, or may be located on a virtual line perpendicular to the substrate and passing through the center of the circle, at a predefined non-zero distance from the substrate.
[0034] In an embodiment, a first distance (e.g., ΔX) between the first sensor position and the second sensor position is at least 5% greater or at least 5% less than a second distance (e.g., ΔY) between the third sensor position and the fourth sensor position. In this embodiment, the sensors may be located on a virtual ellipse. The reference point may be located at the center of the ellipse, or may be located on a virtual line perpendicular to the substrate and passing through the center of the ellipse, at a predefined non-zero distance from the substrate.
[0035] In an embodiment, each of the four sensors includes an integrated magnetic concentrator and two horizontal Hall elements.
[0036] The integrated magnetic concentrator (also referred to as “integrated flux concentrator”) may have a disk shape with a diameter in the range of 150 μm to 250 μm, for example in the range of 170 μm to 230 μm, for example equal to about 200 μm.
[0037] In an embodiment, the first sensor includes a first integrated magnetic concentrator and a first horizontal Hall element and a second horizontal Hall element, each Hall element being located on an opposite side of a first IMC (integrated magnetic concentrator) on a first virtual line oriented in a first direction, and the second sensor includes a second integrated magnetic concentrator and a third horizontal Hall element and a fourth horizontal Hall element, each Hall element being located on an opposite side of the second IMC on the first virtual line; and the third sensor includes a third integrated magnetic concentrator and a fifth horizontal Hall element and a sixth horizontal Hall element, each Hall element being located on an opposite side of the third IMC on a second virtual line oriented in the second direction, and the fourth sensor includes a fourth integrated magnetic concentrator and a seventh horizontal Hall element and an eighth horizontal Hall element, each horizontal Hall element being located on an opposite side of the fourth IMC on the second virtual line.
[0038] Figure 5 An example of such an arrangement is shown in .
[0039] In an embodiment, each of the four sensors comprises a horizontal Hall element and a vertical Hall element. In this embodiment, the sensor device preferably does not contain a magnetic flux concentrator (IMC).
[0040] In an embodiment, each of the four sensors comprises a horizontal Hall element and at least one magnetoresistive sensor element. Also in this embodiment, the sensor device preferably does not contain a magnetic flux concentrator (IMC).
[0041] In an embodiment, the first sensor includes a first horizontal Hall element and a first vertical Hall element, and wherein the second sensor includes a second horizontal Hall element and a second vertical Hall element, wherein each of the first vertical Hall element and the second vertical Hall element has a maximum sensitivity axis oriented in the first direction; and the third sensor includes a third horizontal Hall element and a third vertical Hall element, and wherein the fourth sensor includes a fourth horizontal Hall element and a fourth vertical Hall element, wherein each of the third vertical Hall element and the fourth vertical Hall element has a maximum sensitivity axis oriented in the second direction.
[0042] In an embodiment, the processing circuit is integrated in the semiconductor substrate. Thus, in this embodiment, the sensor element and the processing circuit are integrated on a single substrate.
[0043] According to a second aspect, the invention also provides a position sensor system, the system comprising: a sensor device according to the first aspect; and a magnet pivotable about a reference point (e.g. P reference) having a predefined position relative to the semiconductor substrate. This means that the magnet can be moved in such a way that it rotates about the predefined reference position, e.g. Figure 1In the case where the magnet has a cylindrical or spherical shape, the magnet can also be rotated about its own axis, but this rotation does not change the magnetic field lines.
[0044] The magnet may be a two-pole magnet, for example having a cylindrical shape, or a bar shape, or a spherical shape.
[0045] In an embodiment, the system further comprises a joystick connected to the magnet.
[0046] According to a third aspect, the present invention also provides a method for determining the orientation of a magnet pivotable about a reference point (e.g. Preference) having a predefined position relative to a semiconductor substrate (e.g., by two angles α, β), the method comprising:
[0047] a) determining at least two of the following magnetic field gradients: i) a first magnetic field gradient (e.g., dBx / dx) of a first magnetic field component oriented in a first direction parallel to the semiconductor substrate along the first direction; ii) a second magnetic field gradient (e.g., dBy / dy) of a second magnetic field component oriented in a second direction parallel to the semiconductor substrate and perpendicular to the first direction along the second direction; iii) a third magnetic field gradient (e.g., dBz / dx) of a third magnetic field component oriented in a third direction perpendicular to the semiconductor substrate along the first direction; iv) a fourth magnetic field gradient (e.g., dBz / dy) of the third magnetic field component oriented in the third direction along the second direction; b) determining, based on at least some of the magnetic field gradients, a first angle formed between orthogonal projections of the axis of the magnet on a first virtual plane (e.g., XZ) parallel to the first direction (e.g., X) and a third direction (e.g., Z); and c) determining, based on at least some of the magnetic field gradients, a second angle formed between orthogonal projections of the axis of the magnet on a second virtual plane (e.g., YZ) parallel to the second direction and the third direction.
[0048] In an embodiment, step a) comprises: determining only two magnetic field gradients, namely: dBz / dx and dBz / dy; and step b) comprises: determining a first angle (e.g. α) that is dependent on only one magnetic field gradient (i.e.: dBz / dx); and step c) comprises: determining a second angle (e.g. β) that is dependent on only the other magnetic field gradient (i.e.: dBz / dy).
[0049] In an embodiment, the first angle is determined based on at least a first magnetic field gradient (e.g., dBx / dx) and a third magnetic field gradient (e.g., dBz / dx); and the second angle is determined based on at least a second magnetic field gradient (e.g., dBy / dy) and a fourth magnetic field gradient (e.g., dBz / dy).
[0050] In an embodiment, the first angle is determined only based on the first magnetic field gradient (e.g., dBx / dx) and the third magnetic field gradient (e.g., dBz / dx); and the second angle is determined only based on the second magnetic field gradient (e.g., dBy / dy) and the fourth magnetic field gradient (e.g., dBz / dy).
[0051] In an embodiment, the first angle is determined according to the following formula:
[0052] α=K1*atan2(dBz / dx, dBx / dx), where α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, dBz / dx is the third magnetic field gradient, and K1 is a first predefined constant; and the second angle is determined according to the following formula:
[0053] β=K2*atan2(dBz / dy, dBy / dy), where β is the second angle, atan2() is a two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 is a second predefined constant.
[0054] In an embodiment, the first angle is determined according to the following formula:
[0055] α=K1*atan2(K3*dBz / dx, dBx / dx), where α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, dBz / dx is the third magnetic field gradient, and K1 and K3 are predefined constants; and the second angle is determined according to the following formula:
[0056] β=K2*atan2(K4*dBz / dy, dBy / dy), where β is the second angle, atan2() is a two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 and K4 are predefined constants.
[0057] 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 the claims.
[0058] 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
[0059] Figure 1is a schematic diagram of a magnetic position sensor system including an axially magnetized magnet movable relative to a sensor device having at least two degrees of freedom.
[0060] Figure 2 It is shown how the random orientation of the line segment [CP] can be represented by two angles α and β.
[0061] Figure 3 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 two horizontal Hall elements arranged on opposite sides of the IMC. The sensor structure can measure in-plane magnetic field gradients (dBx / dx) and out-of-plane magnetic field gradients (dBz / dx).
[0062] Figure 4(a) to Figure 4(d) is a schematic diagram of a cylindrical magnet having an axis intersecting a semiconductor substrate at a predefined reference position.
[0063] In Figures 4(a) and 4(b), the sensor or sensor structure is located at the reference position. It can be seen that the magnetic field lines passing through the sensor position have the same orientation as the mechanical angle of the shaft, and the distance between the sensor and the magnet is independent of the orientation of the shaft.
[0064] In Figures 4(c) and 4(d), the semiconductor substrate includes a plurality of sensors or sensor structures located at sensor positions spaced apart from a reference position. It can be seen that the orientation of the magnetic field lines at the plurality of sensor positions is different from the orientation of the axis, and the distance between each of the sensor positions and the magnet is not constant, but depends on the orientation of the axis.
[0065] Figure 5 is a schematic diagram of a first sensor device proposed in the present invention.
[0066] Figure 6 is a schematic diagram of another sensor device proposed by the present invention.
[0067] Figure 7(a) to Figure 7(e) The simulation results of the system proposed by the present invention are shown.
[0068] Figure 8(a) to Figure 8(e) The simulation results of another system proposed by the present invention are shown.
[0069] Fig. 9 An electrical block diagram of a circuit that can be used in the position sensor device proposed by the present invention is shown.
[0070] Fig.10A flow chart of a method for determining two angles α, β corresponding to the orientation of the magnet axis proposed by the present invention is shown.
[0071] Fig.11 Shows Figure 1 A variant of a sensor system in which the magnet is pivotable about a reference point located at a predefined distance "d reference" above the substrate.
[0072] 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 construed as limiting the scope. In different drawings, the same reference numerals refer to the same or similar elements. DETAILED DESCRIPTION
[0073] 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.
[0074] 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.
[0075] 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.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] 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 called integrated flux concentrators) and one or more horizontal Hall elements arranged near the periphery of the IMC, for example, a disk-shaped IMC having two horizontal Hall elements spaced 180° apart from each other, or a disk-shaped IMC having four horizontal Hall elements spaced 90° apart from each other.
[0084] In this document, the expressions "in-plane components 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 "components of the magnetic field parallel to the semiconductor plane". These components may be denoted Bx, By.
[0085] 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" are used synonymously. This component may be denoted Bz.
[0086] Embodiments of the present invention are generally described using an orthogonal coordinate system fixed to the sensor device and having 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.
[0087] 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 along a direction. In theory, the gradient is usually calculated as the difference between the two values divided by the distance between the sensor positions, but in practice, the division by the distance is usually omitted, since the measured signal needs to be scaled anyway.
[0088] In this application, horizontal Hall plates are generally indicated by H1, H2, etc., and signals from these horizontal Hall plates are generally indicated by h1, h2, etc., vertical Hall plates are generally indicated by V1, V2, etc., and signals from these vertical Hall plates are generally indicated by v1, v2, etc.
[0089] In the context of the present invention, the formulas arctan(x / y), atan2(x,y), arccot(y / x) are considered equivalent.
[0090] The present invention relates to a magnetic position sensor system, method and apparatus for measuring the orientation of a magnet pivotable about a fixed reference point "Preference". The fixed reference point may be located on a semiconductor substrate, or may be located a predefined distance "dreference" above or below the semiconductor substrate. The magnet may be connected to a joystick (not shown).
[0091] In a preferred embodiment, the system has improved accuracy, for example because it is less sensitive to external interfering fields.
[0092] Refer to the attached drawings.
[0093] Figure 1 is a schematic diagram of a magnetic position sensor system 100 , which includes a cylindrical magnet 101 and a sensor device 102 .
[0094] The sensor device 102 includes a semiconductor substrate ( Figure 1 A coordinate system having three orthogonal axes X, Y, Z is associated to the semiconductor substrate such that axes X and Y are parallel to the semiconductor substrate and axis Z is orthogonal to the semiconductor substrate.
[0095] Figure 1 The magnet 101 shown in is a cylindrical magnet, more specifically an axially magnetized magnet 101. The magnet has a virtual axis "A" and can be rotated in various directions, which intersects the semiconductor substrate at a fixed reference point "Pref". The distance between the magnet 101 and the reference point "Pref" is constant, so the system has two degrees of freedom. The task of the sensor device 102 is to determine the orientation of the magnet.
[0096] For example, two angles and ψ to uniquely define the orientation, where is a negative or positive angle relative to the Z axis of the orthogonal projection of axis A in the YZ plane, and ψ is a negative or positive angle relative to the Z axis of the orthogonal projection of axis A in the XZ plane. In the example shown, if the axis A of the magnet is oriented perpendicular to the semiconductor substrate, the magnetic field vector B at the intersection of axis A and the semiconductor substrate is oriented in the negative Z direction, and ψ = 0°. The magnet is preferably at least between -30° and +30°. and within a ψ range of -30° to +30°, but of course also larger ranges are envisaged, such as ±40° or ±50° or ±60°. However, by the angle Specifying the orientation of the magnet 101 by ψ and ψ is not the only possible method.
[0097] Figure 2Another method of defining the orientation of a vector [CP] having a constant length starting from a reference point "C" and ending at a point "P" on an imaginary sphere is shown. The vector [CP] is not shown, but a first orthogonal projection [CA] of the vector [CP] on the plane XZ, and a second orthogonal projection [CB] of the vector [CP] on the plane YZ are shown. The orientation of the axis A passing through points C and P can also be defined by a first angle α between the positive X-axis and the vector [CA], and by a second angle β between the positive Y-axis and the vector [CB]. As an example, if the magnet axis is oriented perpendicular to the plane XY (i.e., perpendicular to the semiconductor substrate), also referred to as the "neutral position", then α = 90° and β = 90°. This is consistent with the above where And it corresponds to the orientation of ψ=0°.
[0098] The following formula applies:
[0099] Bx=B*cos(α)*sin(β) [1]
[0100] By=B*cos(β)*sin(α) [2]
[0101] Bz=B*sin(β)*sin(α) [3]
[0102] Dividing [3] and [1] yields:
[0103] (Bz / Bx) = tan(α) [4]
[0104] (Bz / By) = tan(β) [5]
[0105] Wherein, Bx is the magnetic field component oriented in the X direction, By is the magnetic field component oriented in the Y direction, Bz is the magnetic field component oriented in the Z direction, and B is the magnitude of the magnetic field vector.
[0106] In a preferred embodiment, the angles α and β are values from the range of 90°±30°, or from the range of 90°±40°, or from the range of 90°±50°, or from the range of 90°±60°.
[0107] Figure 3A semiconductor substrate is shown, which includes a first sensor (or sensor structure) S1 located at a first sensor position X1 on the X-axis and a second sensor (or sensor structure) S2 located at a second sensor position X2 on the X-axis (separated 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.
[0108] To understand the present invention, it is only necessary to know that the signals h1 and h2 of the first sensor S1 can be combined to determine both the in-plane magnetic field component Bx1 (parallel to the semiconductor substrate) and the out-of-plane magnetic field component Bz1 (perpendicular to the semiconductor substrate). More specifically, the in-plane magnetic field component Bx1 is parallel to the X-axis and can be calculated by the subtraction of the signals h1 and h2, and the out-of-plane magnetic field component Bz1 is parallel to the Z-axis and can be calculated by the sum of the signals h1 and h2. This can be expressed mathematically as follows:
[0109] Bx1=(h2-h1) [6]
[0110] Bz1=(h2+h1) [7]
[0111] 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:
[0112] Bx2=(h4-h3) [8]
[0113] Bz2=(h4+h3) [9]
[0114] And from these values the in-plane magnetic field gradient dBx / dx and the out-of-plane magnetic field gradient dBz / dx can be determined, for example according to the following formula:
[0115] ΔBx / Δx=Bx2-Bx1
[10]
[0116] ΔBz / Δx=Bz2-Bz1
[11]
[0117] Note that the division by "Δx" is usually omitted because the distance is constant and the value obtained from the Hall element needs to be scaled anyway, but the notation ΔBz / Δx (or dBz / dx) is useful in this application because it indicates not only the difference between the two Bz values taken, but also in which direction, in the case of Δx, the x direction. As is known in the art, the gradient signal is highly insensitive to external disturbance fields.
[0118] Note that the sensor device ( Figure 3 Not shown, but see Figure 6 ) has two sensors S1, S2 separated by a distance ΔX, wherein the first sensor S1 includes a horizontal Hall element H1 and a vertical Hall element V1, whose maximum sensitivity axis is oriented in the X direction, and wherein the second sensor S2 includes a horizontal Hall element H2 and a vertical Hall element V2, whose maximum sensitivity axis is oriented in the X direction, the sensor device is also capable of measuring Bx1, Bz1 and Bx2, Bz2, respectively, and is capable of determining two magnetic field gradients dBx / dx and dBz / dx. If v1 is a signal obtained from V1, v2 is a signal obtained from V2, h1 is a signal obtained from H1, and h2 is a signal obtained from H2, then dBx / dx can be calculated as (v2-v1), and dBz / dx can be calculated as (h2-h1).
[0119] Figure 4(a) to Figure 4(d) is a schematic diagram of a cylindrical magnet having an imaginary axis "A" intersecting a semiconductor substrate (schematically indicated with a dashed line) at a predefined position "Pref". The axis "A" is pivotable about a reference point "Pref". Only the movement parallel to the XZ plane is shown to avoid overloading the drawing.
[0120] In Figures 4(a) and 4(b), the sensor (schematically indicated by a black square) is located at the reference position "Pref". It can be seen that the magnetic field lines passing through the sensor position have the same orientation as the mechanical orientation of the axis "A" of the magnet, and the distance "g" between the sensor and the magnet is independent of the orientation of the axis.
[0121] In Figures 4(c) and 4(d), the semiconductor substrate includes a plurality of sensors separated by a distance ΔX, and the reference position "Preference" is preferably located in the middle of the sensor positions. It can be seen that the orientation of the magnetic field lines at the plurality of sensor positions is no longer the same as the orientation of the axis A, and the distance between each of the sensor positions and the magnet is no longer constant, but depends on the orientation of the axis "A".
[0122] As far as the inventors know, there is no known general analytical formula or relationship between the mechanical inclination of the axis A and the magnetic field components (Bx, By, Bz) at the two sensor locations, let alone the relationship between said mechanical inclination and the magnetic field gradient dBx / dx that can be derived from the signals obtained from the two sensors located at a distance Δx / 2 from a reference point. The inventors started a research project to investigate this relationship. It is expected that this relationship is highly nonlinear and difficult to describe mathematically.
[0123] Figure 5 is a schematic diagram of a first sensor device 500 proposed by the present invention.
[0124] The sensor device 500 comprises a semiconductor substrate comprising a plurality of magnetic sensors S1, S2, S3, S4, each of which is configured to determine:
[0125] i) a first magnetic field gradient dBx / dx of a first magnetic field component Bx oriented in a first direction X parallel to the semiconductor substrate along said first direction X; and
[0126] ii) a second magnetic field component By oriented in a second direction Y parallel to the semiconductor substrate and perpendicular to the first direction X, and a second magnetic field gradient dBy / dy along the second direction Y; and
[0127] iii) a third magnetic field gradient dBz / dx of a third magnetic field component Bz oriented in a third direction Z perpendicular to the semiconductor substrate along said first direction X; and
[0128] iv) a fourth magnetic field gradient dBz / dy of the third magnetic field component Bz oriented in the third direction Z along the second direction Y.
[0129] The sensor device 500 further includes a processing circuit ( Figure 5 Not shown, but see e.g. Fig. 9 ), the processing circuit is configured to determine two angles (e.g. Figure 1 The angle shown in ψ, or Figure 2 The two angles α, β) shown in , define the orientation of an axis A of a magnet (eg a magnet pivotable about a fixed reference point) based on these magnetic field gradients dBx / dx, dBy / dy, dBz / dx, dBz / dy.
[0130] The inventors surprisingly found that it is feasible to define and calculate such angles based on the above four magnetic field gradients in an analytical manner and with a relatively good approximation (eg, absolute error less than ±10°) even in the presence of external interfering fields. This was unexpected.
[0131] They also found that it is feasible to further improve this accuracy (i.e., reduce the absolute error to values less than ±5° or less than ±3°) through post-processing, such as by remapping the calculated angles using two piecewise linear approximation functions, one for each angle.
[0132] The processing circuit can be configured to determine a first angle α formed between orthogonal projections of the axis A of the magnet on a first virtual plane XZ based on the first magnetic field gradient dBx / dx and the third magnetic field gradient dBz / dx, and the virtual plane XZ is parallel to the first direction X and the third direction Z; and to determine a second angle β formed between orthogonal projections of the axis A of the magnet on a second virtual plane YZ based on the second magnetic field gradient dBy / dy and the fourth magnetic field gradient dBz / dy, and the virtual plane YZ is parallel to the second direction Y and the third direction Z.
[0133] It is found that through these angles α, β (such as Figure 2 ) specifies the orientation of the magnet's axis A, allowing the angle to be calculated using a relatively simple mathematical expression.
[0134] The plurality of magnetic sensors may include a first sensor S1 , a second sensor S2 , a third sensor S3 , and a fourth sensor S4 .
[0135] The first sensor S1 may be located at a first sensor position, and the second sensor S2 may be located at a second sensor position, both of which are located on a first virtual line oriented in a first direction X and are spaced apart from each other by a first non-zero distance ΔX. The first sensor S1 may be configured to measure a first magnetic field component Bx1 oriented in the first direction X and a second magnetic field component Bz1 oriented in a third direction Z. The second sensor S2 may be configured to measure a third magnetic field component Bx2 oriented in the first direction X and a fourth magnetic field component Bz2 oriented in the third direction Z.
[0136] The third sensor S3 may be located at the third sensor position, and the fourth sensor S4 may be located at the fourth sensor position, both of which are located on a second virtual line oriented in the second direction Y and are spaced apart from each other by a second non-zero distance ΔY. The third sensor S3 may be configured to measure a fifth magnetic field component By1 oriented in the second direction Y and a sixth magnetic field component Bz3 oriented in the third direction Z. The fourth sensor S4 may be configured to measure a seventh magnetic field component By2 oriented in the first direction X and an eighth magnetic field component Bz4 oriented in the third direction Z.
[0137] The sensor device can be further configured to determine a first magnetic field gradient dBx / dx based on the difference between the first Bx1 and third Bx2 magnetic field components; and to determine a second magnetic field gradient dBz / dx based on the difference between the second Bz1 and fourth Bz2 magnetic field components; and to determine a third magnetic field gradient dBy / dy based on the difference between the fifth By1 and seventh By2 magnetic field components; and to determine a fourth magnetic field gradient dBz / dy based on the difference between the sixth Bz3 and eighth Bz4 magnetic field components.
[0138] In an embodiment, the distance ΔY is equal to the distance ΔX, in which case the four sensor positions are preferably located on a circle and the reference point "P Ref " is preferably located at the center of the circle.
[0139] In another embodiment, the distance ΔY is different from ΔX (e.g., ΔX is at least 5% greater or less than ΔY), in which case the four sensor positions are preferably located on an ellipse, and the reference point "Pref" is preferably located at the center of the ellipse. Using such an embodiment, the size of the semiconductor substrate can be reduced, and thus the compactness can be increased and the cost can be reduced. This can be particularly useful for joystick applications, where the "handle" can be moved over a larger range parallel to the YZ plane (e.g., with at least three or four positions) than the range parallel to the XZ plane (e.g., only two positions).
[0140] exist Figure 5 In the example of , each of the four sensors S1 to S4 includes an integrated magnetic concentrator (IMC) and two horizontal Hall elements arranged near the periphery of the IMC and spaced 180° apart.
[0141] More specifically, the first sensor S1 includes a first integrated magnetic concentrator IMC1 and first and second horizontal Hall elements H1, H2 located on opposite sides of the first IMC on a first virtual line oriented in a first direction X. The second sensor S2 includes a second integrated magnetic concentrator IMC2 and third and fourth horizontal Hall elements H3, H4 located on opposite sides of the second IMC on the first virtual line. The third sensor S3 includes a third integrated magnetic concentrator IMC3 and fifth and sixth horizontal Hall elements H5, H6 located on opposite sides of the third IMC on a second virtual line oriented in a second direction Y. The fourth sensor S4 includes a fourth integrated magnetic concentrator IMC4 and seventh and eighth horizontal Hall elements H7, H8 located on opposite sides of the fourth IMC on the second virtual line.
[0142] The integrated magnetic concentrator (also referred to as “integrated flux concentrator”) may have a disk shape with a diameter in the range of 150 μm to 250 μm, for example in the range of 170 μm to 230 μm, for example equal to about 200 μm.
[0143] If h1 to h8 are the signals provided by the horizontal Hall elements H1 to H8, respectively, the four gradient values can be calculated according to the following formulas:
[0144] gr1=(dBx / dx)=Bx2-Bx1=(h4-h3)-(h2-h1)
[11]
[0145] gr2=(dBz / dx)=Bz2-Bz1=(h4+h3)-(h2+h1)
[12]
[0146] gr3=(dBy / dy)=By4-By3=(h8-h7)-(h6-h5)
[13]
[0147] gr4=(dBz / dy)=Bz4-Bz3=(h8+h7)-(h6+h5)
[14]
[0148] The inventors unexpectedly discovered that the first angle α can be well approximated by the following extremely simple formula:
[0149] α=K1*atan2(gr2,gr1) [15a]
[0150] And the second angle β can be well approximated by the following extremely simple formula:
[0151] β=K2*atan2(gr4,gr3) [16a]
[0152] Since both angles α, β are calculated as a function of the magnetic gradient, these angles are highly insensitive to external disturbance fields. In addition, since the angles are calculated based on the ratio of the two gradients, these angles are also highly insensitive to temperature changes and / or aging effects (such as demagnetization) of the magnet.
[0153] The values of K1 and K2 can be determined by simulation or by calibration and can be stored in a non-volatile memory of the sensor device. The values of K1, K2 can depend on the size of the magnet (diameter, height), the distance Δx, Δy between the sensors, and the distance "g" between the magnet and the reference point "Pref".
[0154] But the present invention is not limited thereto, and the following formula may also be used:
[0155] α=K1*atan2(K3*gr2,gr1) [15b]
[0156] β=K2*atan2(K4*gr4,gr3) [16b]
[0157] Where K3 and K4 are predefined constants, which will be discussed further in Figures 7(c) and 8(c). Formulas [15b] and [16b] may provide more accurate results in case Δx differs from Δy. Of course, many variations of the formula are possible, such as, for example:
[0158] α=K1*atan2(gr2 / K5,gr1) [15c], or
[0159] α=K1*atan2(gr2,K6*gr1) [15d], or
[0160] α=K1*atan2(gr2,gr1 / K7) [15e],
[0161] Where K5, K6, K7 are predefined constants. Similar variations are also possible for formula [16b].
[0162] Figure 6 is a schematic diagram of another sensor device 600 proposed by the present invention, which can be regarded as Figure 5 The main difference is that each sensor includes one horizontal Hall element and one vertical Hall element. Everything else described above also applies here mutatis mutandis.
[0163] More specifically, in Figure 6 In the example of , the first sensor S1 includes a first horizontal Hall element H1 and a first vertical Hall element V1, and the second sensor S2 includes a second horizontal Hall element H2 and a second vertical Hall element V2, and each of the first and second vertical Hall elements V1, V2 has a maximum sensitivity axis oriented in the first direction X. Similarly, the third sensor S3 includes a third horizontal Hall element H3 and a third vertical Hall element V3, and the fourth sensor S4 includes a fourth horizontal Hall element H4 and a fourth vertical Hall element V4, and each of the third and fourth vertical Hall elements V3, V4 has a maximum sensitivity axis oriented in the second direction Y.
[0164] If h1 to h4 are signals provided by the horizontal Hall elements H1 to H4, and v1 to v4 are signals provided by the vertical Hall elements V1 to V4, the first and second angles α, β may be calculated according to the following set of formulas:
[0165] gr1=(dBx / dx)=Bx2-Bx1=(v2-v1)
[17]
[0166] gr2=(dBz / dx)=Bz2-Bz1=(h2-h1)
[18]
[0167] gr3=(dBy / dy)=By4-By3=(v4-v3)
[19]
[0168] gr4=(dBz / dy)=Bz4-Bz3=(h4-h3)
[20]
[0169] α=K1*atan2(gr2,gr1) [21a]
[0170] β=K2*atan2(gr4,gr3) [22a]
[0171] Or use the following formula:
[0172] α=K1*atan2(K3*gr2,gr1) [21b]
[0173] β=K2*atan2(K4*gr4,gr3) [22b]
[0174] This can provide more accurate results in cases where Δx is different from Δy.
[0175] exist Figure 6 In a variant of , the sensor device does not contain a vertical Hall element, but a magnetoresistive element.
[0176] In another variation, the Figure 6 vertical Hall element, therefore, Figure 6 The sensor device consists of only four horizontal Hall elements.
[0177] FIG. 7( a ) shows an illustrative sensor system 700 comprising a cylindrical magnet having a diameter D=4 mm and a height H=4 mm, mounted at a distance g=3 mm from a reference point located on a semiconductor substrate, between two sensors spaced approximately 1.7 mm apart, each sensor comprising an IMC having a diameter of approximately 190 μm and two horizontal Hall elements (e.g., Figure 3 or Figure 5 ).
[0178] Figure 7(b) to Figure 7(e) The simulation results of the sensor system are shown.
[0179] FIG7( b ) shows the waveforms of the magnetic field components Bx and Bz as a function of the mechanical angle α ( Figure 2 4(a) and 4(b)). The plot also shows the waveform of the magnetic field with magnitude |B| calculated as the sum of the squares of these components sqr(Bx)+sqr(Bz). It can be seen that this value is substantially constant.
[0180] FIG. 7( c ) shows a plot of the waveforms of the magnetic field gradients gr2=dBz / dx and gr1=dBx / dx as a function of the mechanical angle α, which can be derived from the signals measured by two sensors located on opposite sides of the reference position “P ref ” (as shown in FIG. 4( c ) and FIG. 4( d )), and can therefore be derived as shown by Figure 5 or Figure 6 is determined by the sensor device shown in . The plot of Figure 7(b) also shows the waveform of |dB| calculated as the sum of the squares of these gradients sqr(dBx / dx)+sqr(dBz / dx). It can be seen that this value is fairly constant, but not completely constant, meaning that the gradient signals gr1 and gr2 are not perfectly orthogonal signals. Formulas [15b], [16b], [21b] and [22b] can take this difference into account by selecting values of K3 and K4 different from 1.00 (for example, in the range from 0.80 to 0.98 or in the range from 1.02 to 1.20).
[0181] However, as described above, it was unexpectedly found that even without the K factor, the signal was remarkably similar to the orthogonal signal.
[0182] In fact, Figure 7(d) shows the curve obtained by the formula atan2(gr2,gr1). It can be seen that the curve is almost linear and has a slope equal to about 2.5. Such a high linearity is completely unexpected.
[0183] FIG7( e ) shows the difference (or error) between the mechanical angle α and the value calculated as (0.4)*atan2(gr2,gr1) (i.e., by applying formula [15a], where K1=0.4). It can be seen that for mechanical angles α varying from about 60° to about 120°, the error is less than ±4°. Such a small error is not expected for such a simple formula.
[0184] Figure 7(a) to Figure 7(e) Only simulations for angle α are shown, but these simulations also represent a second angle β, but in this case the labeling of the curves would be "By" instead of "Bx" in Figure 7(b), and "dBz / dy" instead of "dBz / dx", and "dBy / dy" instead of "dBx / dx" in Figure 7(c).
[0185] As described above, the inventors have also discovered that this error can be further reduced to values less than ±5°, or less than ±3°, or less than ±1.0°, or less than ±0.5°, or even less than ±0.2°, or less than ±0.1°, by known “post-processing techniques”, such as by remapping the curve of FIG. 7( d) using a piecewise linear approximation (the parameters of which may be determined during a calibration step and may be stored in a non-volatile memory of the sensor device).
[0186] As can be understood from FIG. 7( c ), the signal dBz / dx alone can also be used as a rough indication of the first angle, and similarly the signal dBz / dy alone can be used as a rough indication of the second angle. Depending on the application (e.g., gaming machine, excavator, etc.), a rough indication may or may not be sufficient. The rough indication can be further improved by using a lookup table or piecewise linear correction.
[0187] FIG8( a) shows an illustrative sensor system 800 comprising a cylindrical magnet having a diameter D=8 mm and a height H=4 mm mounted at a distance g=3 mm from a reference point “Pref” located between two sensors spaced approximately 1.7 mm apart, each sensor comprising an IMC having a diameter of approximately 190 μm and two horizontal Hall elements (e.g., Figure 3 or Figure 5 ).
[0188] Figure 8(b) to Figure 8(e) The simulation results of the sensor system are shown.
[0189] It can be seen that Figure 8(b) to Figure 8(e) The curve and Figure 7(b) to Figure 7(e) The curves are very similar, but the intrinsic linearity of the curve shown in FIG8( d) is improved, and the intrinsic error shown in FIG8( e) is reduced to a value within the range of ±3°. (Wherein "intrinsic linearity" refers to the linearity of the curve without "post-processing"). As mentioned above, the intrinsic linearity can also be improved using any of formulas [15b], [16b], [21b] and [22b], where K3 and K4 are different from 1.00.
[0190] Of course, the present invention is not limited to sensor systems of the specific dimensions shown in the examples of FIG. 7( a ) and FIG. 8( a ), but is also applicable to systems having, for example, the following parameter combinations:
[0191]
[0192] A skilled person having the benefit of the present disclosure can readily find optimal values for K1, K2, and optionally K3, K4 (if used), for example by performing simulations and / or calibration tests. The values of K1 to K4 may be stored in the non-volatile memory 931 of the sensor device (e.g., see Fig. 9 ).
[0193] Fig. 9An electrical block diagram of a circuit 910 that can be used in the position sensor device described above is shown. The circuit 910 includes a plurality of magnetic sensor elements M1 to M8 (e.g., horizontal Hall elements, vertical Hall elements, MR elements, etc.) and a processing unit 930 (e.g., including analog components and / or digital components) and a non-volatile memory 931 (e.g., EEPROM or flash memory). The biasing and readout of the Hall sensor or the circuit including the MR element are well known in the art, so no further detailed explanation is required here.
[0194] This block diagram can be used, for example, with Figure 5 or Figure 6 or a sensor device with a sensor structure as shown in or a variation thereof.
[0195] The sensor device can be configured to measure magnetic field components Bx1 and Bz1 at a first sensor position, magnetic field components Bx2 and Bz2 at a second sensor position, magnetic field components By1 and Bz3 at a third sensor position, and magnetic field components By2 and Bz4 at a fourth sensor position, wherein the first and second sensor positions are located on an X-axis, and the third and fourth sensor positions are located on a Y-axis perpendicular to the X-axis, wherein the sensor device is configured to determine an in-plane gradient dBx / dx and an out-of-plane gradient dBz / dx along the X-direction, as well as to determine an in-plane gradient dBy / dy and an out-of-plane gradient dBz / dy along the Y-direction, and to determine two angle values α, β based on these magnetic field gradients.
[0196] The first angle α and the second angle β may be determined in the manner described above, for example by using the above mathematical formulas [15a] and [15b], or [21a] and [21b], and / or by using a lookup table (optionally with interpolation). Optionally, a post-correction step is also applied, for example, using a piecewise linear correction for α and a piecewise linear correction for β. The piecewise linear correction for α may be independent of the piecewise linear correction for β.
[0197] The method for determining the magnetic field components (e.g., Figure 5 h2-h1) and / or for determining magnetic field gradients (e.g., Figure 5 Bx2-Bx1 in, or Figure 6 Subtraction of the signal v4-v3) in .
[0198] The processing unit 930 may include a digital processor that may optionally include or be connected to a non-volatile memory 931 (e.g., NVRAM or EEPROM or flash memory). The memory may be configured to store one or more constants, such as K1, K2, and if used, K3, K4, and if a post-correction step is applied, optionally values or coefficients for a post-correction step. The digital processor 930 may be, for example, an 8-bit processor or a 16-bit processor.
[0199] Although not explicitly shown, the sensor device 910 may further include one or more components or subcircuits selected from the group consisting of: an amplifier, a differential amplifier, an analog-to-digital converter (ADC), a multiplexer, 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.
[0200] The main advantage is that the processing circuitry does not have to perform a Fast Fourier Transform (FFT) or implement a neural network with hundreds of nodes.
[0201] Fig.10 A flow chart is shown of a method 1000 for determining an orientation (α, β) of a cylindrical magnet having an axis (A) relative to a reference point “Pref” located on a semiconductor substrate, the method comprising:
[0202] a) determining 1001 a first magnetic field gradient dBx / dx of a first magnetic field component Bx oriented in a first direction X parallel to the semiconductor substrate along the first direction X;
[0203] b) determining 1002 a second magnetic field gradient dBy / dy of a second magnetic field component By oriented in a second direction Y parallel to the semiconductor substrate and perpendicular to the first direction X along the second direction Y;
[0204] c) determining 1003 a third magnetic field gradient dBz / dx of a third magnetic field component Bz oriented in a third direction Z perpendicular to the semiconductor substrate along said first direction X;
[0205] d) determining 1004 a fourth magnetic field gradient dBz / dy of a third magnetic field component Bz oriented in the third direction Z along the second direction Y;
[0206] e) determining 1005 a first angle α formed between orthogonal projections of the axis "A" of the magnet onto a first virtual plane XZ parallel to the first direction X and the third direction Z based on at least two of said magnetic field gradients; and
[0207] f) determining 1006 a second angle β formed between orthogonal projections of the axis "A" of the magnet onto a second virtual plane YZ parallel to the second direction Y and the third direction Z based on at least two of said magnetic field gradients.
[0208] Step e) may include determining the first angle α based only on the first magnetic field gradient dBx / dx and the third magnetic field gradient dBz / dx.
[0209] Step f) may comprise determining the second angle β based only on the second magnetic field gradient dBy / dy and the fourth magnetic field gradient dBz / dy.
[0210] Step e) may comprise determining the first angle α according to formula [15a] or [15b].
[0211] Step f) may comprise determining the second angle β according to formula [21a] or [21b].
[0212] The method may further include a post-correction step to improve accuracy, for example to reduce or substantially eliminate the non-linearity errors shown in Figures 7(e) and 8(e).
[0213] In a variant of the method, (not explicitly shown), steps a) and b) are omitted, and step e) comprises determining the first angle based on only one magnetic field gradient (i.e. dBz / dx), and step f) comprises determining the second angle based on only one magnetic field gradient (i.e. dBz / dy).
[0214] The above describes a system in which the magnet is a cylindrical magnet pivotable about a reference point "P Ref" located on the surface of the semiconductor, but the present invention is not limited to this and is also applicable if the magnet is a two-pole magnet having another shape (e.g., a sphere or a bar), and / or if the reference point "P Ref" is located at a fixed but non-zero distance "d Ref" from the semiconductor substrate.
[0215] Fig.11 Shows Figure 1 A variation of a sensor system in which the magnet 1101 is pivotable about a reference point "Pref" located at a predefined non-zero distance "dref" above the semiconductor substrate (not explicitly shown, but also defined by the XY plane). In this example, the reference point "Pref" is located on the positive Z-axis, meaning that the magnet and the reference point are located on the same side of the substrate. However, the invention is not limited thereto, and the reference point may also be located on the negative Z-axis, i.e. on the opposite side of the substrate from the magnet.
[0216] Figure 1 and Fig.11The reference point "Pref" of the system shown in is located outside the space defined by the dimensions of the cylindrical magnet and between the semiconductor substrate and the magnet when the magnet is in its neutral position (meaning when α = 0° and β = 0°).
[0217] But the invention is not limited thereto and will also apply if a (real or imaginary) reference point "P Ref " (about which the axis of the magnet can pivot) is located within or above the space defined by the magnet.
[0218] It is found that the same formulas used to calculate α and β described above can also be used in these cases. Alternatively, the first angle α and the second angle β can be calculated as an "atan2" function (two-parameter inverse tangent function), where each of the first parameter and the second parameter is a linear combination of two or more magnetic field gradients selected from the group consisting of dBx / dx, dBz / dx, dBy / dy, and dBz / dy.
[0219] Optionally, the sensor device may be further adapted to apply post-processing to the angles in a manner known in the art, for example, by applying a first piecewise linear correction to the angle α using a first set of predefined coefficients, and by applying a second piecewise linear correction to the angle β using a second set of predefined coefficients. These coefficients may be determined during a calibration step and may be stored in a non-volatile memory of the sensor device.
Claims
1. A sensor device for determining an orientation (α, β, φ, ψ) of a magnet having an axis (A), the sensor device comprising: A semiconductor substrate comprising a plurality of magnetic sensors configured to determine: i) a first magnetic field gradient (dBx / dx) of a first magnetic field component (Bx) oriented in a first direction (X) parallel to the semiconductor substrate along the first direction (X); as well as ii) a second magnetic field gradient (dBy / dy) of a second magnetic field component (By) oriented in a second direction (Y) parallel to the semiconductor substrate and perpendicular to the first direction (X) along the second direction (Y); as well as iii) a third magnetic field gradient (dBz / dx) of a third magnetic field component (Bz) oriented in a third direction (Z) perpendicular to the semiconductor substrate along the first direction (X); as well as iv) a fourth magnetic field gradient (dBz / dy) of the third magnetic field component (Bz) oriented in the third direction (Z) along the second direction (Y); A processing circuit (930) configured to: determining a first angle (α, ψ) based on the first magnetic field gradient (dBx / dx) and the third magnetic field gradient (dBz / dx), wherein the first angle (α, ψ) is formed between a first orthogonal projection of the axis (A) of the magnet on a first virtual plane (XZ) parallel to the first direction (X) and the third direction (Z) and the first direction (X) or between the first orthogonal projection and the third direction (Z); as well as A second angle (β, φ) is determined based on the second magnetic field gradient (dBy / dy) and the fourth magnetic field gradient (dBz / dy), wherein the second angle (β, φ) is formed between a second orthogonal projection of the axis (A) of the magnet on a second virtual plane (YZ) parallel to the second direction (Y) and the third direction (Z) and the second direction (Y) or between the second orthogonal projection and the third direction (Z).
2. The sensor device according to claim 1, The plurality of magnetic sensors include a first sensor (S1), a second sensor (S2), a third sensor (S3) and a fourth sensor (S4), The first sensor (S1) is located at a first sensor position and the second sensor (S2) is located at a second sensor position, on a first virtual line oriented in the first direction (X) and spaced a first distance from each other, The first sensor (S1) is configured to measure a first magnetic field component (Bx1) oriented in the first direction (X) and a second magnetic field component (Bz1) oriented in the third direction (Z), The second sensor (S2) is configured to measure a third magnetic field component (Bx2) oriented in the first direction (X) and a fourth magnetic field component (Bz2) oriented in the third direction (Z), The third sensor (S3) is located at a third sensor position and the fourth sensor (S4) is located at a fourth sensor position, on a second virtual line oriented in the second direction (Y) and spaced a second distance from each other, The third sensor (S3) is configured to measure a fifth magnetic field component (By1) oriented in the second direction (Y) and a sixth magnetic field component (Bz3) oriented in the third direction (Z), The fourth sensor (S4) is configured to measure a seventh magnetic field component (By2) oriented in the second direction (Y) and an eighth magnetic field component (Bz4) oriented in the third direction (Z).
3. The sensor device according to claim 1 or 2, It is characterized in that The first angle (α) is determined according to the following formula: α=K1*atan2(dBz / dx,dBx / dx), wherein α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, and dBz / dx is the third magnetic field gradient, and K1 is a first predefined constant; And wherein the second angle (β) is determined according to the following formula: β=K2*atan2(dBz / dy,dBy / dy), Wherein β is the second angle, atan2() is the two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 is a second predefined constant.
4. The sensor device according to claim 1 or 2, It is characterized in that The first angle (α) is determined according to the following formula: α=K1*atan2(K3*dBz / dx,dBx / dx), Wherein α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, dBz / dx is the third magnetic field gradient, and K1 and K3 are predefined constants; And wherein the second angle (β) is determined according to the following formula: β=K2*atan2(K4*dBz / dy,dBy / dy), Wherein β is the second angle, atan2() is the two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 and K4 are predefined constants.
5. The sensor device according to claim 1, It is characterized in that The magnet is movable such that the axis (A) of the magnet is pivotable about a reference point having a predefined position relative to the semiconductor substrate.
6. The sensor device according to claim 2, It is characterized in that a first distance (ΔX) between the first sensor position and the second sensor position being equal to a second distance (ΔY) between the third sensor position and the fourth sensor position; Or wherein a first distance (ΔX) between the first sensor position and the second sensor position is at least 5% greater or at least 5% less than a second distance (ΔY) between the third sensor position and the fourth sensor position.
7. The sensor device according to claim 2, It is characterized in that Each of the four sensors (S1-S4) includes an integrated magnetic concentrator (IMC1-IMC4) and two horizontal Hall elements (H1-H8).
8. The sensor device according to claim 2, It is characterized in that Each of the four sensors (S1-S4) includes a horizontal Hall element and a vertical Hall element; Or wherein each of the four sensors (S1-S4) comprises a horizontal Hall element and at least one magnetoresistive sensor element.
9. The sensor device according to claim 1, It is characterized in that The processing circuit is integrated in the semiconductor substrate.
10. A position sensor system (100; 700; 800; 1100), comprising: The sensor device according to any one of the preceding claims, comprising a semiconductor substrate; as well as A magnet is pivotable about a reference point having a predefined position relative to the semiconductor substrate.
11. The position sensor system according to claim 10, It is characterized in that The system further includes a joystick connected to the magnet.
12. A method (1000) of determining an orientation (α, β) of a magnet, the magnet being pivotable about a reference point having a predefined position relative to a semiconductor substrate, the method comprising: a) determining (1001) a first magnetic field gradient (dBx / dx) of a first magnetic field component (Bx) oriented in a first direction (X) parallel to the semiconductor substrate along the first direction (X); b) determining (1002) a second magnetic field gradient (dBy / dy) of a second magnetic field component (By) oriented in a second direction (Y) parallel to the semiconductor substrate and perpendicular to the first direction (X) along the second direction (Y); c) determining (1003) a third magnetic field gradient (dBz / dx) of a third magnetic field component (Bz) oriented in a third direction (Z) perpendicular to the semiconductor substrate along the first direction (X); d) determining (1004) a fourth magnetic field gradient (dBz / dy) of said third magnetic field component (Bz) oriented in said third direction (Z) along said second direction (Y); e) determining (1005) a first angle (α, ψ) based at least on the first magnetic field gradient (dBx / dx) and the third magnetic field gradient (dBz / dx), wherein the first angle (α, ψ) is formed between a first orthogonal projection of the axis (A) of the magnet onto a first virtual plane (XZ) parallel to the first direction (X) and the third direction (Z) and the first direction (X) or between the first orthogonal projection and the third direction (Z); as well as f) determining (1006) a second angle (β, φ) based at least on the second magnetic field gradient (dBy / dy) and the fourth magnetic field gradient (dBz / dy), wherein the second angle (β, φ) is formed between a second orthogonal projection of the axis (A) of the magnet on a second virtual plane (YZ) parallel to the second direction (Y) and the third direction (Z) and the second direction (Y) or between the second orthogonal projection and the third direction (Z).
13. The method (1000) according to claim 12, It is characterized in that The first angle (α) is determined according to the following formula: α=K1*atan2(dBz / dx,dBx / dx), Wherein α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, dBz / dx is the third magnetic field gradient, and K1 is a first predefined constant; And wherein the second angle (β) is determined according to the following formula: β=K2*atan2(dBz / dy,dBy / dy), Wherein β is the second angle, atan2() is the two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 is a second predefined constant.
14. The method (1000) according to claim 12, It is characterized in that The first angle (α) is determined according to the following formula: α=K1*atan2(K3*dBz / dx,dBx / dx), Wherein α is the first angle, atan2() is a two-parameter inverse tangent function, dBx / dx is the first magnetic field gradient, dBz / dx is the third magnetic field gradient, and K1 and K3 are predefined constants; And wherein the second angle (β) is determined according to the following formula: β=K2*atan2(K4*dBz / dy,dBy / dy), Wherein β is the second angle, atan2() is the two-parameter inverse tangent function, dBy / dy is the second magnetic field gradient, dBz / dy is the fourth magnetic field gradient, and K2 and K4 are predefined constants.
Citation Information
Patent Citations
Circuit and a method for determining an attitude of a magnet, and joystick
US20210110239A1
Magnetic position sensors, systems and methods
CN102954807A
On-axis magnetic field angle sensors, systems and methods
CN104655004A
