원시데이터 수집 시스템
선정목록으로

Differential Voltage-to-Time Conversion for Digital Readout of Capacitive Sensors

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. José A. Hidalgo-López — Departamento de Electrónica, Universidad de Málaga, Malaga, Spain
DOI
10.1109/tim.2024.3440404
저널
IEEE Transactions on Instrumentation and Measurement
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tim.2024.3440404
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W4401508120

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 39,500자

본문 펼치기
## Differential Voltage-to-Time Conversion for Digital Readout of Capacitive Sensors José A. Hidalgo-López, _Member,_ _IEEE_ _Abstract_ — This article presents a novel circuit to interface a capacitive sensor directly with a digital processor (DP). The circuit is straightforward, requiring only two resistors, a comparator, and the DP. The method to estimate sensor capacitance, _Cx_ , is also simple and consists of a single sensor charging and discharging process, thus reducing measurement time and power consumption. In the second part of the process, the voltage from each sensor terminal is used to generate a differential input to the comparator. The instant at which there is a change of sign in the differential signal generates the sole time measurement required to estimate _Cx_ . Using a differential signal decreases uncertainty in the _Cx_ estimate by eliminating commonmode noise, which may be important due to the presence of the DP. Under certain considerations, the circuit also eliminates errors due to stray capacitors and, in any case, attenuates them. The circuit can, therefore, estimate _Cx_ values in a wide range with low error. As proof of concept, the circuit has been implemented using a general-purpose board with a field-programmable gate array (FPGA) as the DP. For this circuit and _Cx_ in the range 9.45 pF–95.95 nF, the maximum error is 0.32% with a maximum relative uncertainty of 0.004% if the quantization effects are not considered. _Index_ _Terms_ — Capacitive sensor, direct interface circuits (DICs), sensor interface electronics, time to digital conversion. I. INTRODUCTION APACITIVE sensors act as electrical transducers, exhibiting a variety of physical or chemical properties. # C These sensors can measure pressure [1], [2], strain [3], relative humidity [4], [5], [6], [7], [8], steel surface corrosion [9], [10], and analyze organic substances [11] or monitor microbial growth [12]. The sensor converts the magnitudes of these properties into a capacitance value, _Cx_, estimated by a designated electronic circuit. The final measurement from these capacitive sensors’ readout circuits increasingly needs to be in digital format, using the minimum possible hardware, time, and energy consumption. Designing circuits that meet all these requirements is challenging, but it enables the integration of capacitive sensors in portable and economical systems suitable for various emerging applications. Moreover, proposals increasingly incorporate a digital processor (DP), such as a microcontroller, a field-programmable gate array (FPGA), or an ASIC into the sensor readout Manuscript received 22 January 2024; revised 20 May 2024; accepted 23 June 2024. Date of publication 12 August 2024; date of current version 21 August 2024. This work was supported by the Spanish Government under Contract PID2021-125091OB-I00. The Associate Editor coordinating the review process was Dr. Kamel Haddadi. The author is with the Departamento de Electrónica, Universidad de Málaga, 29071 Malaga, Spain (e-mail: jahidalgo@uma.es). Digital Object Identifier 10.1109/TIM.2024.3440404 interface. The DP typically forms part of a higher level system, where the information supplied by the sensor is just one of many inputs received by the system. Therefore, the presence of the DP in the sensor readout circuit does not increase the hardware in the overall system. This is the design principle of the so-called direct interface circuits (DICs). DICs are very simple, using only a few passive components (besides the DP) and, in some cases, a comparator or operational amplifier without analog-to-digital converters. DICs are used in reading resistive sensors [13], [14], inductive sensors [15], or even sensors that can be modeled using a mixture of components [16]. DICs are also proposed for reading capacitive sensors [17], [18], [19], [20], [21], [22]. The operation of these circuits is based on performing a series of charging and discharging cycles of the capacitor that forms the sensor. Due to their simplicity, these circuits have several limitations. First, the capacitance ranges they can measure are usually narrow. The range in [17] and [18] is between 10 and 100 pF, spanning just a decade. The same is true for [19], although the circuit can be used for different ranges of values by changing some of the components for each span. The range used in [20] is even narrower, 100–240 pF. Although [21] has a slightly larger range of 4.7–220 nF, only [22] uses a range that exceeds 60 dB, 100 pF–561 nF. Meanwhile, the estimation errors are typically around 1% for _Cx_ values over 100 pF. Still, they can be significantly larger for lower values, which may be excessive in many applications, where the capacitance range is between 10 and 100 pF. The proposal in [23] differs by using an _RC_ relaxation oscillator built with three inverters, two resistors, and the DP. The oscillator generates a square signal, whose frequency, measured by the DP, depends on the value of _Cx_ . The range of tested values varies between 1 and 300 pF. Nevertheless, the author only presents results for uncertainty in the estimates, omitting the errors. These errors seem important since the use of up to 19 calibration capacitors is proposed. One cause of errors in estimating _Cx_ is using time measurements derived from nondifferential voltages. These single-pole voltages are affected by electrical noise introduced in the circuit, primarily due to the clock signal and to switching activity in the DP and propagated through the power lines. It is widely recognized that differential voltage signals offer the benefit of canceling common-mode noise in the circuit [24], [25]. However, as of now, no such signals have been used in the various DICs proposed in the literature. A second cause of errors in estimating _Cx_, especially for low values, is stray capacitors that inevitably appear in any © 2024 The Authors. This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ Fig. 1. New DIC to obtain _Cx_ from a differential voltage signal. circuit. To the best of our knowledge, no DICs address this issue to eliminate or even mitigate their effects. Finally, except in [22], where just a single sensor charging and discharging process is used to estimate _Cx_, the other proposals require several such processes, increasing acquisition time, the number of measurements, and power consumption. This article presents a novel DIC designed to measure a wide span of capacitance values without altering any circuit elements. The hardware is simple and requires a single charging and discharging process to provide the sole time measurement needed to obtain _Cx_ . The estimation is made from a single differential voltage signal, improving the precision and accuracy of these estimates. However, only a single unipolar voltage source is necessary to power the circuit. Furthermore, in common situations, the new method can suppress errors due to stray capacitors in the circuit. II. NEW CIRCUIT FOR READING CAPACITIVE SENSORS _A._ _Description_ _of_ _the_ _Method_ _and_ _Circuit_ _Analysis_ Fig. 1 shows the new circuit proposal to estimate _Cx_ in a capacitive sensor. The circuit consists of the DP, two resistors of known value, _R_ _A_ and _RB_, and a comparator, Comp in Fig. 1. The PA and PB pins of the DP should be output pins, while the PD pin is an input pin. The relationship between the input and output voltages of the comparator in Fig. 1 is as follows: Fig. 2. _Cx_ estimation process. The _Cx_ estimation process is shown in Fig. 2 and requires only two steps: negative charging (NC) and positive charging (PC). The procedure is controlled by a counter that acts as a timer generating the time variable that stores the information on the time elapsed in each step. Time advances in units of _T_ ck, with _T_ ck being the DP’s internal clock signal period. During NC, PA = “0” and PB = “1,” such that, after sufficient time, _T_ ch, the voltages at nodes A and B in Fig. 1 are _VA_ = 0 and _VB_ = _VDD_ . Consequently, the voltage difference between these nodes is _VAB_ = - _VDD_ . Thus, from a certain instant, the output of the comparator is a “0” input to the DP. Once time _T_ ch has elapsed since the start of NC, the DP changes the states of the output pins to PA = “1” and PB = “0,” initiating the PC step. Due to these new values on the DP output pins, _VAB_ increases its value until the instant at which the comparator detects _VAB_ _>_ 0. In this situation, the comparator changes the output to “1.” This change in _VD_ will occur with a small delay due to the comparator propagation time, _Tp_ . The duration of the time interval from PC starting until the PD pin detects a “1” (trigger instant) is the sole time measurement, _Tx_, needed to estimate _Cx_ . The DP stores the _Tx_ value in the form of a number of cycles of its internal clock. The acquisition process is complete once _Tx_ is obtained, and a new estimation can be started immediately. _VD_ = - _V_ low _,_ if _VA_ _<_ _VB_ (1) _V_ high _,_ otherwise where _V_ high and _V_ low must be compatible with the DP’s logical levels. Thus, the DP will consider _V_ high and _V_ low as a “1” and a “0,” respectively. On the other hand, the input voltages of the comparator must be compatible with the “1” and “0” output levels of the DP pins; from now on, we will assume, without loss of generality, that these are _VDD_ (voltage supply) and 0, respectively. Consequently, to simplify the circuit design of Fig. 1 using a single power supply for the DP and comparator, the comparator must allow rail-to-rail inputs. Finally, a large input resistance has also been assumed at the comparator’s input terminals, so no current enters them. The reader should consider that some commercial DPs already incorporate a comparator with these characteristics, further reducing the circuit’s external components. Fig. 3. Expected waveforms for the proposed method in the NC-PC steps shown in Fig. 2. Notice how, at the end of an estimation process (PC step), the next estimation (NC step) can begin. Fig. 3 shows the time evolution of the voltages _VA_, _VB_, and _VD_ during the two steps of several estimation processes (the label of each curve appears on the right side of the figure). The time for which _VD_ is “1” depends on how fast the DP can detect the “1” in PD, as well as on the value of _Tp_ and when a new estimation process is started. If the intention is to start a new estimate immediately after obtaining _Tx_, this time is minimal and can be as small as one cycle of the DP’s internal clock. Fig. 3 also shows that, even if we wish to perform a new estimation process immediately after _VAB_ _>_ 0 is reached, the PC duration is extended mainly due to _Tp_, and _VAB_ continues to increase during this time. Fig. 3 points out this time amplified for the purposes of clarity, although in practice, _Tp_ ≪ _Tx_ (there are comparators with _Tp_ values of the order of a few tens of nanoseconds). The analysis to find the relationship between _Cx_ and _Tx_ is simple but requires some preliminary clarifications. First, pins PA and PB have output resistances given by two values, _R_ _p_ and _Rn_ (usually different), when they provide outputs “1” and “0,” respectively. The designer most likely does not know these values. Values _R_ _A_ and _RB_ must be selected by the designer to minimize the influence of _R_ _p_ and _Rn_ on the _Cx_ estimate, verifying _R_ _A_ + _RB_ ≫ _R_ _p_ + _Rn._ (2) This is not a very restrictive condition since high values of _R_ _A_ and _RB_ are necessary for good resolution in _Tx_, especially if _Cx_ is small. Second, _Tp_ ≪ _Tx_ will be considered in the following analysis, although this restriction will be removed later. With the above considerations, the equation that describes the _Cx_ charging process during PC is the well-known equation for a capacitor in an _RC_ circuit Fig. 4. Circuit to analyze the effect of stray capacitors in the PC step. where _V f_ is the value that _VAB_ would reach if the charging process was maintained indefinitely over time, _V f_ = _VDD_, while _Vi_ is the value of _VAB_ at the beginning of PC, _Vi_ = _VAB_ ( _t_ = 0) = - _VDD_ . As _Tx_ is obtained practically at the same instant as _VAB_ = 0, using (3), we find 0 = _VDD_ - 2 _VDDe_ and solving for _Cx_ <u>−</u> _<u>Tx</u>_ _<u>(</u>_ <sup>_R_</sup> _A_ <sup>+</sup> <sup>_R_</sup> _B_ _<u>)</u>_ <sup>·</sup> <sup>_C_</sup> _x_ (4) _Tx_ _Cx_ = ln _(_ 2 _)(R_ _A_ + _RB)_ <sup>_._</sup> (5) Since all the denominator terms in (5) are known, a constant, _a_, can be stored in the DP to simplify arithmetic calculations on the processor <u>1</u> _a_ = ln _(_ 2 _)(R_ _A_ + _RB)_ <sup>_._</sup> (6) By doing this, the DP estimates _Cx_ using _Cx_ = _a_ - _Tx_ _._ (7) The steps described in Fig. 2, together with (7), constitute the _Cx_ estimation method. Besides the simplicity of the hardware and the estimation (7), the method uses a single charging and discharging cycle to acquire the sole time measurement required, thus diminishing power consumption and enhancing estimation speed. In addition, time measurements from a differential voltage will yield better estimates than those from circuits using single-pole signals. This is particularly important in DICs since, as mentioned, noises caused by switching in the DP appear on its input and output pins. - _e_ - _e_ <u>−</u> _<u>t</u>_ _<u>(</u>_ <sup>_R_</sup> _A_ <sup>+</sup> <sup>_R_</sup> _B_ <sup>+</sup> <sup>_R_</sup> _p_ <sup>+</sup> <sup>_R_</sup> _n_ _<u>)</u>_ <sup>·</sup> <sup>_C_</sup> _x_ <u>−</u> _<u>t</u>_ _<u>(</u>_ <sup>_R_</sup> _A_ <sup>+</sup> <sup>_R_</sup> _B_ _<u>)</u>_ <sup>·</sup> <sup>_C_</sup> _x_ (3) _VAB(t)_ = _V f_ + ≈ _V f_ + - _Vi_ - _V f_ - _Vi_ - _V f_ _B._ _Effects_ _of_ _Stray_ _Capacitors_ _and_ _Comparator_ _Propagation_ _Time_ Together with _Tp_, the presence of stray capacitors at nodes A and B of the circuit in Fig. 1 delays the trigger instant, increasing the _Tx_ value. These stray capacitors, _Cs_, become more important as the distance between the DP and the sensor increases and include those at the two comparator inputs, the outputs of the DP, and those arising from the circuit’s routing. However, the errors introduced in _Tx_ by these capacitors can be eliminated under certain conditions. The first condition is that _Cs_ be equal at nodes A and B in Fig. 1. This condition is not overly restrictive, and a well-implemented design can achieve values for the two capacitors at least very close. The second condition requires the designer to choose _R_ _A_ = _RB_ = _R_ . With these limitations, the new value of _Tx_ is then calculated (which depends on both _Cx_ and _Cs)_ . For this purpose, in the PC step, the circuit of Fig. 1 can be simplified, becoming the circuit in Fig. 4. Observing this circuit, the following equations for nodes A and B can be established: estimation method, a calibration time, _Tc_, is obtained from (14) replacing _Cx_ with _Cc_ _Tc_ = 2 ln _(_ 2 _)R_ and rearranging, we obtain - _Cc_ + <sup>_Cs_</sup> 2 + _Tp_ (15) _dVB_ _dt_ <sup>_._</sup> (9) _VDD_ - _VA_ = _Cx_ _R_ _dVA_ (8) _dt_ ln _(_ 2 _)RCs_ + _Tp_ = _Tc_ - 2 ln _(_ 2 _)RCc._ (16) Entering this result in (14), we find _Tx_ = 2 ln _(_ 2 _)RCx_ + _Tc_ - 2 ln _(_ 2 _)RCc_ (17) and finally, the value of _Cx_ _Cx_ = <sup>_Tx_</sup> <sup>−</sup> <sup>_Tc_</sup> (18) 2 ln _(_ 2 _)R_ <sup>+</sup> <sup>_Cc._</sup> When storing the following constant (known to the designer after calibration) in the DP: _Tc_ _b_ = 2 ln _(_ 2 _)R_ <sup>−</sup> <sup>_Cc_</sup> (19) the DP provides the estimate of _Cx_ in the form _Cx_ = _a_ - _Tx_ - _b._ (20) This equation eliminates the effects of _Cs_ and _Tp_ in estimating _Cx_ . However, the limitations under which it has been found must be considered. Thus, the designer must therefore take special care to ensure that the stray capacitors of nodes A and B are as similar as possible. On the other hand, since _R_ _p_ and _Rn_ are different, the equivalent resistances connected to nodes A and B are slightly different, even if (2) is verified, which will affect the accuracy the system of (8) and (9) can provide. The asymmetries in the values of the stray capacitors and resistors connected to nodes A and B lead to the appearance of several time constants in the circuit in Fig. 4, meaning errors will appear when estimating _Cx_ using (20). Notwithstanding, if these asymmetries are not very large, (20) will at least partially eliminate the errors introduced by the stray capacitors. _D._ _Uncertainty_ Considering uncertainty as the standard deviation of a series of experimental measurements of a certain magnitude, the uncertainty in the _Tx_ measurement comes from that found when detecting the trigger instant. This uncertainty is caused by the following: 1) uncertainty in detecting the instant of the change of sign of _VAB_ . This uncertainty is due to the comparator; 2) uncertainty caused by the DP when detecting the instant at which _VD_ becomes “1.” If the comparator changes its output very quickly (as is usually the case), uncertainty in detecting the trigger instant caused by the DP is due solely to the quantization in clock cycles, _uq_ _(Tx_ _)_ . As is well known, this uncertainty is given as a function of the DP clock signal used for _Tx_ quantization [26] _uq_ _(Tx_ _)_ = ~~√~~ <sup>_T_</sup> <sup><u>ck</u></sup> _._ (21) 12 _VB_ _R_ <sup>=</sup> <sup>_Cx_</sup> _d(VA_ - _VB)_ + _Cs_ _dt_ _d(VA_ - _VB)_ - _Cs_ _dt_ As the values of _VA_ and _VB_ at the beginning of the PC step are _VA_ (0) = 0 and _VB_ (0) = _VDD_, it is trivial to verify that the solutions of this system of differential equations are as follows: _VA(t)_ = _VDD_ 1 − _e_ <u>−</u> _<u>t</u>_ 2 _R_ - _<u>(Cx</u>_ + _Cs_ /2 _<u>)</u>_ (10) _VB(t)_ = _VDD_ - _e_ <u>−</u> _<u>t</u>_ 2 _R_ - _<u>(Cx</u>_ + _Cs_ /2 _<u>)</u>_ (11) and finally _VAB(Tx_ _)_ = _VA(Tx_ _)_ - _VB(Tx_ _)_ <u>−</u> _<u>Tx</u>_ 2 _R_ - _<u>(Cx</u>_ + _Cs_ /2 _<u>)</u>_ = 0 _._ (12) = _VDD_ 1 − 2 · _e_ From this result, the value of _Tx_ is _Tx_ = 2 ln _(_ 2 _)R_ _Cx_ + <sup>_Cs_</sup> 2 _._ (13) The above expression can easily include the delay due to the comparator’s propagation time, _Tp_ _Tx_ = 2 ln _(_ 2 _)R_ _Cx_ + <sup>_Cs_</sup> 2 + _Tp._ (14) The increase in _Tx_ produced by the stray capacitors and the comparator’s propagation time can be seen when comparing this result with the value of _Tx_ obtained by solving (5). However, (14) allows a simple calibration method to simultaneously eliminate the effects of _Cs_ and _Tp_ to be designed. _C._ _Calibration_ _Method_ The calibration process consists of estimating a calibration capacitor of known value, _Cc_ . By replacing the sensor with this capacitor in the circuit in Fig. 1 and using the proposed For its part, uncertainty in the comparator detecting the trigger instant, _ut_ _(Tx_ _)_, is inversely proportional to the slope of _VAB(t)_ when _t_ = _Tx_ [27] _α_ _ut_ _(Tx_ _)_ = _<u>dVAB</u>_ (22) _<u>dVAB</u>_ <u>�</u> _t_ = _Tx_ _dt_ where _α_ is a value proportional to the effective value of the noise present in _VAB_ . Considering that _VAB_ is given by (3), with _V f_ = _VDD_ and _Vi_ = - _VDD_, then _ut_ _(Tx_ _)_ = <sup>_α(R_</sup> <sup>_<u>A</u>_</sup> <sup>+</sup> <sup>_RB)Cx_</sup> _VDD_ _._ (23) The total uncertainty in the measurement of _Tx_ is therefore <u>�2</u> _._ (24) Section II. It should be noted that the value of _Cs_ will always be somewhat greater than the 2 pF of the input capacitance of the comparator pins since the capacitance due to the routing of nodes A and B in Fig. 1 must be added. Finally, propagation time is only _Tp_ = 40 ns. To demonstrate the performance of the new circuit, a very wide range of _Cx_ values, from 9.45 pF to 95.952 nF, was selected by using 26 discrete capacitors. This range includes a wide variety of capacitive sensors, several of which are mentioned in Section I. Both resistors and capacitors were measured using an RS Pro LCR-6300 meter. The basic accuracy of this meter is 0.05% for resistors measured with a dc voltage and the same value for capacitors measured with an ac voltage of 1 KHz. The final value assigned is the average generated by the meter after 16 measurements. The value of the resistors has been selected according to the range of _Cx_, such that. 1) For the minimum values of _Cx_, the quantization errors are small compared to _Tx_ . 2) For the maximum values of _Cx_, _Tx_ is not excessively large. Therefore, a nominal value of 200 k _�_ has been chosen for _R_ _A_ and _RB_, also ensuring (2) is met. Accurately measuring the resistors has provided the values _R_ _A_ = 200.228 k _�_ and _RB_ = 200.259 k _�_ . With these values, it has been necessary to implement a 23-bit counter in the FPGA to acquire any time measurement, since it has been experimentally verified that the maximum value of _Tx_ (measured in 5 ns cycles) is 5.3· 10 <sup>6</sup> . In contrast, the minimum value is slightly higher than 500. _T_ ch has been selected to stabilize the charging voltage of _Cx_ sufficiently. This is achieved with _T_ ch = 5·( _RA_ + _RB)_ - _Cx,_ max, with _Cx,_ max being the maximum value of _Cx_ (in our case, 95.952 nF). Thus, _T_ ch ≈ 192 ms, this time is obtained using an additional 2-bit counter that controls the 23bit counter. Obviously, in other applications where the range of _Cx_ is different, the values of _R_ _A_ and _RB_ will also be different. For example, if the minimum value of _Cx_ was 100 nF, then the values of _R_ _A_ and _RB_ could be divided by ten, so that the same minimum count value for _Tx_ would be maintained. Since the errors introduced by _Cs_ appear in the independent term _b_ of (20), a one-point calibration with _Cc_ could be sufficient to compensate for these errors. However, as mentioned, the compensation is not perfect, and it is preferable to use low _Cc_ values to reduce the larger percentage of errors that will occur for low _Cx_ values. Thus, _Cc_ = 10.02 pF has been selected. A series of 200 estimates have been carried out to find the results presented below for each value of _Cx_ . This provides values for various figures of merit that characterize the errors in estimating _Cx_ . The first figure of merit is the maximum relative error for estimating _Cx_, _eR(Cx_ _)_, which is defined as _T_ 12ck <sup>2</sup> <sup>+</sup> <u>�</u> _α(R_ _<u>AV</u>_ + _DDRB)Cx_ _u(Tx_ _)_ = _uq_ <sup>2</sup> _(Tx_ _)_ + _u_ <sup>2</sup> _t_ <sup>_(T_</sup> _x_ <sup>_)_</sup> <sup>=</sup> _uq_ <sup>2</sup> _(Tx_ _)_ + _u_ <sup>2</sup> _t_ The quantization effects can be neglected if _T_ ck ≪ _Tx_ [a condition closely related to _T_ ck ≪ ( _R_ _A_ + _RB)_ - _Cx_ ], such that _u(Tx_ _)_ ≈ _ut_ _(Tx_ _)_ . In this case, the quality in estimating _Tx_, _u(Tx_ _)_ / _Tx_ can be found straightforwardly using (23) and solving for the value of _Tx_ in (5) _u(Tx_ _)_ _Tx_ ≈ <sup>_α(R_</sup> <sup>_<u>A</u>_</sup> <sup>+</sup> <sup>_RB)Cx_</sup> ≈ <sup>_α(R_</sup> <sup>_<u>A</u>_</sup> <sup>+</sup> <sup>_RB)Cx_</sup> - <u>1</u> _VDD_ ln _(_ 2 _)(R_ _A_ + _RB)Cx_ _α_ = _._ ln _(_ 2 _)VDD_ _VDD_ _._ (25) The same result can be found for relative uncertainty in _Cx_, _u R(Cx_ _)_, since, using (5) again and the propagation law of uncertainties _α_ = ln _(_ 2 _)VDD_ _u R(Cx_ _)_ = <sup>_u(Cx_</sup> <sup>_)_</sup> _Cx_ = <sup><u>1</u></sup> _Cx_ ���� _∂∂CTxx_ ���� _u(Tx_ _)_ ≈ _u(TTxx_ _)_ _._ (26) Based on this result, the only way to reduce _u R(Cx_ _)_ after selecting _VDD_ is to meticulously design the circuit to minimize the difference between electrical noise at nodes A and B of the circuit in Fig. 1. III. EXPERIMENTAL RESULTS AND DISCUSSION As proof of concept, the circuit in Fig. 1 has been implemented using an FPGA as the DP. The FPGA used, Xilinx Artix 7 XC7A35T, is included in a commercial board, namely, the CMOD A7 from Diligent (Pullman, Washington). The internal clock frequency of the FPGA is set to 100 MHz; however, both the rising and falling edges of the clock have been used to detect trigger times, meaning _T_ ck = 5 ns. The power supply for the PA, PB, and PD pins is _VDD_ = 3.3 V. The values of the output resistors of the PA and PB pins are approximately 15 _�_ for _Rn_ and 25 _�_ for _R_ _p_ . The comparator is one of two included in a TLV3202 from Texas Instruments. For this family of comparators, the power range varies between 2.7 and 5.5 V. Thus, the same value of 3.3 V as on the FPGA pins has been used in the design. In this comparator model, the input common-mode range extends 200 mV beyond either rail, while the voltage output swing varies from 175 mV to _VDD_ - 125 mV. The input impedances for each terminal are 10 <sup>13</sup> _�_ and 2 pF. Thus, the comparator verifies all the requirements established at the beginning of _i_ = {1 _,_ 2 _, . . .,_ 200} (27) where _Cx_ _(i)_ is each of the estimates of _Cx_, and _Cx,a_ is the actual value of _Cx_ obtained with the RS Pro LCR-6300 meter. _eR(Cx_ _)_ includes both systematic errors, _eS(Cx_ _)_, and those due ��� _Cx_ _(i)_ - _Cx,a_ × 100% _eR(Cx_ _)_ = Max _Cx,a_ Fig. 5. Relative errors in estimating _Cx_ . (a) _eR(Cx_ _)_ and (b) _eS(Cx_ _)_ . Note that for _Cx_ _<_ 90 pF, _eR_ and _eS_ are practically superimposed. Fig. 6. Relative uncertainty in estimating _Cx_ . to measurement uncertainty, _u R(Cx_ _)_ . If we define _eS(Cx_ _)_ as _eS(Cx_ _)_ = - _Cx_ - _Cx,a_ _Cx,a_ × 100% (28) where _C x_ is the average of all _Cx_ _(i)_ ; then, _eR(Cx_ _)_ can be expressed as <sup>2</sup> _R_ <sup>_(Cx_</sup> <sup>_)._</sup> (29) Fig. 7. Linearity errors, _eL_, in %. TABLE I OTHER INTERESTING PARAMETERS OF THE PROPOSED METHOD is because (20) provides a good estimate of _Cx_, not only eliminating errors due to the stray capacitors but also because the capacitors have values close to the calibration one. The increase in _Cx_ values is accompanied by greater errors due to the limitations, as discussed, of the calibration method (for example, in our case, _R_ _A_ and _RB_ are very similar but not identical, and slight differences may also exist between the values of the stray capacitors at nodes A and B of the implemented circuit). Although the increase in _eR(Cx_ _)_ continues up to _Cx_ values around 100 pF, _eR(Cx_ _)_ is always small, with a maximum of 0.32%. _eR(Cx_ _)_ begins to decrease after that. This behavior demonstrates that, up to 100 pF, error depends mostly on the independent term _b_ . As (19) indicates, _b_ is small (since _Tc_ and _Cc_ are), and the errors it may cause are therefore also small, although its relative importance increases if small values of _Cx_ are also being estimated. As of 100 pF, the _eR(Cx_ _)_ decrease is practically monotonic up to 830 pF. From there, the errors are random with a maximum of 0.08%, indicating the good accuracy and precision of parameter _a_ . Fig. 5(b), which shows the values of _eS(Cx_ _)_, points out that _eR(Cx_ _)_ and _eS(Cx_ _)_ are close throughout the entire range, which, according to (29), is justified by the extremely low values of _u R(Cx_ _)_ . For _u R(Cx_ _)_, the results are shown in Fig. 6. First, it should be noted that their values are much lower than those for _eR(Cx_ _)_ _eR(Cx_ _)_ = ~~�~~ _e_ <sup>2</sup> _S_ <sup>2</sup> _S_ <sup>_(Cx_</sup> <sup>_)_</sup> <sup>+</sup> <sup>_u_</sup> <sup>2</sup> _R_ The value of _eR(Cx_ _)_ is determined experimentally from (27), and the same occurs with _u R(Cx_ _)_, which, according to (26), coincides with _u(Tx_ _)_ / _Tx_ . Fig. 5(a) shows the values of _eR(Cx_ _)_ obtained from (27) (in this figure, and in Figs. 6 and 7, the horizontal axis corresponding to _Cx_ is on a log10 scale for clarity). Fig. 5(a) shows four distinct regions. The region with the smallest values of _Cx_ (up to about 30 pF) has low errors, about 0.1%, and with _eR(Cx_ _)_ and _eS(Cx_ _)_ virtually equal. This TABLE II COMPARISON (in most cases, more than an order of magnitude lower). Fig. 6 also shows that _u R(Cx_ _)_ reaches its maximum values for low _Cx_ values (a decreasing function in this region). The explanation of this behavior is simple since, as shown in (21), the quantization uncertainty is constant. Therefore, as we decrease _Cx_ (the denominator in the calculation of the relative uncertainty), the relative quantization uncertainty increases and because of this _u R(Cx_ _)_ . From 150 pF, _u R(Cx_ _)_ is practically constant due to the lower relative weight of the quantization uncertainty, as shown by (26). It is important to remember that relative uncertainty due to quantization will decrease as the _R_ _A_ and _RB_ values increase, although this also increases measurement times. However, the experimental results show that _u R(Cx_ _)_ ≪ _eR(Cx_ _)_ throughout the _Cx_ range, so increasing _R_ _A_ and _RB_ does not offer any advantage. It should be noted that the maximum value of _u R(Cx_ _)_ for _Cx_ _>_ 150 pF is 0.004%. This result is only possible due to the differential detection performed by the comparator and has more value, given that the FPGA is part of a commercially available general-purpose board without having a particularly careful design for noise suppression. Fig. 7 shows the results for the linearity errors expressed in %, _eL_ (%). The _eL_ (%) values shown in Fig. 7 are small, with a maximum of 0.013%. The fact that the _Cx_ range is so broad (over 80 dB) explains why the _eL_ (%) maxima coincide with that of _Cx_ . It should be noted that the apparently large variations of _eL_ with _Cx_ are solely due to the narrow range (0%–0.015%) of the _Y_ -axis in Fig. 7. For its part, Fig. 8 shows the relative frequency of estimates for the maximum value of _Cx_ = 95.952 nF. As it is the largest capacitance in the range, according to (23), it is also the one that exhibits the greatest uncertainty in measuring times, _u(Tx_ _)_, and, therefore, in estimating capacitances, _u(Cx_ _)_ . However, Fig. 8 shows that the difference between the maximum and minimum estimates is only 0.007% of the _Cx_ value. Fig. 8 also shows that, except for the value Fig. 8. Relative frequency of estimates for _Cx_ = 95.952 nF. 95.9870 nF, the distribution clearly looks like a normal distribution (although slightly skewed to the right). Table I shows other interesting parameters of the new method, as defined in [28]. In Table I, repeatability is the variation in multiple measurements taken by a circuit on the same _Cx_ and under the same conditions _�Cx_ Repeatability = _Cu_ - _Cl_ × 100% (30) where _�Cx_ is the maximum difference between multiple measurements of _Cx_ . _Cu_ and _Cl_ are the upper limit and lower limit of the measurement range (95.952 nF and 9.45 pF, respectively). For its part, the signal-to-noise ratio (SNR) is defined as SNR = 10 log - _<u>i</u>_ <sup>_C_</sup> _<u>x</u>_ <sup>2</sup> <sup>_(i)_</sup> <u>�</u> _i_ <u>�</u> _Cx_ _(i)_ - _<u>i</u>_ <sup>_C_</sup> _<u>x</u>_ <sup>2</sup> <u>�</u> _Cx_ _(i)_ - _Cx_ ~~<u>�</u>~~ 2 <sup>_._</sup> (31) The table shows how the reduction in uncertainty due to the differential measurement causes high values for SNR and the effective number of bits (ENOBs). The last row in the table includes the normalized measurement time, defined as the quotient between the maximum time necessary to make an estimate (the sum of the duration of the PC and NC steps) and the maximum value of _Cx_ . Table II compares the characteristics of the new circuit and other DICs in the literature. The combination of the results of columns two and three of the table shows that the power consumption is similar to the minimum marked by [22], although somewhat higher due to the presence of the comparator. On the contrary, the range of measured values of _Cx_, the relative errors, and the number of arithmetic operations necessary to obtain an estimate shows a better or equal performance than the best proposal in the literature. IV. CONCLUSION A new circuit has been presented for the digital reading of a capacitive sensor. The circuit is based on the design methodology known as DICs. The circuit, therefore, uses a DP, which controls the sole sensor charging and discharging process required to estimate its capacitance, _Cx_ . Furthermore, the circuit comprises only two resistors and a comparator, while the entire architecture only needs a unipolar power supply. Using a single charging–discharging process reduces both acquisition time and power consumption. The estimation method is based on detecting the passage crossing of 0 of the voltage difference in the two sensor nodes, performing a differential voltage-to-time conversion. The DP is also in charge of obtaining the sole time measurement necessary to estimate _Cx_ . Employing a differential voltage signal means commonmode noise typically present in DICs (due to the clock signal and switching in the DP) can be reduced, thereby improving uncertainty in the estimations. Moreover, the circuit can, using a calibration capacitor and under certain conditions, eliminate the errors that stray capacitors introduce in estimating _Cx_ . All the above allows a wide range of _Cx_ to be estimated. The circuit has been implemented using an FPGA as the DP, presenting a maximum relative error in estimating _Cx_ of 0.32% for values between 9.45 pF and 95.952 nF, a range of more than 80 dB. Meanwhile, uncertainty in estimating _Cx_ is only 0.004% for _Cx_ _>_ 150 pF. In future work, we will investigate the application of the technique described here to resistive and inductive sensors. REFERENCES [1] D. Crescini, V. Ferrari, D. Marioli, and A. Taroni, “A thick-film capacitive pressure sensor with improved linearity due to electrodeshaping and frequency conversion,” _Meas._ _Sci._ _Technol._, vol. 8, no. 1, pp. 71–77, Jan. 1997. [2] C.-L. Dai, P.-W. Lu, C. Chang, and C.-Y. Liu, “Capacitive micro pressure sensor integrated with a ring oscillator circuit on chip,” _Sensors_, vol. 9, no. 12, pp. 10158–10170, Dec. 2009. [3] K. I. Arshak, D. McDonagh, and M. A. Durcan, “Development of new capacitive strain sensors based on thick film polymer and cermet technologies,” _Sens._ _Actuators_ _A,_ _Phys._, vol. 79, no. 2, pp. 102–114, Feb. 2000. [4] L. Areekath, B. George, and F. Reverter, “An auto-balancing capacitance-to-pulse-width converter for capacitive sensors,” _IEEE_ _Sensors_ _J._, vol. 21, no. 1, pp. 765–775, Jan. 2021. [5] M. A. Najeeb, Z. Ahmad, and R. A. Shakoor, “Organic thin-film capacitive and resistive humidity sensors: A focus review,” _Adv._ _Mater._ _Interfaces_, vol. 5, no. 21, pp. 1–19, Nov. 2018. [6] C.-L. Dai, “A capacitive humidity sensor integrated with micro heater and ring oscillator circuit fabricated by CMOS–MEMS technique,” _Sens._ _Actuators_ _B,_ _Chem._, vol. 122, no. 2, pp. 375–380, Mar. 2007. [7] J. Boudaden et al., “Polyimide-based capacitive humidity sensor,” _Sensors_, vol. 18, no. 5, p. 1516, May 2018. [8] M.-Z. Yang, C.-L. Dai, and C.-C. Wu, “Sol-gel zinc oxide humidity sensors integrated with a ring oscillator circuit on-a-chip,” _Sensors_, vol. 14, no. 11, pp. 20360–20371, Oct. 2014. [9] Y. Cheng, A. Hanif, E. Chen, G. Ma, and Z. Li, “Simulation of a novel capacitive sensor for rebar corrosion detection,” _Construct._ _Building_ _Mater._, vol. 174, pp. 613–624, Jun. 2018. [10] K. Perveen, G. E. Bridges, S. Bhadra, and D. J. Thomson, “Corrosion potential sensor for remote monitoring of civil structure based on printed circuit board sensor,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 63, no. 10, pp. 2422–2431, Oct. 2014. [11] N. Petrellis, C. Spathis, K. Georgakopoulou, and A. Birbas, “Capacitive sensor readout circuit for organic substance analysis,” _Proc._ _Technol._, vol. 8, pp. 13–18, Jan. 2013. [12] K. Biswas, S. Sen, and P. K. Dutta, “A constant phase element sensor for monitoring microbial growth,” _Sens._ _Actuators_ _B,_ _Chem._, vol. 119, no. 1, pp. 186–191, Nov. 2006. [13] J. A. Hidalgo-López and J. Castellanos-Ramos, “Two proposals to simplify resistive sensor readout based on resistance-to-time-to-digital conversion,” _Measurement_, vol. 213, May 2023, Art. no. 112728. [14] F. Reverter, F. Vidal-Verdú, and J. A. Hidalgo-Lopez, “Advanced techniques for directly interfacing resistive sensors to digital systems,” in _Smart_ _Sensors,_ _Measurement_ _and_ _Instrumentation_, vol. 25. Cham, Switzerland: Springer, 2017, pp. 139–165. [15] Z. Kokolanski, F. R. Cubarsí, C. Gavrovski, and V. Dimcev, “Improving the resolution in direct inductive sensor-to-microcontroller interface,” _Annu._ _J._ _Electron._, vol. 9, pp. 135–138, Jan. 2015. [16] Z. Czaja, “A microcontroller system for measurement of three independent components in impedance sensors using a single square pulse,” _Sens._ _Actuators_ _A,_ _Phys._, vol. 173, no. 1, pp. 284–292, Jan. 2012. [17] F. Reverter and Ò. Casas, “Direct interface circuit for capacitive humidity sensors,” _Sens._ _Actuators_ _A,_ _Phys._, vol. 143, no. 2, pp. 315–322, May 2008. [18] F. Reverter, M. Gasulla, and R. Pallas-Areny, “A low-cost microcon troller interface for low-value capacitive sensors,” in _Proc._ _21st_ _IEEE_ _Instrum._ _Meas._ _Technol._ _Conf._, May 2004, pp. 1771–1775. [19] J. E. Gaitan-Pitre, M. Gasulla, and R. Pallas-Areny, “Analysis of a direct interface circuit for capacitive sensors,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 58, no. 9, pp. 2931–2937, Sep. 2009. [20] Z. Czaja, “A measurement method for capacitive sensors based on a versatile direct sensor-to-microcontroller interface circuit,” _Measurement_, vol. 155, Apr. 2020, Art. no. 107547. [21] O. Lopez-Lapeña, E. Serrano-Finetti, and O. Casas, “Calibration-less direct capacitor-to-microcontroller interface,” _Electron._ _Lett._, vol. 52, no. 4, pp. 289–291, Feb. 2016. [22] J. A. Hidalgo-López and J. Castellanos-Ramos, “Simplifying capacitive sensor readout using a new direct interface circuit,” _IEEE Trans. Instrum._ _Meas._, vol. 72, pp. 1–10, 2023. [23] Z. Czaja, “A new approach to capacitive sensor measurements based on a microcontroller and a three-gate stable RC oscillator,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 72, pp. 1–9, 2023. [24] D. Brooks. _Differential_ _Signals:_ _Rules_ _to_ _Live_ _By_ . Accessed: Apr. 5, 2024. [Online]. Available: https://www.ieee.li/pdf/essay/ differential_signals.pdf [25] E. Serrano-Finetti, O. Casas, and R. P. Areny, “Common mode electronic noise in differential circuits,” _Measurement_, vol. 140, pp. 207–214, Jul. 2019. [26] G. M. Mahmoud and H. A. El Hakem, “Modeling of the quantization effects on the resolution uncertainty of digital indicators,” _IEEE Instrum._ _Meas._ _Mag._, vol. 25, no. 3, pp. 3–10, May 2022. [27] F. Reverter and R. Pallàs-Areny, “Effective number of resolution bits in direct sensor-to-microcontroller interfaces,” _Meas. Sci. Technol._, vol. 15, no. 10, pp. 2157–2162, Oct. 2004. [28] L. Xu, S. Sun, Z. Cao, and W. Yang, “Performance analysis of a digital capacitance measuring circuit,” _Rev._ _Sci._ _Instrum._, vol. 86, no. 5, May 2015, Art. no. 054703.

