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

Simplifying Capacitive Sensor Readout Using a New Direct Interface Circuit

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

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

평가 내용

관련도
관련
사업분야
필름·전자재료 · (14) 드라이 필름(포토레지스트)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 드라이 필름(포토레지스트)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Direct interface circuits (DICs) are efficient for reading resistive, capacitive, or inductive sensors in a digital format. The simplest DICs consist of just a few passive elements that connect a digital processor (DP) to a sensor. When reading capacitive sensors, one or several calibration capacitors and/or several charging and discharging cycles are needed to make the estimation, and the result usually requires complex arithmetic operations. This article presents a new type of capacitive DIC that is simple in terms of hardware, needing only two resistors of known value and the DP in order to make the capacitance estimation. In addition, the reading method requires a single sensor charging and discharging cycle, which reduces acquisition time and power consumption. Two time measurements are taken during the discharge, which, through a linear transformation of their subtraction (using two constants stored in the DP), give the value of the capacitance. These arithmetic operations are easily implemented on any DP and consume fewer resources than the divisions required on other capacitive DICs. The design has been tested for a wide range of capacitances (from 100 pF to 561 nF), including the value of several capacitive sensors. The average relative error for the entire range is 0.41%, the linearity errors are below 0.3%, and the minimum signal-to-noise ratio (SNR) value is 64 dB.

본문 50,685자

