Method and circuit for evaluating a physical quantity detected by a sensor
09638651 ยท 2017-05-02
Assignee
Inventors
Cpc classification
G01N27/025
PHYSICS
International classification
Abstract
A method for measuring a physical quantity with a, particularly inductive, sensor element and for providing a sensor output depending on the physical quantity. The sensor element is part of a resonant circuit whose attenuation depends on the physical quantity being measured. The resonant circuit is excited to generate a periodic oscillation signal, the amplitude of which depends on the attenuation. The oscillation signal is compared with a comparator threshold value in a comparator to produce a periodic comparator signal with a duty cycle depending on the comparator threshold value. The comparator threshold value is set to be different from a mean value of the oscillation signal so that a duty cycle different from 50% is achieved. The sensor output is output depending on the duty cycle of the comparator signal.
Claims
1. A method for measuring a physical quantity with a, particularly inductive, sensor element and for providing a sensor output depending on the physical quantity, wherein the sensor element is part of a resonant circuit whose attenuation depends on the physical quantity being measured, wherein the resonant circuit is excited to generate a periodic oscillation signal having a mean amplitude value, the amplitude of which depends on the attenuation, wherein the oscillation signal is compared with a comparator threshold value in a comparator to produce a periodic comparator signal with a duty cycle depending on the comparator threshold value, setting the comparator threshold value to be different than the mean amplitude value, wherein in steady state the duty cycle is different from 50% and wherein the sensor output depends on the duty cycle of the comparator signal.
2. The method according to claim 1, wherein the mean value of the oscillation signal is offset with respect to the comparator threshold value applying a predetermined offset value, particularly a predetermined offset voltage, wherein the offset value is applied to the oscillation signal or the offset value corresponds to the comparator threshold value or the oscillation signal is set depending on the offset value.
3. The method according to claim 1, wherein the comparator threshold value is set depending on the duty cycle of the periodic comparator signal.
4. The method according to claim 3, wherein the comparator threshold value is set as the mean value of the periodic comparator signal, particularly obtained by equalizing, wherein the sensor output corresponds to the mean value.
5. The method according to claim 1, wherein an oscillation of the resonant circuit is maintained by an in-phase feedback of the periodic comparator signal.
6. The method according to claim 1, wherein the comparator signal is low-pass filtered wherein an initial build-up of oscillation of the resonant circuit is effected by providing a feedback of the low-pass filtered comparator signal onto the comparator threshold value.
7. The method according to claim 1, wherein the comparator threshold value is changed depending on the duty cycle of the periodic comparator signal and depending on an predetermined offset value with respect to a mean value of the oscillation signal so that a balanced state between a duty cycle obtained due to the predetermined offset value and a duty cycle obtained depending on the comparator threshold value is obtained.
8. The method according to claim 1, wherein the sensor output corresponds to a voltage of the comparator threshold value or to an effective voltage obtained by equalizing the periodic comparator signal.
9. The method according to claim 1, wherein the resonant circuit is excited in an inversely phased (out-of-phase) manner by applying the periodic comparator signal.
10. An evaluating circuit for measuring a physical quantity with a, particularly inductive, sensor element and for providing a sensor output depending on the physical quantity to be measured, wherein the evaluating circuit comprises: a resonant circuit comprising the sensor element, wherein the resonant circuit has an attenuation which depends on the physical quantity; a means for providing an excitation signal for exciting the resonant circuit to produce a periodic oscillation signal having a mean amplitude value, whose amplitude depends on the attenuation of the resonant circuit; a comparator which is configured to compare the periodic oscillation signal with a comparator threshold value so that a resulting periodic comparator signal is provided which has a duty cycle depending on the comparator threshold value, wherein the sensor output is output as depending on the duty cycle of the comparator signal; and a means for changing the comparator threshold value to be different than the mean amplitude value, wherein in the steady state the duty cycle is different than 50%.
11. The evaluating circuit according to claim 10, wherein an offset voltage source can be provided to offset the mean value of the oscillation signal with respect to the comparator threshold value by means of a predetermined offset value, particularly of a predetermined offset voltage, wherein the offset voltage source is connected so that the offset value is applied to the oscillation signal or that the comparator threshold value corresponds to the offset value or that the oscillation signal is set depending on the offset value.
12. The evaluating circuit according to claim 10, wherein the means for providing the excitation signal provides a feedback of the comparator signal, particularly by means of a feedback resistance, to the resonant circuit in order to excite the resonant circuit by the periodic comparator signal so that the resonant circuit continuously oscillates, particularly at its resonant frequency.
13. The evaluating circuit according to claim 12, wherein an initial build-up oscillation means is provided in order to low-pass filter the periodic comparator signal and to provide the comparator threshold value as the low-pass filtered comparator signal or as a signal depending on the low-pass filtered comparator signal so as to allow an initial build-up of the oscillation of the resonant circuit, wherein the low-pass filtered comparator signal is provided as the sensor output.
14. The evaluating circuit according to claim 12, wherein the sensor element includes an inductivity wherein the resonant circuit comprises the inductivity, whose terminals are coupled with a predetermined potential via resonant circuit capacities, respectively, wherein the feedback of the comparator signal to the resonant circuit is out-of-phase.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The drawings described herein are for illustrative purposes only of selected embodiments and not all possible implementations, and are not intended to limit the scope of the present disclosure. Embodiments are described in more detail in conjunction with the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(8) Example embodiments will now be described more fully with reference to the accompanying drawings.
(9)
(10) The resonant circuit 3 is continuously excited by means of an excitation means 4 to provide the periodic oscillation signal S. The excitation means 4 serves on one hand to effect an initial build-up of oscillation of the resonant circuit 3 when starting the evaluating circuit 1 and on the other hand to keep up/maintain a continuous oscillation of the resonant circuit 3 by steadily injecting excitation energy. Particularly, the excitation occurs by applying an excitation signal which has a frequency portion/harmonic of a resonance frequency of the resonant circuit 3.
(11) The periodic oscillation signal S is fed to a first input E1 of a comparator 5 and is compared with a predetermined comparator threshold value KS, particularly given as a voltage, at a second input E2. A comparator signal K at an output of the comparator 5 corresponds to a square-wave voltage signal with a periodicity which corresponds to the periodicity of the periodic oscillation signal S.
(12) The comparator threshold value KS can be predetermined by an offset unit 7 which may have the form of an offset voltage source 7 coupled with the second input E2 of the comparator 5.
(13) The offset unit 7 serves to provide the comparator threshold value KS by means of an offset value O and can be given as an offset voltage U.sub.O so that the comparator threshold value KS is shifted/offset with respect to a mean value of the oscillation signal S or is different from the mean value of the oscillation signal S, respectively.
(14) As a mean value, an average value can be applied which may be determined from a maximum and a minimum of the oscillation signal. As a mean value, a value can also be applied which is determined by the integral of the characteristics of the oscillation signal over one period divided by the period time of the oscillation.
(15) The oscillation signal S may substantially correspond to an electrical signal with a close to sinusoidal characteristics wherein a mean value may be determined from the maximum and the minimum of the signal. So, the comparator threshold determined by the comparator threshold value KS with respect to the oscillation signal S, is given as a value between the mean value and the maximum or as a value between the mean value and the minimum value of the oscillation signal S. Therefore, the comparator threshold value KS can be detuned/shifted with respect to the mean value of the oscillation signal S.
(16) The comparator signal K at the output of the comparator 5 is fed to a low-pass filter 6 which e.g. can be implemented as RC element. The low-pass filter 6 serves to equalize the comparator signal K and to supply a sensor output A, particularly as sensor voltage, wherein the sensor output A is an electrical DC quantity proportional to the duty cycle of the comparator signal K.
(17) In case the comparator threshold value KS was set to the mean value of the oscillation signal S, a comparator signal K with a duty cycle of 50% would result at the output of the comparator 5. When offsetting/detuning the comparator threshold value KS with respect to the mean value of the oscillation signal S, a duty cycle of the comparator signal K results which differs/deviates from 50% as the switching threshold of the comparator 5 crosses the sinusoidal characteristics of the oscillation signal S at time instants which are different from the time instants at zero crossing.
(18) The duty cycle which is a result of the detuning of the comparator threshold value KS from the mean value of the oscillation signal S, depends on one hand on the absolute value of the comparator threshold value KS or on its difference to the mean value of the oscillation signal S, respectively, and on the other hand depends on the amplitude of the oscillation signal S. As can be seen in the characteristics shown in
(19) In alternative embodiments, the offset value O can also be applied on the oscillation signal S in that the offset unit 7 is arranged in the signal path of the resonant circuit 3. Thereby, the offset value O is added to the oscillation signal S. At the second input E2 of the comparator 5, a predetermined comparison value is applied only, e.g. in form of a predetermined voltage potential. Of course, the operational range of the comparator 5 needs to be considered for dimensioning of the offset value O, the comparison value and of the resonant circuit 3.
(20) In
(21) When the inductive sensor is applied in an inductive proximity sensor, it can be detected whether an object including an electrically conductive element changes its position in the alternating magnetic field or enters the alternating field by approaching the inductive sensor. This causes the generation of eddy currents in the electrically conductive elements which interfere with the alternating magnetic field and cause interferences in the generated alternating magnetic field. This interference of the alternating magnetic field has an effect of a changed impedance of the sensor element 21 or of a changed attenuation of the oscillation in the resonant circuit 22, respectively. The electrical effect of this attenuation is represented by the resistance R.sub.P shown as parallely coupled to the inductivity L1 in the resonant circuit 22.
(22) The resonant circuit 22 is implemented as a parallel resonant circuit and has a first terminal 23, onto which a predetermined offset voltage U.sub.O of a corresponding offset voltage source 27 is applied, and a second terminal 24 which is coupled with a non-inverting input of the comparator 25. The comparator 25 can e.g. be implemented as a differential amplifier or an operational amplifier. Hence, a voltage is applied at the non-inverting input of the comparator 25 wherein the voltage corresponds to a sum of the offset voltage U.sub.O and a resonant circuit voltage which corresponds to the oscillation signal S.
(23) The comparator 25 is supplied with electrical energy by a supply voltage U.sub.V, i.e. the voltage between a high supply potential V.sub.V and a low supply potential V.sub.GND, particularly a ground potential. The comparator 25 is preferably implemented as a rail-to-rail comparator, i.e. the high supply potential V.sub.V is output for a positive comparison result and the low supply potential V.sub.GND is output for a negative comparison result at the comparator output corresponding to a comparator signal K which preferably corresponds to a voltage signal.
(24) The comparator signal K is coupled via a feedback resistance R.sub.V to a node between the two resonant circuit capacities C2 and C3 in order to provide a permanent excitation for the resonant circuit 22 so that a constant oscillation at a resonant frequency of the resonant circuit 22 is achieved. This occurs as the comparator signal K which is a square-wave signal has a period which corresponds to the period of the oscillation signal S. Hence, the comparator signal K has, at a duty cycle different from 50%, a frequency portion which is sufficient for the mainly in-phase excitation of the resonant circuit 22 via the feedback of the feedback resistance R.sub.V. Of course, it is also possible to excite the resonant circuit 22 and to maintain the oscillation by means of a separate excitation means 4 which is independent from the comparator signal K.
(25) The comparator signal K which substantially corresponds to a square-wave signal with a duty cycle and with signal levels which correspond to the high supply potential V.sub.V and the low supply potential V.sub.GND, is fed back via a low-pass filter 26 to an inverting input of the comparator 25. The low-pass filter 26 comprises a filter resistance R1 and a filter capacity C1 which are serially connected so that a reference voltage U.sub.R at a node between the filter resistance R1 and the filter capacity C1 is obtained wherein the reference voltage U.sub.R is applied onto the inverting input of the comparators 25 as comparator threshold value KS or comparator threshold voltage, respectively.
(26) The so formed low-pass filter 26 is configured so that when starting up (powering up) the evaluating circuit 20, the reference voltage U.sub.R at the inverting input of the comparator 25 has an oscillation which is of high amplitude directly after the start-up and having a decreasing amplitude thereafter. The high waviness of the reference voltage U.sub.R at start-up leads to an alternating signal level of the comparator signal K which is coupled into the node between the two resonant circuit capacities C2 and C3 via the feedback resistance R.sub.V. Thereby, the feedback onto the inverting input of the comparator 25 supports the building up of oscillation by initially generating a comparator signal K with periodically alternating signal levels until the resonant circuit 22 has started oscillation based on the feedback through the feedback resistance R.sub.V.
(27) In a steady state, the low-pass filter 26 further supplies the reference voltage U.sub.R at the inverting input of the comparator 25 which is substantially provided as DC voltage by equalization of the comparator signal K.
(28) Substantially, as the reference voltage U.sub.R a voltage is obtained which is generated by the duty cycle of the comparator signal K determined by the steady state of the resonant circuit 22 as well as by the high voltage potential V.sub.V and the low supply potential V.sub.GND. The reference voltage U.sub.R is produced by the comparator 25 and the potentials of the high and low levels of the supply potential as well as by the low-pass filter 26 so that a voltage which depends on the duty cycle of the comparator signal K, is applied at the inverting input of the comparator 25. In the present embodiment, a reference voltage U.sub.R corresponds to half of the supply voltage U.sub.V/2 at a duty cycle of 50%.
(29) Substantially, the oscillation signal generated in the resonant circuit 22 has sinusoidal characteristics, the mean value of which is determined by the offset voltage U.sub.O. If the evaluating circuit 20 is tuned, i.e. the offset voltage U.sub.O corresponds to the reference voltage U.sub.R, the output of the comparator 25 shows a signal with a duty cycle of 50% as comparator signal K. The evaluating circuit 20, however, is detuned if the reference voltage U.sub.R resulting from the duty cycle of the comparator signal K corresponds to a voltage level different from the offset voltage U.sub.O. The detuning has an effect that the oscillation signal up(t) onto which the offset voltage U.sub.O is applied, is not sampled with a comparator threshold value KS which corresponds to the mean value of the oscillation signal up(t) and that a comparator signal K is produced at the output of the comparator 25, whose duty cycle differs/deviates from the duty cycle of 50%. So the reference voltage U.sub.R changes and a balanced state is achieved in which the resulting duty cycle of the comparator signal K causes a reference voltage U.sub.R which differs from the mean value of the oscillation so that as a comparator signal K a signal with the corresponding duty cycle is obtained.
(30) In
U.sub.a=Uo
up(t)=Uo+U.sub.a sin(t)
wherein U.sub.a corresponds to the amplitude of the oscillation, to the maximum signal value of the oscillation signal S and up(t) to the oscillation signal S. Furthermore, it holds due to the feedback through the low-pass filter 26 in steady state:
(31)
(32) It follows:
(33)
and consequently:
(34)
(35) It is obtained a characteristics of the reference voltage U.sub.R as sensor signal or sensor output A, respectively, over the amplitude U.sub.a of the oscillation signal S or up(t), respectively, as it is shown in
(36) As the comparator 25 can be implemented as the only active electronic component of the evaluating circuit 20, preferably as a rail-to-rail comparator, a temperature-dependency of the evaluating circuit 20 with respect to the output quantity (sensor output) is low and particularly limited to only the switching threshold of the comparator 25.
(37) Substantially, the feedback coupling of the comparator output to the inverting input of the comparator 25 is provided to initiate an excitation of the resonant circuit 22 so that the oscillation of the resonant circuit 22 can be maintained by the feedback of the comparator output. However, as the comparator output is fed back to the inverting input of the comparator 25 by means of the low-pass filter 26, the low-pass filter 26 can also be used for supplying the sensor output A. In other words, the reference voltage U.sub.R corresponds to the sensor output A, whose potential depends on the amplitude U.sub.a of the oscillation signal S. Therefore, any means subsequently coupled to the comparator 25, such as a further low-pass filter, a rectifier, or the like, can be omitted and the reference voltage U.sub.R can be applied as sensor output A instead. Consequently, an evaluating circuit 20 is provided which can be operated without passive or active rectification so that the number of required components and the total power consumption is reduced.
(38)
(39) The second terminal 36 of the inductivity L2 provides the oscillation signal S at an inverting input of the comparator 33. So the resonant circuit 32 can be excited through a feedback resistance R.sub.V2 via the first terminal 35 of the inductivity L2 at least mainly in an inversely manner or in an out-of-phase manner. The predetermined offset voltage U.sub.O is applied as the comparator threshold value KS at the non-inverting input of the comparator 33.
(40) The feedback resistance R.sub.V2 serves to start up oscillation of the resonant circuit 32 in conjunction with the first resonant circuit capacity C4. So the feedback resistance R.sub.V2 and the resonant circuit capacities C4, C5 form/act as the low-pass filter 26 and the feedback resistance R.sub.V2 also has the task to maintain the oscillation of the resonance circuit 32 as does the feedback resistance R.sub.V of one of the embodiments described above.
(41) Particularly, all signal-carrying nodes in the evaluating circuit 30 of the embodiment of
(42) The operation principle of the embodiment of
(43) For providing the sensor output A, a low-pass filter 34 subsequently coupled to the comparator 33 implemented as an RC-element is provided which has an intermediate node at which the sensor output A can be tapped as a DC voltage.