섹션 본문 89문단 · 29,988자

(제목 없음)

1This article presents a novel circuit to interface a capacitive sensor directly with a digital processor (DP).The circuit is straightforward, requiring only two resistors, a comparator, and the DP.The method to estimate sensor capacitance, C x , is also simple and consists of a single sensor charging and discharging process, thus reducing measurement time and power consumption.In the second part of the process, the voltage from each sensor terminal is used to generate a differential input to the comparator.The instant at which there is a change of sign in the differential signal generates the sole time measurement required to estimate C x .Using a differential signal decreases uncertainty in the C x estimate by eliminating commonmode noise, which may be important due to the presence of the DP.Under certain considerations, the circuit also eliminates errors due to stray capacitors and, in any case, attenuates them.The circuit can, therefore, estimate C x values in a wide range with low error.As proof of concept, the circuit has been implemented using a general-purpose board with a field-programmable gate array (FPGA) as the DP.For this circuit and C x in the range 9.45 pF-95.95nF, the maximum error is 0.32% with a maximum relative uncertainty of 0.004% if the quantization effects are not considered.

I. INTRODUCTION

2C APACITIVE sensors act as electrical transducers, exhibiting a variety of physical or chemical properties.These sensors can measure pressure [1], [2], strain [3], relative humidity [4], [5], [6], [7], [8], steel surface corrosion [9], [10], and analyze organic substances [11] or monitor microbial growth [12].The sensor converts the magnitudes of these properties into a capacitance value, C x , estimated by a designated electronic circuit.