본문 펼치기
## Simplifying Capacitive Sensor Readout Using a New Direct Interface Circuit José A. Hidalgo-López and Julián Castellanos-Ramos _Abstract_ —Direct interface circuits (DICs) are efficient for reading resistive, capacitive, or inductive sensors in a digital format. The simplest DICs consist of just a few passive elements that connect a digital processor (DP) to a sensor. When reading capacitive sensors, one or several calibration capacitors and/or several charging and discharging cycles are needed to make the estimation, and the result usually requires complex arithmetic operations. This article presents a new type of capacitive DIC that is simple in terms of hardware, needing only two resistors of known value and the DP in order to make the capacitance estimation. In addition, the reading method requires a single sensor charging and discharging cycle, which reduces acquisition time and power consumption. Two time measurements are taken during the discharge, which, through a linear transformation of their subtraction (using two constants stored in the DP), give the value of the capacitance. These arithmetic operations are easily implemented on any DP and consume fewer resources than the divisions required on other capacitive DICs. The design has been tested for a wide range of capacitances (from 100 pF to 561 nF), including the value of several capacitive sensors. The average relative error for the entire range is 0.41%, the linearity errors are below 0.3%, and the minimum signal-to-noise ratio (SNR) value is 64 dB. _Index Terms_ —Capacitance to digital, capacitive sensors, direct interface circuits (DICs). I. INTRODUCTION APACITIVE effect sensors are based on variations in capacitance due to changes in the charge storage # C processes, the capacitor’s dielectric, or its dimensions (area or thickness). Such sensors can be classified into two groups: floating sensors (where none of the electrodes need to be grounded to function properly) or grounded sensors (due to sensor manufacturing processes, one of the terminals must be connected to the ground). Grounded capacitive sensors generally present greater problems related to stray capacitors. However, their use is unavoidable in many applications (such as for level measurement of a conductive liquid or the distance/proximity measurement to a grounded metallic object). Manuscript received 14 September 2022; accepted 29 October 2022. Date of publication 7 November 2022; date of current version 16 January 2023. This work was supported in part by the Spanish Government under Contract PID2021-125091OB-I00 and in part by the Departamento de Electrónica, Universidad de Málaga. The Associate Editor coordinating the review process was Roman Sotner. _(José_ _A._ _Hidalgo-López_ _and_ _Julián_ _Castellanos-Ramos_ _contributed_ _equally_ _to this_ _work.) (Corresponding_ _author:_ _José_ _A._ _Hidalgo-López.)_ The authors are with the Departamento de Electrónica, Universidad de Málaga, 29071 Malaga, Spain, and also with the Instituto de Investigación Biomédica de Málaga, 29590 Malaga, Spain (e-mail: jahidalgo@uma.es; jcramos@uma.es). Digital Object Identifier 10.1109/TIM.2022.3220296 In other cases, they must be used for safety and/or operating limitations of floating capacitive sensors [1]. In general, a capacitive effect sensor has impedance in the Laplace domain _Z_ = 1 _/Cs_ <sup>_α f_</sup> (1) where −1 ≤ _α f_ ≤ 1. If _α f_ is different from one, these sensors are called in the literature constant phase sensors (CPSs). CPS is of increasing importance in the control of various physiological processes [2], monitoring microbial growth [3], or food adulteration [4]. However, the name of capacitive sensor is reserved for those in which _α f_ = 1 and is the most widely used to measure physical and chemical parameters. Measurements made with these capacitive sensors include liquid levels [5], pressure [6], strain [7], humidity [8], and organic substance analysis [9]. Sensor capacitance in such applications varies from tens of picofarads to just a few nanofarads. Furthermore, interesting new applications have recently been proposed for this type of sensor, such as DNA detection [10], position and displacement [11], dew point measurement [12], water in crude oil [13], and sensing hemolysis [14], where capacitance varies in a wide range, from hundreds of picofarads to hundreds of nanofarads. Nowadays, capacitive sensors are often designed as smart sensors that include additional blocks, such as conditioning circuits with operational amplifiers (OAs), analog-to-digital converters (ADCs), and digital processors (DPs) with communication interfaces. The DP performs more or less complex local processing of the information provided in a digital format by the ADC, transmitting the parameters obtained to a higher unit, thus reducing its workload. These capacitive smart sensors have become widespread as portable devices that can increasingly be part of wireless networks. This means that the readout circuit designs for these sensors are becoming more and more demanding, both in terms of the cost of the device (the number of elements used and their complexity) and power consumption [15]. To meet these needs, this article introduces a new grounded capacitive sensor readout circuit that minimizes the hardware required by using a new direct interface circuit (DIC) with only passive components. Therefore, the estimate of the sensor capacitance, _CX_, does not need ADCs, OAs, analog comparators, or voltage references. The new DIC is very simple since, in addition to _CX_, only two resistors of known value are used, avoiding the need for calibration capacitors and reducing hardware requirements and size. The estimation uses just two time measurements, obtained during the only discharging This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ process. A single discharging process reduces both acquisition time and energy consumption. The arithmetic operations in calculating _CX_ are simple and easily implementable in the DP, thus freeing up resources. Despite the simplicity of the proposal, the error in the estimation of _CX_ is lower than that of other more complex readout circuits. These results are obtained for a much larger range of capacities, allowing the new DIC to be used in applications where it was impossible to use this type of circuit until now, as in [9], [10], [12], [13], and [14]. II. STATE OF THE ART Capacitors are energy storage elements. Thus, whatever the method chosen to measure its capacitance, measurements related to time intervals are necessary for its determination. One type of circuit makes these measurements indirectly by estimating the frequency or magnitude of a given periodic output signal. Other circuits make time measurements directly in the charging–discharging processes of the capacitors. Among the first type of circuits, some use analog blocks to perform the readout of capacitive sensors. In [16], an RLC resonant circuit has been used to convert the capacitance variation of an angular position sensor into a voltage. The maximum angular position error is about 6%. In [17], oscillation periods of a relaxation oscillator consisting of an OA-based integrator and a comparator are used for capacitance measurements. Measuring the time in which the output signal is in each of the two possible states allows us to determine the value of _CX_ . The system enables measurements in the range of 1–100 pF with errors of 3%. Another circuit with a similar operating principle and using OAs is presented in [18]. The circuit needs an ac sinusoidal signal and a triangular reference signal. These elements mean high power consumption, around 140 mW; however, the circuit presents a maximum nonlinearity error (NLE) of only 0.7% for _CX_ in the range of 200–300 pF. The readout circuit in [19] comprises an active capacitive bridge and a relaxation oscillator to convert capacitance changes into frequency. The circuit uses two OAs, along with several additional capacitors and resistors. Error in determining _CX_ varies between 1% and 2.3%. To reduce power consumption in [20], OAs are replaced with a switched-capacitor amplifier. The circuit also needs a calibration capacitor and several switches. Two-step autocalibration is applied to eliminate the offset from nonideal effects of the switched-capacitor amplifier and comparator. The capacitive sensor ranging from 8 to 12 pF can achieve 10.4-bit resolution while consuming only 3 _μ_ W during 640 _μ_ s conversion time. A similar solution is used in [21] for a micro-g accelerometer. Another capacitance-to-digital converter based on the switched-capacitor integrating technique is presented in [22]. This implementation shows a maximum 0.08% full-scale range (FSR) error when measuring capacitances in the interval 10–400 pF. Again, the circuit uses an OA, a comparator, various switches, and capacitors for calibration. In [23], with the same switched-capacitor integrating technique but replacing Fig. 1. DIC for the readout of capacitive sensors in [25]. (a) Circuit and (b) time evolution of the signal to be measured. OAs with a successive approximation register (SAR), capacitive sensors in the range of 1–3.6 pF are measured with a sampling clock of 18.51 kHz. In [24], a novel closedloop switched-capacitor circuit for capacitance-to-frequency converter (CFC) is presented with a maximum NLE of 0.24%. Apart from a variable number of analog blocks, another drawback of these circuits is the long normalized acquisition time, defined as the quotient between the maximum acquisition time and the maximum value of _CX_ . For example, in [23], this figure of merit reaches 255 ms/nF (one of the lowest values for these types of circuits). In a different approach, DICs connect the sensor directly to a DP (mainly a microcontroller, _μ_ C) to reduce the number of circuit components, power consumption, and acquisition time. Capacitance-to-digital conversion in a DIC is performed without any external circuit for signal conditioning or ADC, adding just a few passive elements, meaning that DICs are compact and inexpensive. Based on this design philosophy, Reverter et al. [25] and Reverter and Casas [26] used a calibration capacitor and a resistor, in addition to the sensor, to build the complete readout circuit, see Fig. 1(a). The reading procedure consists of a charging and discharging process for each circuit’s capacitor: the calibration capacitor, _CC_, the sensor, _CX_, and the stray capacitor of the readout node, _CS_ . These processes are performed by controlling pins _PC_, PX, and PR. It must be possible to configure these pins as outputs or inputs (equivalent to high impedance state, HZ). The discharge processes start from the high-level voltage of _VR_ in Fig. 1(a) (for simplicity and without any loss of generality, we will assume that this is the supply voltage, _VDD_, while the low output level will be 0 V). _VR_ will be stored in one of the capacitors in Fig. 1(a). The discharge process is carried out by placing the readout pin, PR, in the HZ state. The process continues through _R_ until voltage _VR_ reaches, and TABLE I STEPS TO OBTAIN _TC_, _TX_, AND _TS_ IN (2) Fig. 2. DIC for the readout of capacitive sensors based on charge transfer mode [29], [30], [31]. at the trigger instant, the value _VTL_ . _VTL_ is the threshold voltage to detect a logical 0 input in the PR pin starting from a logical 1 level. The length of the discharge processes of each capacitor is measured in DP clock cycles with period _T_ CK, obtaining three values: _TC_, _TX_, and _TS_ (the subscript indicates the capacitor being discharged), which determines the value of _CX_ [25] Fig. 3. (a) DIC for capacitive sensors in [34] and for the calibration-less method of [35]. (b) Voltage across _C_ _X_ during charging and discharging stages in [35]. a logical 1 input starting from a logical 0 level), and _CX_ can be found using [29] _(CC_ 2 - _CC_ 1 _)_ - <sup>_NC_</sup> <sup>2</sup> <sup>·</sup> <sup>_CC_</sup> <sup>2</sup> <sup>−</sup> <sup>_NC_</sup> <sup>1</sup> <sup>·</sup> <sup>_CC_</sup> <sup>1</sup> _NC_ 1 - _NC_ 2 1 _CX_ = _NX_ _NC_ 1 - _NC_ 2 _NC_ 1 - _NC_ 2 _CX_ = <sup>_TX_</sup> <sup>−</sup> <sup>_TS_</sup> _TC_ - _TS_ - _CC_ _._ (2) (3) where _NX_, _NC_ 1, and _NC_ 2 are the number of charge transfer cycles needed for _CX_, _CC_ 1, and _CC_ 2, respectively. This method can obtain maximum errors of 0.8% FSR for the range 100 pF–1 nF [32], but, unfortunately, calibration processes are also needed (in [33], an application of the methods proposed in [29], [30], [31], and [32] to detect urine leakage is shown). An offline calibration is proposed in [34] to avoid calibration processes during regular DIC operation (online calibration). This proposal only uses a resistor and the sensor together with a microcontroller, see Fig. 3(a). However, the microcontroller must have a digital-to-analog converter (DAC), a comparator, and an additional reference voltage. In essence, the method measures the discharging times of a series of known capacitors and establishes a set of linear approximations to the function discharging time _CX_ . The coefficients of these approximations are stored in a lookup table in the microcontroller. The results show a maximum relative error of 0.05% but in a minimal range of 7.6 dB (100–240 pF). Due to the values stored in the lookup table, only a single charging and discharging process of _CX_ is required during regular DIC operation. If the additional elements needed by this method are already present in a microcontroller, this is not a problem. However, the microcontrollers that can be used are restricted to those with these elements, and their cost and power consumption will be higher. To this, the memory resources occupied by the lookup table must be added. For a broader range of capacitances without the need for calibration processes, Lopez-Lapeña et al. [35] proposed the same simple DIC as in Fig. 3(a). Moreover, the microcontroller Because of this method, _CX_ is obtained independently of the value of _R_, _VTL_, and _VDD_, thus ensuring higher precision while avoiding thermal or aging drifts. Table I shows the pin configuration in each of the steps necessary to obtain (2), while Fig. 1(b) shows the variation of _VR_ with time. In [25], the deviation was below 1.5 pF for a measurement range from 10 to 100 pF. The design is simple but uses three charging processes to find _CX_, increasing power consumption and acquisition time. Furthermore, part of the current is lost through _R_ during charging, although this loss is negligible as _R_ has a very high value. For example, this methodology was recently used in [27] to measure the water content in paper pulp. A slight modification of the method proposed in [25] is shown in [28], where one more cycle of measurement is used to obtain the errors of less than 2% for _CX_ in the range of 100 pF–2.2 nF. An alternative circuit based on the so-called charge transfer method [29], [30], [31], [32] does not require external resistors, although it does use two calibration capacitors, _CC_ 1 and _CC_ 2, and a reference capacitor, _C_ _Ref_, see Fig. 2. In this method, _CX_, _CC_ 1, or _CC_ 2 is charged with a logical 1, and the charge is transferred to _C_ _Ref_, initially discharged, also fulfilling _C_ _Ref_ ≫ _CX_, _CC_ 1, and _CC_ 2. By measuring the number of charge transfer cycles, it takes for the voltage stored in _C_ _Ref_ to reach _V_ TH ( _V_ TH is the threshold voltage to detect TABLE II PIN CONFIGURATIONS IN THE NEW PROPOSAL used as DP does not need ADCs, analog comparators, voltage references, or lookup tables. The reading process only requires four steps: two to charge _CX_ and two to discharge it. The steps and the three time measurements needed to find _CX_ ( _T_ 1, _T_ 2, and _TDS)_ are shown in Fig. 3(b). Unfortunately, the equation used to find _CX_ is nonlinear. Lopez-Lapeña et al. [35] proposed simplifying the equation using a Taylor second-order polynomial approximation, finding _B_ <sup>2</sup> + 4 _AD_ (4) 2 _A_ √ _CX_ ≈ <sup>1</sup> _R_ _B_ + where _A_ = (2 + ln(2))·ln(2), _B_ = (1 + ln(2))· _(T_ 1− _T_ 2+ _TDS)_, and _D_ = −0.5·[( _T_ 1 - _T_ 2 _)_ <sup>2</sup> + _TDS_ <sup>2</sup> <sup>].</sup> While this method reduces the number of charges and discharges and the errors associated with calibration capacitors, it also has some drawbacks. First, the arithmetic operations involved in (4) are challenging to perform in a DP and increase both acquisition time and power consumption, providing only an approximate solution to the value of _CX_ . Second, different resistors are needed for different intervals in the range of _CX_ to reduce errors. The result is that errors reach a maximum of 2% in the 4.7–220 nF range with _R_ = 200 k _�_ . III. NEW CAPACITIVE DIC PROPOSAL _A._ _Description_ _of_ _the_ _Method_ _and_ _Circuit_ _Analysis_ The new DIC is shown in Fig. 4(a). As mentioned above, the circuit performs a single charging process of _CX_ followed by a single discharging process. During discharge, the DP uses two pins, PA and PB, to detect _VTL_ in the nodes with voltages _VA_ and _VB_ in Fig. 4(a). It must be possible to configure these pins as inputs (HZ state) or outputs, while the pin PO in Fig. 4(a) could always be an output pin (thus simplifying DP operation). All pins are configured as output pins with a logical 1 output for charging _CX_ to voltage _VDD_ during the charging process such that _VA_ = _VB_ = _VDD_ . Pins PA and PB are configured as inputs for the discharging process, while PO is configured as a logical 0 output. The configuration of the pins in the two steps is shown in Table II. Fig. 4(b) shows the time evolution of voltages _VA_ and _VB_ . During discharge, the moments when _VA_ and _VB_ reach the value _VTL_ are the trigger instants, _TA_ and _TB_, respectively. The expressions of _VA_ and _VB_ during the discharging process are given by Fig. 4. (a) New capacitive DIC. (b) Time evolution of signals _VA_ and _VB_ during the charging and discharging processes and the times required to obtain the estimates, _TA_ and _TB_ . drops sharply at the initial instant of the discharging process due to the voltage divider formed by resistors _R_ _A_ and _RB_, see Fig. 4(b). These resistors must ensure that _VB_ (0) _>_ _VTL_ _,_ so PB recognizes _VB_ as a logical 1 at the start of the discharge process. Expressions (5) and (6) can be used to find _TA_ and _TB_ (7) _TA_ = _(R_ _A_ + _RB_ _)_ - _CX_ - ln _TB_ = _(R_ _A_ + _RB_ _)_ - _CX_ - ln - _VDD_ _VTL_ _RB_ _R_ _A_ + _RB_ - <sup>_VDD_</sup> _VTL_ _._ (8) These times are measured by the DP and are therefore numbers of cycles of the DP’s internal clock. _CX_ can be found trivially by subtracting _TA_ and _TB_ _TA_ - _TB_ _CX_ = - _._ (9) _(R_ _A_ + _RB_ _)_ - ln _R_ _A_ + _RB_ _RB_ Since _R_ _A_ and _RB_ are known values, the DP can store the constant, _k_, which multiplies the subtraction of times in (9) - _R_ _A_ + _RB_ _RB_ ��−1 _._ (10) _k_ = _(R_ _A_ + _RB_ _)_ - ln _VA(t)_ = _VDD_ - _e_ - _t_ _(_ <sup>_R_</sup> _A_ <sup>+</sup> <sup>_R_</sup> _B_ _)_ <sup>·</sup> <sup>_C_</sup> _X_ (5) _RB_ _VB(t)_ = _(R_ _A_ + _RB_ _)_ <sup>·</sup> <sup>_VDD_</sup> <sup>·</sup> <sup>_e_</sup> - _t_ _(_ <sup>_R_</sup> _A_ <sup>+</sup> <sup>_R_</sup> _B_ _)_ <sup>·</sup> <sup>_C_</sup> _X_ (6) Thus, we obtain the expression that uses the new estimation method for _CX_ _CX_ = _k_ - _(TA_ - _TB_ _)._ (11) From an arithmetic point of view, this is a straightforward expression requiring just one subtraction and one multiplication. Moreover, since one of the multiplicands is a constant, the operation can be performed faster than the multiplication of two variables if the DP is a microcontroller. When using an application-specified integrated circuit (ASIC) or field-programmable gate array (FPGA), the operation is faster where _t_ = 0 is the instant at which the discharging process begins. Fig. 4(b) shows how _VA_ = _VB_ = _VDD_ at the end of the charging process. However, (6) shows that voltage in _VB_ Fig. 5. Parasitic elements, in red, of the new proposed DIC affect the estimate of _C_ _X_ using (11). and requires simpler hardware [36] (note that the circuit of Fig. 4(a) could be completely included in an ASIC, if the sensor can also be integrated). Acquisition time and power consumption are also reduced, as there is only one charging and one discharging process. Finally, only two time measurements are required, thus reducing the storage of values in the DP and the sources of uncertainty in the estimation. _B._ _Increasing_ _Resolution_ Increasing resolution in the estimate of _CX_ using (11) requires the range of values in the operation _TA_ - _TB_ to be as wide as possible. This can be achieved without increasing circuit power consumption by increasing the quotient _R_ _A_ / _RB_ to maximize the difference between the initial values _VA_ (0) and _VB_ (0), obtained from (5) and (6). However, as mentioned, there is an upper limit to the value of this quotient: given that _VB_ (0) must be greater than _VTL_, _R_ _A_ and _RB_ must fulfill _R_ _A_ _RB_ _<_ <sup>_VDD_</sup> _VTL_ - 1 _._ (12) increase in value with respect to _ro_ . Element _ro_ takes typically values ranging from just a few to several dozen ohms. Therefore, the effect of _ro_ on _k_ is negligible as of a few kilo-ohm when choosing _R_ _A_ and _RB_ . The only limitations on _R_ _A_ and _RB_ are that they must verify (12) and that the acquisition time increases as _R_ _A_ and _RB_ do so. It is worth noting that it is trivial to verify that the relative error in _k_ when disregarding _ro_ is lower than the relative error in the approximation _R_ _A_ + _RB_ + _ro_ → _R_ _A_ + _RB_ . Careful circuit routing will reduce the values of the three stray capacitors. However, these capacitors are inherent to the circuit, so their effects will always be present and increase as _CX_ decreases, imposing a lower limit for the capacitances that can be estimated with (11). However, if necessary, it is possible to improve the accuracy and, at the same time, extend the measurement range with a simple offline autocalibration. This only requires two measurements: _TA_ and _TB_, without placing _CX_ in the circuit of Fig. 5 (this is a simpler process than the one performed in [34], which requires a large number of offline measurements for various calibration capacitors). The subtraction of these times multiplied by _k_ will give the value of a parameter, _Cof f_, which will be stored in the DP and offers the new estimate of _CX_ _CX_ = _k_ - _(TA_ - _TB_ _)_ - _Cof f ._ (14) Another possible source of error comes from the difference between the threshold voltages of the PA and PB pins of Fig. 4(a). Fortunately, in current manufacturing processes and transistors with large areas in the same die (such as those connected to pins on DPs), these differences can be less than millivolts, and the influence on the estimate is minimal. Uncertainty in the estimate provided by (11) or (14) comes from the uncertainties in the time measurements _TA_ and _TB_, _u(TA)_ and _u(TB_ _)_, and from the uncertainty of _Cof f_, _u(Cof f )_ . There are two causes of _u(TA)_ and _u(TB)_ [37]. The first cause is that quantization in clock cycles of the time measurements produces quantization uncertainty, _uq_ . The second cause is electronic noise in the trigger instant in _VA_ and _VB_, creating the trigger uncertainty, _u_ trigger. Quantization uncertainty is constant throughout the value range of _CX_ since it only depends on the DP’s clock period. Meanwhile, _u_ trigger depends inversely on the slope of the discharge curve when it reaches voltage _VTL_ [38] By the very definition of _VTL_, _VTL_ _<_ _VDD_, and it will always be possible to find values of _R_ _A_ and _RB_ that verify (12). The designer needs only take the precaution of considering that _VTL_ is subject to small deviations derived from the operating conditions of the circuit and, consequently, consider _R_ _A_ and _RB_ values such that _R_ _A_ / _RB_ is the maximum possible value and, in the worst case, (12) continues to be fulfilled. _C._ _Error_ _and_ _Uncertainty_ _Analysis_ There are different sources of error in the estimate provided by (11). First, we have the parasitic elements that appear in the implementation of the circuit. These elements are shown in red in Fig. 5. There are the stray capacitors due to the DP pins and circuit routing _CSA_, _CSB_, and _CSO_, along with the output resistance of pin PO when configured as a logical 0 output, _ro_ . Resistor _ro_ modifies the value of the constant _k_ in (11), which would become _u_ trigger _(T_ _)_ = <sup>_α_</sup> ����d _V/_ d _t_ ��� _V_ = _VTL_ ≈ <sup>_α(R_</sup> <sup>_A_</sup> <sup>+</sup> <sup>_RB_</sup> <sup>_)_</sup> <sup>·</sup> <sup>_CX_</sup> _VTL_ (15) where _α_ is a constant related to the noise level in the circuit’s node. Equation (15) is valid for both _VA_ and _VB_ and thus also for _u_ trigger ( _TA)_ and _u_ trigger _(TB)_, simply replacing _α_ with _αA_ or _αB_ . Since _uq_ is constant and _u_ trigger increases its value in line with the discharging time constant, _u_ trigger ≫ _uq_ and _u_ ≈ _u_ trigger for sufficiently large values of this time constant. Regardless of the value of _CX_, this situation comes about whenever enough large values of _R_ _A_ and _RB_ are chosen. In terms of uncertainty, for (14), we can find a measurement - _R_ _A_ + _RB_ + _ro_ _RB_ + _ro_ ��−1 _._ (13) _k_ = _(R_ _A_ + _RB_ + _ro)_ - ln According to this expression, the variation in the value of _k_ with respect to that shown in (10) depends on the relationship between the three resistors. Error decreases as _R_ _A_ and _RB_ of quality in the estimate of _CX_, _u(CX_ _)_ / _CX_ _u(CX_ _)_ _CX_ = <sup>1</sup> _CX_ �� _∂CX_ _∂_ _TA_ �2 - _∂CX_ _u_ <sup>2</sup> _(TA)_ + _∂_ _TB_ �2 _u_ <sup>2</sup> _(TB_ _)_ + - _∂CX_ _∂Cof f_ �2 _u_ <sup>2�</sup> _Cof f_ _._ This expression becomes �2 + <sup>_u_</sup> <sup>2�</sup> - _u(TB)_ _TA_ - _TB_ - _u(TB)_ _TA_ - _TB_ �2 (17) _u(CX_ _)_ _CX_ ≈ ≈ _X_ (16) �� _u(TA)_ _TA_ - _TB_ �� _u(TA)_ _TA_ - _TB_ �2 + �2 + _Cof f_ _CX_ <sup>2</sup> Fig. 6. Observed experimental waveform for the circuit in Fig. 4(a). _VA_ is in blue and _VB_ is in green. enough to ignore the quantization effects. With these resistors, the maximum value of _TA_ is 70.96 ms or a count value of approximately 7 096 000 (a 23-bit counter has been necessary to generate _TA_ and _TB_ _)_ . The minimum value of _TA_ - _TB_, in a number of cycles, is obtained for the smallest capacitor in the range and is approximately 4800 (high enough to ignore quantization error). For _Cof f_, _TA_ - _TB_ = 238, a count value considerably lower than that obtained for the lowest value of _CX_ . Hence, for values of _CX_ greater than a few hundred picofarads (pF), the influence of _Cof f_ in (14) is negligible and (11) can be used instead. In any case, with these data and using (14), the normalized acquisition time is approximately 0.12 ms/nF (70.96 ms/561 nF), more than three orders of magnitude smaller than in [23]. Fig. 6 shows the real waveforms of _VA_ and _VB_ in the circuit of Fig. 4(a) obtained in a Digilent Analog Discovery 2 data acquisition system when _CX_ = 4.67 nF. The horizontal dashed line shows the value _VTL_ = 1.26 V. Due to the resistance of _R_ _A_ and _RB_, it can be seen from Fig. 6 that _TB_ is very small compared to _TA_, maximizing the resolution of the system. It should be noted that, for a better observation of the waveforms in Fig. 6, a charging process time close to 0.6 ms has been selected. However, in normal circuit operation, this time is less than 0.1 ms. Twenty series of 500 estimates were made for each capacitor, with approximately 2 s between each series. The results shown below have been obtained considering the 10 000 measurements made for each capacitor using (14) for the estimate. Several figures of merit are used to analyze the results; the first one is shown in Fig. 7, where the maximum relative error for the estimate of _CX_ is defined by where we consider _u(Cof f )_ ≪ _CX_ . Using (15), the terms inside the square root are given by _u(Ti_ _)_ _TA_ - _TB_ _αi_ ≈ _VTL_ - ln - ; _i_ = { _A, B_ } _._ (18) _R_ _A_ + _RB_ _RB_ If the noise levels in the circuits are constant, then quotient _u(CX_ _)_ / _CX_ is constant regardless of _CX_ _B_ _u(CX_ _)_ _CX_ _VTL_ - ln - _._ (19) ≈ _α_ <sup>2</sup> _A_ <sup>2</sup> _A_ <sup>+</sup> <sup>_α_</sup> <sup>2</sup> _B_ _R_ _A_ + _RB_ _RB_ IV. EXPERIMENTAL RESULTS AND DISCUSSION To test the new capacitive DIC, we have chosen an FPGA, the Xilinx Artix 7 XC7A35T, as the DP. This FPGA is included in a CMOD A7 board from Digilent (Pullman, WA, USA), together with a USB-UART bridge, a clock source, 512-kB SRAM, 4-MB Quad SPI Flash, and several I/O devices. The clock used in the DIC is a 50 MHz frequency clock generated internally in the FPGA; however, both the rise and fall edges of the clock have been used to detect the trigger instantly, meaning that counts during discharging are increased every 10 ns. The supply voltage is _VDD_ = 3.3 V and _VTL_ = 1.26 V for PA and PB pins of Fig. 4(b), and this was measured with a DPO 3052 digital oscilloscope from Tektronix (Beaverton, OR). It is important to note that the proposed method works in the same way as any other type of DP, as long as it has the appropriate pins (tristate pins) and hardware to measure discharging times. However, using an FPGA allows to simultaneously perform capacitive sensor readout and any other digital signal processing in parallel. Twenty-eight discrete NP0 capacitors ranging from 100 pF to 561 nF were used for the measurements of _CX_ . This wide range of values (almost four orders of magnitude) includes the operating ranges of a large number of capacitive sensors. The resistors _R_ _A_ = 75 054 _�_ and _RB_ = 54 933 _�_ have been selected to meet the design considerations outlined in Section III. With these values, _R_ _A_ / _RB_ = 1.37, while the righthand side of (12) takes the value 1.62, thus ensuring the correct operation of the circuit. Accuracy in the estimations is also guaranteed since _R_ _A_ and _RB_ are much larger than _ro_ (of the order of tens of ohms), and times _TA_ and _TB_ are large ×100% ; _i_ = <sup>�</sup> 1 _,_ 2 _, . . .,_ 10 <sup>4�</sup> _._ _eR_ = Max - | _CX_ _(i_ _)_ - _CX,a_ | _CX,a_ (20) _CX_ _(i_ _)_ is each of the estimates of _CX_ using (14), and _CX,a_ is the actual capacitance value measured by the impedance analyzer. Due to the wide range of _CX_ values, Fig. 7 shows the _X_ -axis in a log scale. Fig. 7 shows that _eR_ is contained in a band of 0.09%–1.01%, with an average of 0.41%. These errors are distributed more or less homogeneously along the _X_ -axis. The slight increase in _eR_ for lower capacitance values is mainly due to the presence of stray capacitors since, although _Cof f_ offsets much of its effects, it does not completely nullify them. Fig. 7. Relative and systematic errors, _e_ R and _eS_, for the new proposed DIC. The _X_ -axis, in log5 scale, shows the capacitors under test. It should be noted that the circuit used has not been designed ad hoc, so the value of stray capacitors will probably be higher than would be obtained in a specific design. However, the authors have decided to use the configuration described in this section to demonstrate the possibilities of the new estimation method in an actual development environment. In any case, the maximum _eR_ is 1.01% for a wide range of more than three orders of magnitude, 75 dB. Fig. 7 also shows the (in orange) systematic error, _eS_, of the new capacitive DIC, defined as × 100% (21) _eS_ = �� _C_ - _CX,a_ �� _CX,a_ Fig. 8. Corrected error that appears in the estimate of _C_ _X_ due to eliminating the systematic error shown in Fig. 7. Fig. 9. Relative uncertainties in time measurements for nodes A and B in Fig. 4(a) (both quantities expressed in �). from the capacitive nature of node A in Fig. 4(a), which helps reduce noise in this node with respect to node B in Fig. 4(a). Thus, _u(TB)_ values show higher dispersion than those of _u(TA)_ . The same is also true for the two normalized time uncertainties in (17) when establishing relative uncertainty in the estimate of _CX_ . Consequently, to reduce the value of this parameter and improve the estimation, special care must be taken in the routing of node B whenever a specific design is chosen for the new DIC, striving to reduce any noise sources that may affect it. Since the normalized time uncertainties remain approximately stable over the entire range of _CX_, according to (18), the same should be true for relative uncertainty in the estimate of _CX_ . Fig. 10 confirms this, showing a narrow variation range, with a minimum of 0.29� for _CX_ = 12.21 nF and a maximum of 0.60� for _CX_ = 100 pF. Thus, the quality of the estimates of _CX_ is very uniform in terms of uncertainty, as predicted by (19). Fig. 11 shows another parameter of interest, namely, linearity error, _eL_, defined as where _C_ is the average of all _CX_ _(i_ _)_ . The most important aspect to note about _eS_ is that these values are very close to _eR_ throughout the range. This indicates that errors in the estimate of _CX_ are mainly due to the stray elements shown in red in Fig. 5 and to the simplification that occurs in (13) when disregarding _ro_ . Therefore, relative errors due to uncertainties in the time measurements should be much more minor, confirming the suitability of the values chosen for _R_ _A_ and _RB_ . This can be verified in Fig. 8, which shows the relative error resulting from eliminating systematic error contribution in _eR_ . We call this corrected error, and as shown in the figure, it is significantly smaller than _eR_ (below 0.21% for all _CX_ values). In [34], it is proposed that this parameter be the measure of the system error. As discussed in Section II, the mean of the estimations of several _CX_ values obtained in the offline calibration process of [34] is stored in the DP, ready to be used when correcting _CX_ _(i_ _)_ during real-time operation of the system. However, caution is required in applications where this methodology is applied since the conditions under which offline calibration is performed may differ significantly from the circuit’s normal operating conditions. In any case, the almost constant values of the corrected errors indicate that uncertainties in the time measurements must have a similar form. Fig. 9 shows the quotients of _u(TA)_ and _u(TB)_ with _TA_ - _TB_, which we will call normalized time uncertainties. As predicted in (18), these quantities are approximately constant over the entire range of _CX_ . The results shown in Fig. 9 indicate that _u(TA) < u(TB_ _)_ for practically all _CX_ values. This result stems _�_ max _eL_ = _CU_ - _CL_ × 100% (22) where _�_ max is the maximum difference between the fit linear relationship and all _CX_ _(i_ _)_, while _CU_ and _CL_ are the upper and lower limits of the measurement range of _CX_, respectively. As shown in Fig. 11, the _eL_ values are very small (less than 0.03%) up to about 50 nF. From here, _eL_ grows, but always very smoothly, with a maximum of less than 0.3% for 561 nF. TABLE III COMPARISON Fig. 10. Relative uncertainty in the estimate of _C_ _X_ expressed in �. As with the normalized time uncertainties in Fig. 9, the values move in a very narrow band for any _C_ _X_ . Fig. 11 also shows the results for the signal-to-noise ratio (SNR) of the new capacitive DIC, which is calculated as - _i_ <sup>_CX_</sup> <sup>_(i_</sup> <sup>_)_</sup> <sup>2</sup> - _i_ _CX_ _(i_ _)_ Fig. 11. Linearity error and SNR of the proposed DIC. The main characteristics of the new circuit have been analyzed in comparison with others existing DIC schemes and presented in Table III. As shown in Table III, the new proposal shares with [30] and [34] that they only require a single charging–discharging process. Thus, the proposed circuit is among those that allow a higher reading frequency. Besides, the selected _R_ _A_ and _RB_ (with the only restriction given by (12)) achieve the fastest normalized acquisition time, as can be seen in the seventh column of Table III. The energy consumption of the measurement system, _ET_, depends on two terms: the energy consumed by the capacitor to be measured and that consumed by the DP, _E_ DP _ET_ = <sup>1</sup> 2 <sup>_CX V_</sup> DD <sup>2</sup> <sup>·</sup> <sup>_N_</sup> <sup>CD +</sup> <sup>_E_</sup> <sup>DP</sup> (24) where _N_ CD is the number of charging–discharging processes. As in our proposal _N_ CD = 1, the energy consumption in the capacitor is the minimum possible. For example, for a capacitance of 1 nF, the first term on the right-hand side of (24) is 5.45 nJ. _N_ CD = 1 also happens in [30] and [34]; however, in [30], the maximum errors are 10%, and in SNR = 10 · log _CX_ _(i_ _)_ - _C_ �2 _._ (23) As expected from the results presented in the figures above, SNR is also very stable. The minimum SNR is 64.3 dB for the 100 pF capacitor, while the maximum is 71 dB for a 12.21-nF capacitor. Although the _VTL_ values measured for PA and PB have been the same, small differences (not detected with the instruments used) may affect the results presented. The circuit connections to these pins in Fig. 4(a) (pins _T_ 2 and _R_ 2 of the FPGA) were swapped to assess this. The _CX_ estimates obtained for the new circuit configuration show a maximum variation of 0.17% in _eS_ compared to the results shown in Fig. 7 (this maximum variation occurs for _CX_ = 1 nF). In any case, the maximum _eR_ remains at 1.0% for the entire range. [34], multiple offline measurements are needed. _E_ DP mainly depends on the DP’s choice, which depends on the application for which the system is intended (as mentioned above, in our case, we have selected an FPGA as DP). It is difficult to experimentally measure the power consumption of the FPGA since it is included in a PCB with other components. However, the manufacturer’s programming tool provides an estimate of 0.179 mW. This power consumption comprises, in addition to the resources used for reading the capacitor (counters, arithmetic unit, and state machine), the resources used for the communication of the CMOD A7 board with a personal computer (RAM and serial communications port). On the other hand, as shown in the eighth column of Table III, only the DIC proposed in [35] needs one less element (one resistor) than the new DIC. Nevertheless, in [35], performing the most demanding arithmetic operations on the DP is necessary. Furthermore, the arithmetic operations in the new DIC are amounting the simplest. Regarding the hardware resources needed on the DP (penultimate column of Table III), this proposal only needs one timer and uses only three pins. Finally, it must be considered that the _CX_ range is practically 45 dB larger in the new proposal than any other range of the rest of the proposals (third column of Table III). V. CONCLUSION Many different circuits can be used to read a capacitive sensor, of which so-called DICs stand out for their simplicity. These designs can perform capacitance-to-time-to-digital conversion with just a few passive components and a DP without the need for ADCs. The DP is responsible, first, for controlling the charging and discharging processes of the capacitive sensor as necessary to establish its capacitance, _CX_, and, second, for measuring the duration of these processes. The time measurements, quantified in DP clock cycles, produce an estimate of _CX_ . However, many capacitive DICs proposed in the literature require different calibration capacitors and/or several charging and discharging cycles to perform the estimation, with the consequent increase in acquisition time and power consumption. Furthermore, the arithmetic operations required to obtain the estimates are often complex, increasing the time and the resources used by the DP. This article proposes a new DIC for reading capacitive sensors that aim to overcome these drawbacks. The circuit is very simple, as it only requires two additional resistors apart from the DP, without any calibration capacitors. This decreases the cost and size of the DIC. Furthermore, selection criteria have been established for these resistors to ensure the correct operation of the circuit and minimize errors. The new DIC proposal requires only a single charging and discharging cycle to obtain the two time measurements used in the calculations to find _CX_, thus reducing the time and energy consumption needed to estimate _CX_ . The estimate is obtained by a linear transformation of the subtraction of these measurements, using two constants stored in the DP. Consequently, the operations performed on the DP and the memory requirements are minimal. The circuit has been tested using a state-of-the-art FPGA as the DP. The results show that the circuit works correctly for a vast range of capacitance values, 100 pF–561 nF (75 dB). Relative errors in the estimates present a maximum of 1.01% and an average over the entire range of 0.41%, with relatively stable values. Linearity errors are below 0.3% at the top of the range, but for most of the range, they are below 0.03%. SNR is also relatively stable, varying between 64 and 71 dB. REFERENCES [1] F. Reverter, X. Li, and G. C. M. Meijer, “A novel interface circuit for grounded capacitive sensors with feedforward-based active shielding,” _Meas._ _Sci._ _Technol._, vol. 19, no. 2, pp. 4–9, 2008. [2] C. Ionescu, A. Lopes, D. Copot, J. A. T. Machado, and J. H. T. Bates, “The role of fractional calculus in modeling biological phenomena: A review,” _Commun._ _Nonlinear_ _Sci._ _Numer._ _Simul._, vol. 51, pp. 141–159, Oct. 2017. [3] 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. [4] S. Das, M. Sivaramakrishna, K. Biswas, and B. Goswami, “Performance study of a ‘constant phase angle based’ impedance sensor to detect milk adulteration,” _Sens._ _Actuators_ _A,_ _Phys._, vol. 167, no. 2, pp. 273–278, Jun. 2011. [5] P. J. Ross, “A water-level sensor using a capacitance to frequency converter,” _J._ _Phys._ _E,_ _Sci._ _Instrum._, vol. 16, no. 9, pp. 827–828, Sep. 1983. [6] 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. [7] 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. [8] 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, 2018. [9] 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. [10] T. H. Teo, K.-L. Oung, X. T. Chen, Z. Q. Gao, Y. Fan, and W. G. Yeoh, “Time-constant-based CMOS readout circuit for DNA detection,” _Elec-_ _tron._ _Lett._, vol. 44, no. 6, pp. 400–401, 2008. [11] F. Restagno, J. Crassous, E. Charlaix, and M. Monchanin, “A new capacitive sensor for displacement measurement in a surface-force apparatus,” _Meas._ _Sci._ _Technol._, vol. 12, no. 1, pp. 16–22, 2001. [12] J. Nie et al., “Dew point measurement using a carbon-based capacitive sensor with active temperature control,” _ACS_ _Appl._ _Mater._ _Interfaces_, vol. 11, no. 1, pp. 1699–1705, Jan. 2019. [13] M. Assaad and M. Z. Aslam, “An interface circuit design based on differential capacitive sensors for accurate measurement of water contents in crude oil,” in _Proc._ _IEEE_ _Int._ _Conf._ _Circuits_ _Syst._ _(ICCAS)_, Oct. 2012, pp. 263–266. [14] A. Acevedo-Barrera, D. Cerecedo, and A. García-Valenzuela, “Viability and resolution of sensing hemolysis with a capacitive sensor,” _Revista_ _Médica_ _del_ _Hospital_ _Gen._ _México_, vol. 83, no. 1, pp. 5–12, Mar. 2020. [15] M. Kuorilehto, M. Kohvakka, J. Suhonen, P. Hämäläinen, M. Hännikäinen, and T. D. Hamalainen, _Ultra-Low_ _Energy_ _Wireless_ _Sensor_ _Networks_ _in_ _Practice:_ _Theory,_ _Realization_ _and_ _Deployment_, 1st ed. Chichester, U.K.: Wiley, 2008. [16] N. Gaurav and S. Pal, “Design, development and testing of a semicircular type capacitive angular position sensor,” _Sensors_ _Transducers_, vol. 129, no. 6, pp. 16–23, 2011. [17] Y. Liu, S. Chen, M. Nakayama, and K. Watanabe, “Limitations of a relaxation oscillator in capacitance measurements,” _IEEE Trans. Instrum._ _Meas._, vol. 49, no. 5, pp. 980–983, Oct. 2000. [18] L. Areekath, B. George, and F. Reverter, “An auto-balancing capacitance-to-pulse-width converter for capacitive sensors,” _IEEE_ _Sen-_ _sors_ _J._, vol. 21, no. 1, pp. 765–775, Jan. 2021. [19] A. U. Khan, T. Islam, and J. Akhtar, “An oscillator-based active bridge circuit for interfacing capacitive sensors with microcontroller compatibility,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 65, no. 11, pp. 2560–2568, Nov. 2016. [20] T. T. Nguyen and P. Häfliger, “An energy efficient inverter based readout circuit for capacitive sensor,” in _Proc. IEEE Biomed. Circuits_ _Syst. Conf._ _(BioCAS)_, Oct. 2013, pp. 326–329. [21] N. Yazdi, H. Kulah, and K. Najafi, “Precision readout circuits for capacitive microaccelerometers,” _Proc. IEEE Sensors_, Oct. 2004, vol. 1, no. 2, pp. 28–31. [22] V. Sreenath and B. George, “A robust switched-capacitor CDC,” _IEEE_ _Sensors_ _J._, vol. 18, no. 14, pp. 5985–5992, Jul. 2018. [23] A. Alhoshany and K. N. Salama, “A precision, energy-efficient, oversam pling, noise-shaping differential SAR capacitance-to-digital converter,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 68, no. 2, pp. 392–401, Feb. 2019. [24] L. Areekath, B. George, and F. Reverter, “A closed-loop capacitance to-frequency converter for single-element and differential capacitive sensors,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 69, no. 11, pp. 8773–8782, Nov. 2020. [25] F. Reverter, M. Gasulla, and R. Pallàs-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. [26] F. Reverter and Ò. Casas, “Direct interface circuit for capacitive humid ity sensors,” _Sens._ _Actuators_ _A_ _Phys._, vol. 143, no. 2, pp. 315–322, Jan. 2008. [27] F. Morais, P. Carvalhaes-Dias, L. Duarte, E. Costa, A. Ferreira, and J. S. Dias, “Fringing field capacitive smart sensor based on PCB technology for measuring water content in paper pulp,” _J. Sensors_, vol. 2020, pp. 1–13, Mar. 2020. [28] Y. Wang, C. Zhou, and H. Lu, “An enhanced method for measuring capacitance based on the direct interface circuit,” in _Proc. Chin._ _Control_ _Conf._ _(CCC)_, Jul. 2019, pp. 7028–7032. [29] J. E. Gaitan-Pitre, M. Gasulla, and R. Pallàs-Areny, “Direct interface for capacitive sensors based on the charge transfer method,” in _Proc._ _IEEE_ _Instrum._ _Meas._ _Technol._ _Conf._ _(IMTC)_, May 2007, pp. 1–5. [30] K. Blake and S. Bible, “Measuring small changes in capacitive sensors,” Microchip Technol., Chandler, AZ, USA, Tech. Rep. AN1014, 2005. [31] P. H. Dietz, D. Leigh, and W. S. Yerazunis, “Wireless liquid level sensing for restaurant applications,” _Proc. IEEE Sensors_, Jun. 2002, vol. 1, no. 1, pp. 715–720. [32] J. E. Gaitán-Pitre, M. Gasulla, and R. Pallàs-Areny, “Analysis of a direct interface circuit for capacitive sensors,” _IEEE_ _Trans._ _Instrum._ _Meas._, vol. 58, no. 9, pp. 2931–2937, Sep. 2009. [33] M.-E. Marc, G. Ignacio, and F.-G. Raul, “A smart textile system to detect urine leakage,” _IEEE_ _Sensors_ _J._, vol. 21, no. 23, pp. 26234–26242, Dec. 2021. [34] Z. Czaja, “A measurement method for capacitive sensors based on a ver satile direct sensor-to-microcontroller interface circuit,” _Measurement_, vol. 155, Apr. 2020, Art. no. 107547. [35] O. Lopez-Lapeña, E. Serrano-Finetti, and Ò. Casas, “Calibration-less direct capacitor-to-microcontroller interface,” _Electron._ _Lett._, vol. 52, no. 4, pp. 289–291, Feb. 2016. [36] J. A. Hidalgo, V. Moreno-Vergara, O. Oballe, A. Daza, M. J. Martín-Vázquez, and A. Gago, “A radix-8 multiplier unit design for specific purpose,” in _Proc._ _XIII_ _Design_ _Circuits_ _Integr._ _Syst._ _Conf._ _(DCIS)_, vol. 98, Madrid, Spain, 1998, pp. 1535–1546. [37] F. Reverter, J. Jordana, M. Gasulla, and R. Pallàs-Areny, “Accuracy and resolution of direct resistive sensor-to-microcontroller interfaces,” _Sens._ _Actuators_ _A,_ _Phys._, vol. 121, no. 1, pp. 78–87, May 2005. [38] J. A. Hidalgo-López, Ó. Oballe-Peinado, J. Castellanos-Ramos, and J. A. Sánchez-Durán, “Two-capacitor direct interface circuit for resistive sensor measurements,” _Sensors_, vol. 21, no. 4, pp. 1–17, Feb. 2021. José A. Hidalgo-López was born in Guadix, Spain. He received the M.S. degree in physics from the Universidad de Granada, Granada, Spain, in 1989, and the Ph.D. degree in microelectronics from the Universidad de Málaga (UMA), Málaga, Spain, in 1996. Since 1990, he has been with the Departamento de Electrónica, UMA, where he is currently an Associate Professor. He has authored or coauthored 24 articles in international indexed journals (JCR) and more than 30 conference papers. His current research interests include electronics for sensor readout, 2-D resistive array sensors, advanced tactile sensors, signal processing using field-programmable gate arrays (FPGAs), and computational arithmetic. Julián Castellanos-Ramos was born in Madrid, Spain. He received the M.S. and Ph.D. degrees in industrial engineering from the Universidad de Málaga (UMA), Málaga, Spain, in 1999 and 2016, respectively. Since 2004, he has been with the Departamento de Electrónica, UMA. His current research interests include advanced tactile sensors.

