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

Two-Capacitor Direct Interface Circuit for Resistive Sensor Measurements

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

기본 정보

저자
  1. José A. Hidalgo-López — Departamento de Electrónica, Universidad de Málaga, Andalucía Tech, Campus de Teatinos, 29071 Málaga, Spain
  2. Óscar Oballe-Peinado — Departamento de Electrónica, Universidad de Málaga, Andalucía Tech, Campus de Teatinos, 29071 Málaga, Spain|||Instituto de Investigación Biomédica de Málaga (IBIMA), 29010 Málaga, Spain
  3. Julián Castellanos-Ramos — Departamento de Electrónica, Universidad de Málaga, Andalucía Tech, Campus de Teatinos, 29071 Málaga, Spain|||Instituto de Investigación Biomédica de Málaga (IBIMA), 29010 Málaga, Spain
  4. José A. Sánchez-Durán — Departamento de Electrónica, Universidad de Málaga, Andalucía Tech, Campus de Teatinos, 29071 Málaga, Spain|||Instituto de Investigación Biomédica de Málaga (IBIMA), 29010 Málaga, Spain
DOI
10.3390/s21041524
저널
Sensors
발행년도
2021
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
12
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s21041524
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W3132805103

평가 내용

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

초록

Direct interface circuits (DICs) avoid the need for signal conditioning circuits and analog-to-digital converters (ADCs) to obtain digital measurements of resistive sensors using only a few passive elements. However, such simple hardware can lead to quantization errors when measuring small resistance values as well as high measurement times and uncertainties for high resistances. Different solutions to some of these problems have been presented in the literature over recent years, although the increased uncertainty in measurements at higher resistance values is a problem that has remained unaddressed. This article presents an economical hardware solution that only requires an extra capacitor to reduce this problem. The circuit is implemented with a field-programmable gate array (FPGA) as a programmable digital device. The new proposal significantly reduces the uncertainty in the time measurements. As a result, the high resistance errors decreased by up to 90%. The circuit requires three capacitor discharge cycles, as is needed in a classic DIC. Therefore, the time to estimate resistance increases slightly, between 2.7% and 4.6%.

본문 49,602자