3The final measurement from these capacitive sensors' readout circuits increasingly needs to be in digital format, using the minimum possible hardware, time, and energy consumption.Designing circuits that meet all these requirements is challenging, but it enables the integration of capacitive sensors in portable and economical systems suitable for various emerging applications.

4Moreover, proposals increasingly incorporate a digital processor (DP), such as a microcontroller, a field-programmable gate array (FPGA), or an ASIC into the sensor readout The author is with the Departamento de Electrónica, Universidad de Málaga, 29071 Malaga, Spain (e-mail: jahidalgo@uma.es).

5Digital Object Identifier 10.1109/TIM.2024.3440404

6interface.The DP typically forms part of a higher level system, where the information supplied by the sensor is just one of many inputs received by the system.Therefore, the presence of the DP in the sensor readout circuit does not increase the hardware in the overall system.This is the design principle of the so-called direct interface circuits (DICs).DICs are very simple, using only a few passive components (besides the DP) and, in some cases, a comparator or operational amplifier without analog-to-digital converters.DICs are used in reading resistive sensors [13], [14], inductive sensors [15], or even sensors that can be modeled using a mixture of components [16].DICs are also proposed for reading capacitive sensors [17], [18], [19], [20], [21], [22].The operation of these circuits is based on performing a series of charging and discharging cycles of the capacitor that forms the sensor.