섹션 본문 60문단 · 36,122자

(제목 없음)

1Direct interface circuits (DICs) are efficient for reading resistive, capacitive, or inductive sensors in a digital format. The simplest DICs consist of just a few passive elements that connect a digital processor (DP) to a sensor. When reading capacitive sensors, one or several calibration capacitors and/or several charging and discharging cycles are needed to make the estimation, and the result usually requires complex arithmetic operations. This article presents a new type of capacitive DIC that is simple in terms of hardware, needing only two resistors of known value and the DP in order to make the capacitance estimation. In addition, the reading method requires a single sensor charging and discharging cycle, which reduces acquisition time and power consumption. Two time measurements are taken during the discharge, which, through a linear transformation of their subtraction (using two constants stored in the DP), give the value of the capacitance. These arithmetic operations are easily implemented on any DP and consume fewer resources than the divisions required on other capacitive DICs. The design has been tested for a wide range of capacitances (from 100 pF to 561 nF), including the value of several capacitive sensors. The average relative error for the entire range is 0.41%, the linearity errors are below 0.3%, and the minimum signal-to-noise ratio (SNR) value is 64 dB.Index Terms-Capacitance to digital, capacitive sensors, direct interface circuits (DICs).

I. INTRODUCTION

2C APACITIVE effect sensors are based on variations in capacitance due to changes in the charge storage processes, the capacitor's dielectric, or its dimensions (area or thickness). Such sensors can be classified into two groups: floating sensors (where none of the electrodes need to be grounded to function properly) or grounded sensors (due to sensor manufacturing processes, one of the terminals must be connected to the ground). Grounded capacitive sensors generally present greater problems related to stray capacitors. However, their use is unavoidable in many applications (such as for level measurement of a conductive liquid or the distance/proximity measurement to a grounded metallic object).

