DEVICE AND SYSTEM FOR DETERMINING A POSITION OF A MAGNETIC SOURCE, OR AN ORIENTATION OF A UNIFORM MAGNETIC FIELD
20240118110 ยท 2024-04-11
Assignee
Inventors
Cpc classification
G01R33/091
PHYSICS
G01R33/0283
PHYSICS
G01R33/098
PHYSICS
G01R33/0029
PHYSICS
G01D5/145
PHYSICS
G01R33/072
PHYSICS
International classification
Abstract
A sensor device for determining a position of a magnetic source relative to the sensor device, or for determining an orientation of a uniform magnetic field relative to the sensor device, the sensor device comprising: a substrate comprising a plurality of magnetic sensors configured for providing a plurality of sensor signals; a signal combiner configured for combining the sensor signals into a combined waveform; a processing circuit configured for extracting said position or orientation from the combined waveform; wherein the signal combiner is configured for generating the combined waveform by including one or more portions of the sensor signals during respective predefined time durations, which time durations are determined during a calibration procedure, wherein at least two of said time durations have different values.
Claims
1. A sensor device for determining a position of a magnetic source that is movable relative to the sensor device, or vice versa, or for determining an orientation of a substantially uniform magnetic field, the sensor device comprising: a substrate comprising a plurality of at least two magnetic sensors configured to provide a plurality of at least two sensor signals; a signal combiner configured to combine sensor signals into a combined waveform; a processing circuit configured to extract said position or orientation from the combined waveform; characterized in that the signal combiner is configured to generate the combined waveform by including at least one portion of the sensor signals during respective predefined time durations; wherein the predefined time durations are determined during a calibration procedure; and wherein at least two of said predefined time durations have a different value.
2. The sensor device according to claim 1, wherein the processing circuit comprises a Band-Pass-Filter and a phase detector.
3. The sensor device according to claim 1, wherein the signal combiner is configured to generate said combined waveform according to a timing scheme having a predefined duration Ts, partitioned in a number of timing windows each having a duration of Ts/N, N being the number of magnetic sensors.
4. The sensor device according to claim 3, wherein the signal combiner is configured to include only one portion of the sensor signals in each respective timing window.
5. The sensor device according to claim 3, wherein the number of magnetic sensors is an even number; and wherein the magnetic sensors are equidistantly spaced on a virtual circle; and wherein the signal combiner is configured to add or subtract portions of two diametrically opposite magnetic sensors in each timing window.
6. The sensor device according to claim 3, wherein the signal combiner is configured to add or to subtract portions of at least two or at least three or at least four sensor signals in each timing window.
7. The sensor device according to claim 6, wherein the signal combiner is configured to add or subtract a portion of each sensor signal in each timing window, each portion having a predefined time duration.
8. The sensor device according to claim 6, wherein the time durations of at least two portions or at least three portions being added or subtracted, have values which are different from each other.
9. The sensor device according to claim 1, wherein the magnetic source is a permanent magnet which rotates about a rotation axis; and wherein the position to be determined is an angular position.
10. The sensor device according to claim 1, wherein the magnetic source is an elongated structure having one pole pair, or having a plurality of alternating poles; and wherein the sensor device is movable relative to a magnetic structure at a constant distance; and wherein the position to be determined is a linear position along the elongated structure.
11. The sensor device according to claim 1, wherein the substantially uniform magnetic field is an earth magnetic field, or is a magnetic field generated by at least one coil; and wherein the orientation to be determined is an angle with respect to a reference orientation.
12. The sensor device according to claim 1, wherein some or all magnetic sensors are configured to measure a magnetic field in a direction perpendicular to the substrate; or wherein some or all magnetic sensors are configured to measure a magnetic field in a direction parallel to the substrate; or wherein a first subset of the magnetic sensors is configured to measure a magnetic field in a direction perpendicular to the substrate, and a second subset of the magnetic sensors are configured to measure a magnetic field in a direction parallel to the substrate; or wherein some or all magnetic sensors are configured to measure a magnetic field in a radial direction parallel to the substrate; or wherein some or all magnetic sensors are configured to measure a magnetic field in a circumferential direction parallel to the substrate.
13. The sensor device according to claim 1, wherein the magnetic sensors are configured to measure a magnetic field in at least two different orientations.
14. The sensor device according to claim 1, wherein sensor elements are situated on a virtual circle.
15. A position sensor system comprising: a sensor device, wherein the sensor device further comprises: a substrate comprising a plurality of at least two magnetic sensors configured to provide a plurality of at least two sensor signals; a signal combiner (MUX, ?) configured to combine sensor signals (h1, h2, h3, h4) into a combined waveform (1231; 1331; 1431); a processing circuit configured to extract said position or orientation from the combined waveform (1231; 1331; 1431); characterized in that the signal combiner (MUX, ?) is configured to generate the combined waveform (1231; 1331; 1431) by including at least one portion of the sensor signals (h1, h2, h3, h4) during respective predefined time durations (?t11 to ?t44); wherein the predefined time durations (?t11 to ?t44) are determined during a calibration procedure; and wherein at least two of said predefined time durations (?t11 to ?t44) have a different value; and said magnetic source.
16. The position sensor system according to claim 15, wherein the predefined time durations are determined during a calibration procedure which is performed using a test-setup comprising the sensor device and the magnetic source.
17. The sensor device according to claim 14, wherein sensor elements are equidistantly spaced apart.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077] 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.
[0078] In the various figures, equivalent elements with respect to their function are usually provided with the same reference numerals/signs modulo 100, so that these elements are usually described only once.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0079] The present disclosure will be described with respect to particular embodiments and with reference to certain drawings but the disclosed embodiments are not limited thereto but only by the claims.
[0080] It is to be noted that the individual features listed in the description below can be combined in any technically meaningful way with each other (also across different categories, e.g. apparatus and method) and show further embodiments of the present disclosure. The description of the disclosed embodiments are additionally characterized and specified particularly in connection with the figures.
[0081] Furthermore, it is to be understood that the term and/or or the expressions at least one of or one or more of, if used herein in order to combine a first and a second feature, are to be construed as disclosing a first embodiment that comprises only the first feature, a second embodiment that comprises only the second feature, and a third embodiment that comprises both the first feature and the second feature. If more than two features are listed, also any combinations thereof are to be construed as disclosed embodiments according to the present disclosure.
[0082] Still further, the term approximately or essentially or substantially indicates a range of tolerance which the skilled person in the field in question considers to be normal. In particular, the term approximately or essentially or substantially is to be understood as a tolerance range of the referred quantity of up to a maximum of +/?20%, preferably up to a maximum of +/?10%.
[0083] In this document, the term sensor or magnetic sensor can refer to a component or a group of components or a sub-circuit or a structure capable of measuring a magnetic quantity, such as for example a magneto-resistive element, a GMR element, an XMR element, a horizontal Hall plate, a vertical Hall plate, a Wheatstone-bridge containing at least one magneto-resistive element, or an inductive transducer (e.g. receiving coils of an inductive magnetic sensor), etc.
[0084] Embodiments of the present disclosure are typically described using an orthogonal coordinate system which is fixed to the sensor device, and having three axes X, Y, Z, where the X and Y axis are parallel to the substrate (e.g. semiconductor substrate), and the Z-axis is perpendicular to the substrate.
[0085] In this document, horizontal Hall plates are typically referred to by H1, H2, etc., signals obtained from these horizontal Hall plates are typically referred to by h1, h2, etc., Vertical Hall plates are typically referred to by V1, V2, etc., and signals from these vertical Hall plates are typically referred to by v1, v2, etc.
[0086] The present disclosure is related to magnetic position sensor systems, in particular linear or angular position sensor systems comprising a magnetic source and a magnetic position sensor device. The magnetic source may e.g. be a two-pole disk magnet, or a two-pole ring magnet, or a two-pole bar magnet, or an elongated or a circular magnetic structure comprising a plurality of alternating poles. The present disclosure is also related to such a magnetic position sensor device itself. It is noted however, that the disclosed embodiments will also work with a magnet having at least four poles, or at least six poles, etc.
[0087] Referring to the Figures.
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094] While not explicitly shown, it is also possible to use a substrate having eight Horizontal Hall elements arranged on a virtual circle, and spaced apart by multiples of 45?, but substrates with more than eight Horizontal Hall elements are also possible, e.g. 10 Hall elements spaced apart by multiples of 36?, or 12 Hall elements, spaced apart by multiples of 30?.
[0095]
[0096]
[0097] While not explicitly shown, it is also possible to use a substrate having eight Vertical Hall elements arranged on a virtual circle, and spaced apart by multiples of 45?, and oriented with their axis of maximum sensitivity in a radial direction, but substrates with more than eight Vertical Hall elements are also possible, e.g. 10 Hall elements spaced apart by multiples of 36?, or 12 Hall elements spaced apart by multiples of 30?.
[0098]
[0099]
[0100] While not explicitly shown, it is also possible to use a substrate having eight Vertical Hall elements arranged on a virtual circle, and spaced apart by multiples of 45?, and oriented with their axis of maximum sensitivity in a circumferential direction, but substrates with more than eight Vertical Hall elements are also possible, e.g. 10 Hall elements spaced apart by multiples of 36?, or 12 Hall elements spaced apart by multiples of 30?.
[0101] In the examples shown in
[0102] In the examples shown in
[0103] It is noted that the principles of the present embodiments will also work with a sensor arrangement comprising only two sensors, e.g. in a variant of
[0104] As will be understood further, it is advantageous however to use more than two sensors, e.g. four sensors, or five sensors, or six sensors, or seven sensors, or eight sensors, because the technique used in embodiments of the present disclosure is capable of exploiting the redundancy to increase the accuracy, and can also be used for error detection.
[0105] The present embodiments will be further described using the sensor arrangement of
[0106]
[0107] As already mentioned above, several sensor arrangements can be used, e.g. any of the examples shown in
[0108] Biasing and readout circuits are well known in the art, but are not the main focus of the present embodiments, and hence need not be described in more detail here. It suffices to say that Hall elements and a Wheatstone bridge comprising one or more magneto resistive elements are electrical devices with two excitation nodes and two output nodes. They can be biased by applying a known voltage or a known current to the excitation nodes, and the sensor signal can be obtained as a differential voltage signal over the output nodes. The biasing and readout circuit 910 will typically also comprise an amplifier (not explicitly shown) for amplifying the sensor signals. For ease of the description, it will be assumed that the output of the amplifier is a single-ended voltage signal (i.e. referenced to ground).
[0109] The signal processing circuit 920 is the main contribution of the present embodiment over the prior art, and will be described in more detail further. Importantly, most of the signal processing in the sensor device 902 is performed in the analog domain, using time-continuous signals. This offers the advantage that the processing can be very fast, without requiring a fast digital signal processor (DSP), that an analog-to-digital convertor (DAC) is not absolutely required, and that quantization errors can be avoided.
[0110]
[0111]
[0112]
[0113] In the example shown in
[0114] In practice, however, the four sensors H1 to H4 typically have a sensitivity mismatch (or gain mismatch), i.e. that the amplitudes of the four signals are not the same, and optionally also have an offset, i.e. that the output of the sensor element is not zero, even in the absence of a magnetic field. Such imperfections can be measured during a calibration test of the device, e.g. in a test-environment where a known magnetic field is applied. The result of such a measurement may for example yield the values listed in the following table:
TABLE-US-00001 TABLE 1 example of Gain and Offset mismatch H1 H2 H3 H4 Offset (V) ?0.017 0.044 ?0.100 ?0.040 Gain 1.034 1.000 1.059 1.159
[0115] In the prior art, gain and offset mismatches are typically addressed by laser trimming, but that is not absolutely required in the present disclosed embodiments. The signals h1, h2, h3, h4 obtained from the sensors may thus have slightly different gains, and/or non-zero offsets.
[0116] The signal processing circuit 1220 comprises a multiplexer MUX, in the example a 4-to-1 analog multiplexer, acting as a signal combiner configured for combining portions of the sensor signals h1, h2, h3, h4 into a single combined waveform.
[0117] More specifically, the multiplexer MUX is configured for generating a waveform according to a timing scheme having a predefined duration Ts (e.g. having a value of about 4 ?s), partitioned in a number of timing windows w1, w2, w3, w4, each having a duration of Ts/4, in case there are four sensors which are equidistantly spaced, thus, in the example, each window has a duration of about 1 is.
[0118] Other values of the predefined duration Ts may also be used, for example 1/fs, wherein fs=20 kHz, or fs=40 kHz, or fs=80 kHz, or fs=200 kHz, or fs=400 kHz, or fs=800 kHz.
[0119] The multiplexer MUX is configured to include a portion of the first sensor signal h1 during a first predefined time duration ?t11 in the first time window w1, and to include a portion of the second sensor signal h2 during a second predefined time duration ?t22 in the second time window w2, and to include a portion of the third sensor signal h3 during a third predefined time duration ?t33 in the third time window w3, and to include a portion of the fourth sensor signal h4 during a fourth predefined time duration ?t44 in the fourth time window w4. Preferably, the portions are centrally aligned in the respective time windows w1 to w4, to reduce or avoid jitter.
[0120] The processing circuit 1220 further comprises a band pass filter BPF configured for mainly passing the basic harmonic of the waveform generated by the multiplexer MUX, and for rejecting higher harmonics. Band-Pass filters are well known in the art, and hence need not be described in more detail here.
[0121] The output of the bandpass filter is provided to a phase detector, configured for detecting the phase ? of the signal. The phase detector may be identical to the one described in U.S. Pat. No. 8,963,540(B2), but the present disclosed embodiments not limited thereto and other suitable phase detectors may also be used. The phase detection may be based on the detection of a zero crossing of the bandpass filtered signal. The moment of the zero-crossing may be measured using a counter.
[0122] The main difference between the circuit of
[0123] Without going into the details here, it can be simply stated that the values of the predefined time durations ?t11, ?t22, ?t33, ?t44 are chosen such that the resulting phase or angle ? has a good accuracy, despite the above mentioned gain mismatches and non-zero offsets.
[0124] As a rule of thumb, (and also as an initial set of values during the calibration procedure), the time periods ?t11, ?t22, ?t33, ?t44 may be chosen inversely proportional to the respective gains of the sensors H1 to H4. During the calibration procedure, more suitable time periods may be found, as will be described further. Indeed, the best values may also compensate for some non-idealities of the magnetic source, such as e.g. material defects, mounting offset, tilt, etc.
[0125] In practice, at least two of the values ?t11, ?t22, ?t33, ?t44 are different from each other, but more often, all of these values are different from each other. It is noted that not the absolute value of the time durations is important, but the relative time durations. In an embodiment, the absolute values of ?t11, ?t22, ?t33, ?t44 may be chosen to be values of about 30% to 70% of the duration of the time windows w1 to w4.
[0126] The processing circuit 1220 may further comprise a clock circuit, which is typically connected to an (external) crystal oscillator.
[0127] The processing circuit 1220 may further comprise control logic for generating a control signal for operating the multiplexer in accordance with the timing scheme with the predefined time durations ?t11, ?t22, ?t33, ?t44.
[0128] The predefined timing durations ?t11, ?t22, ?t33, ?t44 may be stored in a non-volatile memory (e.g. flash) of the sensor device during the calibration procedure, and may be retrieved from the non-volatile memory during actual use of the sensor device, e.g. by a control logic block, but other solutions are possible. It may for example also be possible to implement the processing circuit using programmable hardware in which the predefined timing durations are hardcoded.
[0129] It is noted that the graph showing the illustrative combined waveform 1231, is a realistic example for a magnetic source positioned at an angle close to 0?, because the amplitude of h1 is close to +1, the amplitude of h2 is close to 0, the amplitude of h3 is close to ?1, and the amplitude of h4 is close to 0, (in relative terms). If the magnetic source would be positioned or oriented at a 90? angle, the amplitude of h1 would be close to 0, the amplitude of h2 would be close to +1, the amplitude of h3 would be close to 0, and the amplitude of h4 would be close to ?1, etc. Such other graphs are not included in the application.
[0130] For completeness it is noticed that the graph with the bandpass-filtered signal 1232 shown in
[0131] As mentioned above, the phase ? can be measured using an incremental counter. The counter value, indicative of the angle or phase ? to be measured, may for example be output as a digital value on an output port of the sensor device, or as a serial value, or as an analog value.
[0132] In a variant of the sensor device 1202 (not shown), in which the sensor arrangement 1205 would comprise for example five sensors H1 to H5, the sample period Ts would be divided in five time windows w1 to w5, each having a duration of Ts/5, and each of these five time windows w1 to w5 would be partially filled with one of the sensor signals h1 to h5, more specifically, over a respective time period ?t11 to ?t55, the values of which may be determined during a calibration procedure.
[0133]
[0134] More specifically, in the example shown in
[0139] As can be appreciated from
[0140] As a rule of thumb, (and also as an initial set of values during the calibration procedure), the time periods ?t11 and ?t13 may be chosen inversely proportional to the gain of sensor H1, and the time periods ?t22 and ?t24 may be chosen inversely proportional to the gain of sensor H2, and the time periods ?t31 and ?t33 may be chosen inversely proportional to the gain of sensor H3, and the time periods ?t42 and ?t44 may be chosen inversely proportional to the gain of sensor H4, but this set of predefined values may not yield the best possible result, as will be explained further. Indeed, the best values may also compensate for some non-idealities of the magnetic source such as e.g. material defects, mounting offset, tilt, etc.
[0141] It is an advantage that the position or orientation ? provided by the sensor device 1302 of
[0142] Everything else described above for the sensor device of
[0143]
[0144] The main difference between the sensor device 1402 of
[0145] More specifically, in the example shown in
[0146] Likewise, the signal generated in the second time window w2 can written as: sum2=a21*h1+a22*h2+a23*h3+a24*h4; the signal generated in the third time window w3 can written as: sum3=a31*h1+a32*h2+a33*h3+a34*h4; and the signal generated in the fourth time window w4 can written as: sum4=a41*h1+a42*h2+a43*h3+a44*h4.
[0147] The skilled reader would expect that the values of the coefficients a12, a14, a21, a23, a32, a34, a41 and a43 are equal to zero, but the inventors found that the coefficients all to a44 can actually be used not only to calculate an linear or angular position or orientation of the magnetic field, but can also be used to improve the accuracy (or reduce the error) related to non-idealities of the sensor arrangement and/or of the magnetic source. It can also be stated that the signals h1 to h4 contain position information and redundancy information (because there are more than two sensors), but in classical solutions, there is no way to extract or use the redundant information present in the signals to improve the signal accuracy. The technique proposed by the present disclosure does allow to use the redundant information to reduce the overall error. This is an important advantage of the present disclosed embodiments. It will be appreciated that, in general, the higher the number of sensors, the more coefficients can be used to improve the overall accuracy.
[0148] Everything else described above for the embodiment of
[0149] Calibration procedure:
[0150] While finding optimal values for the coefficients all to a44 of
[0151] Given the hardware of
[0152] Looking back to
[0153] From these examples, it shall be clear that the number of coefficients or time periods to be optimized depends on the number of sensors (N), and depends on how many signals the hardware is capable of adding or subtracting in a single time window. The latter may depend on the hardware implementation, e.g. on how many adders or subtractors are present in the combiner circuit ?. This is a designers choice.
[0154] In order to also handle defects or non-idealities of the magnetic source, such as tilt, mounting offset, etc., the calibration procedure has to be performed in an arrangement that includes the magnetic source and the sensor device that will be used in combination in the final product. Indeed, the optimal values are typically different for each individual sensor and magnet.
[0155] Once a sensor arrangement is chosen (e.g. having four horizontal Hall elements as shown in
[0162] Or stated in other words, this algorithm starts from an initial set of coefficients values, and stepwise improves the coefficients set by modifying one coefficients at the time, namely the coefficients which (when increased or decreased with a certain value, e.g. ?0.05) provides the highest improvement. It is pointed out that such a gradual improvement approach may not always find the global optimum, but typically finds a local optimum in the coefficient space.
[0163] Many variants of this algorithm are possible. For example, one could perform the algorithm described above first in a coarse manner, by moving the magnetic source in steps of e.g. 60?, and by modifying a coefficient in steps of ?0.05, and when a close-to-optimum solution for the set of coefficients is found, to then repeat the algorithm with a smaller angular rotation (e.g. in steps of 30?) and/or a smaller coefficient step (e.g. ?0.02).
[0164] It will be appreciated that describing the most efficient algorithm to find the optimum set of parameters falls out of the scope of the present disclosure, but that the algorithm described above is sufficient to enable the disclosed embodiments.
[0165] While the disclosed embodiments have been illustrated and described in detail in the drawings and the foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive.
[0166] From reading the present disclosure, other modifications will be apparent to persons skilled in the art. Such modifications may involve other features which are already known in the art and which may be used instead of or in addition to features already described herein.
[0167] Variations to the disclosed embodiments can be understood and effected by those skilled in the art, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word comprising does not exclude other elements or steps, and the indefinite article a or an does not exclude a plurality of elements or steps. The mere fact that certain measures are recited in different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
[0168] Any reference signs in the claims should not be construed as limiting the scope thereof.