7Due to their simplicity, these circuits have several limitations.First, the capacitance ranges they can measure are usually narrow.The range in [17] and [18] is between 10 and 100 pF, spanning just a decade.The same is true for [19], although the circuit can be used for different ranges of values by changing some of the components for each span.The range used in [20] is even narrower, 100-240 pF.Although [21] has a slightly larger range of 4.7-220 nF, only [22] uses a range that exceeds 60 dB, 100 pF-561 nF.

8Meanwhile, the estimation errors are typically around 1% for C x values over 100 pF.Still, they can be significantly larger for lower values, which may be excessive in many applications, where the capacitance range is between 10 and 100 pF.

9The proposal in [23] differs by using an RC relaxation oscillator built with three inverters, two resistors, and the DP.The oscillator generates a square signal, whose frequency, measured by the DP, depends on the value of C x .The range of tested values varies between 1 and 300 pF.Nevertheless, the author only presents results for uncertainty in the estimates, omitting the errors.These errors seem important since the use of up to 19 calibration capacitors is proposed.

10One cause of errors in estimating C x is using time measurements derived from nondifferential voltages.These single-pole voltages are affected by electrical noise introduced in the circuit, primarily due to the clock signal and to switching activity in the DP and propagated through the power lines.It is widely recognized that differential voltage signals offer the benefit of canceling common-mode noise in the circuit [24], [25].However, as of now, no such signals have been used in the various DICs proposed in the literature.