3In other cases, they must be used for safety and/or operating limitations of floating capacitive sensors [1].

4In general, a capacitive effect sensor has impedance in the Laplace domain

5where −1 ≤ α f ≤ 1. If α f is different from one, these sensors are called in the literature constant phase sensors (CPSs). CPS is of increasing importance in the control of various physiological processes [2], monitoring microbial growth [3], or food adulteration [4]. However, the name of capacitive sensor is reserved for those in which α f = 1 and is the most widely used to measure physical and chemical parameters. Measurements made with these capacitive sensors include liquid levels [5], pressure [6], strain [7], humidity [8], and organic substance analysis [9]. Sensor capacitance in such applications varies from tens of picofarads to just a few nanofarads. Furthermore, interesting new applications have recently been proposed for this type of sensor, such as DNA detection [10], position and displacement [11], dew point measurement [12], water in crude oil [13], and sensing hemolysis [14], where capacitance varies in a wide range, from hundreds of picofarads to hundreds of nanofarads.

6Nowadays, capacitive sensors are often designed as smart sensors that include additional blocks, such as conditioning circuits with operational amplifiers (OAs), analog-to-digital converters (ADCs), and digital processors (DPs) with communication interfaces. The DP performs more or less complex local processing of the information provided in a digital format by the ADC, transmitting the parameters obtained to a higher unit, thus reducing its workload. These capacitive smart sensors have become widespread as portable devices that can increasingly be part of wireless networks. This means that the readout circuit designs for these sensors are becoming more and more demanding, both in terms of the cost of the device (the number of elements used and their complexity) and power consumption [15].

