Device, system and method for determining a position of a magnet
11656098 · 2023-05-23
Assignee
Inventors
Cpc classification
G01D5/145
PHYSICS
International classification
Abstract
A magnetic sensor system includes a magnet and a sensor device. The magnet has a shape and is movable along an axis between a first position and a second position and is optionally also rotatable about this axis. The magnetic sensor device has a plurality of magnetic sensitive elements for measuring at least two orthogonal magnetic field components or at least two orthogonal magnetic field gradients, and a processing circuit for determining an axial position of the magnet or whether the magnet is located in the first or second position based on the first and second magnetic field components or gradients, and optionally also for estimating or calculating an angular position of the magnet. A method of determining the axial and/or angular position. A magnetic sensor device includes features of the magnetic sensor system.
Claims
1. A magnetic sensor system comprising: a permanent magnet movable along an axis between a first predefined axial position and a second predefined axial position, and being rotatable about said axis or having an unknown angular position (α) about said axis, and generating a magnetic field which is not circular symmetric about said axis; a magnetic sensor device located at an offset from said axis, and comprising a first set of magnetic sensitive elements located in a first sensor location and configured for measuring at least a first magnetic field component oriented in a first direction and a second magnetic field component oriented in a second direction perpendicular to the first direction; wherein the magnetic sensor device is oriented such that the first direction is oriented substantially circumferential with respect to said axis, and such that the second direction is oriented either substantially parallel to the axis or substantially radial to the axis; wherein the magnetic sensor device further comprises a processing circuit; and wherein the processing circuit is configured for calculating a product of the first or the second magnetic field component and a predefined constant, and for calculating a sum of a square of this product and a square of the other of said first and said second magnetic field components; or wherein the magnetic sensor device further comprises a second set of magnetic sensitive elements in a second sensor location spaced from the first sensor location in the first direction, and configured for measuring a third magnetic field component parallel to the first magnetic field component, and a fourth magnetic field component parallel to the second magnetic field component, and wherein the processing circuit is configured for calculating a first magnetic field gradient based on the first and the third magnetic field components, and for calculating a second magnetic field gradient based on the second and the fourth magnetic field components, and for calculating a product by multiplying one of the first and the second magnetic field gradients with a predefined constant, and for calculating a sum of a square of this product and a square of the other magnetic field gradient; wherein the processing circuit is further configured for determining an axial position of the magnet by comparing the sum with a threshold value; and wherein a value of the predefined constant is different from 1.
2. The magnetic sensor system according to claim 1, wherein the magnet is a ring or disk magnet having at least one North pole and at least one South pole at a top surface, and having at least one North pole and at least one South pole at a bottom surface; or wherein the magnet is a radially magnetized ring or disk magnet; or wherein the magnet is a diametrically magnetized ring or disk magnet.
3. The magnetic sensor system according to claim 1, wherein the processing circuit is further configured for calculating an angular position of the magnet based on a product of another predefined constant and a ratio of the first magnetic field component and the second magnetic field component.
4. The magnetic sensor system according to claim 1, wherein the processing circuit is further configured for estimating or calculating an angular position of the magnet based at least on the first and the second magnetic field gradient.
5. The magnetic sensor system according to claim 4, wherein the processing circuit is further configured for estimating the angular position of the magnet based on a ratio of the first magnetic field gradient and the second magnetic field gradient; and wherein the processing circuit is configured for determining a dynamic threshold as a function of the estimated angular position; and wherein the processing circuit is further configured for determining a sum of a square of the first magnetic field gradient and a square of the second magnetic field gradient, and for comparing the sum with the dynamic threshold; and if the sum is larger than said dynamic threshold, to determine that the magnet is in the first predefined axial position along said axis; and if the sum is smaller than said dynamic threshold, to determine that the magnet is in the second predefined axial position along said axis.
6. The magnetic sensor system according to claim 5, wherein the processing circuit is further configured for updating the estimated angular position based on a product of a first predefined constant and the ratio of the first magnetic field gradient and the second magnetic field gradient if the magnet is in the first predefined axial position, and for updating the estimated angular position based on a product of a second predefined constant and the ratio of the first magnetic field gradient and the second magnetic field gradient if the magnet is in the second predefined axial position.
7. The magnetic sensor system according to claim 1, wherein the processing circuit is further configured for estimating an angular position of the magnet based on a ratio of the first magnetic field component and the second magnetic field component; and wherein the processing circuit is configured for determining a dynamic threshold as a function of the estimated angular position; and wherein the processing circuit is further configured for determining a sum of a square of the first magnetic field component and a square of the second magnetic field component, and for comparing the sum with the dynamic threshold; and if the sum is larger than said dynamic threshold, to determine that the magnet is in the first predefined axial position along said axis; and if the sum is smaller than said dynamic threshold, to determine that the magnet is in the second predefined axial position along said axis.
8. The magnetic sensor system according to claim 7, wherein the processing circuit is further configured for updating the estimated angular position based on a product of a first predefined constant and the ratio of the first magnetic field component and the second magnetic field component if the magnet is in the first predefined axial position, and for updating the estimated angular position based on a product of a second predefined constant and the ratio of the first magnetic field component and the second magnetic field component if the magnet is in the second predefined axial position.
9. The magnetic sensor system according to claim 1, wherein the magnet is a ring or disk magnet having a top surface and a bottom surface and a cylindrical wall with an outer radius; and wherein the sensor device is located at a radial distance from said axis larger than said outer radius; and wherein the magnetic sensor device is located outside of a space between a top plane containing or tangential to said top surface and a bottom plane containing or tangential to said bottom surface when the magnet is in at least one of the first and the second predefined axial positions.
10. The magnetic sensor device for use in the magnetic sensor system according to claim 1, the magnetic sensor device comprising: a substrate comprising the first set of magnetic sensitive elements located in the first sensor location, configured for measuring at least the first magnetic field component oriented in the first direction and the second magnetic field component oriented in the second direction perpendicular to the first direction; the processing circuit configured for determining the axial position of the magnet or for determining whether the magnet is located in the first predefined axial position or the second predefined axial position based on at least the first magnetic field component and the second magnetic field component, or values derived therefrom.
11. A method of determining at least an axial position of a permanent magnet using a magnetic sensor device, the magnet being movable along an axis between a first predefined axial position and a second predefined axial position, rotatable about said axis or having an unknown angular position (a) about said axis, and the magnet generating a magnetic field which is not circular symmetric about said axis, the method comprising: providing the magnetic sensor device located at an offset from said axis, the magnetic sensor device comprising a first set of magnetic sensitive elements located in a first sensor location; measuring at the first sensor location a first magnetic field component oriented in a first direction and a second magnetic field component oriented in a second direction perpendicular to the first direction, the magnetic sensor device being oriented such that the first direction is oriented substantially circumferential with respect to said axis, and such that the second direction is oriented either substantially parallel to the axis or substantially radial to the axis; calculating a product of the first or the second magnetic field component and a predefined constant, and further calculating a sum of a square of this product and a square of the other of said first and said second magnetic field components; or providing a second set of magnetic sensitive elements of the magnetic sensor device at a second sensor location spaced from the first sensor location in the first direction, measuring a third magnetic field component parallel to the first magnetic field component, and a fourth magnetic field component parallel to the second magnetic field component, calculating a first magnetic field gradient based on the first and the third magnetic field components, and a second magnetic field gradient based on the second and the fourth magnetic field components, and calculating a product by multiplying one of the first and the second magnetic field gradients with a predefined constant, and further calculating a sum of a square of this product and a square of the other magnetic field gradient; determining the axial position of the magnet by comparing the sum with a threshold value; wherein a value of the predefined constant is different from 1.
12. The method according to claim 11, wherein the magnet is a ring or disk magnet having at least one North pole and at least one South pole at a top surface, and having at least one North pole and at least one South pole at a bottom surface; or wherein the magnet is a radially magnetized ring or disk magnet; or wherein the magnet is a diametrically magnetized ring or disk magnet.
13. The method according to claim 11, further comprising calculating an angular position of the magnet based on a product of another predefined constant and a ratio of the first magnetic field component and the second magnetic field component.
14. The method according to claim 11, further comprising estimating or calculating an angular position of the magnet based at least on the first and the second magnetic field gradient.
15. The method according to claim 14, further comprising: estimating the angular position of the magnet based on a ratio of the first magnetic field gradient and the second magnetic field gradient; and determining a dynamic threshold as a function of the estimated angular position; and determining a sum of a square of the first magnetic field gradient and a square of the second magnetic field gradient, and comparing the sum with the dynamic threshold; and when the sum is larger than said dynamic threshold, determining that the magnet is in the first predefined axial position along said axis; and when the sum is smaller than said dynamic threshold, determining that the magnet is in the second predefined axial position along said axis.
16. The method according to claim 15, further comprising: updating the estimated angular position based on a product of a first predefined constant and the ratio of the first magnetic field gradient and the second magnetic field gradient when the magnet is in the first predefined axial position, and updating the estimated angular position based on a product of a second predefined constant and the ratio of the first magnetic field gradient and the second magnetic field gradient when the magnet is in the second predefined axial position.
17. The method according to claim 11, further comprising: estimating an angular position of the magnet based on a ratio of the first magnetic field component and the second magnetic field component; and determining a dynamic threshold as a function of the estimated angular position; and determining a sum of a square of the first magnetic field component and a square of the second magnetic field component, and comparing the sum with the dynamic threshold; and when the sum is larger than said dynamic threshold, determining that the magnet is in the first predefined axial position along said axis; and when the sum is smaller than said dynamic threshold, determining that the magnet is in the second predefined axial position along said axis.
18. The method according to claim 17, further comprising: updating the estimated angular position based on a product of a first predefined constant and the ratio of the first magnetic field component and the second magnetic field component when the magnet is in the first predefined axial position, and updating the estimated angular position based on a product of a second predefined constant and the ratio of the first magnetic field component and the second magnetic field component when the magnet is in the second predefined axial position.
19. The method according to claim 11, wherein the magnet is a ring or disk magnet having a top surface and a bottom surface and a cylindrical wall with an outer radius; and wherein the sensor device is located at a radial distance from said axis larger than said outer radius; and wherein the magnetic sensor device is located outside of a space between a top plane containing or tangential to said top surface and a bottom plane containing or tangential to said bottom surface when the magnet is in at least one of the first and the second predefined axial positions.
20. A magnetic sensor system comprising: a permanent magnet movable along an axis between a first axial position and a second axial position, and being rotatable about said axis or having an unknown angular position (a) about said axis, and generating a magnetic field which is not circular symmetric about said axis; a magnetic sensor device located at an offset from said axis, and comprising a first set of magnetic sensitive elements located in a first sensor location and configured for measuring at least a first magnetic field component oriented in a first direction and a second magnetic field component oriented in a second direction perpendicular to the first direction; wherein the magnetic sensor device is oriented such that the first direction is oriented substantially circumferential with respect to said axis, and such that the second direction is oriented either substantially parallel to the axis or substantially radial to the axis; and wherein the magnetic sensor device further comprises a processing circuit configured for determining an axial position of the magnet along said axis based on at least the first magnetic field component and the second magnetic field component, or values derived therefrom; and wherein the processing circuit is configured for estimating an angular position of the magnet based on a ratio of the first magnetic field component and the second magnetic field component; and wherein the processing circuit is configured for determining a dynamic threshold as a function of the estimated angular position; and wherein the processing circuit is further configured for determining a sum of a square of the first magnetic field component and a square of the second magnetic field component, and for comparing the sum with the dynamic threshold; and if the sum is larger than said dynamic threshold, to determine that the magnet is in a first predefined axial position along said axis; and if this sum is smaller than said threshold, to determine that the magnet is in a second predefined axial position along said axis.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14) The drawings are only schematic and are non-limiting. In the drawings, the size of some of the elements may be exaggerated and not drawn on scale for illustrative purposes. Any reference signs in the claims shall not be construed as limiting the scope. In the different drawings, the same reference signs refer to the same or analogous elements.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
(15) 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. The drawings described are only schematic and are non-limiting. In the drawings, the size of some of the elements may be exaggerated and not drawn on scale for illustrative purposes. The dimensions and the relative dimensions do not correspond to actual reductions to practice of the invention.
(16) Furthermore, the terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a sequence, either temporally, spatially, in ranking or in any other manner. 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 other sequences than described or illustrated herein.
(17) Moreover, the terms top, under and the like in the description and the 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 other orientations than described or illustrated herein.
(18) It is to be noticed that the term “comprising”, used in the claims, should not be interpreted as being restricted to the means listed thereafter; it does not exclude other elements or steps. It is thus to be interpreted as specifying the presence of the stated features, integers, steps or components as referred to, but does not preclude the presence or addition of one or more other features, integers, steps or components, or groups thereof. Thus, 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 with respect to the present invention, the only relevant components of the device are A and B.
(19) Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment but may. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner, as would be apparent to one of ordinary skill in the art from this disclosure, in one or more embodiments.
(20) Similarly, it should be appreciated that in the description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
(21) Furthermore, while some embodiments described herein include some, but not other features included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention, and form different embodiments, as would be understood by those in the art. For example, in the following claims, any of the claimed embodiments can be used in any combination.
(22) In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In other instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
(23)
(24) The magnet 103 of the system 100 shown in
(25) The magnet 103 can for example be an axially magnetised ring or disk magnet having two poles (or at least two poles) at its top surface 112 and having two poles (or at least two poles) at its bottom surface 110 (see e.g.
(26) The sensor arrangement 100 further comprises a magnetic sensor device 101.
(27) In the example shown in
(28) In the example of
(29) The magnetic sensor device 101 comprises a substrate (e.g. a semiconductor substrate) comprising a plurality of magnetic sensitive elements. The magnetic sensor device is configured for measuring at least two perpendicular magnetic field components. In order to describe how the present invention works, three orthogonal axes X,Y,Z are connected to the substrate of the magnetic sensor device 101, such that the X and Y axis are parallel to the semiconductor substrate, and the Z-axis is perpendicular to the semiconductor substrate. As stated above, in the embodiments of
(30) Preferably the semiconductor device is furthermore oriented such that its Y-axis intersects the A-axis of the magnet, in which case the X-axis is tangential to an imaginary circle about the A-axis of the magnet (also referred to as “circumferential direction”), but this is not absolutely required for the invention to work.
(31) According to an aspect of the present invention, the magnetic sensor device 101 comprises at least a first set of magnetic sensitive elements configured for measuring a first magnetic field component Bx in the X-direction (e.g. circumferential direction of the magnet) and a second magnetic field component By oriented in the Y-direction (e.g. radial direction of the magnet), or for measuring a first magnetic field component Bx in the X-direction (e.g. circumferential direction of the magnet) and a second magnetic field component Bz oriented in the Z-direction (e.g. axial direction of the magnet).
(32)
(33) The sensor structure of
(34) The sensor structure of
(35) The sensor structure of
(36) The sensor structure of
(37) It can be seen that in all these examples, a first magnetic component Bx is measured oriented in the X direction (circumferential direction of the magnet), and a second magnetic field component By or Bz is measured oriented in the Y or Z direction (radial or axial direction of the magnet). The X and Y axis define a plane perpendicular to the axis A of the magnet, the Z-axis is parallel to the axis A of the magnet. But the present invention is not limited to the sensor structures shown in
(38) Referring back to
(39) According to an aspect of the present invention, the sensor device 101 further comprises a processing circuit, e.g. a controller 1120 (not shown in
(40)
(41) This space is defined by the bottom plane β containing or tangential to the bottom surface 110 of the magnet, and a cylindrical surface φ. A cross section of this space with a plane containing the rotation axis Z is shown in gray in
(42) An arrangement as shown in
(43)
(44)
(45)
(46) Waveform 323 shows the magnetic field component Bx, and waveform 321 shows the magnetic field component By, when the magnet is in its lower position (z=z1), e.g. closer to the magnetic sensor device;
(47) Waveform 322 shows the magnetic field component Bx, and waveform 320 shows the magnetic field component By, when the magnet is in its upper position (z=z2), e.g. further away from the magnetic sensor device.
(48) The inventors had the task of determining the axial position and optionally also the angular position of the magnet relative to the magnetic sensor device, using these curves. As can be seen, these signals are not quadrature signals, hence, the techniques known in the prior art can not be used.
(49) A possible solution would be to sample these four curves, e.g. at equidistant angular intervals (e.g. every 1° or every 2° or every 5°), and to store the value of Bx and By (or Bx and Bz, or Bx and By and Bz) for each envisioned angular and axial position in a non-volatile memory of the sensor device. During actual use, the sensor device would measure Bx and By (or Bx and Bz, or Bx and By and Bz), and would find the best matching result using a predefined distance criterion, such as for example least mean square error, e.g. defined as error=(measured Bx−stored Bx).sup.2+(measured By −stored By).sup.2), or the smallest sum of absolute differences, e.g. defined as error=|measured Bx−stored Bx|+|measured By −stored By|, where |.| means “absolute value of”, or similar formulas using Bx and Bz instead of Bx and By, or similar formulas using Bx and By and Bz.
(50) While this technique will work, it has several drawbacks. For example, it requires a relatively large amount of storage space, which is expensive, and the searching and optional interpolation may be relatively slow. The inventors had to find a solution which requires less storage space and/or which works faster, and/or which is more robust to mounting tolerances, and/or more robust against an external disturbance field, and/or more robust against temperature variations, and preferably a combination hereof.
(51) The inventors started experimenting.
(52)
(53) Waveform 401 shows the sum of squares |Bx|.sup.2+|By|.sup.2 when the magnet is its lower position z1, and waveform 402 shows the sum of squares |Bx|.sup.2+|By|.sup.2 when the magnet is its upper position z2, for various angular positions a. Unfortunately, however, projections of these curves overlap on the vertical axis, meaning that, when Bx and By is measured, and the sum of square values is calculated, this information is not enough to unambiguously determine the axial position of the magnet.
(54) As for the angular position, it was found that when applying the classical arctangent function of the Bx and the By values, a value for an angle was obtained, but this angle was not very accurate. The waveforms 411 and 410 show the angular error between the real angle and the angular value calculated using the arctangent of the Bx and By signal, in case the magnet was in its lower position z1 and in its upper position z2. In the example shown, the angular error lies in the range from about −10° to about +10°. While this may be acceptable for some applications, the inventors wanted to find a way to determine the angular position with higher accuracy.
(55) The inventors continued experimenting and came to the idea of calculating the 3D-norm of the magnetic field.
(56)
(57) waveform 420 shows the waveform of the Bz component as a function of the angular position when the magnet is in its first position z1. A similar waveform can be shown for Bz when the magnet is in its second position z2, but that curve is not shown in order not to overload the drawings;
waveforms 430 and 431 show the sum of the squares of |Bx|.sup.2+|By|.sup.2+|Bz|.sup.2 when the magnet is in its first position z1, and in its second position z2.
(58) As can be seen, a projection of the waveforms 430 and 431 on the vertical axis show even more overlap. In other words, these curves do not solve the above-mentioned problem.
(59) The inventors continued experimenting. Not sure what to expect, the inventors came to the idea of multiplying one of the signals with a constant “K” before calculating the squares of Bx and By (or Bx and Bz) and adding these squares to obtain a sum. Several values of K were tested, and three very interesting cases are shown in
(60)
sum1=sqrt[(K1*Bx).sup.2+(By).sup.2], when the magnet is in its first axial position(z1),
sum2=sqrt[(K1*Bx).sup.2+(By).sup.2], when the magnet is in its second axial position(z2),
where sqrt(..) means the square-root-function, and where K1 was chosen approximately equal to 1.66.
(61) Very surprisingly the waveform 501 turned out to be a straight line, such that a projection of the two waveforms 501, 502 (corresponding to sum1 and sum2 as a function of the angular position) on the vertical axis do not overlap. This in turn allows that a threshold level T503 can be chosen, corresponding to straight line 503, that lies between the two waveforms 501 and 502.
(62) During actual use, the sensor device 101 can thus measure Bx and By, calculate a sum using the formula: sqrt[(K1*Bx).sup.2+(By).sup.2] and using a predefined value of K1, and testing whether this sum is smaller or larger than a predefined threshold level T503, and depending on the outcome, determine that the magnet is in its first or second axial position z1, z2.
(63) In a variant, a sum is calculated using the formula: sum=(K1*Bx).sup.2+(By).sup.2, thus omitting the square-root function, and this sum is to be compared with a predefined constant T503b equal to (T503).sup.2, in order to determine whether the magnet is in its first or second axial position z1, z2.
(64) In a similar manner,
sum1′=sqrt[(K2*Bx).sup.2+(By).sup.2], when the magnet is in its first axial position(z1),
sum2′=sqrt[(K2*Bx).sup.2+(By).sup.2], when the magnet is in its second axial position(z2),
where sqrt(..) means the square-root-function, and where K2 was chosen approximately equal to 1.24.
(65) Very surprisingly, when using this value for K, the waveform 512 turned out to be a straight line, such that a projection of these two waveforms 511, 512 on the vertical axis does not overlap. This allows that a threshold level T513 can be chosen (corresponding to straight line 513), that lies between the two waveforms 511 and 512.
(66) During actual use, the sensor device 101 can thus measure Bx and By, calculate a sum using the formula: sqrt[(K2*Bx).sup.2+(By).sup.2] and using a predefined value of K2, and test whether this sum is smaller or larger than a predefined threshold level T513, and depending on the outcome, determine that the magnet is in its first or second axial position z1, z2.
(67) In a variant, a sum is calculated using the formula: sum=(K2*Bx).sup.2+(By).sup.2, thus omitting the square-root function, and this sum is to be compared with a predefined constant T513b equal to (T513).sup.2 in order to determine whether the magnet is in its first or second axial position z1, z2.
(68) It was found that the sum-curves can also be separated values of K between K1 and K2, and even for values of K slightly outside this range, although the latter is not preferred. As an example,
sum1″=sqrt[(K3*Bx).sup.2+(By).sup.2], when the magnet is in its first axial position(z1),
sum2″=sqrt[(K3*Bx).sup.2+(By).sup.2], when the magnet is in its second axial position(z2),
where sqrt(..) means the square-root-function, and where K3 was chosen as (K1+K2)/2, which in this example is approximately equal to (1.66+1.24)/2=about 1.45.
(69) As can be seen, the two sum-curves 521, 522 are no longer straight lines, but the “vertical distance” between the threshold level T523 (corresponding to line 523) and each of these curves is almost the same, which probably means that the tolerance level against various deviations or disturbances is improved.
(70) In a variant, not the simple average Kavg=(K1+K2)/2 is used, but the geometrical average, calculated as: Kgeo=sqrt(K1*K2), which in this example amounts to √(1.66*1.24)=about 1.43.
(71) In hindsight, it was found that the values of K1 and K2 can be found as the (amplitude of By-waveform)/(amplitude of Bx-waveform) when the magnet is in its first and second axial position, respectively.
(72) Once the axial position z of the magnet is determined, the applicable value of K is known, (e.g. K1 in case the magnet was found to be in its first position z1, and K2 if the magnet was found to be in its second position z2), and the angular position can then be calculated using the formula:
angle=arctan[(K*Bx)/By], using the applicable value of K.
(73) Of course, the angle does not need to be calculated in the system 200 shown in
(74) From the above, it can now be understood that, the angular position α can also be estimated with improved accuracy (as compared to the classical arctangent function of Bx and By), using the formula:
angle=arctan(Kavg*Bx/By), or
angle=arctan(Kgeo*Bx/Bz),
where Kavg is the simple average (or “arithmetic mean”) of K1 and K2, and Kgeo is the “geometric mean” of K1 and K2. The angular error of the angle calculated using these formulas is typically only about half the error of the angle calculated by the classical arctangent function of Bx and By.
(75) In the example above, the first magnetic field component Bx is multiplied with a value K or K1 or K2 before being squared, while the second magnetic field component By is used as it is (equivalent to being multiplied by 1). In a variant, the first magnetic field component Bx is used as is (equivalent to being multiplied by 1), while the second magnetic field component By is multiplied by a factor L, L1 or L2, before being squared and summed. In another variant, both the first magnetic field component Bx and the second magnetic field component Bz are multiplied by a predefined factor.
(76)
sum=sqrt[(K1*Bx).sup.2+(Bz).sup.2], where K1=(amplitude of Bz)/(amplitude of Bx) when the magnet is in its first axial position z1, or as:
sum=sqrt[(K2*Bx).sup.2+(Bz).sup.2], where K2=(amplitude of Bz)/(amplitude of Bx) when the magnet is in its second axial position z2, or as:
sum=sqrt[(K*Bx).sup.2+(Bz).sup.2], with K in the range from K1 to K2, for example K=(K1+K2)/2 or K=sqrt(K1*K2),
or using the same formulas without taking the square-root,
and the axial position of the magnet can be determined by comparing any of these sum-values with a corresponding predefined threshold value,
and once the axial position is determined, the applicable value of K is known, and can then be used to accurately calculate the angle, using:
angle=arctan(K*Bx/Bz), where K=K1 or K2, depending on the axial position,
or if an estimate of the angular position is sufficient, one of the following formula can be used:
angle≈arctan(Kavg*Bx/Bz), where Kavg=(K1+K2)/2, and means “is approximately equal to”,
angle≈arctan(Kgeo*Bx/Bz), where Kgeo=sqrt(K1*K2).
(77) While the principles of the present invention work for both Bx in combination with By, and Bx in combination with Bz, one or the other may be better suited or may give better results depending for example on the particular magnet being used, and/or the relative position and/or orientation of the sensor device relative to the magnet, and/or the axial range of the magnet. The skilled person can easily find which solution works best for a particular situation by simply trying both and selecting the best.
(78) While not explicitly shown, the inventors found that the same principles described above, also work when using the waveforms dBx/dx and dBy/dx instead of Bx and By, mutatis mutandis. In this case the sensor device would measure a gradient of the signal Bx along the X-direction (circumferential direction), and a gradient of the signal By along the X-direction (circumferential direction, for example using any of the sensor structures of
(79) In this case a sum would be calculated as:
sum=sqrt[(K1*dBx/dx).sup.2+(dBy/dx).sup.2],
where K1=(amplitude of dBy/dx)/(amplitude of dBx/dx) when magnet is in its first position z1, or as:
sum=sqrt[(K2*dBx/dx).sup.2+(dBy/dx).sup.2],
where K2=(amplitude of dBy/dx)/(amplitude of dBx/dx) when magnet is in its second position z2, or as:
sum=sqrt[(K*dBx/dx).sup.2+(dBy/dx).sup.2],
with K in the range from K1 to K2, for example K=(K1+K2)/2 or K=sqrt(K1*K2),
or using the same formulas without taking the square-root,
and the axial position of the magnet can be determined by comparing any of these sum-values with a corresponding predefined threshold value,
and once the axial position is determined, the applicable value of K is known, and can then be used to accurately calculate the angle, using:
angle=arctan(K*(dBx/dx)/(dBy/dx)), where K=K1 or K2, depending on the axial position,
or if an estimate of the angular position is sufficient, one of the following formula can be used:
angle≈arctan(Kavg*(dBx/dx)/(dBy/dx)),
where Kavg=(K1+K2)/2, and means “is approximately equal to”, or:
angle≈arctan(Kgeo*(dBx/dx)/(dBy/dx)),
where Kgeo=sqrt(K1*K2).
(80) Similar to above, instead of multiplying the first gradient with a predefined factor K or K1 or K2, it is also possible to multiply the second gradient with a predefined constant L or L1 or L2, or to multiply both gradients with a corresponding constant.
(81) In yet another variant of the present invention, the waveforms dBx/dx and dBz/dx are used instead of dBx/dx and dBy/dx, mutatis mutandis.
(82) In this case the sensor device would measure a gradient of the signal Bx along the X-direction, and a gradient of the signal Bz along the X-direction, for example using any of the sensor structures of
(83) In this case a sum would be calculated as:
sum=sqrt[(K1*dBx/dx).sup.2+(dBz/dx).sup.2],
where K1=(amplitude of dBz/dx)/(amplitude of dBx/dx) when magnet is in its first position z1, or as:
sum=sqrt[(K2*dBx/dx).sup.2+(dBz/dx).sup.2],
where K2=(amplitude of dBz/dx)/(amplitude of dBx/dx) when magnet is in its second position z2, or as:
sum=sqrt[(K*dBx/dx).sup.2+(dBz/dx).sup.2],
with K in the range from K1 to K2, for example K=(K1+K2)/2 or K=sqrt(K1*K2),
or using the same formulas without taking the square-root,
and the axial position of the magnet can be determined by comparing any of these sum-values with a corresponding predefined threshold value,
and once the axial position is determined, the applicable value of K is known, and can then be used to accurately calculate the angle, using:
angle=arctan(K*(dBx/dx)/(dBz/dx)), where K=K1 or K2, depending on the axial position,
or if an estimate of the angular position is sufficient, one of the following formula can be used:
angle≈arctan(Kavg*(dBx/dx)/(dBz/dx)),
where Kavg=(K1+K2)/2, and ≈ means “is approximately equal to”, or:
angle≈arctan(Kgeo*(dBx/dx)/(dBz/dx)),
where Kgeo=sqrt(K1*K2).
(84) While the principles of the present invention work for both dBx/dx in combination with dBy/dx, and dBx/dx in combination with dBz/dx, one or the other may be better suited or may give better results depending for example on the particular magnet being used, and/or the relative position and/or orientation of the sensor device relative to the magnet, and/or the axial range of the magnet. The skilled person can easily find which solution works best for a particular situation by simply trying both and selecting the best.
(85) It is an advantage of determining the axial position and/or angular position by means of a gradient signal, because these measurements are highly insensitive to an external disturbance field.
(86)
sum=sqr(K*Bx)+sqr(By), where K is a constant, or in accordance with the formula:
sum=sqr(Bx)+sqr(K*By), where K is a constant, c) comparing in step 603 the sum with a predefined threshold value,
and if the sum is larger than said threshold, continuing with step d) where it is determined in step 604 that the magnet is in a first predefined axial position (z1),
otherwise continuing with step e) where it is determined in step 605 that the magnet is in a second predefined axial position (z2).
(87) In an embodiment, the value of K, K1, K2, Kavg, Kgeo and/or the threshold value are predefined constants. The value of K and the value of the threshold may depend on the particular magnet being used, and/or the relative position and/or orientation of the sensor device relative to the magnet, and/or on the axial range of the magnet, and can be found for example by simulation, or by calibration.
(88) The predefined constant K and the predefined threshold may be stored in non-volatile memory of the sensor device, and can be determined during design, by simulation, by calibration, or in any other suitable way.
(89) In a variant of this method, step (b) further comprises measuring a temperature using a temperature sensor, and determining the value of K, K1, K2, Kavg, Kgeo, and/or the value of the threshold as a function of the measured temperature, for example using a look-up table, optionally with linear interpolation, or using a polynomial with predefined coefficients stored in said non-volatile memory.
(90) In a variant of this method, in step a) magnetic field components Bx and Bz are measured, Bx being oriented in a circumferential direction of the magnet, Bz being oriented in an axial direction of the magnet, and in step b) a sum is calculated as: sum=sqr(K*Bx)+sqr(Bz).
(91) In another variant of this method, in step a) magnetic field gradients dBx/dx and dBy/dx are measured, and in step b) the sum is calculated as: sum=sqr(K*dBx/dx)+sqr(dBy/dx).
(92) In another variant of this method, in step a) magnetic field gradients dBx/dx and dBz/dx are measured, and in step b) the sum is calculated as: sum=sqr(K*dBx/dx)+sqr(dBz/dx).
(93) Similar to above, instead of multiplying the first gradient with a factor K, it is also possible to multiply the second gradient with a factor L, etc.
(94)
(95) The steps 701 to 705 of
(96) In addition to the steps 701 to 705, after performing step d) where it is decided that the magnet is in its first axial position (z1), step f) is performed, in which the angular position a is calculated in step 706 based on the formula: angle=arctan(K1*Bx/By), where K1 is a first predefined constant; and after performing step e), where it is decided that the magnet is in its second axial position (z2), step g) is performed, in which the angular position α is calculated in step 707 based on the formula: angle=arctan(K2*Bx/By), where K2 is a second predefined constant, different from the first predefined constant K1.
(97) In an embodiment, the value of K, K1, K2, Kavg, Kgeo and the threshold value(s) are predefined constants, which may be stored in a non-volatile memory.
(98) In a variant of the method, step (b) further comprises measuring a temperature using a temperature sensor, and determining the value of K, K1, K2 and/or the value(s) of the threshold(s) as a function of the measured temperature, for example using a look-up table, optionally with linear interpolation, or using a polynomial with predefined coefficients stored in said non-volatile memory.
(99) In a variant of this method, in step a) magnetic field components Bx and Bz are measured, and in step b) a sum is calculated based on sqr(K*Bx)+sqr(Bz), and in step f) the angle is calculated based on arctan(K1*Bx/Bz), and in step g) the angle is calculated based on arctan(K2*Bx/Bz).
(100) In another variant of this method, in step a) magnetic field gradients dBx/dx and dBy/dx are measured, and in step b) the sum is calculated based on sqr(K*dBx/dx)+sqr(dBy/dx), and in step f) the angle is calculated based on arctan(K1*(dBx/dx)/(dBy/dx)), and in step g) the angle is calculated based on arctan((K2*(dBx/dx)/(dBy/dx)).
(101) In another variant of this method, in step a) magnetic field gradients dBx/dx and dBz/dx are measured, and in step b) the sum is calculated based on sqr(K*dBx/dx)+sqr(dBz/dx), and in step f) the angle is calculated based on arctan(K1*(dBx/dx)/(dBz/dx)), and in step g) the angle is calculated based on arctan(K2*(dBx/dx)/(dBz/dx)).
(102)
and if the sum is larger than the dynamic threshold, continuing with step e) in which it is determined in step 805 that the magnet is in its first axial position z1;
otherwise continuing with step f) in which it is determined in step 806 that the magnet is in its second axial position z2.
(103) The idea of the “dynamic threshold” or “variable threshold” is to define a threshold level which is not constant, but which is angle-dependent, for the reasons explained in
(104) In a variant of the method shown in
(105) In a variant of the method shown in
(106) In another or further variant of the method shown in
(107) In other variants of the method shown in
(108) In other variants of the method shown in
(109) In other variants of the method shown in
(110)
(111) The sensor device 901 has a substrate which is perpendicular to the A-axis of the magnet. A coordinate system X,Y,Z is connected to the sensor device 901, in such a way that the XY plane is parallel to the substrate and the Z-axis is perpendicular to the substrate. The sensor device 901 is oriented with the Z-axis parallel to the A-axis of the magnet, and with its X-axis in a circumferential direction of the magnet, i.e. tangential to an imaginary circle with radius Rs. The radius Rs is different from zero. The value Rs may be a value in the range from about 50% to about 200% of the outer radius Ro of the magnet, or from 50% to 95% of Ro, or from 105% to 200% of Ro, or from 110% to 150% of Ro.
(112) Several types of magnets are shown: an axially magnetized disk magnet (
(113) Several types of sensor structures are shown:
(114)
(115)
(116)
(117)
(118) These are examples only, and the present invention is not limited hereto, and other suitable sensor structures may also be used, for example magnetic sensors using magneto-resistive elements.
(119)
(120) The sensor device 1001 has a substrate which is parallel to the A-axis of the magnet. A coordinate system X,Y,Z is connected to the sensor device 1001, in such a way that the XY plane is parallel to the substrate and the Z-axis is perpendicular to the substrate. The sensor device 1001 is oriented with the Y-axis parallel to the A-axis of the magnet, with the Z-axis in radial direction of the magnet, and with the X-axis in a circumferential direction of the magnet, i.e. tangential to an imaginary circle with radius Rs. The radius Rs is different from zero. The value Rs may be a value in the range from about 50% to about 200% of the outer radius Ro of the magnet, or from 50% to 95% or Ro, or from 105% to 200% of Ro, or from 110% to 150% of Ro.
(121) While not explicitly shown, the same magnets as mentioned in
(122) Several types of sensor structures are shown:
(123)
(124)
(125)
(126)
(127) These are examples only, and the present invention is not limited hereto, and other suitable sensor structures may also be used, for example magnetic sensors using magneto-resistive elements.
(128) In a variant of the system of
(129)
(130) The magnetic sensor device 1101 of
(131) The magnetic sensor device 1101 further comprises a processing circuit, for example a programmable processing unit 1120 for obtaining and/or combining signals obtained from the magnetic sensitive elements (e.g. from the horizontal Hall and/or vertical Hall elements) to determine one or more magnetic field components Bx, By, Bz and/or magnetic field gradients dBx/dx, dBy/dx, dBz/dx.
(132) The magnetic sensor device 1101 may optionally comprise a temperature sensor 1122, connected to the processing circuit.
(133) According to the principles of the present invention, the processing circuit is further configured for performing one or more of the methods illustrated in
(134) As shown in
(135) While not explicitly shown, the sensor device typically also further comprises biasing circuitry, readout circuitry, one or more amplifiers, analog-to-digital convertors (ADC), etc. for biasing and reading out the magnetic sensitive elements. Such circuits are well known in the art and are not the main focus of the present invention.
(136) The processing circuit may be configured for outputting only an axial position of the magnet or may be configured for outputting both an axial position and an angular position of the magnet.
(137) The invention has been described referring to only two predefined axial positions z1 and z2, but of course, the same techniques can also be used to differentiate between more than two axial positions, for example three axial positions. The axial position can then for example be determined in two steps, where in a first step a first sum is calculated using a first value of K to eliminate one of the three possible curves, in a manner similar as explained in