11A second cause of errors in estimating C x , especially for low values, is stray capacitors that inevitably appear in any circuit.To the best of our knowledge, no DICs address this issue to eliminate or even mitigate their effects.

12Finally, except in [22], where just a single sensor charging and discharging process is used to estimate C x , the other proposals require several such processes, increasing acquisition time, the number of measurements, and power consumption.

13This article presents a novel DIC designed to measure a wide span of capacitance values without altering any circuit elements.The hardware is simple and requires a single charging and discharging process to provide the sole time measurement needed to obtain C x .The estimation is made from a single differential voltage signal, improving the precision and accuracy of these estimates.However, only a single unipolar voltage source is necessary to power the circuit.Furthermore, in common situations, the new method can suppress errors due to stray capacitors in the circuit.

A. Description of the Method and Circuit Analysis

14Fig. 1 shows the new circuit proposal to estimate C x in a capacitive sensor.The circuit consists of the DP, two resistors of known value, R A and R B , and a comparator, Comp in Fig. 1.The P A and P B pins of the DP should be output pins, while the P D pin is an input pin.

15The relationship between the input and output voltages of the comparator in Fig. 1 is as follows:

16where V high and V low must be compatible with the DP's logical levels.Thus, the DP will consider V high and V low as a "1" and a "0," respectively.On the other hand, the input voltages of the comparator must be compatible with the "1" and "0" output levels of the DP pins; from now on, we will assume, without loss of generality, that these are V D D (voltage supply) and 0, respectively.Consequently, to simplify the circuit design of Fig. 1 using a single power supply for the DP and comparator, the comparator must allow rail-to-rail inputs.Finally, a large input resistance has also been assumed at the comparator's input terminals, so no current enters them.The reader should consider that some commercial DPs already incorporate a comparator with these characteristics, further reducing the circuit's external components.The C x estimation process is shown in Fig. 2 and requires only two steps: negative charging (NC) and positive charging (PC).The procedure is controlled by a counter that acts as a timer generating the time variable that stores the information on the time elapsed in each step.Time advances in units of T ck , with T ck being the DP's internal clock signal period.