7To meet these needs, this article introduces a new grounded capacitive sensor readout circuit that minimizes the hardware required by using a new direct interface circuit (DIC) with only passive components. Therefore, the estimate of the sensor capacitance, C X , does not need ADCs, OAs, analog comparators, or voltage references. The new DIC is very simple since, in addition to C X , only two resistors of known value are used, avoiding the need for calibration capacitors and reducing hardware requirements and size. The estimation uses just two time measurements, obtained during the only discharging This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ process. A single discharging process reduces both acquisition time and energy consumption. The arithmetic operations in calculating C X are simple and easily implementable in the DP, thus freeing up resources. Despite the simplicity of the proposal, the error in the estimation of C X is lower than that of other more complex readout circuits. These results are obtained for a much larger range of capacities, allowing the new DIC to be used in applications where it was impossible to use this type of circuit until now, as in [9], [10], [12], [13], and [14].

II. STATE OF THE ART

8Capacitors are energy storage elements. Thus, whatever the method chosen to measure its capacitance, measurements related to time intervals are necessary for its determination. One type of circuit makes these measurements indirectly by estimating the frequency or magnitude of a given periodic output signal. Other circuits make time measurements directly in the charging-discharging processes of the capacitors.

9Among the first type of circuits, some use analog blocks to perform the readout of capacitive sensors. In [16], an RLC resonant circuit has been used to convert the capacitance variation of an angular position sensor into a voltage. The maximum angular position error is about 6%. In [17], oscillation periods of a relaxation oscillator consisting of an OA-based integrator and a comparator are used for capacitance measurements. Measuring the time in which the output signal is in each of the two possible states allows us to determine the value of C X . The system enables measurements in the range of 1-100 pF with errors of 3%.