본문 펼치기
Introduction The study and development of sensors is currently one of the most important research areas in electronics [1]. These devices capture variations in physical quantities and use appropriate electronic circuits to convert these variations into electrical signals that can subsequently be processed. An efficient way to extract the information provided by these electrical signals is by using programmable digital devices (PDDs) [2] directly connected to the sensors through a few additional elements. Different PDDs, such as complex programmable logic devices (CPLDs) [3], FPGAs [4] and microcontrollers [5,6], can be used to pre-process this information in line with the needs of the application in which the sensor is used. These are known as smart sensors [7,8]. Introduction Signal conditioning circuits and Analog-to-Digital Converters (ADCs) are typically used as part of the interface between the sensor and the PDD [9,10], although it is also possible to use simpler and less-expensive alternatives known as Direct Interface Circuits (DICs). These circuits allow the sensors to be connected to the PDDs using just a few passive components (resistors or capacitors), and in some cases, simple active components such as transistors or triggers [11]. The absence of signal conditioning circuits and ADCs makes DICs highly suitable for use along with any low-cost PDDs. However, PDDs with ADCs could use them for other purposes. Introduction The first DICs were presented simultaneously in References [12] and [13]. These seminal works have been used to develop designs for different types of sensors, including purely resistive [11,[14][15][16], capacitively-coupled resistive sensors [17], capacitive [18][19][20], inductive [21][22][23], and even for some that support the connection of sensors of any of The method for analytically determining the sensor's resistance value using the circuit in Figure 1, known as the Two-Point Calibration Method (TPCM), is simple and requires few calculation resources in the PDD. The four pins of the PDD in Figure 1 can be dynamically configured as outputs or inputs to use the TPCM. When configured as inputs, the PDD nodes remain in a high impedance state (HZ), from the circuit resistors' point of view, thus preventing current from circulating through them. The whole measurement process is shown in Figure 2, and it consists of three capacitor charges made by placing logic 1 outputs in the Pp, Pc1, Pc2, and Px pins. Introduction This situation has been labeled as the "Charging State" in Figure 2. The Rp resistor in Figure 1 is added to improve the rejection of the power supply/noise interference [27], and its value should be minimal in order to speed up the charging processes. With Rp, the time measurements from the start of the discharge until Vo(t) = VTH (from now on, named as detection time) will be more independent of these noises. The capacitor is discharged through the different circuit resistors after each charging state by configuring the appropriate pin (Px, Pc1, or Pc2) as a logic 0 output. This procedure allows three times to be generated, corresponding to the discharge through each resistor, Tx, Tc1, and Tc2 in Figure 1. For each capacitor discharge, Vo(t) could change between the voltage for a logic 1, VDD, and the voltage for a logic 0, 0 V. Then The discharging states end when a reference voltage, V TH (the threshold voltage), is reached in the Pp pin in Figure 1, meaning the PDD detects a logic 0 in this pin. The Pp pin is configured as an input throughout the discharging state. Before these discharges, the capacitor is charged at the supply voltage, V DD , by the PDD, through Pp, Pc1, Pc2, and Px configured as a logic 1 output. As will be demonstrated below, operating with the times measured in the different discharges allows the sensor's resistance value to be deduced. As the digital information generated by these circuits involves time measurements, the DICs actually perform a magnitude-time-digital conversion with minimal hardware, making them economical, easy to integrate, and with similar performance to using an ADC [10,26]. Introduction The method for analytically determining the sensor's resistance value using the circuit in Figure 1, known as the Two-Point Calibration Method (TPCM), is simple and requires few calculation resources in the PDD. The four pins of the PDD in Figure 1 can be dynamically configured as outputs or inputs to use the TPCM. When configured as inputs, the PDD nodes remain in a high impedance state (HZ), from the circuit resistors' point of view, thus preventing current from circulating through them. The whole measurement process is shown in Figure 2, and it consists of three capacitor charges made by placing logic 1 outputs in the Pp, Pc1, Pc2, and Px pins. Introduction This situation has been labeled as the "Charging State" in Figure 2. The Rp resistor in Figure 1 is added to improve the rejection of the power supply/noise interference [27], and its value should be minimal in order to speed up the charging processes. With Rp, the time measurements from the start of the discharge until Vo(t) = V TH (from now on, named as detection time) will be more independent of these noises. The capacitor is discharged through the different circuit resistors after each charging state by configuring the appropriate pin (Px, Pc1, or Pc2) as a logic 0 output. This procedure allows three times to be generated, corresponding to the discharge through each resistor, T x , T c1, and T c2 in Figure 1. For each capacitor discharge, Vo(t) could change between the voltage for a logic 1, V DD , and the voltage for a logic 0, 0 V. Then where Ro is the output resistor of the buffers of the PDD when configured as a logic 0 (Ro is considered a constant parameter in a first order approximation), and R is any resistor through which discharge is taking place. Thus, each of these three times has the form Introduction From this expression, we can find Rx as Introduction In order for Equation (3) to improve the estimate of Rx, the values of Rc1 and Rc2 must be carefully selected to correct the errors that come from the fact that Equation (2) is an approximation to the true discharging time (a PDD output buffer is modeled as a constant value resistor). If the error term for T has a value proportional to R 2 in the right-hand side of Equation (2), then (by the criteria set out in Reference [28]) Rc1 and Rc2 would be at 15% and 85% of the full-scale span of the resistances to be measured. This may not actually be the case in Equation (2), but regardless, this selection produces a suitable error profile, and for this reason, is commonly used in the literature. Introduction where Ro is the output resistor of the buffers of the PDD when configured as a logic 0 (Ro is considered a constant parameter in a first order approximation), and R is any resistor through which discharge is taking place. Thus, each of these three times has the form Introduction From this expression, we can find Rx as Introduction In order for Equation (3) to improve the estimate of Rx, the values of Rc1 and Rc2 must be carefully selected to correct the errors that come from the fact that Equation (2) is an approximation to the true discharging time (a PDD output buffer is modeled as a constant value resistor). If the error term for T has a value proportional to R 2 in the right-hand side of Equation (2), then (by the criteria set out in Reference [28]) Rc1 and Rc2 would be at 15% and 85% of the full-scale span of the resistances to be measured. This may not actually be the case in Equation (2), but regardless, this selection produces a suitable error profile, and for this reason, is commonly used in the literature. Depending on the application of the sensor, in certain cases, the DIC in Figure 1 or the stages shown in Figure 2 must be modified. For example, the discharge time through Rx is short when measuring low resistance sensors, and there may be a significant error in determining its value because of the quantization in the clock cycles of the PDD. This can be solved by finishing the discharging states through a higher value resistor (any of the calibration resistors can be used for this purpose), as proposed in Reference [29], or by modifying the charging and discharging cycles [30]. The non-linearity of the resistors of the PDD buffers may also affect the estimates. In this case, the solution described in the literature is to use a calibration resistor in addition to those shown in Figure 1 [31]. In contrast, one of the problems for high resistance values is an excessive discharge time. This time can be reduced by making part of the discharge through a resistor that is smaller than Rx [32]. It is even possible to shorten the charging times (meaning the voltage stored in C at the end of each charging state may be different since the starting voltage in the Depending on the application of the sensor, in certain cases, the DIC in Figure 1 or the stages shown in Figure 2 must be modified. For example, the discharge time through Rx is short when measuring low resistance sensors, and there may be a significant error in determining its value because of the quantization in the clock cycles of the PDD. This can be solved by finishing the discharging states through a higher value resistor (any of the calibration resistors can be used for this purpose), as proposed in Reference [29], or by modifying the charging and discharging cycles [30]. The non-linearity of the resistors of the PDD buffers may also affect the estimates. In this case, the solution described in the literature is to use a calibration resistor in addition to those shown in Figure 1 [31]. In contrast, one of the problems for high resistance values is an excessive discharge time. This time can be reduced by making part of the discharge through a resistor that is smaller than Rx [32]. It is even possible to shorten the charging times (meaning the voltage stored in C at the end of each charging state may be different since the starting voltage in the charge is different) by proceeding, as set out in Reference [33]. In the case of remote resistive sensors, including several switches makes it possible to eliminate the influence of wire resistance in the measurements [14]. Introduction Uncertainty in the different time measurements is an important parameter when establishing the quality of the Rx estimate using the circuit in Figure 1. This uncertainty is mainly due to the electrical circuit noise that affects both the detection time and the voltage value actually stored in C at the end of each charging state. Noises are produced mostly by the switching activities of the PDD. However, they can also be due to the operation of other circuits that can be used together in the same electronic design. As commented above, including Rp, helps reduce the noise in the charging process of C. Thus, the main cause of uncertainty in the time measurements T x , T c1, and T c2 is the noise that affects the detection time. Introduction Despite the importance of this parameter in the quality of measurements, no contributions have been reported to reduce this uncertainty. In fact, this uncertainty is the main cause of the maximum absolute errors that occur in a DIC [2]. This paper presents a modification of the circuit in Figure 1 that addresses this issue. The modification is simple and consists of adding a second capacitor to the circuit of Figure 1. Thus, the new design practically does not modify either the total time needed to estimate Rx or the circuit's power consumption. Introduction The structure of the paper is as follows. In Section 2, we present the operating principles of the proposed new DIC and includes a quantitative analysis of its operation. In Section 3, we show the Materials and Methods used when evaluating the new DIC, while in Section 4, we present the experimental results. Finally, the conclusions of this paper are presented in Section 5. Operating Principle If we define the uncertainty of measurement of a discharging time as the standard deviation that appears in multiple measurements, then the uncertainty in determining the detection time in a DIC, u(T), is proportional to the value of the electrical noise present in the detection node and inversely proportional to the slope of the discharging curve in the detection time [2]: Operating Principle where k is a constant related to the noise level in the circuit. Taking into account Equation (1), we can write: Operating Principle Therefore, once a value has been chosen for C, uncertainty in the discharge time measurement through a resistor increases as the resistance value increases. Similarly, as shown in Equation (3), Rx has a linear dependence on T x , meaning that the uncertainty in estimating Rx in a DIC, u(Rx) DIC , also increases with the value of Rx due to the law of propagation of uncertainty (except for low values of resistances where uncertainties due to quantization are important). Operating Principle Equation (5) only shows two ways of decreasing u(T): the reduction of k and/or C. However, in a real circuit, there will always be a minimum noise level that cannot be reduced, even with a careful design. As for C, a decrease in the capacitance may cause significant quantification errors when estimating lower resistance values, meaning that this option may have to be ruled out. Operating Principle This article proposes an alternative way to reduce u(Rx). The basic idea is to modify the classic DIC in Figure 1 by replacing the single capacitor with a set of two capacitors, C A and C B , placed in series, as shown in Figure 3. This new circuit will be known as the two-capacitor DIC (TCDIC). With this modification, the TCDIC has two nodes (A and B) in which the voltages, Vo A and Vo B , can reach the value V TH at different moments of the same discharge cycle. These moments will be detected by pins P A and P B . The circuit works properly if the values of C A and C B meet certain conditions for their capacities, as well as requiring a correct voltage at the end of every charging stage. CA and CB, placed in series, as shown in Figure 3. This new circuit will be known as the two-capacitor DIC (TCDIC). With this modification, the TCDIC has two nodes (A and B) in which the voltages, VoA and VoB, can reach the value VTH at different moments of the same discharge cycle. These moments will be detected by pins PA and PB. The circuit works properly if the values of CA and CB meet certain conditions for their capacities, as well as requiring a correct voltage at the end of every charging stage. The TCDIC in Figure 3 consists of the same number of charging and discharging stages, as shown in Figure 2 for the classic DIC based on TPCM. The only difference is that two nodes now have to be charged and discharged. In the charging state of TCDIC, the PA and PB pins are configurated as logic 1 outputs, placing the voltage VDD in A and B. This actually performs the full discharge of CA and a charge of CB; however, for clarity, we will continue to call this time interval the charging state. These will be the initial conditions for the discharging states. The other resistors help to establish the voltage VDD in node A during the charging state, configuring pins Px, Pc1, and Pc2 as logic 1 outputs. Operating Principle In the TCDIC discharging states, the PA and PB pins are configured as inputs (HZ), while Px, Pc1, and Pc2 are configured in the three different discharges, as in the DIC of Figure 1. This procedure produces six detection times (two in each discharging state) and their six associated time measurements, TxA, TxB, Tc1A, Tc1B, Tc2A, and Tc2B, which allow Rx to be estimated (the letters A or B indicate the node the time is measured in). The steps to obtain these measurements with the initial conditions mentioned are shown in Figure 4, which also indicates the pin configuration of the PDD in each state. As will be shown below, these six time measurements and the values of Rc1 and Rc2 can be used to estimate the value of Rx in a relatively similar way as to Equation (3). Operating Principle Pc1 Pc2 PA PB Figure 3. The two-capacitor direct interface circuit (TCDIC) proposed in this article. The circuit uses two capacitors, C A and C B , replacing C in Figure 1. The pins, P A and P B , measure the times needed to estimate Rx. Operating Principle The TCDIC in Figure 3 consists of the same number of charging and discharging stages, as shown in Figure 2 for the classic DIC based on TPCM. The only difference is that two nodes now have to be charged and discharged. In the charging state of TCDIC, the P A and P B pins are configurated as logic 1 outputs, placing the voltage V DD in A and B. This actually performs the full discharge of C A and a charge of C B ; however, for clarity, we will continue to call this time interval the charging state. These will be the initial conditions for the discharging states. The other resistors help to establish the voltage V DD in node A during the charging state, configuring pins Px, Pc1, and Pc2 as logic 1 outputs. Operating Principle In the TCDIC discharging states, the P A and P B pins are configured as inputs (HZ), while Px, Pc1, and Pc2 are configured in the three different discharges, as in the DIC of Figure 1. This procedure produces six detection times (two in each discharging state) and their six associated time measurements, T xA , T xB , T c1A , T c1B , T c2A , and T c2B , which allow Rx to be estimated (the letters A or B indicate the node the time is measured in). The steps to obtain these measurements with the initial conditions mentioned are shown in Figure 4, which also indicates the pin configuration of the PDD in each state. As will be shown below, these six time measurements and the values of Rc1 and Rc2 can be used to estimate the value of Rx in a relatively similar way as to Equation (3). Steps necessary for the operation of the TCDIC shown in Figure 3. The time is measured in node A and another time is measured in node B in each discharge stage. Thus, we have TxA, TxB, Tc1A, Tc1B, Tc2A, and Tc2B, which will then be used to estimate Rx. Obtaining Rx using the TCDIC With ΔVCA(t) and ΔVCB(t) representing the difference in the electrical potential between the terminals of the capacitors CA and CB at each time instant, as shown in Figure 3, we can establish a system of two first-order differential equations when the discharge is initiated through any resistor, R, thus equalizing the current through the resistor, iR, with those that extract charge from CA and CB, iCA and iCB, Figure 3. The time is measured in node A and another time is measured in node B in each discharge stage. Thus, we have T xA , T xB , T c1A , T c1B , T c2A , and T c2B , which will then be used to estimate Rx. Obtaining Rx Using the TCDIC With ∆V CA (t) and ∆V CB (t) representing the difference in the electrical potential between the terminals of the capacitors C A and C B at each time instant, as shown in Figure 3, we can establish a system of two first-order differential equations when the discharge is initiated through any resistor, R, thus equalizing the current through the resistor, i R , with those that extract charge from C A and C B , i CA and i CB , Obtaining Rx Using the TCDIC For convenience, the solutions for this system of equations are written in the form: Obtaining Rx Using the TCDIC where K 1 , K 2 , and K 3 are constants that depend on the difference in electrical potential between the capacitor terminals, both at the start of the discharge stage, ∆V CA (0) and ∆V CB (0), and also at the end if extended indefinitely, ∆V CA (t→∞) + ∆V CB (t→∞) = 0. Ceq is the equivalent capacitance of the two capacitors connected in series, Ceq = C A ||C B . With these initial conditions, two equations in Equation (7) can be written as: Obtaining Rx Using the TCDIC These expressions allow for finding the voltages in nodes A and B during the discharging states, Vo A (t) and Vo B (t). Obtaining Rx Using the TCDIC As indicated in the previous section, establishing ∆V CA (0) = 0 and ∆V CB (0) = V DD during the Charging State will mean that these equations are transformed into: Obtaining Rx Using the TCDIC The detection times in nodes A, T A , and B, T B , therefore, occur in: Obtaining Rx Using the TCDIC with V THA and V THB as the threshold voltages in node A and B, respectively. Replacing R with Rx, Rc1, and Rc2 in Equation (11) gives us the six detection times to estimate Rx using the TCDIC through the following expression: Obtaining Rx Using the TCDIC It is important to note that this expression is valid, even though V THA and V THB are different. However, in practice, this difference is small, and so we can take V TH = V THA ≈ V THB . It is easy to check, in Equation (11), that T B > T A (this is the situation shown in Figure 4). Next, we will demonstrate that, if the time constants for discharge through the same resistor in the DIC and TCDIC are equal, then: Obtaining Rx Using the TCDIC (a) Uncertainty in the estimate of Rx using a TCDIC and Equation (12), u(Rx) TCDIC , may be lower than the uncertainty of the estimate of Rx using a DIC and Equation (3), For the DIC and TCDIC to have the same time constant discharging through the same resistance, it is necessary that Ceq = C. If this is verified, from Equation (2) and Equation (11): Obtaining Rx Using the TCDIC where α is: Obtaining Rx Using the TCDIC As shown in Equation (14), the designer can, by selecting the C A /C B ratio, change α (the PDD used in the circuit sets the values of V DD and V TH ). As the numerator argument is greater than the denominator argument, α is a positive number greater than one. Obtaining Rx Using the TCDIC As for the uncertainties, u(T A ) and u(T B ) can be written using Equation (4) and Equation (10). Obtaining Rx Using the TCDIC To avoid that the denominator in the second equation is 0, it is necessary that: Obtaining Rx Using the TCDIC This is not a very demanding condition since, in practice, it is sufficient that C A is slightly higher than C B . Thus, from Equation (5) and Equation (15): Obtaining Rx Using the TCDIC with β determined by: Obtaining Rx Using the TCDIC Functions α and β are used in Theorem 1 of Appendix A to show the relationship between u(Rx) DIC and u(Rx) TCDIC , Equations (A1) and (A2). If C A /C B verifies the condition in Equation (16), then the function θ, defined in Appendix A, is a positive real-valued function and is a decreasing function for C A /C B . Therefore, there is a minimum value of C A /C B from which θ < 1, and thus, also u(Rx) TCDIC < u(Rx) DIC . Determining this value in practice is a difficult task since θ also depends on V TH and V DD (values that the designer may not know). It is not possible to solve Equation (A2) for C A /C B in a closed form. However, it is more useful to know that the minimum value of θ, θ min , is given by: Therefore, we can consider C A >> C B as the criterion for optimal design in the TCDIC, and if this condition is met: Obtaining Rx Using the TCDIC To prove statement (b), it is sufficient to check that, if C A >> C B , then α → 1, and Equation (13) shows that the time measurements T, T A , and T B are very similar (although, clearly, T B will always be slightly higher than T A ). Obtaining Rx Using the TCDIC The result of Equation (21) is limited by the approximations used in Equations (2) and (11). Equation (21) will also have practical effects for resistances where the quantization uncertainty has little influence (typically medium and high resistances). However, it is precisely for high resistances where, when using a DIC, the uncertainty in the estimate of Rx is higher [2]. Therefore, the TCDIC improves the estimate precisely where this improvement is most needed. Power Consumption of the TCDIC Energy consumption in the TCDIC is very similar to that found for the DIC in Figure 1. Power Consumption of the TCDIC To demonstrate this, we assumed that the discharges in the capacitors are completed in both Figures 2 and 4, meaning that Vo = 0 V and Vo A = 0 V at the start of the charging states. In the case of the DIC in Figure 1, the power to be supplied to charge the capacitor, E DIC , is: Power Consumption of the TCDIC In TCDIC, the power supplied to charge C B , E TCDIC (C B ), is: Power Consumption of the TCDIC where the second term of the member on the right of Equation (22) is due to the fact that, when Vo A = 0, Vo B has a different value, which can be found via t→∞ in Equation (10). For this same reason, the energy supplied to C A during the charging state, E TCDIC (C A ), is: Power Consumption of the TCDIC Adding the results of Equation (22) and Equation (23), the energy supplied in the TCDIC charging state, E TCDIC , can be found through some simple algebraic operations. Power Consumption of the TCDIC If the criterion for the optimal design is followed, then the result in Equation (24) is similar to that found in Equation (21), meaning that E DIC ≈ E TCDIC . Power Consumption of the TCDIC For all the above, the only true drawback of the TCDIC in Figure 3 compared to the DIC in Figure 1 is an increase in the hardware complexity, as it is necessary to add a second capacitor and use an additional PDD pin. However, the internal design in the PDD does not show any significant variation between the two circuits since, as in the case of the DIC, the TCDIC only requires a single counter to generate the six time measurements used in Equation (12). In contrast, Equation (12) is clearly more complex than Equation (3), even though it only involves two further additions and subtractions. There is also, obviously, the cost of storing six variables instead of the three used in the DIC. Power Consumption of the TCDIC Finally, the two capacitors in the TCDIC could also be used in a classic DIC based on the three-signal auto-calibration technique [34]. Similarly, the TCDIC may be compatible with other circuits designed to obtain different improvements in the characteristics of a resistive DIC, such as those shown in References [14,29,[31][32][33], meaning that these circuits could also have benefits provided by the TCDIC. Materials and Methods To evaluate the performance of the TCDIC, a prototype of the circuit in Figure 3 was designed using a Spartan 6 FPGA (XC6SLX25-3FTG256) [35] from Xilinx (San Jose, CA, USA) running at 50 MHz as a PDD. The crystal clock oscillator used was the ASFL1 from Abracon Corporation (Spicewood, USA) with a frequency stability of ± 30 ppm with a 1 ps phase jitter RMS. Therefore, the uncertainty in the measurement of time caused by the clock oscillator is practically negligible. Any small change in the clock frequency will be offset by the calibration method. Materials and Methods The FPGA was programmed in VHDL to perform the functions of the TCDIC's PDD. This FPGA requires two different supply voltages; thus, a TPS79633 voltage regulator from Texas Instruments (Dallas, USA) was used for the 3.3 V supply voltage of the input/output blocks. This is the V DD voltage used in the description of TCDIC operation, meaning that the V TH is approximately 1.36 V. The FPGA core operates on a lower supply voltage of 1.2 V generated by a Texas Instrument TPS79912 voltage regulator to reduce the overall power consumption. Materials and Methods The maximum current an output buffer of the FPGA can sink to maintain the digital signal integrity of the outputs is 24 mA. The prototype was manufactured with a FR-4 fiberglass reinforced epoxy-laminated substrate with four layers of conductive pathways. The internal layers were used for supply planes, and the external layers were used for the remaining signals. Materials and Methods In all cases, polypropylene film capacitors were used to compare the performance of the circuits in Figures 1 and 3. A capacitor with a nominal value of 47 nF was selected for the circuit in Figure 1. This value of C was chosen so that the discharge times would not be excessively long and can be determined with a 14-bit counter, while also providing sufficient measurement accuracy. The same 47 nF capacitor was used for C B in Figure 3, while two different values were used for C A (560 and 820 nF) to compare the effects of the ratio C A /C B on the TCDIC performance. Materials and Methods To understand the values selected for C A , it is necessary to observe the values of function θ in our setup (V DD = 3.3 V, V TH = 1.36 V, and C B = 47 nF), as shown in Table 1. From Equation (16), the minimum possible value for C A is 67 nF, and from this value there is a rapid drop in the values of θ, so that, for C A > 400 nF, θ is very close to its minimum value (in our setup θ = 1 for C A =141.3 nF). Thus, the choice of 560 nF and 820 nF for C A allows values of θ very close to its lower limit, and at the same time, the analysis of the performance of the circuit for different values of C A . Materials and Methods A total of three series of tests were carried out: one for the DIC and two for the TCDIC. A set of 21 resistors ranging from 128 to 7400 Ω were used in each series (the maximum discharge time for these resistors was 349.9 µs). This range coincides with that of a resistive tactile sensor used by the authors. It was manufactured with a sheet of piezoresistive material by the company CIDETEC (San Sebastián, Spain) [36]. Materials and Methods Two calibration resistors were used for all tests, at approximately 15% and 85% of the full resistance range, Rc1 = 1100 Ω and Rc2 = 4600 Ω. All the resistors were measured using an Agilent 34401A digital multimeter. A total of 500 measurement cycles were performed for each of the 21 resistors. These measurements were used to evaluate the errors and uncertainties for each of the two possible capacitor combinations. Materials and Methods To improve detection of the trigger event in P A and P B , the circuits proposed in Reference [37] were implemented in the FPGA for both pins. These modules avoid the need to use Schmitt triggers or similar circuitry if there are fluctuations in the buffer voltage around V TH . Experimental Results Next, we show and discuss the results of three series of tests carried out with the set up indicated in the previous section. Experimental Results As a consequence of the C A and C B values selected, the capacitance of the equivalent discharge capacitor in node A, Ceq, is slightly lower than 47 nF, since C B was chosen with this capacitance in all cases. However, as C A >> C B , Ceq is very close to C (Ceq = 43.36 nF for C A = 560 nF and Ceq = 44.45 nF for C B = 820 nF). Thus, uncertainty in the measurement of times in the Pp pins of the DIC and P A of the TCDIC should be very similar for the same resistors in the three series of tests. Experimental Results As the criterion for the optimal design is met, Equation (15) indicates that these uncertainties must also be very similar to those obtained through the TCDIC pin P B . This can be seen in Figure 5, which shows the uncertainty curves (expressed in ns) when measuring the discharging times through each of the series resistors, and for the three sets of tests carried out. The curve labeled "DIC 47 nF" shows uncertainty in the discharge time measurement in the DIC in Figure 1, while the rest of the curves show the uncertainties of the time measurements for the different TCDIC configurations. Experimental Results Sensors 2021, 21, x FOR PEER REVIEW 11 of 17 this capacitance in all cases. However, as CA >> CB, Ceq is very close to C (Ceq = 43.36 nF for CA = 560 nF and Ceq = 44.45 nF for CB = 820 nF). Thus, uncertainty in the measurement of times in the Pp pins of the DIC and PA of the TCDIC should be very similar for the same resistors in the three series of tests. As the criterion for the optimal design is met, Equation (15) indicates that these uncertainties must also be very similar to those obtained through the TCDIC pin PB. This can be seen in Figure 5, which shows the uncertainty curves (expressed in ns) when measuring the discharging times through each of the series resistors, and for the three sets of tests carried out. The curve labeled "DIC 47 nF" shows uncertainty in the discharge time measurement in the DIC in Figure 1, while the rest of the curves show the uncertainties of the time measurements for the different TCDIC configurations. Experimental Results The results of the uncertainties in both nodes A and B are shown for each of the configurations of the TCDIC. As can be seen in Figure 5, all uncertainties had very similar values and showed the typical profile of increasing with the value of the resistor to be measured [2]. In terms of the circuit operation, the results in Figure 5 first show a confirmation of the equality of the uncertainties for the measurements in the DIC and the TCDIC, as Equation (17) predicts whether CA >> CB is met; secondly, the results ensure that having two capacitors in the circuit together with two measurement pins does not deteriorate the quality of the measurements. Experimental Results As CA >> CB, in both configurations of TCDIC, α → 1 and following Equation (13), T, TA, and TB must be very similar. For example, for Rx = 3570 Ω, a resistance in the middle of the range, the mean of the 500 measurements in the DIC is Tx = 142.42 μs. For CA = 560 nF, the means in the TCDIC are TA = 132.83 μs and TB = 152.93 μs. For CA = 820 nF, the means are TA = 135.12 μs and TB = 147.4 μs. The small difference between T and TA is due to the fact that the Ceq is slightly different from C for both configurations. However, TB differs from TA because α is not exactly 1. The fact that TB is somewhat greater than T also implies that the time required to estimate Rx is slightly longer in the TCDIC compared with in the DIC. Finally, as predicted by Equations (13) and (14), an increase in CA (with a constant CB) implies a decrease in TB. In our case, all the arithmetic operations necessary to obtain Rx, from Equations (3) and (12), were performed in the FPGA during the charging and discharging states. Therefore, the time required to estimate Rx and transmit its value is only the sum of the three charging and discharging times (the ability of an FPGA to perform parallel computing The results of the uncertainties in both nodes A and B are shown for each of the configurations of the TCDIC. As can be seen in Figure 5, all uncertainties had very similar values and showed the typical profile of increasing with the value of the resistor to be measured [2]. In terms of the circuit operation, the results in Figure 5 first show a confirmation of the equality of the uncertainties for the measurements in the DIC and the TCDIC, as Equation (17) predicts whether C A >> C B is met; secondly, the results ensure that having two capacitors in the circuit together with two measurement pins does not deteriorate the quality of the measurements. Experimental Results As C A >> C B , in both configurations of TCDIC, α → 1 and following Equation (13), T, T A, and T B must be very similar. For example, for Rx = 3570 Ω, a resistance in the middle of the range, the mean of the 500 measurements in the DIC is T x = 142.42 µs. For C A = 560 nF, the means in the TCDIC are T A = 132.83 µs and T B = 152.93 µs. For C A = 820 nF, the means are T A = 135.12 µs and T B = 147.4 µs. The small difference between T and T A is due to the fact that the Ceq is slightly different from C for both configurations. However, T B differs from T A because α is not exactly 1. The fact that T B is somewhat greater than T also implies that the time required to estimate Rx is slightly longer in the TCDIC compared with in the DIC. Finally, as predicted by Equations (13) and (14), an increase in C A (with a constant C B ) implies a decrease in T B . Experimental Results In our case, all the arithmetic operations necessary to obtain Rx, from Equations (3) and (12), were performed in the FPGA during the charging and discharging states. Therefore, the time required to estimate Rx and transmit its value is only the sum of the three charging and discharging times (the ability of an FPGA to perform parallel computing avoids the need to stop the PDD operation during the charging and discharging states, such as in microprocessor or microcontroller implementations). As the charging time that was selected to guarantee a correct charging of the capacitors, in all cases, was 163.84 µs, the total times to estimate Rx = 3570 Ω, in the DIC, TT(Rx) DIC , and in the TCDIC, TT(Rx) TCDIC , are (with C A = 560 nF): Experimental Results The maximum values for these times, TT max,DIC and TT max,TCDIC , are for the highest resistance in the range. Thus, it has been obtained for the DIC TT max,DIC = 1003.4 µs, and for the TCDIC, with C A = 560 nF, TT max,TCDIC = 1051.8 µs. If C A = 820 nF, TT max,TCDIC is 1031.7 µs. With these results, in our setup, the TCDIC is 4.6% slower than the DIC, if C A = 560 nF, and 2.7%, if C A = 820 nF. With these times, the equivalent sampling frequency of Rx is approximately 1 kHz for TCDIC and DIC. Figure 5 confirms the equality in the time measurements uncertainty, and as the time measurements are very similar, we expected that u(Rx) TCDIC < u(Rx) DIC will be confirmed. This improvement can be seen in Figure 6. This figure shows the uncertainty obtained in estimating Rx (expressed in Ω) from the 500 estimates made for each of the three series of tests. The uncertainty curves of this figure more clearly illustrate the benefits of the TCDIC over the TPCM-based DIC. Experimental Results The maximum values for these times, TTmax,DIC and TTmax,TCDIC, are for the highest resistance in the range. Thus, it has been obtained for the DIC TTmax,DIC = 1003.4 μs, and for the TCDIC, with CA = 560 nF, TTmax,TCDIC = 1051.8 μs. If CA = 820 nF, TTmax,TCDIC is 1031.7 μs. With these results, in our setup, the TCDIC is 4.6% slower than the DIC, if CA = 560 nF, and 2.7%, if CA = 820 nF. With these times, the equivalent sampling frequency of Rx is approximately 1 kHz for TCDIC and DIC. Figure 5 confirms the equality in the time measurements uncertainty, and as the time measurements are very similar, we expected that u(Rx)TCDIC < u(Rx)DIC will be confirmed. This improvement can be seen in Figure 6. This figure shows the uncertainty obtained in estimating Rx (expressed in Ω) from the 500 estimates made for each of the three series of tests. The uncertainty curves of this figure more clearly illustrate the benefits of the TCDIC over the TPCM-based DIC. Experimental Results The shapes of the curves are very similar to those shown in Figure 5; however, here, the differences for each DIC are clearer, showing reductions in most cases. The black curve shows the u(Rx)DIC/ 2 function. This is the curve that one would expect to find in the TCDIC considering that CA >> CB and Ceq ≈ C (u(Rx)TCDIC ≈ u(Rx)DIC/ 2 ). For high resistance values, the results are in complete agreement with the theoretical predictions. The reduction in u(Rx)TCDIC must be reflected in a better estimate of Rx. This can be seen in Figure 7, which shows the Maximum Absolute Error in estimating Rx (in Ω), MAE(Rx), defined as: The shapes of the curves are very similar to those shown in Figure 5; however, here, the differences for each DIC are clearer, showing reductions in most cases. The black curve shows the u(Rx) DIC / √ 2 function. This is the curve that one would expect to find in the TCDIC considering that C A >> C B and Ceq ≈ C (u(Rx) TCDIC ≈ u(Rx) DIC / √ 2). For high resistance values, the results are in complete agreement with the theoretical predictions. Experimental Results . The reduction in u(Rx) TCDIC must be reflected in a better estimate of Rx. This can be seen in Figure 7, which shows the Maximum Absolute Error in estimating Rx (in Ω), MAE(Rx), defined as: (26) where i indicates the number of the estimate (MAE(Rx) is the "worst" case of the 500 measurements). As expected, Figure 7 shows that higher values of MAE(Rx) occur when estimating higher resistance values. For these resistances, MAE(Rx) is always greater using the DIC in Figure 1 than in any of the TCDIC configurations. The decrease in MAE(Rx) is due not only to the reduction in u(T x ), but also to the reductions in u(T c1 ) and u(T c2 ). Figure 7 also confirms that, for the lower resistances, the increasing quantization errors and errors due to approximations in Equations (2) and (11) make the situation more confusing. However, the errors in the DIC are greater than in the TCDIC in practically all cases. where i indicates the number of the estimate (MAE(Rx) is the "worst" case of the 500 measurements). As expected, Figure 7 shows that higher values of MAE(Rx) occur when estimating higher resistance values. For these resistances, MAE(Rx) is always greater using the DIC in Figure 1 than in any of the TCDIC configurations. The decrease in MAE(Rx) is due not only to the reduction in u(Tx), but also to the reductions in u(Tc1) and u(Tc2). Figure 7 also confirms that, for the lower resistances, the increasing quantization errors and errors due to approximations in Equations (2) and (11) make the situation more confusing. However, the errors in the DIC are greater than in the TCDIC in practically all cases. At first glance, Figure 7 also shows that there is not actually any significant difference between using one configuration with CA = 560 nF and another with CA = 820 nF. To confirm this, and as a figure of overall merit, Table 2 shows the sum of the MAE(Rx) of all resistors for each of the three curves in Figure 7. As this table shows, the sum of the errors is very similar for CA = 820 nF and CA = 560 nF, as might be expected when the two configurations have similar values of θ. Experimental Results However, Equation (24) shows that for CA = 560 nF and CB = 47 nF, the power consumption increased by 6.5%. For CA = 820 nF and CB = 47 nF, the increase was 4.8%. Therefore, there is a trade-off between TT(Rx)TCDIC and the power consumption; thus, the most suitable setting depends on the application. Finally, in Figure 8, we compare the systematic error in estimating Rx through the two interface circuits. This systematic error is defined as the difference between the average of the 500 estimates made for Rx in each test with the actual resistance value. Once again, we see similar behavior to that shown in Figure 6 and Figure 7: the TCDIC has a clearly lower systematic error than the DIC for high resistances. The reduction in these cases was higher than 80% for the configuration with CA = 560 nF and higher than 90% for At first glance, Figure 7 also shows that there is not actually any significant difference between using one configuration with C A = 560 nF and another with C A = 820 nF. To confirm this, and as a figure of overall merit, Table 2 shows the sum of the MAE(Rx) of all resistors for each of the three curves in Figure 7. As this table shows, the sum of the errors is very similar for C A = 820 nF and C A = 560 nF, as might be expected when the two configurations have similar values of θ. However, Equation (24) shows that for C A = 560 nF and C B = 47 nF, the power consumption increased by 6.5%. For C A = 820 nF and C B = 47 nF, the increase was 4.8%. Therefore, there is a trade-off between TT(Rx) TCDIC and the power consumption; thus, the most suitable setting depends on the application. Experimental Results Finally, in Figure 8, we compare the systematic error in estimating Rx through the two interface circuits. This systematic error is defined as the difference between the average of the 500 estimates made for Rx in each test with the actual resistance value. Once again, we see similar behavior to that shown in Figures 6 and 7: the TCDIC has a clearly lower systematic error than the DIC for high resistances. The reduction in these cases was higher than 80% for the configuration with C A = 560 nF and higher than 90% for C A = 820 nF. As expected, the systematic errors for TCDIC and DIC were very similar due to the quantization errors for low resistance measurements. Experimental Results Sensors 2021, 21, x FOR PEER REVIEW 14 of 17 CA = 820 nF. As expected, the systematic errors for TCDIC and DIC were very similar due to the quantization errors for low resistance measurements. Based on these results, TCDIC is a circuit that is particularly suitable for measuring medium-to-high resistances, as happens in tactile sensors when low pressures are applied. This situation is typical in grip tasks, and thus, in future works, we will include the TCDIC as a measurement circuit for this type of sensor. Conclusions Direct interface circuits (DICs) for the conversion of a sensor's resistance value to digital information provide a simple and low-cost solution that is valid for virtually any programmable digital device. The initial versions of DICs had speed problems when estimating high resistance values and quantization errors for low resistance values. However, these have been minimized through different contributions from the literature. A further limitation that had not been addressed previously is that the uncertainty when measuring the time necessary to estimate a resistance value in a DIC is proportional to this value. Conclusions The result is high uncertainty, and as a consequence, high error, whenever the resistance values are also high. This article proposes a simple solution for reducing the uncertainties, based on including a second capacitor and a measurement node. The solution presented, named the two-capacitor DIC (TCDIC), involves a slight increase in the DIC hardware, time, and power consumption required to estimate the resistance value. Six time measurements are needed instead of the three required by a two-point calibration method on a conventional DIC; however, the number of discharge stages does not increase from that used by the DIC. Conclusions As a consequence, there is no significant increase in the power consumption or time needed for an estimate. The proposed measurement method and architecture for the TCDIC can be incorporated in the solutions described in the literature for reducing the measurement times or errors due to the quantization effects. Finally, design rules were proposed to maximize the TCDIC performance. As a proof of concept, the TCDIC circuit was implemented using an FPGA. For the highest resistances in this circuit, the errors were reduced by over 80%-90%. In contrast, the time needed for an estimate increased by only 2.7% to 4.6%, and the power consumption increased by 4.8% to 6.5%. Based on these results, TCDIC is a circuit that is particularly suitable for measuring medium-to-high resistances, as happens in tactile sensors when low pressures are applied. This situation is typical in grip tasks, and thus, in future works, we will include the TCDIC as a measurement circuit for this type of sensor. Conclusions Direct interface circuits (DICs) for the conversion of a sensor's resistance value to digital information provide a simple and low-cost solution that is valid for virtually any programmable digital device. The initial versions of DICs had speed problems when estimating high resistance values and quantization errors for low resistance values. However, these have been minimized through different contributions from the literature. A further limitation that had not been addressed previously is that the uncertainty when measuring the time necessary to estimate a resistance value in a DIC is proportional to this value. Conclusions The result is high uncertainty, and as a consequence, high error, whenever the resistance values are also high. This article proposes a simple solution for reducing the uncertainties, based on including a second capacitor and a measurement node. The solution presented, named the two-capacitor DIC (TCDIC), involves a slight increase in the DIC hardware, time, and power consumption required to estimate the resistance value. Six time measurements are needed instead of the three required by a two-point calibration method on a conventional DIC; however, the number of discharge stages does not increase from that used by the DIC. Conclusions As a consequence, there is no significant increase in the power consumption or time needed for an estimate. The proposed measurement method and architecture for the TCDIC can be incorporated in the solutions described in the literature for reducing the measurement times or errors due to the quantization effects. Finally, design rules were proposed to maximize the TCDIC performance. As a proof of concept, the TCDIC circuit was implemented using an FPGA. For the highest resistances in this circuit, the errors were reduced by over 80%-90%. In contrast, the time needed for an estimate increased by only 2.7% to 4.6%, and the power consumption increased by 4.8% to 6.5%. Data Availability Statement: The processing codes and data segments can be obtained by contacting the corresponding author. Conflicts of Interest: The authors declare no conflict of interest. Conflicts of Interest: Appendix A Theorem 1. Uncertainties in a classic DIC, u(Rx) DIC , and in the TCDIC, u(Rx) TCDIC , are related by: Conflicts of Interest: where function θ is defined as Conflicts of Interest: Proof of Theorem 1. If we consider that u(Rx) DIC and u(Rx) TCDIC only depend on the time measurement uncertainties and that these uncertainties are uncorrelated (charging states ensure this), we can write, for u(Rx) DIC

섹션 본문 84문단 · 47,674자

Introduction

2The study and development of sensors is currently one of the most important research areas in electronics [1]. These devices capture variations in physical quantities and use appropriate electronic circuits to convert these variations into electrical signals that can subsequently be processed. An efficient way to extract the information provided by these electrical signals is by using programmable digital devices (PDDs) [2] directly connected to the sensors through a few additional elements. Different PDDs, such as complex programmable logic devices (CPLDs) [3], FPGAs [4] and microcontrollers [5,6], can be used to pre-process this information in line with the needs of the application in which the sensor is used. These are known as smart sensors [7,8].

3Signal conditioning circuits and Analog-to-Digital Converters (ADCs) are typically used as part of the interface between the sensor and the PDD [9,10], although it is also possible to use simpler and less-expensive alternatives known as Direct Interface Circuits (DICs). These circuits allow the sensors to be connected to the PDDs using just a few passive components (resistors or capacitors), and in some cases, simple active components such as transistors or triggers [11]. The absence of signal conditioning circuits and ADCs makes DICs highly suitable for use along with any low-cost PDDs. However, PDDs with ADCs could use them for other purposes.

4The first DICs were presented simultaneously in References [12] and [13]. These seminal works have been used to develop designs for different types of sensors, including purely resistive [11,[14][15][16], capacitively-coupled resistive sensors [17], capacitive [18][19][20], inductive [21][22][23], and even for some that support the connection of sensors of any of The method for analytically determining the sensor's resistance value using the circuit in Figure 1, known as the Two-Point Calibration Method (TPCM), is simple and requires few calculation resources in the PDD. The four pins of the PDD in Figure 1 can be dynamically configured as outputs or inputs to use the TPCM. When configured as inputs, the PDD nodes remain in a high impedance state (HZ), from the circuit resistors' point of view, thus preventing current from circulating through them. The whole measurement process is shown in Figure 2, and it consists of three capacitor charges made by placing logic 1 outputs in the Pp, Pc1, Pc2, and Px pins.

5This situation has been labeled as the "Charging State" in Figure 2. The Rp resistor in Figure 1 is added to improve the rejection of the power supply/noise interference [27], and its value should be minimal in order to speed up the charging processes. With Rp, the time measurements from the start of the discharge until Vo(t) = VTH (from now on, named as detection time) will be more independent of these noises. The capacitor is discharged through the different circuit resistors after each charging state by configuring the appropriate pin (Px, Pc1, or Pc2) as a logic 0 output. This procedure allows three times to be generated, corresponding to the discharge through each resistor, Tx, Tc1, and Tc2 in Figure 1. For each capacitor discharge, Vo(t) could change between the voltage for a logic 1, VDD, and the voltage for a logic 0, 0 V. Then The discharging states end when a reference voltage, V TH (the threshold voltage), is reached in the Pp pin in Figure 1, meaning the PDD detects a logic 0 in this pin. The Pp pin is configured as an input throughout the discharging state. Before these discharges, the capacitor is charged at the supply voltage, V DD , by the PDD, through Pp, Pc1, Pc2, and Px configured as a logic 1 output. As will be demonstrated below, operating with the times measured in the different discharges allows the sensor's resistance value to be deduced. As the digital information generated by these circuits involves time measurements, the DICs actually perform a magnitude-time-digital conversion with minimal hardware, making them economical, easy to integrate, and with similar performance to using an ADC [10,26].

6The method for analytically determining the sensor's resistance value using the circuit in Figure 1, known as the Two-Point Calibration Method (TPCM), is simple and requires few calculation resources in the PDD. The four pins of the PDD in Figure 1 can be dynamically configured as outputs or inputs to use the TPCM. When configured as inputs, the PDD nodes remain in a high impedance state (HZ), from the circuit resistors' point of view, thus preventing current from circulating through them. The whole measurement process is shown in Figure 2, and it consists of three capacitor charges made by placing logic 1 outputs in the Pp, Pc1, Pc2, and Px pins.

7This situation has been labeled as the "Charging State" in Figure 2. The Rp resistor in Figure 1 is added to improve the rejection of the power supply/noise interference [27], and its value should be minimal in order to speed up the charging processes. With Rp, the time measurements from the start of the discharge until Vo(t) = V TH (from now on, named as detection time) will be more independent of these noises. The capacitor is discharged through the different circuit resistors after each charging state by configuring the appropriate pin (Px, Pc1, or Pc2) as a logic 0 output. This procedure allows three times to be generated, corresponding to the discharge through each resistor, T x , T c1, and T c2 in Figure 1. For each capacitor discharge, Vo(t) could change between the voltage for a logic 1, V DD , and the voltage for a logic 0, 0 V. Then where Ro is the output resistor of the buffers of the PDD when configured as a logic 0 (Ro is considered a constant parameter in a first order approximation), and R is any resistor through which discharge is taking place. Thus, each of these three times has the form

8From this expression, we can find Rx as

9In order for Equation (3) to improve the estimate of Rx, the values of Rc1 and Rc2 must be carefully selected to correct the errors that come from the fact that Equation (2) is an approximation to the true discharging time (a PDD output buffer is modeled as a constant value resistor). If the error term for T has a value proportional to R 2 in the right-hand side of Equation (2), then (by the criteria set out in Reference [28]) Rc1 and Rc2 would be at 15% and 85% of the full-scale span of the resistances to be measured. This may not actually be the case in Equation (2), but regardless, this selection produces a suitable error profile, and for this reason, is commonly used in the literature.

10where Ro is the output resistor of the buffers of the PDD when configured as a logic 0 (Ro is considered a constant parameter in a first order approximation), and R is any resistor through which discharge is taking place. Thus, each of these three times has the form

11From this expression, we can find Rx as

12In order for Equation (3) to improve the estimate of Rx, the values of Rc1 and Rc2 must be carefully selected to correct the errors that come from the fact that Equation (2) is an approximation to the true discharging time (a PDD output buffer is modeled as a constant value resistor). If the error term for T has a value proportional to R 2 in the right-hand side of Equation (2), then (by the criteria set out in Reference [28]) Rc1 and Rc2 would be at 15% and 85% of the full-scale span of the resistances to be measured. This may not actually be the case in Equation (2), but regardless, this selection produces a suitable error profile, and for this reason, is commonly used in the literature. Depending on the application of the sensor, in certain cases, the DIC in Figure 1 or the stages shown in Figure 2 must be modified. For example, the discharge time through Rx is short when measuring low resistance sensors, and there may be a significant error in determining its value because of the quantization in the clock cycles of the PDD. This can be solved by finishing the discharging states through a higher value resistor (any of the calibration resistors can be used for this purpose), as proposed in Reference [29], or by modifying the charging and discharging cycles [30]. The non-linearity of the resistors of the PDD buffers may also affect the estimates. In this case, the solution described in the literature is to use a calibration resistor in addition to those shown in Figure 1 [31]. In contrast, one of the problems for high resistance values is an excessive discharge time. This time can be reduced by making part of the discharge through a resistor that is smaller than Rx [32]. It is even possible to shorten the charging times (meaning the voltage stored in C at the end of each charging state may be different since the starting voltage in the Depending on the application of the sensor, in certain cases, the DIC in Figure 1 or the stages shown in Figure 2 must be modified. For example, the discharge time through Rx is short when measuring low resistance sensors, and there may be a significant error in determining its value because of the quantization in the clock cycles of the PDD. This can be solved by finishing the discharging states through a higher value resistor (any of the calibration resistors can be used for this purpose), as proposed in Reference [29], or by modifying the charging and discharging cycles [30]. The non-linearity of the resistors of the PDD buffers may also affect the estimates. In this case, the solution described in the literature is to use a calibration resistor in addition to those shown in Figure 1 [31]. In contrast, one of the problems for high resistance values is an excessive discharge time. This time can be reduced by making part of the discharge through a resistor that is smaller than Rx [32]. It is even possible to shorten the charging times (meaning the voltage stored in C at the end of each charging state may be different since the starting voltage in the charge is different) by proceeding, as set out in Reference [33]. In the case of remote resistive sensors, including several switches makes it possible to eliminate the influence of wire resistance in the measurements [14].

13Uncertainty in the different time measurements is an important parameter when establishing the quality of the Rx estimate using the circuit in Figure 1. This uncertainty is mainly due to the electrical circuit noise that affects both the detection time and the voltage value actually stored in C at the end of each charging state. Noises are produced mostly by the switching activities of the PDD. However, they can also be due to the operation of other circuits that can be used together in the same electronic design. As commented above, including Rp, helps reduce the noise in the charging process of C. Thus, the main cause of uncertainty in the time measurements T x , T c1, and T c2 is the noise that affects the detection time.

14Despite the importance of this parameter in the quality of measurements, no contributions have been reported to reduce this uncertainty. In fact, this uncertainty is the main cause of the maximum absolute errors that occur in a DIC [2]. This paper presents a modification of the circuit in Figure 1 that addresses this issue. The modification is simple and consists of adding a second capacitor to the circuit of Figure 1. Thus, the new design practically does not modify either the total time needed to estimate Rx or the circuit's power consumption.

15The structure of the paper is as follows. In Section 2, we present the operating principles of the proposed new DIC and includes a quantitative analysis of its operation. In Section 3, we show the Materials and Methods used when evaluating the new DIC, while in Section 4, we present the experimental results. Finally, the conclusions of this paper are presented in Section 5.

Operating Principle

16If we define the uncertainty of measurement of a discharging time as the standard deviation that appears in multiple measurements, then the uncertainty in determining the detection time in a DIC, u(T), is proportional to the value of the electrical noise present in the detection node and inversely proportional to the slope of the discharging curve in the detection time [2]:

17where k is a constant related to the noise level in the circuit. Taking into account Equation (1), we can write:

18Therefore, once a value has been chosen for C, uncertainty in the discharge time measurement through a resistor increases as the resistance value increases. Similarly, as shown in Equation (3), Rx has a linear dependence on T x , meaning that the uncertainty in estimating Rx in a DIC, u(Rx) DIC , also increases with the value of Rx due to the law of propagation of uncertainty (except for low values of resistances where uncertainties due to quantization are important).

19Equation (5) only shows two ways of decreasing u(T): the reduction of k and/or C. However, in a real circuit, there will always be a minimum noise level that cannot be reduced, even with a careful design. As for C, a decrease in the capacitance may cause significant quantification errors when estimating lower resistance values, meaning that this option may have to be ruled out.

20This article proposes an alternative way to reduce u(Rx). The basic idea is to modify the classic DIC in Figure 1 by replacing the single capacitor with a set of two capacitors, C A and C B , placed in series, as shown in Figure 3. This new circuit will be known as the two-capacitor DIC (TCDIC). With this modification, the TCDIC has two nodes (A and B) in which the voltages, Vo A and Vo B , can reach the value V TH at different moments of the same discharge cycle. These moments will be detected by pins P A and P B . The circuit works properly if the values of C A and C B meet certain conditions for their capacities, as well as requiring a correct voltage at the end of every charging stage. CA and CB, placed in series, as shown in Figure 3. This new circuit will be known as the two-capacitor DIC (TCDIC). With this modification, the TCDIC has two nodes (A and B) in which the voltages, VoA and VoB, can reach the value VTH at different moments of the same discharge cycle. These moments will be detected by pins PA and PB. The circuit works properly if the values of CA and CB meet certain conditions for their capacities, as well as requiring a correct voltage at the end of every charging stage. The TCDIC in Figure 3 consists of the same number of charging and discharging stages, as shown in Figure 2 for the classic DIC based on TPCM. The only difference is that two nodes now have to be charged and discharged. In the charging state of TCDIC, the PA and PB pins are configurated as logic 1 outputs, placing the voltage VDD in A and B. This actually performs the full discharge of CA and a charge of CB; however, for clarity, we will continue to call this time interval the charging state. These will be the initial conditions for the discharging states. The other resistors help to establish the voltage VDD in node A during the charging state, configuring pins Px, Pc1, and Pc2 as logic 1 outputs.

21In the TCDIC discharging states, the PA and PB pins are configured as inputs (HZ), while Px, Pc1, and Pc2 are configured in the three different discharges, as in the DIC of Figure 1. This procedure produces six detection times (two in each discharging state) and their six associated time measurements, TxA, TxB, Tc1A, Tc1B, Tc2A, and Tc2B, which allow Rx to be estimated (the letters A or B indicate the node the time is measured in). The steps to obtain these measurements with the initial conditions mentioned are shown in Figure 4, which also indicates the pin configuration of the PDD in each state. As will be shown below, these six time measurements and the values of Rc1 and Rc2 can be used to estimate the value of Rx in a relatively similar way as to Equation (3).

22Pc1 Pc2 PA PB Figure 3. The two-capacitor direct interface circuit (TCDIC) proposed in this article. The circuit uses two capacitors, C A and C B , replacing C in Figure 1. The pins, P A and P B , measure the times needed to estimate Rx.

23The TCDIC in Figure 3 consists of the same number of charging and discharging stages, as shown in Figure 2 for the classic DIC based on TPCM. The only difference is that two nodes now have to be charged and discharged. In the charging state of TCDIC, the P A and P B pins are configurated as logic 1 outputs, placing the voltage V DD in A and B. This actually performs the full discharge of C A and a charge of C B ; however, for clarity, we will continue to call this time interval the charging state. These will be the initial conditions for the discharging states. The other resistors help to establish the voltage V DD in node A during the charging state, configuring pins Px, Pc1, and Pc2 as logic 1 outputs.

24In the TCDIC discharging states, the P A and P B pins are configured as inputs (HZ), while Px, Pc1, and Pc2 are configured in the three different discharges, as in the DIC of Figure 1. This procedure produces six detection times (two in each discharging state) and their six associated time measurements, T xA , T xB , T c1A , T c1B , T c2A , and T c2B , which allow Rx to be estimated (the letters A or B indicate the node the time is measured in). The steps to obtain these measurements with the initial conditions mentioned are shown in Figure 4, which also indicates the pin configuration of the PDD in each state. As will be shown below, these six time measurements and the values of Rc1 and Rc2 can be used to estimate the value of Rx in a relatively similar way as to Equation (3). Steps necessary for the operation of the TCDIC shown in Figure 3. The time is measured in node A and another time is measured in node B in each discharge stage. Thus, we have TxA, TxB, Tc1A, Tc1B, Tc2A, and Tc2B, which will then be used to estimate Rx.

Obtaining Rx using the TCDIC

25With ΔVCA(t) and ΔVCB(t) representing the difference in the electrical potential between the terminals of the capacitors CA and CB at each time instant, as shown in Figure 3, we can establish a system of two first-order differential equations when the discharge is initiated through any resistor, R, thus equalizing the current through the resistor, iR, with those that extract charge from CA and CB, iCA and iCB, Figure 3. The time is measured in node A and another time is measured in node B in each discharge stage. Thus, we have T xA , T xB , T c1A , T c1B , T c2A , and T c2B , which will then be used to estimate Rx.

Obtaining Rx Using the TCDIC

26With ∆V CA (t) and ∆V CB (t) representing the difference in the electrical potential between the terminals of the capacitors C A and C B at each time instant, as shown in Figure 3, we can establish a system of two first-order differential equations when the discharge is initiated through any resistor, R, thus equalizing the current through the resistor, i R , with those that extract charge from C A and C B , i CA and i CB ,

27For convenience, the solutions for this system of equations are written in the form:

28where K 1 , K 2 , and K 3 are constants that depend on the difference in electrical potential between the capacitor terminals, both at the start of the discharge stage, ∆V CA (0) and ∆V CB (0), and also at the end if extended indefinitely, ∆V CA (t→∞) + ∆V CB (t→∞) = 0. Ceq is the equivalent capacitance of the two capacitors connected in series, Ceq = C A ||C B . With these initial conditions, two equations in Equation (7) can be written as:

29These expressions allow for finding the voltages in nodes A and B during the discharging states, Vo A (t) and Vo B (t).

30As indicated in the previous section, establishing ∆V CA (0) = 0 and ∆V CB (0) = V DD during the Charging State will mean that these equations are transformed into:

31The detection times in nodes A, T A , and B, T B , therefore, occur in:

32with V THA and V THB as the threshold voltages in node A and B, respectively. Replacing R with Rx, Rc1, and Rc2 in Equation (11) gives us the six detection times to estimate Rx using the TCDIC through the following expression:

33It is important to note that this expression is valid, even though V THA and V THB are different. However, in practice, this difference is small, and so we can take V TH = V THA ≈ V THB . It is easy to check, in Equation (11), that T B > T A (this is the situation shown in Figure 4). Next, we will demonstrate that, if the time constants for discharge through the same resistor in the DIC and TCDIC are equal, then:

34(a) Uncertainty in the estimate of Rx using a TCDIC and Equation (12), u(Rx) TCDIC , may be lower than the uncertainty of the estimate of Rx using a DIC and Equation (3), For the DIC and TCDIC to have the same time constant discharging through the same resistance, it is necessary that Ceq = C. If this is verified, from Equation (2) and Equation (11):

35where α is:

36As shown in Equation (14), the designer can, by selecting the C A /C B ratio, change α (the PDD used in the circuit sets the values of V DD and V TH ). As the numerator argument is greater than the denominator argument, α is a positive number greater than one.

37As for the uncertainties, u(T A ) and u(T B ) can be written using Equation (4) and Equation (10).

38To avoid that the denominator in the second equation is 0, it is necessary that:

39This is not a very demanding condition since, in practice, it is sufficient that C A is slightly higher than C B . Thus, from Equation (5) and Equation (15):

40with β determined by:

41Functions α and β are used in Theorem 1 of Appendix A to show the relationship between u(Rx) DIC and u(Rx) TCDIC , Equations (A1) and (A2). If C A /C B verifies the condition in Equation (16), then the function θ, defined in Appendix A, is a positive real-valued function and is a decreasing function for C A /C B . Therefore, there is a minimum value of C A /C B from which θ < 1, and thus, also u(Rx) TCDIC < u(Rx) DIC . Determining this value in practice is a difficult task since θ also depends on V TH and V DD (values that the designer may not know). It is not possible to solve Equation (A2) for C A /C B in a closed form. However, it is more useful to know that the minimum value of θ, θ min , is given by: Therefore, we can consider C A >> C B as the criterion for optimal design in the TCDIC, and if this condition is met:

42To prove statement (b), it is sufficient to check that, if C A >> C B , then α → 1, and Equation (13) shows that the time measurements T, T A , and T B are very similar (although, clearly, T B will always be slightly higher than T A ).

43The result of Equation (21) is limited by the approximations used in Equations (2) and (11). Equation (21) will also have practical effects for resistances where the quantization uncertainty has little influence (typically medium and high resistances). However, it is precisely for high resistances where, when using a DIC, the uncertainty in the estimate of Rx is higher [2]. Therefore, the TCDIC improves the estimate precisely where this improvement is most needed.

Power Consumption of the TCDIC

44Energy consumption in the TCDIC is very similar to that found for the DIC in Figure 1.

45To demonstrate this, we assumed that the discharges in the capacitors are completed in both Figures 2 and 4, meaning that Vo = 0 V and Vo A = 0 V at the start of the charging states. In the case of the DIC in Figure 1, the power to be supplied to charge the capacitor, E DIC , is:

46In TCDIC, the power supplied to charge C B , E TCDIC (C B ), is:

47where the second term of the member on the right of Equation (22) is due to the fact that, when Vo A = 0, Vo B has a different value, which can be found via t→∞ in Equation (10). For this same reason, the energy supplied to C A during the charging state, E TCDIC (C A ), is:

48Adding the results of Equation (22) and Equation (23), the energy supplied in the TCDIC charging state, E TCDIC , can be found through some simple algebraic operations.

49If the criterion for the optimal design is followed, then the result in Equation (24) is similar to that found in Equation (21), meaning that E DIC ≈ E TCDIC .

50For all the above, the only true drawback of the TCDIC in Figure 3 compared to the DIC in Figure 1 is an increase in the hardware complexity, as it is necessary to add a second capacitor and use an additional PDD pin. However, the internal design in the PDD does not show any significant variation between the two circuits since, as in the case of the DIC, the TCDIC only requires a single counter to generate the six time measurements used in Equation (12). In contrast, Equation (12) is clearly more complex than Equation (3), even though it only involves two further additions and subtractions. There is also, obviously, the cost of storing six variables instead of the three used in the DIC.

51Finally, the two capacitors in the TCDIC could also be used in a classic DIC based on the three-signal auto-calibration technique [34]. Similarly, the TCDIC may be compatible with other circuits designed to obtain different improvements in the characteristics of a resistive DIC, such as those shown in References [14,29,[31][32][33], meaning that these circuits could also have benefits provided by the TCDIC.

Materials and Methods

52To evaluate the performance of the TCDIC, a prototype of the circuit in Figure 3 was designed using a Spartan 6 FPGA (XC6SLX25-3FTG256) [35] from Xilinx (San Jose, CA, USA) running at 50 MHz as a PDD. The crystal clock oscillator used was the ASFL1 from Abracon Corporation (Spicewood, USA) with a frequency stability of ± 30 ppm with a 1 ps phase jitter RMS. Therefore, the uncertainty in the measurement of time caused by the clock oscillator is practically negligible. Any small change in the clock frequency will be offset by the calibration method.

53The FPGA was programmed in VHDL to perform the functions of the TCDIC's PDD. This FPGA requires two different supply voltages; thus, a TPS79633 voltage regulator from Texas Instruments (Dallas, USA) was used for the 3.3 V supply voltage of the input/output blocks. This is the V DD voltage used in the description of TCDIC operation, meaning that the V TH is approximately 1.36 V. The FPGA core operates on a lower supply voltage of 1.2 V generated by a Texas Instrument TPS79912 voltage regulator to reduce the overall power consumption.

54The maximum current an output buffer of the FPGA can sink to maintain the digital signal integrity of the outputs is 24 mA. The prototype was manufactured with a FR-4 fiberglass reinforced epoxy-laminated substrate with four layers of conductive pathways. The internal layers were used for supply planes, and the external layers were used for the remaining signals.

55In all cases, polypropylene film capacitors were used to compare the performance of the circuits in Figures 1 and 3. A capacitor with a nominal value of 47 nF was selected for the circuit in Figure 1. This value of C was chosen so that the discharge times would not be excessively long and can be determined with a 14-bit counter, while also providing sufficient measurement accuracy. The same 47 nF capacitor was used for C B in Figure 3, while two different values were used for C A (560 and 820 nF) to compare the effects of the ratio C A /C B on the TCDIC performance.

56To understand the values selected for C A , it is necessary to observe the values of function θ in our setup (V DD = 3.3 V, V TH = 1.36 V, and C B = 47 nF), as shown in Table 1. From Equation (16), the minimum possible value for C A is 67 nF, and from this value there is a rapid drop in the values of θ, so that, for C A > 400 nF, θ is very close to its minimum value (in our setup θ = 1 for C A =141.3 nF). Thus, the choice of 560 nF and 820 nF for C A allows values of θ very close to its lower limit, and at the same time, the analysis of the performance of the circuit for different values of C A .

57A total of three series of tests were carried out: one for the DIC and two for the TCDIC. A set of 21 resistors ranging from 128 to 7400 Ω were used in each series (the maximum discharge time for these resistors was 349.9 µs). This range coincides with that of a resistive tactile sensor used by the authors. It was manufactured with a sheet of piezoresistive material by the company CIDETEC (San Sebastián, Spain) [36].

58Two calibration resistors were used for all tests, at approximately 15% and 85% of the full resistance range, Rc1 = 1100 Ω and Rc2 = 4600 Ω. All the resistors were measured using an Agilent 34401A digital multimeter. A total of 500 measurement cycles were performed for each of the 21 resistors. These measurements were used to evaluate the errors and uncertainties for each of the two possible capacitor combinations.

59To improve detection of the trigger event in P A and P B , the circuits proposed in Reference [37] were implemented in the FPGA for both pins. These modules avoid the need to use Schmitt triggers or similar circuitry if there are fluctuations in the buffer voltage around V TH .

Experimental Results

60Next, we show and discuss the results of three series of tests carried out with the set up indicated in the previous section.

61As a consequence of the C A and C B values selected, the capacitance of the equivalent discharge capacitor in node A, Ceq, is slightly lower than 47 nF, since C B was chosen with this capacitance in all cases. However, as C A >> C B , Ceq is very close to C (Ceq = 43.36 nF for C A = 560 nF and Ceq = 44.45 nF for C B = 820 nF). Thus, uncertainty in the measurement of times in the Pp pins of the DIC and P A of the TCDIC should be very similar for the same resistors in the three series of tests.

62As the criterion for the optimal design is met, Equation (15) indicates that these uncertainties must also be very similar to those obtained through the TCDIC pin P B . This can be seen in Figure 5, which shows the uncertainty curves (expressed in ns) when measuring the discharging times through each of the series resistors, and for the three sets of tests carried out. The curve labeled "DIC 47 nF" shows uncertainty in the discharge time measurement in the DIC in Figure 1, while the rest of the curves show the uncertainties of the time measurements for the different TCDIC configurations.

63Sensors 2021, 21, x FOR PEER REVIEW 11 of 17 this capacitance in all cases. However, as CA >> CB, Ceq is very close to C (Ceq = 43.36 nF for CA = 560 nF and Ceq = 44.45 nF for CB = 820 nF). Thus, uncertainty in the measurement of times in the Pp pins of the DIC and PA of the TCDIC should be very similar for the same resistors in the three series of tests. As the criterion for the optimal design is met, Equation (15) indicates that these uncertainties must also be very similar to those obtained through the TCDIC pin PB. This can be seen in Figure 5, which shows the uncertainty curves (expressed in ns) when measuring the discharging times through each of the series resistors, and for the three sets of tests carried out. The curve labeled "DIC 47 nF" shows uncertainty in the discharge time measurement in the DIC in Figure 1, while the rest of the curves show the uncertainties of the time measurements for the different TCDIC configurations.

64The results of the uncertainties in both nodes A and B are shown for each of the configurations of the TCDIC. As can be seen in Figure 5, all uncertainties had very similar values and showed the typical profile of increasing with the value of the resistor to be measured [2]. In terms of the circuit operation, the results in Figure 5 first show a confirmation of the equality of the uncertainties for the measurements in the DIC and the TCDIC, as Equation (17) predicts whether CA >> CB is met; secondly, the results ensure that having two capacitors in the circuit together with two measurement pins does not deteriorate the quality of the measurements.

65As CA >> CB, in both configurations of TCDIC, α → 1 and following Equation (13), T, TA, and TB must be very similar. For example, for Rx = 3570 Ω, a resistance in the middle of the range, the mean of the 500 measurements in the DIC is Tx = 142.42 μs. For CA = 560 nF, the means in the TCDIC are TA = 132.83 μs and TB = 152.93 μs. For CA = 820 nF, the means are TA = 135.12 μs and TB = 147.4 μs. The small difference between T and TA is due to the fact that the Ceq is slightly different from C for both configurations. However, TB differs from TA because α is not exactly 1. The fact that TB is somewhat greater than T also implies that the time required to estimate Rx is slightly longer in the TCDIC compared with in the DIC. Finally, as predicted by Equations (13) and (14), an increase in CA (with a constant CB) implies a decrease in TB. In our case, all the arithmetic operations necessary to obtain Rx, from Equations (3) and (12), were performed in the FPGA during the charging and discharging states. Therefore, the time required to estimate Rx and transmit its value is only the sum of the three charging and discharging times (the ability of an FPGA to perform parallel computing The results of the uncertainties in both nodes A and B are shown for each of the configurations of the TCDIC. As can be seen in Figure 5, all uncertainties had very similar values and showed the typical profile of increasing with the value of the resistor to be measured [2]. In terms of the circuit operation, the results in Figure 5 first show a confirmation of the equality of the uncertainties for the measurements in the DIC and the TCDIC, as Equation (17) predicts whether C A >> C B is met; secondly, the results ensure that having two capacitors in the circuit together with two measurement pins does not deteriorate the quality of the measurements.

66As C A >> C B , in both configurations of TCDIC, α → 1 and following Equation (13), T, T A, and T B must be very similar. For example, for Rx = 3570 Ω, a resistance in the middle of the range, the mean of the 500 measurements in the DIC is T x = 142.42 µs. For C A = 560 nF, the means in the TCDIC are T A = 132.83 µs and T B = 152.93 µs. For C A = 820 nF, the means are T A = 135.12 µs and T B = 147.4 µs. The small difference between T and T A is due to the fact that the Ceq is slightly different from C for both configurations. However, T B differs from T A because α is not exactly 1. The fact that T B is somewhat greater than T also implies that the time required to estimate Rx is slightly longer in the TCDIC compared with in the DIC. Finally, as predicted by Equations (13) and (14), an increase in C A (with a constant C B ) implies a decrease in T B .

67In our case, all the arithmetic operations necessary to obtain Rx, from Equations (3) and (12), were performed in the FPGA during the charging and discharging states. Therefore, the time required to estimate Rx and transmit its value is only the sum of the three charging and discharging times (the ability of an FPGA to perform parallel computing avoids the need to stop the PDD operation during the charging and discharging states, such as in microprocessor or microcontroller implementations). As the charging time that was selected to guarantee a correct charging of the capacitors, in all cases, was 163.84 µs, the total times to estimate Rx = 3570 Ω, in the DIC, TT(Rx) DIC , and in the TCDIC, TT(Rx) TCDIC , are (with C A = 560 nF):

68The maximum values for these times, TT max,DIC and TT max,TCDIC , are for the highest resistance in the range. Thus, it has been obtained for the DIC TT max,DIC = 1003.4 µs, and for the TCDIC, with C A = 560 nF, TT max,TCDIC = 1051.8 µs. If C A = 820 nF, TT max,TCDIC is 1031.7 µs. With these results, in our setup, the TCDIC is 4.6% slower than the DIC, if C A = 560 nF, and 2.7%, if C A = 820 nF. With these times, the equivalent sampling frequency of Rx is approximately 1 kHz for TCDIC and DIC. Figure 5 confirms the equality in the time measurements uncertainty, and as the time measurements are very similar, we expected that u(Rx) TCDIC < u(Rx) DIC will be confirmed. This improvement can be seen in Figure 6. This figure shows the uncertainty obtained in estimating Rx (expressed in Ω) from the 500 estimates made for each of the three series of tests. The uncertainty curves of this figure more clearly illustrate the benefits of the TCDIC over the TPCM-based DIC.

69The maximum values for these times, TTmax,DIC and TTmax,TCDIC, are for the highest resistance in the range. Thus, it has been obtained for the DIC TTmax,DIC = 1003.4 μs, and for the TCDIC, with CA = 560 nF, TTmax,TCDIC = 1051.8 μs. If CA = 820 nF, TTmax,TCDIC is 1031.7 μs. With these results, in our setup, the TCDIC is 4.6% slower than the DIC, if CA = 560 nF, and 2.7%, if CA = 820 nF. With these times, the equivalent sampling frequency of Rx is approximately 1 kHz for TCDIC and DIC. Figure 5 confirms the equality in the time measurements uncertainty, and as the time measurements are very similar, we expected that u(Rx)TCDIC < u(Rx)DIC will be confirmed. This improvement can be seen in Figure 6. This figure shows the uncertainty obtained in estimating Rx (expressed in Ω) from the 500 estimates made for each of the three series of tests. The uncertainty curves of this figure more clearly illustrate the benefits of the TCDIC over the TPCM-based DIC.

70The shapes of the curves are very similar to those shown in Figure 5; however, here, the differences for each DIC are clearer, showing reductions in most cases. The black curve shows the u(Rx)DIC/ 2 function. This is the curve that one would expect to find in the TCDIC considering that CA >> CB and Ceq ≈ C (u(Rx)TCDIC ≈ u(Rx)DIC/ 2 ). For high resistance values, the results are in complete agreement with the theoretical predictions. The reduction in u(Rx)TCDIC must be reflected in a better estimate of Rx. This can be seen in Figure 7, which shows the Maximum Absolute Error in estimating Rx (in Ω), MAE(Rx), defined as: The shapes of the curves are very similar to those shown in Figure 5; however, here, the differences for each DIC are clearer, showing reductions in most cases. The black curve shows the u(Rx) DIC / √ 2 function. This is the curve that one would expect to find in the TCDIC considering that C A >> C B and Ceq ≈ C (u(Rx) TCDIC ≈ u(Rx) DIC / √ 2). For high resistance values, the results are in complete agreement with the theoretical predictions.

71. The reduction in u(Rx) TCDIC must be reflected in a better estimate of Rx. This can be seen in Figure 7, which shows the Maximum Absolute Error in estimating Rx (in Ω), MAE(Rx), defined as: (26) where i indicates the number of the estimate (MAE(Rx) is the "worst" case of the 500 measurements). As expected, Figure 7 shows that higher values of MAE(Rx) occur when estimating higher resistance values. For these resistances, MAE(Rx) is always greater using the DIC in Figure 1 than in any of the TCDIC configurations. The decrease in MAE(Rx) is due not only to the reduction in u(T x ), but also to the reductions in u(T c1 ) and u(T c2 ). Figure 7 also confirms that, for the lower resistances, the increasing quantization errors and errors due to approximations in Equations (2) and (11) make the situation more confusing. However, the errors in the DIC are greater than in the TCDIC in practically all cases. where i indicates the number of the estimate (MAE(Rx) is the "worst" case of the 500 measurements). As expected, Figure 7 shows that higher values of MAE(Rx) occur when estimating higher resistance values. For these resistances, MAE(Rx) is always greater using the DIC in Figure 1 than in any of the TCDIC configurations. The decrease in MAE(Rx) is due not only to the reduction in u(Tx), but also to the reductions in u(Tc1) and u(Tc2). Figure 7 also confirms that, for the lower resistances, the increasing quantization errors and errors due to approximations in Equations (2) and (11) make the situation more confusing. However, the errors in the DIC are greater than in the TCDIC in practically all cases. At first glance, Figure 7 also shows that there is not actually any significant difference between using one configuration with CA = 560 nF and another with CA = 820 nF. To confirm this, and as a figure of overall merit, Table 2 shows the sum of the MAE(Rx) of all resistors for each of the three curves in Figure 7. As this table shows, the sum of the errors is very similar for CA = 820 nF and CA = 560 nF, as might be expected when the two configurations have similar values of θ.

72However, Equation (24) shows that for CA = 560 nF and CB = 47 nF, the power consumption increased by 6.5%. For CA = 820 nF and CB = 47 nF, the increase was 4.8%. Therefore, there is a trade-off between TT(Rx)TCDIC and the power consumption; thus, the most suitable setting depends on the application. Finally, in Figure 8, we compare the systematic error in estimating Rx through the two interface circuits. This systematic error is defined as the difference between the average of the 500 estimates made for Rx in each test with the actual resistance value. Once again, we see similar behavior to that shown in Figure 6 and Figure 7: the TCDIC has a clearly lower systematic error than the DIC for high resistances. The reduction in these cases was higher than 80% for the configuration with CA = 560 nF and higher than 90% for At first glance, Figure 7 also shows that there is not actually any significant difference between using one configuration with C A = 560 nF and another with C A = 820 nF. To confirm this, and as a figure of overall merit, Table 2 shows the sum of the MAE(Rx) of all resistors for each of the three curves in Figure 7. As this table shows, the sum of the errors is very similar for C A = 820 nF and C A = 560 nF, as might be expected when the two configurations have similar values of θ. However, Equation (24) shows that for C A = 560 nF and C B = 47 nF, the power consumption increased by 6.5%. For C A = 820 nF and C B = 47 nF, the increase was 4.8%. Therefore, there is a trade-off between TT(Rx) TCDIC and the power consumption; thus, the most suitable setting depends on the application.

73Finally, in Figure 8, we compare the systematic error in estimating Rx through the two interface circuits. This systematic error is defined as the difference between the average of the 500 estimates made for Rx in each test with the actual resistance value. Once again, we see similar behavior to that shown in Figures 6 and 7: the TCDIC has a clearly lower systematic error than the DIC for high resistances. The reduction in these cases was higher than 80% for the configuration with C A = 560 nF and higher than 90% for C A = 820 nF. As expected, the systematic errors for TCDIC and DIC were very similar due to the quantization errors for low resistance measurements.

74Sensors 2021, 21, x FOR PEER REVIEW 14 of 17 CA = 820 nF. As expected, the systematic errors for TCDIC and DIC were very similar due to the quantization errors for low resistance measurements. Based on these results, TCDIC is a circuit that is particularly suitable for measuring medium-to-high resistances, as happens in tactile sensors when low pressures are applied. This situation is typical in grip tasks, and thus, in future works, we will include the TCDIC as a measurement circuit for this type of sensor.

Conclusions

75Direct interface circuits (DICs) for the conversion of a sensor's resistance value to digital information provide a simple and low-cost solution that is valid for virtually any programmable digital device. The initial versions of DICs had speed problems when estimating high resistance values and quantization errors for low resistance values. However, these have been minimized through different contributions from the literature. A further limitation that had not been addressed previously is that the uncertainty when measuring the time necessary to estimate a resistance value in a DIC is proportional to this value.

76The result is high uncertainty, and as a consequence, high error, whenever the resistance values are also high. This article proposes a simple solution for reducing the uncertainties, based on including a second capacitor and a measurement node. The solution presented, named the two-capacitor DIC (TCDIC), involves a slight increase in the DIC hardware, time, and power consumption required to estimate the resistance value. Six time measurements are needed instead of the three required by a two-point calibration method on a conventional DIC; however, the number of discharge stages does not increase from that used by the DIC.

77As a consequence, there is no significant increase in the power consumption or time needed for an estimate. The proposed measurement method and architecture for the TCDIC can be incorporated in the solutions described in the literature for reducing the measurement times or errors due to the quantization effects. Finally, design rules were proposed to maximize the TCDIC performance. As a proof of concept, the TCDIC circuit was implemented using an FPGA. For the highest resistances in this circuit, the errors were reduced by over 80%-90%. In contrast, the time needed for an estimate increased by only 2.7% to 4.6%, and the power consumption increased by 4.8% to 6.5%. Based on these results, TCDIC is a circuit that is particularly suitable for measuring medium-to-high resistances, as happens in tactile sensors when low pressures are applied. This situation is typical in grip tasks, and thus, in future works, we will include the TCDIC as a measurement circuit for this type of sensor.

78Direct interface circuits (DICs) for the conversion of a sensor's resistance value to digital information provide a simple and low-cost solution that is valid for virtually any programmable digital device. The initial versions of DICs had speed problems when estimating high resistance values and quantization errors for low resistance values. However, these have been minimized through different contributions from the literature. A further limitation that had not been addressed previously is that the uncertainty when measuring the time necessary to estimate a resistance value in a DIC is proportional to this value.

79The result is high uncertainty, and as a consequence, high error, whenever the resistance values are also high. This article proposes a simple solution for reducing the uncertainties, based on including a second capacitor and a measurement node. The solution presented, named the two-capacitor DIC (TCDIC), involves a slight increase in the DIC hardware, time, and power consumption required to estimate the resistance value. Six time measurements are needed instead of the three required by a two-point calibration method on a conventional DIC; however, the number of discharge stages does not increase from that used by the DIC.

80As a consequence, there is no significant increase in the power consumption or time needed for an estimate. The proposed measurement method and architecture for the TCDIC can be incorporated in the solutions described in the literature for reducing the measurement times or errors due to the quantization effects. Finally, design rules were proposed to maximize the TCDIC performance. As a proof of concept, the TCDIC circuit was implemented using an FPGA. For the highest resistances in this circuit, the errors were reduced by over 80%-90%. In contrast, the time needed for an estimate increased by only 2.7% to 4.6%, and the power consumption increased by 4.8% to 6.5%.

Data Availability Statement:

81The processing codes and data segments can be obtained by contacting the corresponding author.

Conflicts of Interest:

82The authors declare no conflict of interest.

83Appendix A Theorem 1. Uncertainties in a classic DIC, u(Rx) DIC , and in the TCDIC, u(Rx) TCDIC , are related by:

84where function θ is defined as

85Proof of Theorem 1. If we consider that u(Rx) DIC and u(Rx) TCDIC only depend on the time measurement uncertainties and that these uncertainties are uncorrelated (charging states ensure this), we can write, for u(Rx) DIC

참고문헌 31건

  1. A simple microcontroller based digitizer for differential inductive sensors 2015 10.1109/i2mtc.2015.7151256
  2. Data Acquisition and Signal Processing for Smart Sensors Measurement Science and Technology · IOP Publishing · 2002 10.1088/0957-0233/13/9/706
  3. A microcontroller system for measurement of three independent components in impedance sensors using a single square pulse Sensors and Actuators A Physical · Elsevier BV · 2011 10.1016/j.sna.2011.10.018
  4. Direct interface circuit for capacitive humidity sensors Sensors and Actuators A Physical · Elsevier BV · 2007 10.1016/j.sna.2007.11.018
  5. Developments in integrated smart sensors Sensors and Actuators A Physical · Elsevier BV · 1994 10.1016/0924-4247(93)00657-p
  6. Handbook of Modern Sensors: Physics, Designs, and Applications, 2nd ed. American Journal of Physics · American Institute of Physics · 1998 10.1119/1.18801
  7. Hardware Techniques for Improving the Calibration Performance of Direct Resistive Sensor-to-Microcontroller Interface Metrology and Measurement Systems · De Gruyter Open · 2013 10.2478/mms-2013-0045
  8. 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
  9. Optimal two-point static calibration of measurement systems with quadratic response Review of Scientific Instruments · American Institute of Physics · 2004 10.1063/1.1818531
  10. Direct interface circuit to linearise resistive sensor bridges Sensors and Actuators A Physical · Elsevier BV · 2008 10.1016/j.sna.2008.05.023
  11. 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
  12. Improving the performance of direct interface circuits using the Vernier technique 2009 10.1109/imtc.2009.5168656
  13. Direct analog-to-microcontroller interfacing Sensors and Actuators A Physical · Elsevier BV · 2012 10.1016/j.sna.2012.02.048
  14. Implementing CPLD-Based Interfaces for Sensors and Actuators in a Mechatronics Design Course 2004 Annual Conference · 2004
  15. Smart Capture Modules for Direct Sensor-to-FPGA Interfaces Sensors · Multidisciplinary Digital Publishing Institute · 2015 10.3390/s151229878
  16. Accuracy and Resolution Analysis of a Direct Resistive Sensor Array to FPGA Interface Sensors · Multidisciplinary Digital Publishing Institute · 2016 10.3390/s16020181
  17. Improving the resolution in direct inductive sensor-to-microcontroller interface 2015
  18. Measuring Dynamic Signals with Direct Sensor-to-Microcontroller Interfaces Applied to a Magnetoresistive Sensor Sensors · Multidisciplinary Digital Publishing Institute · 2017 10.3390/s17051150
  19. FPGA-Based Tactile Sensor Suite Electronics for Real-Time Embedded Processing IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tie.2017.2714137
  20. Improved Single-Element Resistive Sensor-to-Microcontroller Interface IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2017 10.1109/tim.2017.2712918
  21. Time-domain measurement methods for R, L and C sensors based on a versatile direct sensor-to-microcontroller interface circuit Sensors and Actuators A Physical · Elsevier BV · 2018 10.1016/j.sna.2018.03.029
  22. Interfacing sensors to microcontrollers Elsevier eBooks · Elsevier BV · 2018 10.1016/b978-0-08-102055-5.00002-4
  23. Nonlinearity compensation of DIC-based multi-sensor measurement Measurement · Elsevier BV · 2018 10.1016/j.measurement.2018.05.020
  24. Investigation of errors in microcontroller interface circuit for mutual inductance sensor Engineering Science and Technology an International Journal · Elsevier BV · 2018 10.1016/j.jestch.2018.11.011
  25. Fast Calibration Methods for Resistive Sensor Readout Based on Direct Interface Circuits Sensors · Multidisciplinary Digital Publishing Institute · 2019 10.3390/s19183871
  26. Analysis of Power-Supply Interference Effects on Direct Sensor-to-Microcontroller Interfaces IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2007 10.1109/tim.2006.887401
  27. Improved Calibration Method for Resistive Sensors Using Direct Interface Circuits IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2958583
  28. 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
  29. Method to Reduce Quantization Error in Direct Interface Circuits for Resistive Sensors IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.2971315
  30. Reducing Measurement Time in Direct Interface Circuits for Resistive Sensor Readout Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20092596
  31. Analysis of a Direct Microcontroller Interface for Capacitively Coupled Resistive Sensors IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3034969