17During NC, P A = "0" and P B = "1," such that, after sufficient time, T ch , the voltages at nodes A and B in Fig. 1 are V A = 0 and V B = V D D .Consequently, the voltage difference between these nodes is V AB = −V D D .Thus, from a certain instant, the output of the comparator is a "0" input to the DP.Once time T ch has elapsed since the start of NC, the DP changes the states of the output pins to P A = "1" and P B = "0," initiating the PC step.

18Due to these new values on the DP output pins, V AB increases its value until the instant at which the comparator detects V AB > 0. In this situation, the comparator changes the output to "1."This change in V D will occur with a small delay due to the comparator propagation time, T p .The duration of the time interval from PC starting until the P D pin detects a "1" (trigger instant) is the sole time measurement, T x , needed to estimate C x .The DP stores the T x value in the form of a number of cycles of its internal clock.The acquisition process is complete once T x is obtained, and a new estimation can be started immediately.The time for which V D is "1" depends on how fast the DP can detect the "1" in P D , as well as on the value of T p and when a new estimation process is started.If the intention is to start a new estimate immediately after obtaining T x , this time is minimal and can be as small as one cycle of the DP's internal clock.

19Fig. 3 also shows that, even if we wish to perform a new estimation process immediately after V AB > 0 is reached, the PC duration is extended mainly due to T p , and V AB continues to increase during this time.Fig. 3 points out this time amplified for the purposes of clarity, although in practice, T p ≪ T x (there are comparators with T p values of the order of a few tens of nanoseconds).

20The analysis to find the relationship between C x and T x is simple but requires some preliminary clarifications.First, pins P A and P B have output resistances given by two values, R p and R n (usually different), when they provide outputs "1" and "0," respectively.The designer most likely does not know these values.Values R A and R B must be selected by the designer to minimize the influence of R p and R n on the C x estimate, verifying

21This is not a very restrictive condition since high values of R A and R B are necessary for good resolution in T x , especially if C x is small.Second, T p ≪ T x will be considered in the following analysis, although this restriction will be removed later.

22With the above considerations, the equation that describes the C x charging process during PC is the well-known equation for a capacitor in an RC circuit where V f is the value that V AB would reach if the charging process was maintained indefinitely over time, V f = V D D , while V i is the value of V AB at the beginning of PC,

23As T x is obtained practically at the same instant as V AB = 0, using (3), we find

24Since all the denominator terms in ( 5) are known, a constant, a, can be stored in the DP to simplify arithmetic calculations on the processor

25By doing this, the DP estimates C x using

26The steps described in Fig. 2, together with (7), constitute the C x estimation method.Besides the simplicity of the hardware and the estimation (7), the method uses a single charging and discharging cycle to acquire the sole time measurement required, thus diminishing power consumption and enhancing estimation speed.In addition, time measurements from a differential voltage will yield better estimates than those from circuits using single-pole signals.This is particularly important in DICs since, as mentioned, noises caused by switching in the DP appear on its input and output pins.

B. Effects of Stray Capacitors and Comparator Propagation Time

27Together with T p , the presence of stray capacitors at nodes A and B of the circuit in Fig. 1 delays the trigger instant, increasing the T x value.These stray capacitors, C s , become more important as the distance between the DP and the sensor increases and include those at the two comparator inputs, the outputs of the DP, and those arising from the circuit's routing.

28However, the errors introduced in T x by these capacitors can be eliminated under certain conditions.The first condition is that C s be equal at nodes A and B in Fig. 1.This condition is not overly restrictive, and a well-implemented design can achieve values for the two capacitors at least very close.The second condition requires the designer to choose R A = R B = R.With these limitations, the new value of T x is then calculated (which depends on both C x and C s ).

29For this purpose, in the PC step, the circuit of Fig. 1 can be simplified, becoming the circuit in Fig. 4. Observing this circuit, the following equations for nodes A and B can be established:

30As the values of V A and V B at the beginning of the PC step are V A (0) = 0 and V B (0) = V D D , it is trivial to verify that the solutions of this system of differential equations are as follows:

31and finally

32From this result, the value of T x is

33The above expression can easily include the delay due to the comparator's propagation time,

34The increase in T x produced by the stray capacitors and the comparator's propagation time can be seen when comparing this result with the value of T x obtained by solving (5).However, (14) allows a simple calibration method to simultaneously eliminate the effects of C s and T p to be designed.

C. Calibration Method

35The calibration process consists of estimating a calibration capacitor of known value, C c .By replacing the sensor with capacitor in the circuit in Fig. 1 and using the proposed estimation method, a calibration time, T c , is obtained from (14) replacing

36and rearranging, we obtain

37Entering this result in (14), we find

38and finally, the value of

39When storing the following constant (known to the designer after calibration) in the DP:

40the DP provides the estimate of C x in the form

41This equation eliminates the effects of C s and T p in estimating C x .However, the limitations under which it has been found must be considered.Thus, the designer must therefore take special care to ensure that the stray capacitors of nodes A and B are as similar as possible.On the other hand, since R p and R n are different, the equivalent resistances connected to nodes A and B are slightly different, even if (2) is verified, which will affect the accuracy the system of ( 8) and ( 9) can provide.

42The asymmetries in the values of the stray capacitors and resistors connected to nodes A and B lead to the appearance of several time constants in the circuit in Fig. 4, meaning errors will appear when estimating C x using (20).Notwithstanding, if these asymmetries are not very large, (20) will at least partially eliminate the errors introduced by the stray capacitors.