10Another circuit with a similar operating principle and using OAs is presented in [18]. The circuit needs an ac sinusoidal signal and a triangular reference signal. These elements mean high power consumption, around 140 mW; however, the circuit presents a maximum nonlinearity error (NLE) of only 0.7% for C X in the range of 200-300 pF. The readout circuit in [19] comprises an active capacitive bridge and a relaxation oscillator to convert capacitance changes into frequency. The circuit uses two OAs, along with several additional capacitors and resistors. Error in determining C X varies between 1% and 2.3%.

11To reduce power consumption in [20], OAs are replaced with a switched-capacitor amplifier. The circuit also needs a calibration capacitor and several switches. Two-step autocalibration is applied to eliminate the offset from nonideal effects of the switched-capacitor amplifier and comparator. The capacitive sensor ranging from 8 to 12 pF can achieve 10.4-bit resolution while consuming only 3 μW during 640 μs conversion time. A similar solution is used in [21] for a micro-g accelerometer.

12Another capacitance-to-digital converter based on the switched-capacitor integrating technique is presented in [22]. This implementation shows a maximum 0.08% full-scale range (FSR) error when measuring capacitances in the interval 10-400 pF. Again, the circuit uses an OA, a comparator, various switches, and capacitors for calibration. In [23], with the same switched-capacitor integrating technique but replacing OAs with a successive approximation register (SAR), capacitive sensors in the range of 1-3.6 pF are measured with a sampling clock of 18.51 kHz. In [24], a novel closedloop switched-capacitor circuit for capacitance-to-frequency converter (CFC) is presented with a maximum NLE of 0.24%.

13Apart from a variable number of analog blocks, another drawback of these circuits is the long normalized acquisition time, defined as the quotient between the maximum acquisition time and the maximum value of C X . For example, in [23], this figure of merit reaches 255 ms/nF (one of the lowest values for these types of circuits).

14In a different approach, DICs connect the sensor directly to a DP (mainly a microcontroller, μC) to reduce the number of circuit components, power consumption, and acquisition time. Capacitance-to-digital conversion in a DIC is performed without any external circuit for signal conditioning or ADC, adding just a few passive elements, meaning that DICs are compact and inexpensive. Based on this design philosophy, Reverter et al. [25] and Reverter and Casas [26] used a calibration capacitor and a resistor, in addition to the sensor, to build the complete readout circuit, see Fig. 1(a).

15The reading procedure consists of a charging and discharging process for each circuit's capacitor: the calibration capacitor, C C , the sensor, C X , and the stray capacitor of the readout node, C S . These processes are performed by controlling pins P C , P X , and P R . It must be possible to configure these pins as outputs or inputs (equivalent to high impedance state, HZ). The discharge processes start from the high-level voltage of V R in Fig. 1(a) (for simplicity and without any loss of generality, we will assume that this is the supply voltage, V DD , while the low output level will be 0 V). V R will be stored in one of the capacitors in Fig. 1(a). The discharge process is carried out by placing the readout pin, P R , in the HZ state. The process continues through R until voltage V R reaches, and [29], [30], [31].

16at the trigger instant, the value V TL . V TL is the threshold voltage to detect a logical 0 input in the P R pin starting from a logical 1 level. The length of the discharge processes of each capacitor is measured in DP clock cycles with period T CK , obtaining three values: T C , T X , and T S (the subscript indicates the capacitor being discharged), which determines the value of C X [25]

17Because of this method, C X is obtained independently of the value of R, V TL , and V DD , thus ensuring higher precision while avoiding thermal or aging drifts. Table I shows the pin configuration in each of the steps necessary to obtain (2), while Fig. 1

18In [25], the deviation was below 1.5 pF for a measurement range from 10 to 100 pF. The design is simple but uses three charging processes to find C X , increasing power consumption and acquisition time. Furthermore, part of the current is lost through R during charging, although this loss is negligible as R has a very high value. For example, this methodology was recently used in [27] to measure the water content in paper pulp. A slight modification of the method proposed in [25] is shown in [28], where one more cycle of measurement is used to obtain the errors of less than 2% for C X in the range of 100 pF-2.2 nF.

19An alternative circuit based on the so-called charge transfer method [29], [30], [31], [32] does not require external resistors, although it does use two calibration capacitors, C C1 and C C2 , and a reference capacitor, C Re f , see Fig. 2.

20In this method, C X , C C1 , or C C2 is charged with a logical 1, and the charge is transferred to C Re f , initially discharged, also fulfilling C Re f C X , C C1 , and C C2 . By measuring the number of charge transfer cycles, it takes for the voltage stored in C Re f to reach V TH (V TH is the threshold voltage to detect [34] and for the calibration-less method of [35]. (b) Voltage across C X during charging and discharging stages in [35]. a logical 1 input starting from a logical 0 level), and C X can be found using [29]

21where N X , N C1 , and N C2 are the number of charge transfer cycles needed for C X , C C1 , and C C2 , respectively. This method can obtain maximum errors of 0.8% FSR for the range 100 pF-1 nF [32], but, unfortunately, calibration processes are also needed (in [33], an application of the methods proposed in [29], [30], [31], and [32] to detect urine leakage is shown). An offline calibration is proposed in [34] to avoid calibration processes during regular DIC operation (online calibration). This proposal only uses a resistor and the sensor together with a microcontroller, see Fig. 3(a). However, the microcontroller must have a digital-to-analog converter (DAC), a comparator, and an additional reference voltage. In essence, the method measures the discharging times of a series of known capacitors and establishes a set of linear approximations to the function discharging time C X . The coefficients of these approximations are stored in a lookup table in the microcontroller. The results show a maximum relative error of 0.05% but in a minimal range of 7.6 dB (100-240 pF). Due to the values stored in the lookup table, only a single charging and discharging process of C X is required during regular DIC operation. If the additional elements needed by this method are already present in a microcontroller, this is not a problem. However, the microcontrollers that can be used are restricted to those with these elements, and their cost and power consumption will be higher. To this, the memory resources occupied by the lookup table must be added.

22For a broader range of capacitances without the need for calibration processes, Lopez-Lapeña et al. [35] proposed the same simple DIC as in Fig. 3(a). Moreover, the microcontroller used as DP does not need ADCs, analog comparators, voltage references, or lookup tables. The reading process only requires four steps: two to charge C X and two to discharge it. The steps and the three time measurements needed to find C X (T 1 , T 2 , and T DS ) are shown in Fig. 3(b). Unfortunately, the equation used to find C X is nonlinear. Lopez-Lapeña et al. [35] proposed simplifying the equation using a Taylor second-order polynomial approximation, finding

23where A = (2 + ln (2))·ln (2),

24. While this method reduces the number of charges and discharges and the errors associated with calibration capacitors, it also has some drawbacks. First, the arithmetic operations involved in (4) are challenging to perform in a DP and increase both acquisition time and power consumption, providing only an approximate solution to the value of C X . Second, different resistors are needed for different intervals in the range of C X to reduce errors. The result is that errors reach a maximum of 2% in the 4.7-220 nF range with R = 200 k.

A. Description of the Method and Circuit Analysis

25The new DIC is shown in Fig. 4(a). As mentioned above, the circuit performs a single charging process of C X followed by a single discharging process. During discharge, the DP uses two pins, P A and P B , to detect V TL in the nodes with voltages V A and V B in Fig. 4(a). It must be possible to configure these pins as inputs (HZ state) or outputs, while the pin P O in Fig. 4(a) could always be an output pin (thus simplifying DP operation). All pins are configured as output pins with a logical 1 output for charging C X to voltage V DD during the charging process such that V A = V B = V DD . Pins P A and P B are configured as inputs for the discharging process, while P O is configured as a logical 0 output. The configuration of the pins in the two steps is shown in Table II. Fig. 4(b) shows the time evolution of voltages V A and V B . During discharge, the moments when V A and V B reach the value V TL are the trigger instants, T A and T B , respectively. The expressions of V A and V B during the discharging process are given by

