SENSOR DEVICE AND SYSTEM WITH NON-LINEARITY COMPENSATION
20230130262 · 2023-04-27
Inventors
- Gael CLOSE (Bevaix, CH)
- Johan Raman (Knesselare, BE)
- Pieter Rombouts (Mariakerke, BE)
- Andreas BONIN (Dresden, DE)
- Eric Sachse (Dresden, DE)
Cpc classification
G01D5/145
PHYSICS
International classification
G01D18/00
PHYSICS
G01D3/02
PHYSICS
Abstract
A sensor circuit for measuring a physical quantity including: a signal acquisition circuit having a sensor to provide an input signal related to the physical quantity; a processing circuit to receive the input signal and for providing an output signal representative of the physical quantity; the processing circuit comprising a closed loop comprising: a first sub-circuit arranged for receiving the input signal and a feedback signal, and configured for providing a first signal; a frequency dependent filter for receiving and filtering the first signal, and for providing the output signal; a second sub-circuit for receiving and converting the filtered signal into the feedback signal using a non-linear function.
Claims
1. A sensor circuit for measuring a physical quantity, the sensor circuit comprising: a signal acquisition circuit comprising at least one sensor configured to provide at least one input signal related to the physical quantity; a processing circuit configured to receive said at least one input signal and for providing an output signal representative of the physical quantity; the processing circuit comprising a closed loop, comprising: i) a first sub-circuit arranged for receiving said at least one input signal and at least one feedback signal, and comprising a combiner, and configured for providing a first signal; ii) a frequency dependent filter configured for receiving and filtering said first signal, and for providing a filtered signal or a signal derived therefrom as the output signal; and iii) a second sub-circuit configured for receiving said filtered signal, and for converting said filtered signal into said at least one feedback signal using a non-linear function.
2. The sensor circuit according to claim 1, wherein the non-linear function is defined by a plurality of parameters determined during a calibration procedure.
3. A sensor circuit according to claim 1, wherein the signal acquisition circuit comprises at least one magnetic sensor configured to measure a magnetic field signal associated with the physical quantity to be measured; or wherein the signal acquisition circuit comprises at least two magnetic sensors, each configured to measure a magnetic field associated with the physical quantity to be measured; or wherein the signal acquisition circuit comprises at least three magnetic sensors, each configured to measure a magnetic field associated with the physical quantity to be measured.
4. The sensor circuit according to claim 1, wherein the physical quantity has an input phase, and wherein the output signal is a phase signal indicative of the input phase; and wherein the signal acquisition circuit comprises a plurality of sensors configured to provide a plurality of input signals, each being a function of said input phase; and wherein the first sub-circuit further comprises a phase generator configured to provide an estimate of said input phase; and wherein the processing circuit is configured to provide the output phase so as to have an improved accuracy with respect to the input phase.
5. The sensor circuit according to claim 4, wherein the first sub-circuit comprises said phase estimator followed by said combiner, and wherein the phase estimator is arranged for receiving and converting said at least one input signal into said phase signal, and wherein said combiner is configured for receiving and combining said phase signal and said feedback signal.
6. The sensor circuit according to claim 5, wherein the second sub-circuit comprises a nonlinear function block arranged for receiving and modifying said filtered signal using a non-linear function; and where the at least one feedback signal is derived from the modified signal.
7. The sensor circuit according to claim 1, wherein the filter has a frequency dependent transfer function T(s), and wherein T(s) is chosen such that [T(s)−1] has at least one zero at DC, and wherein the nonlinear function block is configured to output a feedback signal in the form of θfb1=f(θo)−θo, where θfb1 is the feedback signal, f( ) is a predefined non-linear function, and θo is the output value.
8. The sensor circuit according to claim 7, wherein the transfer function T(s) is chosen such that [T(s)−1] has at least two zeros at DC.
9. The sensor circuit according to claim 1, wherein the filter has a frequency dependent transfer function H(s), and wherein H(s) has at least one pole at DC, and wherein the nonlinear function block is configured to output a feedback signal in the form of θfb=f(θo), where θfb is the feedback signal, f( ) is a predefined non-linear function, and θo is the output value.
10. The sensor circuit according to claim 9, wherein the transfer function H(s) has at least two poles at DC.
11. The sensor circuit according to claim 1, wherein the first sub-circuit comprises said combiner followed by said phase generator, and wherein the combiner is arranged for receiving and combining said at least one input signal and said at least one feedback signal, and wherein the phase generator is configured for converting the combined signal into said phase signal.
12. The sensor circuit according to claim 11, wherein the second sub-circuit comprises a nonlinear function block arranged for receiving and modifying said filtered signal using a non-linear function; and wherein the second sub-circuit further comprises a phase-to-I/Q convertor configured for receiving and converting this modified signal into at least two component signals; and wherein the feedback signal are derived from these component signals.
13. The sensor circuit according to claim 1, wherein the processing circuit introduces a non-linearity; and wherein the nonlinear function block is configured to reduce or substantially eliminate at least the non-linearity introduced by the processing circuit.
14. A position sensor system comprising: a magnetic source configured for generating a magnetic field having a phase indicative of a mechanical position; and a magnetic sensor circuit according to claim 3; wherein the input phase, and a nonlinear error function of said mechanical position; and wherein the nonlinear function block is configured to reduce or substantially eliminate said nonlinear error function.
15. The position sensor system according to claim 14, wherein the second sub-circuit is configured for reducing or substantially eliminating errors, e.g. higher harmonics, related to or caused by mechanical non-idealities of the magnetic source, situated outside of the magnetic sensor circuit.
16. The position sensor system according to claim 14, wherein the magnetic source is a permanent magnet which is movable relative to the magnetic sensor circuit, or vice versa; and wherein the second sub-circuit is configured for reducing or substantially eliminating errors, e.g. higher harmonics, related to mechanical mounting aspects, e.g. selected from the group consisting of: position offset, tilt, eccentricity.
17. The position sensor system according to claim 14, comprising a printed circuit board comprising a plurality of coils; and comprising a target, which is movable relative to said plurality of coils; and comprising said magnetic sensor circuit; and wherein the second sub-circuit is configured for reducing or substantially eliminating errors, e.g. higher harmonics, related to mechanical mounting aspects of the target, e.g. selected from the group consisting of: position offset, tilt, eccentricity, and/or related to layout aspects of the plurality of coils.
18. A current sensor system, comprising: a current conductor for conducting a current to be measured; and a sensor circuit according to claim 3, configured for measuring a magnetic field generated by the current to be measured.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099] 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 or like reference signs (e.g. having same modulo 100) typically refer to the same or analogous elements.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] 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.
[0106] 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.
[0107] 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.
[0108] In this document, the terms “phase calculator” and “angle calculator” can be used interchangeably, unless explicitly mentioned otherwise.
[0109] In this document, the expression “phase generator” is used as a general term and encompasses the expression “phase calculator” and “phase estimator”. While the expression “phase calculator” suggests that the result is more accurate than for a “phase estimator”, the three expressions can be used interchangeably in this document.
[0110] The expression “reducing the error over a measurement range”, may mean: reducing the maximum error over said measurement range, or an average error, or a total squared error (e.g. sum of integral of the squared error).
[0111] With “improving linearity” is meant: reducing an error between a measured curve and the ideal curve.
[0112] In embodiments of the present invention, “improved linearity” can mean “having an improved linear regression coefficient”, meaning, “having a linear regression coefficient closer to 1.000”.
[0113] With “5 krpm electrical” is meant “5000 revolutions or rotations per minute of the electrical signal”. For example, if a target of an inductive position sensor system contains five lobes and is mounted on a shaft that rotates at an angular speed of 1000 rotations per minute (mechanical), the electrical signal has an angular speed of 5 krpm electrical.
[0114] The present invention relates to the field of sensor systems and devices, and may comprise various types of sensors, e.g. one or more light sensor, one or more magnetic sensor, one or more accelerometer, etc. The principles of the present invention will be explained mainly for a magnetic position sensor system comprising a permanent magnet, and for an inductive angular position sensor system, but the present invention is not limited thereto, and is more generally applicable to other types of sensors and systems, especially magnetic sensors and systems.
[0115]
[0116] Circuits and methods for determining the angular position ° mechanical of the magnet 110 by measuring characteristics of the magnetic field generated by the magnet 110 using one or more magnetic sensor, are known in the art, for example from WO9854547(A1) or from WO2014029885(A1), just to name a few. Without going into the details, it suffices to know that the angular position of the magnet 110 can be determined for example by measuring a first magnetic signal behaving like a sine-function of the mechanical position, and a second magnetic signal behaving like a cosine function of the mechanical position, and by calculating an arctangent of the ratio of the sine and cosine signal.
[0117] This can for example be accomplished by the sensor circuit 120 shown in
[0118] Biasing and readout-circuits of magnetic sensor elements are well known in the art, and are not the focus of the present invention, and hence do not need to be explained in more detail here. In the example of
[0119] In practice, however, the signals v1 and v2 are typically not a perfect sine and cosine signal, for various reasons. One reason may be that the first magnetic field component measured at the first sensor location, at a predefined distance from the magnet (e.g. at about 1.0 mm), may not be a perfect sine signal, and/or the second magnetic field component measured at the second sensor location may not be a perfect cosine signal. This can happen for example if the sensor device is not perfectly aligned to the magnet, or is tilted, or if the magnet is not perfect, etc., causing a non-linearity. This is schematically indicated in
[0120] But also, the biasing and readout circuit is typically not perfect, e.g. due to amplifier offset or gain offset, or non-linearity caused by the analog-to-digital convertor. This is schematically indicated in
[0121] In the sensor circuit of
[0122] In practice, the effects of the various nonlinearities NL1, NL2 and NL3 typically cumulate, and may be represented by a combined or overall non-linearity NLo, an example of which is shown in
[0123] The inventors of the present invention wanted to find a solution to improve the accuracy of the sensor device (excluding the magnet) and/or the accuracy of the sensor system (including the magnet), by reducing at least one of the non-linearity errors, preferably reducing all of the non-linearity errors, and more preferably substantially eliminating or compensating the overall non-linearity error.
[0124]
[0125]
[0126]
[0127] The correction circuit 228 is configured for receiving the calculated angle θcalc from the phase calculator block 227, and for converting this value into a corrected value θcorr using a predefined remapping function, e.g. using a piecewise linear correction function interconnecting a limited number of points (e.g. from 4 to 32 points, e.g. about 8 points, or about 12 points, or about 16 points, or about 24 points). The non-linearity function, or the coordinates of these points may be determined for example during a calibration test, in which the magnet is positioned at a plurality of predefined angular positions, (e.g. at multiples of 30°), and by storing the calculated angular values θcalc in a non-volatile memory of the sensor device. Later, during normal operation, the sensor device can then use a piecewise-linear interpolation between these point to correct the calculated value θcalc in order to reduce the non-linearity error.
[0128] By choosing the piecewise-linear correction function as an approximation of the inverse function of the combination of nonlinearities NL1, NL2 and NL3 described above, the non-linearity can be largely reduced. This technique is used in commercial products, and is well known in the art, and thus does not need to be described in more detail here.
[0129] The correction circuit 228 may optionally comprise a noise filter 230, e.g. having a low-pass characteristic. This may be helpful to smooth the output signal in case of a relatively slowly rotating magnet (e.g. at an angular speed lower than 100 rpm). This noise filter may for example be implemented as a low pass FIR filter (Finite Impulse Response), or as an Exponential Moving Average filter (EMA). In a practical implementation, this noise filter may be disabled or bypassed.
[0130] During the design of a new sensor device, the inventors of the present invention discovered however, that under certain conditions, the solution proposed in
[0131] After further investigating this problem, it was found that the correction circuit 228 of
[0132] Desiring to reduce one or more, and preferably all of the nonlinearities also at such a high speed, the inventors started experimenting using various circuit topologies, and they surprisingly found four circuit topologies, illustrated in
[0133]
[0134] As can be seen, the correction circuit 328 is arranged for receiving an uncorrected signal θcalc from the phase calculator 327, and for providing a corrected output signal θcorr. The correction circuit 328 comprises: [0135] i) a combiner 331 arranged for receiving and combining said uncorrected signal θcalc and a feedback signal θfb1, and [0136] ii) a frequency dependent filter 332 configured for receiving and filtering an output of said combiner 331, and for generating said corrected output signal θcorr, and [0137] iii) a nonlinear function block 333 configured for receiving said corrected output signal θcorr, and for generating said feedback signal θfb1 using a non-linear function f(θ), e.g. the inverse function shown in
[0138] The frequency dependent filter 332 has a transfer characteristic T(s), wherein [T(s)−1] has at least one zero at DC (i.e. at 0 Hz), but preferably has at least two zeros at DC. The latter is called a Zero Latency Filter (ZLF).
[0139] The feedback signal θfb1 provided by the nonlinear function block 333 may be expressed by the following formula: θfb1=f(θ.sub.0)−θ.sub.0, where Nis the output value provided by the filter T(s), and f(θ.sub.0) is a non-linear transformation of said output value.
[0140] The combiner 331 may be configured to provide an output as a linear combination of the uncorrected value θcalc and the feedback signal θfb1, for example as an addition or a subtraction.
[0141] Simulations have demonstrated that this circuit works very well, even for relatively high speed up to about 200 krpm electrical, or even up to 300 krpm, or even up to 400 krpm, or even up to 500 krpm, or even up to 600 krpm, or even up to 700 krpm.
[0142] It is noted that the correction circuit 328 can be implemented completely in the digital domain.
[0143] In an embodiment, the phase calculator circuit 327 may be further configured for determining an angular speed w and/or an angular acceleration a, e.g. as a first and second time derivative of the angular position, and one or both of these values may optionally be provided to the correction circuit 328. The latter may be configured for adjusting the filter characteristic T(s) and/or the non-linear function f( ) taking into account one or both of said angular speed ω and/or angular acceleration a. For example, in a particular implementation, the correction circuit 328 comprises two filters, one of which is chosen dependent on whether the angular speed is higher or lower than a predefined threshold value.
[0144] In
[0145]
[0146] As can be seen, the correction circuit 328′ is arranged for receiving an uncorrected value θcalc from the phase calculator 327′, and for providing a corrected output signal θcorr. The correction circuit 328′ comprises: [0147] i) a combiner 331′ arranged for receiving and combining said uncorrected signal θcalc and a feedback signal θfb2, and [0148] ii) a frequency dependent filter 332′ configured for receiving and filtering an output of said combiner 331′, and for generating said corrected output signal θcorr, and [0149] iii) a nonlinear function block 333′ configured for receiving said corrected output signal θcorr, and for generating said feedback signal θfb2 using a non-linear function f(θ).
[0150] The frequency dependent filter 332′ has a transfer characteristic H(s) with at least one pole at DC (i.e. at 0 Hz), but preferably having at least two poles at DC.
[0151] The feedback signal θfb2 provided by the nonlinear function block 333′ may be expressed by the following formula: θfb2=f(θ.sub.0), where θ.sub.0 is the output value provided by the filter H(s), and f(θ.sub.0) is a non-linear transformation of said output signal.
[0152] The combiner 331′ may be configured to provide an output as a linear combination of the uncorrected signal θcalc and the feedback signal θfb2, for example as an addition or subtraction.
[0153] In a variant (not shown), the block 333 of
[0154] In an embodiment, the block 333 of
[0155] In an embodiment, the block 333 of
[0156] Also in this case, the phase calculator 327′ may optionally provide one or both of an angular speed w and/or an angular acceleration a to the correction circuit 328′, which may adjust its behaviour depending on one or both of these values (speed and/or acceleration).
[0157] In
[0158]
[0159] As can be seen, the processing circuit 450 comprises an angle calculator 427 comprising a tracking loop, and the processing circuit 450 further comprises a correction circuit 428, but the correction circuit 428 is arranged downstream of the angle calculator 427, outside of the tracking loop.
[0160] It is a major advantage of this “tracking loop” that it can be used to calculate or estimate or approximate or emulate an arctangent function without actually requiring a programmable DSP (digital signal processor) or arithmetic unit.
[0161]
[0162]
[0163] As already mentioned above, the principles of the present invention are not limited to magnetic position sensor systems comprising a magnet, for example as illustrated in
[0164]
[0165] Nonlinearities (or non-idealities) may be introduced at several places. For example, a first nonlinearity NL1 may be introduced when converting the mechanical angle θmech into electrical or magnetic signals (e.g. into three modulated AC signals); a second nonlinearity NL2 may be introduced by the “Receiver and Demodulation circuit” 526. This circuit may also include at least one analog-to-digital convertor ADC, and optionally also a Clarke transformation circuit; A third nonlinearity NL3 may be introduced inside the processing circuit 550 itself, e.g. by the phase calculator 527, when calculating an angular position θcalc based on the input signals v1, v2. The nonlinearities NL1, NL2, NL3 are only shown for illustrative purposes, and in practice there may be more than three or less than three sources of nonlinearities, or there may be other nonlinearities, but the principles explained above remain the same.
[0166] Inductive position sensors are well known in the art, and hence need not be explained in full detail here. In order to understand the present invention, it suffices to know that typically an alternating signal (AC signal) is applied to an excitation coil (also referred to as transmitter coil), which will generate an alternating magnetic field. The transmitter coil may have a circular shape surrounding the receiver coils, as is known in the art. This magnetic field is modulated by the angular position of the conductive target 511, which influences the signals s1, s2, s3 obtained by the receiver coils 521, 522, 523, acting as sensor elements. These signals can be converted into an angular position, e.g. in the “Receiver and Demodulation circuit” 526, using known techniques. Some inductive sensor systems contain only two receiver coils, which are arranged such that the received and demodulated signals are substantially 90° phase shifted.
[0167] In the example shown in
[0168] This is of course only one illustrative example of an inductive position sensor, and many variations are possible. For example, many shapes of the target 511 are possible, and various layouts of the coils are possible, etc. (for example: C-shape, O-shape). The phase calculator 527 may be implemented using a digital processor (e.g. a DSP), or using a look-up table, or using a tracking loop, e.g. as described above in
[0169] In certain embodiments, the corrected angle θcorr is converted into a sine and a cosine signal, which are then provided to the ECU. Such implementation is particularly useful for backwards compatibility with existing systems.
[0170] In a variant of the system shown in
[0171] Referring back to
[0172] Using the reference numbers of
the first sub-circuit 360 is arranged for receiving said at least one input signal v1, v2 and at least one feedback signal θfb1. The first sub-circuit comprises a phase generator 327 and a combiner 331 and provides phase signal θcalc. The phase estimator 327 is followed by the combiner 331.
the filter 332 is a frequency dependent filter, is configured for receiving and filtering the phase θcalc, and is configured for providing the filtered signal as the output signal θcorr;
the second sub-circuit 333 consists of a nonlinear function block 333, arranged for receiving said filtered signal θcorr as an input signal, and for converting this signal into a feedback signal θfb1 using a non-linear function, e.g. using a piecewise-linear approximation passing through a limited number of 8 to 32 predefined points.
[0173] As can be appreciated, this closed loop functions completely in the angular domain.
[0174] As mentioned above, the inventors also found another topology, which is also capable of reducing or substantially removing nonlinearities up to very high speed, e.g. up to 200 krpm electrical, or even up to 400 or 500 or 600 or 700 krpm electrical, as will be described next, illustrated by
[0175]
[0176] The processing circuit 650 comprises a closed loop formed by: a first sub-circuit 660, an output of which is connected to a filter 632, an output of which is connected to a second sub-circuit 670, an output of which is fed back to the first sub-circuit 660. More specifically, in the specific embodiment shown in
[0177] In the specific embodiment of
[0178] the filter 632 is a frequency dependent filter, is configured for receiving and filtering the estimated phase signal θest, and is configured for providing the filtered signal as the output signal θcorr;
[0179] the second sub-circuit 333 comprises a nonlinear function block 633 followed by a phase-to-I/Q convertor 634. The nonlinear function block 670 is arranged for receiving and modifying said filtered signal θcorr using a (e.g. memoryless) non-linear function, e.g. using a piecewise-linear approximation function passing through a limited number of 8 to 32 predefined points which may be stored in a non-volatile memory. The phase-to-I/Q convertor 634 is configured for receiving and converting this modified signal into at least two component signals, from which two feedback signals fbi, fbq are derived, which are provided to the combiner 631.
[0180] As can be appreciated, this closed loop functions partly in the angular domain, and partly in the I/Q domain.
[0181]
[0182] If the three sensor signals s1, s2, s3 are obtained from an inductive sensor having three receiver coils, these modulated signals are preferably demodulated, digitized and converted into two-phase signals v1, v2, e.g. by using a Clarke Transformation, and then provided to the processing circuit 750.
[0183] The principles of the present invention are explained for four magnetic position sensor circuits, illustrated mainly in
in
in
[0184] As mentioned before, the present invention also works in other systems, where another source (e.g. gravity force, light source) and/or another kind of sensor (e.g. an accelerometer, a light sensor) is used. The present invention therefore also discloses:
a linear position sensor system, and an angular position sensor system, comprising a position sensor circuit or device, and a magnetic source, e.g. a permanent magnet.
a current sensor system comprising a current sensor circuit or device, and an electrical conductor, such as an integrated conductor or an external conductor, e.g. a bus bar.
a proximity sensor system comprising a sensor circuit or device, and a conductive target, which is movable relative to the sensor device.