D. Uncertainty

43Considering uncertainty as the standard deviation of a series of experimental measurements of a certain magnitude, the uncertainty in the T x measurement comes from that found when detecting the trigger instant.This uncertainty is caused by the following:

441) uncertainty in detecting the instant of the change of sign of V AB .This uncertainty is due to the comparator; 2) uncertainty caused by the DP when detecting the instant at which V D becomes "1."If the comparator changes its output very quickly (as is usually the case), uncertainty in detecting the trigger instant caused by the DP is due solely to the quantization in clock cycles, u q (T x ).As is well known, this uncertainty is given as a function of the DP clock signal used for T x quantization [26]

45Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

46For its part, uncertainty in the comparator detecting the trigger instant, u t (T x ), is inversely proportional to the slope of V AB (t) when t = T x [27] u

47where α is a value proportional to the effective value of the noise present in V AB .Considering that V AB is given by (3), with

48The total uncertainty in the measurement of T x is therefore

49The quantization effects can be neglected if

50In this case, the quality in estimating T x , u(T x )/T x can be found straightforwardly using (23) and solving for the value of T x in ( 5)

51The same result can be found for relative uncertainty in C x , u R (C x ), since, using (5) again and the propagation law of uncertainties

52Based on this result, the only way to reduce u R (C x ) after selecting V D D is to meticulously design the circuit to minimize the difference between electrical noise at nodes A and B of the circuit in Fig. 1.

III. EXPERIMENTAL RESULTS AND DISCUSSION

53As proof of concept, the circuit in Fig. 1 has been implemented using an FPGA as the DP.The FPGA used, Xilinx Artix 7 XC7A35T, is included in a commercial board, namely, the CMOD A7 from Diligent (Pullman, Washington).The internal clock frequency of the FPGA is set to 100 MHz; however, both the rising and falling edges of the clock have been used to detect trigger times, meaning T ck = 5 ns.The power supply for the P A , P B , and

54The values of the output resistors of the P A and P B pins are approximately 15 for R n and 25 for R p .

55The comparator is one of two included in a TLV3202 from Texas Instruments.For this family of comparators, the power range varies between 2.7 and 5.5 V. Thus, the same value of 3.3 V as on the FPGA pins has been used in the design.In this comparator model, the input common-mode range extends 200 mV beyond either rail, while the voltage output swing varies from 175 mV to V D D − 125 mV.The input impedances for each terminal are 10 13 and 2 pF.Thus, the comparator verifies all the requirements established at the beginning of Section II.It should be noted that the value of C s will always be somewhat greater than the 2 pF of the input capacitance of the comparator pins since the capacitance due to the routing of nodes A and B in Fig. 1 must be added.Finally, propagation time is only T p = 40 ns.

56To demonstrate the performance of the new circuit, a very wide range of C x values, from 9.45 pF to 95.952 nF, was selected by using 26 discrete capacitors.This range includes a wide variety of capacitive sensors, several of which are mentioned in Section I.Both resistors and capacitors were measured using an RS Pro LCR-6300 meter.The basic accuracy of this meter is 0.05% for resistors measured with a dc voltage and the same value for capacitors measured with an ac voltage of 1 KHz.The final value assigned is the average generated by the meter after 16 measurements.

57The value of the resistors has been selected according to the range of C x , such that.

581) For the minimum values of C x , the quantization errors are small compared to T x .2) For the maximum values of C x , T x is not excessively large.Therefore, a nominal value of 200 k has been chosen for R A and R B , also ensuring ( 2) is met.Accurately measuring the resistors has provided the values R A = 200.228k and R B = 200.259k .With these values, it has been necessary to implement a 23-bit counter in the FPGA to acquire any time measurement, since it has been experimentally verified that the maximum value of T x (measured in 5 ns cycles) is 5.3• 10 6 .In contrast, the minimum value is slightly higher than 500.T ch has been selected to stabilize the charging voltage of C x sufficiently.This is achieved with

59max , with C x,max being the maximum value of C x (in our case, 95.952 nF).Thus, T ch ≈ 192 ms, this time is obtained using an additional 2-bit counter that controls the 23bit counter.Obviously, in other applications where the range of C x is different, the values of R A and R B will also be different.For example, if the minimum value of C x was 100 nF, then the values of R A and R B could be divided by ten, so that the same minimum count value for T x would be maintained.

60Since the errors introduced by C s appear in the independent term b of (20), a one-point calibration with C c could be sufficient to compensate for these errors.However, as mentioned, the compensation is not perfect, and it is preferable to use low C c values to reduce the larger percentage of errors that will occur for low C x values.Thus, C c = 10.02 pF has been selected.

61A series of 200 estimates have been carried out to find the results presented below for each value of C x .This provides values for various figures of merit that characterize the errors in estimating C x .The first figure of merit is the maximum relative error for estimating C x , e R (C x ), which is defined as

62where C x (i) is each of the estimates of C x , and C x,a is the actual value of C x obtained with the RS Pro LCR-6300 meter.e R (C x ) includes both systematic errors, e S (C x ), and those due

63Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.to measurement uncertainty, u R (C x ).If we define e S (C x ) as

64where C x is the average of all C x (i); then, e R (C x ) can be expressed as

65The value of e R (C x ) is determined experimentally from (27), and the same occurs with u R (C x ), which, according to (26), coincides with u(T x )/T x .Fig. 5(a) shows the values of e R (C x ) obtained from (27) (in this figure, and in Figs. 6 and 7, the horizontal axis corresponding to C x is on a log10 scale for clarity).Fig. 5(a) shows four distinct regions.The region with the smallest values of C x (up to about 30 pF) has low errors, about 0.1%, and with e R (C x ) and e S (C x ) virtually equal.This (20) provides a good estimate of C x , not only eliminating errors due to the stray capacitors but also because the capacitors have values close to the calibration one.

66The increase in C x values is accompanied by greater errors due to the limitations, as discussed, of the calibration method (for example, in our case, R A and R B are very similar but not identical, and slight differences may also exist between the values of the stray capacitors at nodes A and B of the implemented circuit).

67Although the increase in e R (C x ) continues up to C x values around 100 pF, e R (C x ) is always small, with a maximum of 0.32%.e R (C x ) begins to decrease after that.This behavior demonstrates that, up to 100 pF, error depends mostly on the independent term b.As (19) indicates, b is small (since T c and C c are), and the errors it may cause are therefore also small, although its relative importance increases if small values of C x are also being estimated.As of 100 pF, the e R (C x ) decrease is practically monotonic up to 830 pF.From there, the errors are random with a maximum of 0.08%, indicating the good accuracy and precision of parameter a.For u R (C x ), the results are shown in Fig. 6.First, it should be noted that their values are much lower than those for e R (C x )

68Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

TABLE II COMPARISON

69(in most cases, more than an order of magnitude lower).Fig. 6 also shows that u R (C x ) reaches its maximum values for low C x values (a decreasing function in this region).

70The explanation of this behavior is simple since, as shown in (21), the quantization uncertainty is constant.Therefore, as we decrease C x (the denominator in the calculation of the relative uncertainty), the relative quantization uncertainty increases and because of this u R (C x ).From 150 pF, u R (C x ) is practically constant due to the lower relative weight of the quantization uncertainty, as shown by (26).

71It is important to remember that relative uncertainty due to quantization will decrease as the R A and R B values increase, although this also increases measurement times.However, the experimental results show that u R (C x ) ≪ e R (C x ) throughout the C x range, so increasing R A and R B does not offer any advantage.It should be noted that the maximum value of u R (C x ) for C x > 150 pF is 0.004%.This result is only possible due to the differential detection performed by the comparator and has more value, given that the FPGA is part of a commercially available general-purpose board without having a particularly careful design for noise suppression.Fig. 7 shows the results for the linearity errors expressed in %, e L (%).The e L (%) values shown in Fig. 7 are small, with a maximum of 0.013%.The fact that the C x range is so broad (over 80 dB) explains why the e L (%) maxima coincide with that of C x .It should be noted that the apparently large variations of e L with C x are solely due to the narrow range (0%-0.015%) of the Y -axis in Fig. 7.

72For its part, Fig. 8 shows the relative frequency of estimates for the maximum value of C x = 95.952nF.As it is the largest capacitance in the range, according to (23), it is also the one that exhibits the greatest uncertainty in measuring times, u(T x ), and, therefore, in estimating capacitances, u(C x ).However, Fig. 8 shows that the difference between the maximum and minimum estimates is only 0.007% of the C x value.Fig. 8 also shows that, except for the value Table I shows other interesting parameters of the new method, as defined in [28].In Table I, repeatability is the variation in multiple measurements taken by a circuit on the same C x and under the same conditions