26where t = 0 is the instant at which the discharging process begins. Fig. 4(b) shows how V A = V B = V DD at the end of the charging process. However, (6) shows that voltage in V B drops sharply at the initial instant of the discharging process due to the voltage divider formed by resistors R A and R B , see Fig. 4(b). These resistors must ensure that V B (0) > V TL , so P B recognizes V B as a logical 1 at the start of the discharge process.

27Expressions (5) and (6) can be used to find T A and T B

28These times are measured by the DP and are therefore numbers of cycles of the DP's internal clock. C X can be found trivially by subtracting T A and T B

29Since R A and R B are known values, the DP can store the constant, k, which multiplies the subtraction of times in (9)

30Thus, we obtain the expression that uses the new estimation method for C X

31From an arithmetic point of view, this is a straightforward expression requiring just one subtraction and one multiplication. Moreover, since one of the multiplicands is a constant, the operation can be performed faster than the multiplication of two variables if the DP is a microcontroller. When using an application-specified integrated circuit (ASIC) or field-programmable gate array (FPGA), the operation is faster and requires simpler hardware [36] (note that the circuit of Fig. 4(a) could be completely included in an ASIC, if the sensor can also be integrated). Acquisition time and power consumption are also reduced, as there is only one charging and one discharging process. Finally, only two time measurements are required, thus reducing the storage of values in the DP and the sources of uncertainty in the estimation.

B. Increasing Resolution

32Increasing resolution in the estimate of C X using (11) requires the range of values in the operation T A -T B to be as wide as possible. This can be achieved without increasing circuit power consumption by increasing the quotient R A /R B to maximize the difference between the initial values V A (0) and V B (0), obtained from (5) and (6). However, as mentioned, there is an upper limit to the value of this quotient: given that V B (0) must be greater than V TL , R A and R B must fulfill

33By the very definition of V TL , V TL < V DD , and it will always be possible to find values of R A and R B that verify (12). The designer needs only take the precaution of considering that V TL is subject to small deviations derived from the operating conditions of the circuit and, consequently, consider R A and R B values such that R A /R B is the maximum possible value and, in the worst case, (12) continues to be fulfilled.

C. Error and Uncertainty Analysis

34There are different sources of error in the estimate provided by (11). First, we have the parasitic elements that appear in the implementation of the circuit. These elements are shown in red in Fig. 5. There are the stray capacitors due to the DP pins and circuit routing C SA , C SB , and C SO , along with the output resistance of pin P O when configured as a logical 0 output, ro.

35Resistor ro modifies the value of the constant k in (11), which would become

36According to this expression, the variation in the value of k with respect to that shown in (10) depends on the relationship between the three resistors. Error decreases as R A and R B increase in value with respect to ro. Element ro takes typically values ranging from just a few to several dozen ohms. Therefore, the effect of ro on k is negligible as of a few kilo-ohm when choosing R A and R B . The only limitations on R A and R B are that they must verify (12) and that the acquisition time increases as R A and R B do so. It is worth noting that it is trivial to verify that the relative error in k when disregarding ro is lower than the relative error in the approximation

37Careful circuit routing will reduce the values of the three stray capacitors. However, these capacitors are inherent to the circuit, so their effects will always be present and increase as C X decreases, imposing a lower limit for the capacitances that can be estimated with (11). However, if necessary, it is possible to improve the accuracy and, at the same time, extend the measurement range with a simple offline autocalibration. This only requires two measurements: T A and T B , without placing C X in the circuit of Fig. 5 (this is a simpler process than the one performed in [34], which requires a large number of offline measurements for various calibration capacitors). The subtraction of these times multiplied by k will give the value of a parameter, C of f , which will be stored in the DP and offers the new estimate of C X

38Another possible source of error comes from the difference between the threshold voltages of the P A and P B pins of Fig. 4(a). Fortunately, in current manufacturing processes and transistors with large areas in the same die (such as those connected to pins on DPs), these differences can be less than millivolts, and the influence on the estimate is minimal. Uncertainty in the estimate provided by (11) or (14) comes from the uncertainties in the time measurements T A and T B , u(T A ) and u(T B ), and from the uncertainty of C of f , u(C o f f ). There are two causes of u(T A ) and u(T B ) [37]. The first cause is that quantization in clock cycles of the time measurements produces quantization uncertainty, u q . The second cause is electronic noise in the trigger instant in V A and V B , creating the trigger uncertainty, u trigger . Quantization uncertainty is constant throughout the value range of C X since it only depends on the DP's clock period. Meanwhile, u trigger depends inversely on the slope of the discharge curve when it reaches voltage V TL [38]

39where α is a constant related to the noise level in the circuit's node. Equation (15) is valid for both V A and V B and thus also for u trigger (T A ) and u trigger (T B ), simply replacing α with α A or α B . Since u q is constant and u trigger increases its value in line with the discharging time constant, u trigger u q and u ≈ u trigger for sufficiently large values of this time constant. Regardless of the value of C X , this situation comes about whenever enough large values of R A and R B are chosen. In terms of uncertainty, for (14), we can find a measurement of quality in the estimate of C X , u(C X )/C X u(C X )

40This expression becomes

41where we consider u(C o f f ) C X . Using (15), the terms inside the square root are given by

42If the noise levels in the circuits are constant, then quotient

IV. EXPERIMENTAL RESULTS AND DISCUSSION

43To test the new capacitive DIC, we have chosen an FPGA, the Xilinx Artix 7 XC7A35T, as the DP. This FPGA is included in a CMOD A7 board from Digilent (Pullman, WA, USA), together with a USB-UART bridge, a clock source, 512-kB SRAM, 4-MB Quad SPI Flash, and several I/O devices. The clock used in the DIC is a 50 MHz frequency clock generated internally in the FPGA; however, both the rise and fall edges of the clock have been used to detect the trigger instantly, meaning that counts during discharging are increased every 10 ns. The supply voltage is V DD = 3.3 V and V TL = 1.26 V for P A and P B pins of Fig. 4(b), and this was measured with a DPO 3052 digital oscilloscope from Tektronix (Beaverton, OR). It is important to note that the proposed method works in the same way as any other type of DP, as long as it has the appropriate pins (tristate pins) and hardware to measure discharging times. However, using an FPGA allows to simultaneously perform capacitive sensor readout and any other digital signal processing in parallel.

44Twenty-eight discrete NP0 capacitors ranging from 100 pF to 561 nF were used for the measurements of C X . This wide range of values (almost four orders of magnitude) includes the operating ranges of a large number of capacitive sensors. The resistors R A = 75 054 and R B = 54 933 have been selected to meet the design considerations outlined in Section III. With these values, R A /R B = 1.37, while the righthand side of (12) takes the value 1.62, thus ensuring the correct operation of the circuit. Accuracy in the estimations is also guaranteed since R A and R B are much larger than ro (of the order of tens of ohms), and times T A and T B are large Fig. 6. Observed experimental waveform for the circuit in Fig. 4(a). V A is in blue and V B is in green. enough to ignore the quantization effects. With these resistors, the maximum value of T A is 70.96 ms or a count value of approximately 7 096 000 (a 23-bit counter has been necessary to generate T A and T B ). The minimum value of T A − T B , in a number of cycles, is obtained for the smallest capacitor in the range and is approximately 4800 (high enough to ignore quantization error). For C o f f , T A − T B = 238, a count value considerably lower than that obtained for the lowest value of C X . Hence, for values of C X greater than a few hundred picofarads (pF), the influence of C of f in (14) is negligible and (11) can be used instead. In any case, with these data and using (14), the normalized acquisition time is approximately 0.12 ms/nF (70.96 ms/561 nF), more than three orders of magnitude smaller than in [23]. Fig. 6 shows the real waveforms of V A and V B in the circuit of Fig. 4(a) obtained in a Digilent Analog Discovery 2 data acquisition system when C X = 4.67 nF. The horizontal dashed line shows the value V TL = 1.26 V. Due to the resistance of R A and R B , it can be seen from Fig. 6 that T B is very small compared to T A , maximizing the resolution of the system. It should be noted that, for a better observation of the waveforms in Fig. 6, a charging process time close to 0.6 ms has been selected. However, in normal circuit operation, this time is less than 0.1 ms.

45Twenty series of 500 estimates were made for each capacitor, with approximately 2 s between each series. The results shown below have been obtained considering the 10 000 measurements made for each capacitor using (14) for the estimate.

46Several figures of merit are used to analyze the results; the first one is shown in Fig. 7, where the maximum relative error for the estimate of C X is defined by

47C X (i ) is each of the estimates of C X using (14), and C X,a is the actual capacitance value measured by the impedance analyzer.

48Due to the wide range of C X values, Fig. 7 shows the X-axis in a log scale. Fig. 7 shows that e R is contained in a band of 0.09%-1.01%, with an average of 0.41%. These errors are distributed more or less homogeneously along the X-axis. The slight increase in e R for lower capacitance values is mainly due to the presence of stray capacitors since, although C o f f offsets much of its effects, it does not completely nullify them. It should be noted that the circuit used has not been designed ad hoc, so the value of stray capacitors will probably be higher than would be obtained in a specific design. However, the authors have decided to use the configuration described in this section to demonstrate the possibilities of the new estimation method in an actual development environment. In any case, the maximum e R is 1.01% for a wide range of more than three orders of magnitude, 75 dB. Fig. 7 also shows the (in orange) systematic error, e S , of the new capacitive DIC, defined as

49where C is the average of all C X (i ). The most important aspect to note about e S is that these values are very close to e R throughout the range. This indicates that errors in the estimate of C X are mainly due to the stray elements shown in red in Fig. 5 and to the simplification that occurs in (13) when disregarding ro. Therefore, relative errors due to uncertainties in the time measurements should be much more minor, confirming the suitability of the values chosen for R A and R B . This can be verified in Fig. 8, which shows the relative error resulting from eliminating systematic error contribution in e R . We call this corrected error, and as shown in the figure, it is significantly smaller than e R (below 0.21% for all C X values). In [34], it is proposed that this parameter be the measure of the system error. As discussed in Section II, the mean of the estimations of several C X values obtained in the offline calibration process of [34] is stored in the DP, ready to be used when correcting C X (i ) during real-time operation of the system. However, caution is required in applications where this methodology is applied since the conditions under which offline calibration is performed may differ significantly from the circuit's normal operating conditions. In any case, the almost constant values of the corrected errors indicate that uncertainties in the time measurements must have a similar form. Fig. 9 shows the quotients of u(T A ) and u(T B ) with T A − T B , which we will call normalized time uncertainties. As predicted in (18), these quantities are approximately constant over the entire range of C X . The results shown in Fig. 9 indicate that u(T A ) < u(T B ) for practically all C X values. This result stems Fig. 8. Corrected error that appears in the estimate of C X due to eliminating the systematic error shown in Fig. 7. from the capacitive nature of node A in Fig. 4(a), which helps reduce noise in this node with respect to node B in Fig. 4(a).

50Thus, u(T B ) values show higher dispersion than those of u(T A ). The same is also true for the two normalized time uncertainties in (17) when establishing relative uncertainty in the estimate of C X . Consequently, to reduce the value of this parameter and improve the estimation, special care must be taken in the routing of node B whenever a specific design is chosen for the new DIC, striving to reduce any noise sources that may affect it.

51Since the normalized time uncertainties remain approximately stable over the entire range of C X , according to (18), the same should be true for relative uncertainty in the estimate of C X . Fig. 10 confirms this, showing a narrow variation range, with a minimum of 0.29 for C X = 12.21 nF and a maximum of 0.60 for C X = 100 pF. Thus, the quality of the estimates of C X is very uniform in terms of uncertainty, as predicted by (19). Fig. 11 shows another parameter of interest, namely, linearity error, e L , defined as

52where max is the maximum difference between the fit linear relationship and all C X (i ), while C U and C L are the upper and lower limits of the measurement range of C X , respectively. As shown in Fig. 11, the e L values are very small (less than 0.03%) up to about 50 nF. From here, e L grows, but always very smoothly, with a maximum of less than 0.3% for 561 nF. Fig. 10. Relative uncertainty in the estimate of C X expressed in . As with the normalized time uncertainties in Fig. 9, the values move in a very narrow band for any C X . Fig. 11 also shows the results for the signal-to-noise ratio (SNR) of the new capacitive DIC, which is calculated as

53As expected from the results presented in the figures above, SNR is also very stable. The minimum SNR is 64.3 dB for the 100 pF capacitor, while the maximum is 71 dB for a 12.21-nF capacitor.

54Although the V TL values measured for P A and P B have been the same, small differences (not detected with the instruments used) may affect the results presented. The circuit connections to these pins in Fig. 4(a) (pins T 2 and R 2 of the FPGA) were swapped to assess this. The C X estimates obtained for the new circuit configuration show a maximum variation of 0.17% in e S compared to the results shown in Fig. 7 (this maximum variation occurs for C X = 1 nF). In any case, the maximum e R remains at 1.0% for the entire range. The main characteristics of the new circuit have been analyzed in comparison with others existing DIC schemes and presented in Table III. As shown in Table III, the new proposal shares with [30] and [34] that they only require a single charging-discharging process. Thus, the proposed circuit is among those that allow a higher reading frequency. Besides, the selected R A and R B (with the only restriction given by (12)) achieve the fastest normalized acquisition time, as can be seen in the seventh column of Table III. The energy consumption of the measurement system, E T , depends on two terms: the energy consumed by the capacitor to be measured and that consumed by the DP, E DP

55where N CD is the number of charging-discharging processes. As in our proposal N CD = 1, the energy consumption in the capacitor is the minimum possible. For example, for a capacitance of 1 nF, the first term on the right-hand side of (24) is 5.45 nJ. N CD = 1 also happens in [30] and [34]; however, in [30], the maximum errors are 10%, and in [34], multiple offline measurements are needed. E DP mainly depends on the DP's choice, which depends on the application for which the system is intended (as mentioned above, in our case, we have selected an FPGA as DP). It is difficult to experimentally measure the power consumption of the FPGA since it is included in a PCB with other components. However, the manufacturer's programming tool provides an estimate of 0.179 mW. This power consumption comprises, in addition to the resources used for reading the capacitor (counters, arithmetic unit, and state machine), the resources used for the communication of the CMOD A7 board with a personal computer (RAM and serial communications port).

56On the other hand, as shown in the eighth column of Table III, only the DIC proposed in [35] needs one less element (one resistor) than the new DIC. Nevertheless, in [35], performing the most demanding arithmetic operations on the DP is necessary. Furthermore, the arithmetic operations in the new DIC are amounting the simplest. Regarding the hardware resources needed on the DP (penultimate column of Table III), this proposal only needs one timer and uses only three pins.

57Finally, it must be considered that the C X range is practically 45 dB larger in the new proposal than any other range of the rest of the proposals (third column of Table III).

V. CONCLUSION

58Many different circuits can be used to read a capacitive sensor, of which so-called DICs stand out for their simplicity. These designs can perform capacitance-to-time-to-digital conversion with just a few passive components and a DP without the need for ADCs. The DP is responsible, first, for controlling the charging and discharging processes of the capacitive sensor as necessary to establish its capacitance, C X , and, second, for measuring the duration of these processes. The time measurements, quantified in DP clock cycles, produce an estimate of C X . However, many capacitive DICs proposed in the literature require different calibration capacitors and/or several charging and discharging cycles to perform the estimation, with the consequent increase in acquisition time and power consumption. Furthermore, the arithmetic operations required to obtain the estimates are often complex, increasing the time and the resources used by the DP.

59This article proposes a new DIC for reading capacitive sensors that aim to overcome these drawbacks. The circuit is very simple, as it only requires two additional resistors apart from the DP, without any calibration capacitors. This decreases the cost and size of the DIC. Furthermore, selection criteria have been established for these resistors to ensure the correct operation of the circuit and minimize errors. The new DIC proposal requires only a single charging and discharging cycle to obtain the two time measurements used in the calculations to find C X , thus reducing the time and energy consumption needed to estimate C X . The estimate is obtained by a linear transformation of the subtraction of these measurements, using two constants stored in the DP. Consequently, the operations performed on the DP and the memory requirements are minimal.

60The circuit has been tested using a state-of-the-art FPGA as the DP. The results show that the circuit works correctly for a vast range of capacitance values, 100 pF-561 nF (75 dB). Relative errors in the estimates present a maximum of 1.01% and an average over the entire range of 0.41%, with relatively stable values. Linearity errors are below 0.3% at the top of the range, but for most of the range, they are below 0.03%. SNR is also relatively stable, varying between 64 and 71 dB.

참고문헌 36건

  1. Wireless liquid level sensing for restaurant applications 2003 10.1109/icsens.2002.1037191
  2. A water-level sensor using a capacitance to frequency converter Journal of Physics E Scientific Instruments · IOP Publishing · 1983 10.1088/0022-3735/16/9/003
  3. An interface circuit design based On differential capacitive sensors for accurate measurement of water contents in crude oil 2012 10.1109/iccircuitsandsystems.2012.6408315
  4. 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
  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. Performance study of a ‘constant phase angle based’ impedance sensor to detect milk adulteration Sensors and Actuators A Physical · Elsevier BV · 2011 10.1016/j.sna.2011.02.041
  9. Time-constant-based CMOS readout circuit for DNA detection Electronics Letters · Institution of Engineering and Technology · 2008 10.1049/el:20082875
  10. 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
  11. Accuracy and resolution of direct resistive sensor-to-microcontroller interfaces Sensors and Actuators A Physical · Elsevier BV · 2005 10.1016/j.sna.2005.01.010
  12. An energy efficient inverter based readout circuit for capacitive sensor 2022 IEEE Biomedical Circuits and Systems Conference (BioCAS) · 2013 10.1109/biocas.2013.6679705
  13. A new capacitive sensor for displacement measurement in a surface-force apparatus Measurement Science and Technology · IOP Publishing · 2000 10.1088/0957-0233/12/1/302
  14. 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
  15. A novel interface circuit for grounded capacitive sensors with feedforward-based active shielding Measurement Science and Technology · IOP Publishing · 2008 10.1088/0957-0233/19/2/025202
  16. Limitations of a relaxation oscillator in capacitance measurements IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2000 10.1109/19.872917
  17. Precision readout circuits for capacitive microaccelerometers 2006 10.1109/icsens.2004.1426091
  18. A low-cost microcontroller interface for low-value capacitive sensors 2004 10.1109/imtc.2004.1351425
  19. Direct interface for capacitive sensors based on the charge transfer method Conference proceedings - IEEE Instrumentation/Measurement Technology Conference · Institute of Electrical and Electronics Engineers · 2007 10.1109/imtc.2007.379227
  20. Calibration‐less direct capacitor‐to‐microcontroller interface Electronics Letters · Institution of Engineering and Technology · 2016 10.1049/el.2015.3706
  21. An Oscillator-Based Active Bridge Circuit for Interfacing Capacitive Sensors With Microcontroller Compatibility IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2016 10.1109/tim.2016.2581519
  22. Ultra‐Low Energy Wireless Sensor Networks in Practice 2007 10.1002/9780470516805
  23. The role of fractional calculus in modeling biological phenomena: A review Communications in Nonlinear Science and Numerical Simulation · Elsevier BV · 2017 10.1016/j.cnsns.2017.04.001
  24. A Robust Switched-Capacitor CDC IEEE Sensors Journal · IEEE Sensors Council · 2018 10.1109/jsen.2018.2842112
  25. A Precision, Energy-Efficient, Oversampling, Noise-Shaping Differential SAR Capacitance-to-Digital Converter IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2018 10.1109/tim.2018.2844899
  26. Organic Thin‐Film Capacitive and Resistive Humidity Sensors: A Focus Review Advanced Materials Interfaces · Wiley · 2018 10.1002/admi.201800969
  27. Dew Point Measurement Using a Carbon-Based Capacitive Sensor with Active Temperature Control ACS Applied Materials & Interfaces · American Chemical Society · 2018 10.1021/acsami.8b18538
  28. An enhanced method for measuring capacitance based on the direct interface circuit 2019 10.23919/chicc.2019.8865396
  29. 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
  30. Viability and resolution of sensing hemolysis with a capacitive sensor Revista Médica Del Hospital General De México · Elsevier BV · 2020 10.24875/hgmx.m20000035
  31. Fringing Field Capacitive Smart Sensor Based on PCB Technology for Measuring Water Content in Paper Pulp Journal of Sensors · Hindawi Publishing Corporation · 2020 10.1155/2020/3905804
  32. A Closed-Loop Capacitance-to-Frequency Converter for Single-Element and Differential Capacitive Sensors IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.2999737
  33. An Auto-Balancing Capacitance-to-Pulse-Width Converter for Capacitive Sensors IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.3014206
  34. Two-Capacitor Direct Interface Circuit for Resistive Sensor Measurements Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21041524
  35. A Smart Textile System to Detect Urine Leakage IEEE Sensors Journal · IEEE Sensors Council · 2021 10.1109/jsen.2021.3080824
  36. Design, Development and Testing of a Semicircular Type Capacitive Angular Position Sensor SHILAP Revista de lepidopterología · 2011