73where C x is the maximum difference between multiple measurements of C x .C u and C l are the upper limit and lower limit of the measurement range (95.952 nF and 9.45 pF, respectively).For its part, the signal-to-noise ratio (SNR) is defined as

74The table shows how the reduction in uncertainty due to the differential measurement causes high values for SNR and the effective number of bits (ENOBs).The last row in the table includes the normalized measurement time, defined as the quotient between the maximum time necessary to make an estimate (the sum of the duration of the PC and NC steps) and the maximum value of C x .

75Table II compares the characteristics of the new circuit and other DICs in the literature.The combination of the results of columns two and three of the table shows that the power consumption is similar to the minimum marked by [22], although somewhat higher due to the presence of the comparator.On the contrary, the range of measured values of C x , the relative errors, and the number of arithmetic operations necessary to obtain an estimate shows a better or equal performance than the best proposal in the literature.

76IV. CONCLUSION A new circuit has been presented for the digital reading of a capacitive sensor.The circuit is based on the design methodology known as DICs.The circuit, therefore, uses a DP, which controls the sole sensor charging and discharging process required to estimate its capacitance, C x .Furthermore, the circuit comprises only two resistors and a comparator, while the entire architecture only needs a unipolar power supply.Using a single charging-discharging process reduces both acquisition time and power consumption.The estimation method is based on detecting the passage crossing of 0 of the voltage difference in the two sensor nodes, performing a differential voltage-to-time conversion.The DP is also in charge of obtaining the sole time measurement necessary to estimate C x .

77Employing a differential voltage signal means commonmode noise typically present in DICs (due to the clock signal and switching in the DP) can be reduced, thereby improving uncertainty in the estimations.Moreover, the circuit can, using a calibration capacitor and under certain conditions, eliminate the errors that stray capacitors introduce in estimating C x .All the above allows a wide range of C x to be estimated.The circuit has been implemented using an FPGA as the DP, presenting a maximum relative error in estimating C x of 0.32% for values between 9.45 pF and 95.952 nF, a range of more than 80 dB.Meanwhile, uncertainty in estimating C x is only 0.004% for C x > 150 pF.

78In future work, we will investigate the application of the technique described here to resistive and inductive sensors.

Manuscript received 22

79January 2024; revised 20 May 2024; accepted 23 June 2024.Date of publication 12 August 2024; date of current version 21 August 2024.This work was supported by the Spanish Government under Contract PID2021-125091OB-I00.The Associate Editor coordinating the review process was Dr. Kamel Haddadi.

Fig. 1 .

80Fig. 1.New DIC to obtain C x from a differential voltage signal.

Fig. 2 .

81Fig. 2. C x estimation process.

Fig. 3 .

82Fig. 3. Expected waveforms for the proposed method in the NC-PC steps shown in Fig. 2. Notice how, at the end of an estimation process (PC step), the next estimation (NC step) can begin.

Fig. 3

83Fig.3shows the time evolution of the voltages V A , V B , and V D during the two steps of several estimation processes (the label of each curve appears on the right side of the figure).The time for which V D is "1" depends on how fast the DP can detect the "1" in P D , as well as on the value of T p and when a new estimation process is started.If the intention is to start a new estimate immediately after obtaining T x , this time is minimal and can be as small as one cycle of the DP's internal clock.Fig.3alsoshows that, even if we wish to perform a new estimation process immediately after V AB > 0 is reached, the PC duration is extended mainly due to T p , and V AB continues to increase during this time.Fig.3points out this time amplified for the purposes of clarity, although in practice, T p ≪ T x (there are comparators with T p values of the order of a few tens of nanoseconds).The analysis to find the relationship between C x and T x is simple but requires some preliminary clarifications.First, pins P A and P B have output resistances given by two values, R p and R n (usually different), when they provide outputs "1" and "0," respectively.The designer most likely does not know these values.Values R A and R B must be selected by the designer to minimize the influence of R p and R n on the C x estimate, verifying

Fig. 4 .

84Fig. 4. Circuit to analyze the effect of stray capacitors in the PC step.

Fig. 5 .

85Fig. 5. Relative errors in estimating C x .(a) e R (C x ) and (b) e S (C x ).Note that for C x < 90 pF, e R and e S are practically superimposed.

Fig. 6 .

86Fig. 6.Relative uncertainty in estimating C x .

Fig. 7 .

87Fig. 7. errors, e L , in %.

Fig. 5 (

88b), which shows the values of e S (C x ), points out that e R (C x ) and e S (C x ) are close throughout the entire range, which, according to (29), is justified by the extremely low values of u R (C x ).

Fig. 8 .

89Fig. 8. Relative frequency of estimates for x = 95.952nF.

참고문헌 27건

  1. Performance analysis of a digital capacitance measuring circuit Review of Scientific Instruments · American Institute of Physics · 2015 10.1063/1.4919907
  2. Corrosion Potential Sensor for Remote Monitoring of Civil Structure Based on Printed Circuit Board Sensor IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2014 10.1109/tim.2014.2310092
  3. A thick-film capacitive pressure sensor with improved linearity due to electrode-shaping and frequency conversion Measurement Science and Technology · IOP Publishing · 1997 10.1088/0957-0233/8/1/010
  4. A microcontroller system for measurement of three independent components in impedance sensors using a single square pulse Sensors and Actuators A Physical · Elsevier BV · 2011 10.1016/j.sna.2011.10.018
  5. Direct interface circuit for capacitive humidity sensors Sensors and Actuators A Physical · Elsevier BV · 2007 10.1016/j.sna.2007.11.018
  6. Capacitive Sensor Readout Circuit for Organic Substance Analysis Procedia Technology · Elsevier BV · 2013 10.1016/j.protcy.2013.11.004
  7. A constant phase element sensor for monitoring microbial growth Sensors and Actuators B Chemical · Elsevier BV · 2006 10.1016/j.snb.2005.12.011
  8. Development of new capacitive strain sensors based on thick film polymer and cermet technologies Sensors and Actuators A Physical · Elsevier BV · 2000 10.1016/s0924-4247(99)00275-7
  9. Sol-Gel Zinc Oxide Humidity Sensors Integrated with a Ring Oscillator Circuit On-a-Chip Sensors · Multidisciplinary Digital Publishing Institute · 2014 10.3390/s141120360
  10. Analysis of a Direct Interface Circuit for Capacitive Sensors IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2009 10.1109/tim.2009.2016782
  11. Effective number of resolution bits in direct sensor-to-microcontroller interfaces Measurement Science and Technology · IOP Publishing · 2004 10.1088/0957-0233/15/10/028
  12. A low-cost microcontroller interface for low-value capacitive sensors 2004 10.1109/imtc.2004.1351425
  13. A capacitive humidity sensor integrated with micro heater and ring oscillator circuit fabricated by CMOS–MEMS technique Sensors and Actuators B Chemical · Elsevier BV · 2006 10.1016/j.snb.2006.05.042
  14. Capacitive Micro Pressure Sensor Integrated with a Ring Oscillator Circuit on Chip Sensors · Multidisciplinary Digital Publishing Institute · 2009 10.3390/s91210158
  15. Calibration‐less direct capacitor‐to‐microcontroller interface Electronics Letters · Institution of Engineering and Technology · 2016 10.1049/el.2015.3706
  16. Improving the resolution in direct inductive sensor-to-microcontroller interface 2015
  17. Advanced Techniques for Directly Interfacing Resistive Sensors to Digital Systems Smart sensors, measurement and instrumentation · Springer Nature · 2017 10.1007/978-3-319-55369-6_4
  18. Simulation of a novel capacitive sensor for rebar corrosion detection Construction and Building Materials · Elsevier BV · 2018 10.1016/j.conbuildmat.2018.04.133
  19. Polyimide-Based Capacitive Humidity Sensor Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18051516
  20. Organic Thin‐Film Capacitive and Resistive Humidity Sensors: A Focus Review Advanced Materials Interfaces · Wiley · 2018 10.1002/admi.201800969
  21. Common mode electronic noise in differential circuits Measurement · Elsevier BV · 2019 10.1016/j.measurement.2019.04.028
  22. A measurement method for capacitive sensors based on a versatile direct sensor-to-microcontroller interface circuit Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.107547
  23. An Auto-Balancing Capacitance-to-Pulse-Width Converter for Capacitive Sensors IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.3014206
  24. Modeling of the Quantization Effects on the Resolution Uncertainty of Digital Indicators IEEE Instrumentation & Measurement Magazine · Institute of Electrical and Electronics Engineers · 2022 10.1109/mim.2022.9759354
  25. Simplifying Capacitive Sensor Readout Using a New Direct Interface Circuit IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3220296
  26. A New Approach to Capacitive Sensor Measurements Based on a Microcontroller and a Three-Gate Stable RC Oscillator IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2023 10.1109/tim.2023.3244851
  27. Two proposals to simplify resistive sensor readout based on Resistance-to-Time-to-Digital conversion Measurement · Elsevier BV · 2023 10.1016/j.measurement.2023.112728