Next Article in Journal
Ocean Surface Drifting Buoy System Based on UAV-Enabled Wireless Powered Relay Network
Next Article in Special Issue
A Capacitive Feedback Transimpedance Amplifier with a DC Feedback Loop Using a Transistor for High DC Dynamic Range
Previous Article in Journal
Recognition of the Driving Style in Vehicle Drivers
Previous Article in Special Issue
A 28 nm Bulk-CMOS Analog Front-End for High-Rate ATLAS Muon Drift-Tube Detectors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Reducing Measurement Time in Direct Interface Circuits for Resistive Sensor Readout

by
José A. Hidalgo-López
1,*,
José A. Sánchez-Durán
1,2 and
Óscar Oballe-Peinado
1,2
1
Departamento de Electrónica, Universidad de Málaga, Andalucía Tech, Campus de Teatinos, 29071 Málaga, Spain
2
Instituto de Investigación Biomédica de Málaga (IBIMA), 29010 Málaga, Spain
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(9), 2596; https://doi.org/10.3390/s20092596
Submission received: 11 April 2020 / Revised: 28 April 2020 / Accepted: 30 April 2020 / Published: 2 May 2020
(This article belongs to the Special Issue Advanced Interface Circuits and Systems for Smart Sensors)

Abstract

:
Direct Interface Circuits (DICs) carry out resistive sensor readings using a resistance-to-time-to-digital conversion without the need for analog-to-digital converters. The main advantage of this approach is the simplicity involved in designing a DIC, which only requires some additional resistors and a capacitor in order to perform the conversion. The main drawback is the time needed for this conversion, which is given by the sum of up to three capacitor charge times and their associated discharge times. This article presents a modification of the most widely used estimation method in a resistive DIC, which is known as the Two-Point Calibration Method (TPCM), in which a single additional programmable digital device pin in the DIC and one extra measurement in each discharge cycle, made without slowing down the cycle, allow charge times to be reduced more than 20-fold to values around 2 µs. The new method designed to achieve this reduction only penalizes relative errors with a small increase of between 0.2% and 0.3% for most values in the tested resistance range.

1. Introduction

Electrical magnitudes of sensors can currently be read using a wide range of circuits, including Direct Interface Circuits (DICs), which comprise several features that make them particularly suitable for multiple applications. A DIC performs a magnitude-to-time-to-digital conversion through a programmable digital device (PDD) and a few additional elements. The first versions of DICs were proposed, almost simultaneously, by Sherman and Webjörn [1,2].
Reading a sensor with a DIC produces a digital output that can be processed directly by the same PDD as used for the measurement, without the need for analog-to-digital conversion. Indeed, only a few simple extra elements are required, such as resistors, capacitors, transistors, or triggers [3]. Such simplicity means that this type of circuit is particularly suited for portable applications, where both the number of components and their consumption are very important. DICs are also highly versatile in terms of the PDDs used, allowing the use of both microcontrollers [4,5,6,7,8,9,10] and field-programmable gate arrays (FPGAs) [11,12,13,14,15,16]. The calculation capabilities of a PDD connected to a DIC allow them to function as smart sensors, pre-processing information from the sensor and thus reducing the workload in subsequent high-level processing and decision stages [17].
Although there are DICs for reading both capacitive and inductive sensors, those for resistive sensors have probably been the most widely used and analyzed in the literature, whether individually [3,7,18,19] or grouped in arrays [11,14]. Several issues need to be considered when designing a resistive DIC, such as accuracy, uncertainty, resolution [6,8,16,20,21,22], and calibration points [23]. Other problems that may influence the performance of these circuits such as response to dynamic signals [24], lead wire resistance [25], power consumption [5], estimation time [13], or problems related to the measurement of low-resistance sensors [15], have also been addressed.
However, problems related to variations in the charge voltage on the capacitor used in a resistive DIC have not received as much attention in the literature. These variations are fundamentally related to two causes. Firstly, there is the interference effect of the power supply in the voltage stored on the capacitor. This effect has only been studied in [26]. This article showed how results can be improved when charging the capacitor through an additional resistor connected to a PDD output and to the capacitor itself. Nevertheless, this solution presents a new problem, namely the increase in charge time due to the presence of this resistor. Secondly, the length of this charge time limits the operation of a resistive DIC in relation to the capacitor’s final charge voltage, since precise measurements can only be achieved if the capacitor’s different charges (as necessary in the resistive sensor reading process) reach the same voltage; this means a high charge time is required, thus minimizing any differences in the initial charge voltages [27] showed that the charge time must be at least five times the time constant formed, firstly, by the sum of the additional resistance and the resistance presented by a PDD output buffer, and, secondly, by the capacitor. Thus, if TE(RS) refers to the total time for estimating the resistance value of a sensor, RS, this time will increase notably due to this additional resistance, which, even when it has a small value as in [26], will always be much higher than the PDD buffer’s small output resistance value.
This article will set out a new method to offset the effects of variations in the final voltage on the capacitor charge cycles of a resistive DIC. This new method can be used to reduce errors when estimating the resistance value of the sensor due to this reason, or to reduce the capacitor’s charge time, thus decreasing TE(RS).
The structure of the paper is as follows. Section 2 shows the operating principles of the different types of DICs and their fundamental characteristics. Section 3 presents the new DIC proposal. Section 4 shows the materials and methods used in the evaluation of the new proposal and the experimental results. Finally, the conclusions are presented in Section 5.

2. Operating Principle of a DIC

The DIC most frequently used in the literature for reading resistive sensors uses the Two-Point Calibration Method, TPCM. This has the structure shown in Figure 1a. The RS reading process consists of three cycles. In the first part of each cycle, capacitor C is charged to a voltage, Vch, which is ideally equal to the supply voltage, VDD. This is done by placing a logic 1 output in the PDD’s Pp pin and charging C through resistor Rp (added in accordance with the indications of [26]). During the charge process, pins Ps, Pc1, and Pc2 are in a high-impedance state, HZ (i.e., configured as inputs). Then, the discharge of C takes place by placing the logic 0 output in one of the PDD’s Ps, Pc1, and Pc2 pins. Only one of these three pins will be configured as logic 0 output during the discharge processes, with the other two and Pp configured in the HZ state. Therefore, one discharge takes place through RS, and the other two take place through two known calibration resistors, RC1 and RC2. The voltage of the capacitor, VC(t), will evolve according to the following equation during the discharge process through RS:
V C ( t ) = V c h e t ( R S + R o ) C
where Ro is the output resistance of each pin configured as logic 0 output. The discharge ends when it is detected that the voltage in C has dropped below the threshold voltage VTh of the Pp pin (configured as input). Equation (1) can be used to establish the time taken in this discharge, TRs:
T R s = ( R S + R o ) C ln ( V c h V T h )
Discharging through RC1 and RC2 instead of through RS achieves times TRc1 and TRc2, replacing RS with RC1 and RC2 in Equation (2). If the noise in VDD is low and the charge times are long enough for discharges to always start from the same voltage on the capacitor, VchVDD, then the value of RS can be expressed straightforwardly in accordance with these times [4]:
R S = T R s T R c 1 T R c 2 T R c 1 ( R C 2 R C 1 ) + R C 1
This is the known equation for finding RS in the TPCM. The times shown in this equation represent integers of the PDD clock period, TCK. Therefore, RS can be found through known resistance values and the three-time measurement, eliminating dependence on C, Vch, and VTh.
A variant of this resistive DIC, which uses the same passive components (although arranged differently) and a different calibration method, is the Three Signals Method or TSM, as shown in Figure 1b. Three charge–discharge cycles are also carried out in the TSM, although in this case, discharge (duly configuring the pins) takes place through RC1, RC2 + RC1, and RS + RC1. This method, with the same Vch restrictions as those indicated for the TPCM, can be used to find RS from the following expression [4]:
R S = T R s + R c 1 T R c 1 T R c 2 + R c 1 T R c 1 R C 2
This expression is easier to evaluate than Equation (4), but the method has more inaccuracies in determining RS [13].
A second variant of the TPCM, Figure 1c, uses an additional calibration resistor, RC3, whenever low RS measurements are needed. This means the circuit requires an additional charge and discharge process, but it allows RS to be determined with 10 times greater precision if its value is around 10 Ω [15].
Another resistive DIC, with a different arrangement of resistors, is shown in Figure 1d [16]. In this case, three charge and discharge cycles are also carried out. However, two pins detect changes from 0 to 1 during discharge through RS, namely Ps and Pc1. Since Pc1 will always detect the change before Ps, there is an option to continue discharge from this moment of detection, either through RS or RC1 + RC2. This method reduces uncertainty due to quantization in TRs when the measurement value is low, which occurs if RS is also low, thus achieving an improvement in accuracy by determining RS for these resistance values. However, it comes at the expense of increased complexity of the equations that determine the value of RS and the need to save two time measurements during the discharge of RS.
Resistor Rp was introduced in these resistive DICs to reduce noise in the capacitor charge, thanks to the low-pass filter formed by Rp and C. However, as mentioned above, this solution has the disadvantage of increasing the time needed to charge C and, therefore, the total estimation time, TE(RS). As indicated above, long charge times are needed since the maximum voltage the capacitor is charged at (Vch) must be equal in all charge cycles and independent of the initial voltage each charge begins at (VC(0)), meaning, for example, Equations (3) and (4) remain valid (the same is true for the circuits in Figure 1c,d). This can be seen in the charge equation of a capacitor through the Pp pin:
V C ( t ) = V D D + ( V C ( 0 ) V D D ) e t ( R p + R o ) C
In this equation, the influence of VC(0) on the final voltage stored on the capacitor, Vch, is only negligible if t is large.
However, the initial voltages may be different at the start of each charge process, since a series of PDD clock cycles may elapse between the moment transition 1 → 0 is detected during discharge and the moment discharge ends (normally the same number of cycles, n, for all discharges). In the case of readings in sensor arrays (where measurements are taken in parallel), this problem is further exacerbated since it is necessary to wait until all the sensors have been read if the charge process is synchronous. Figure 2 shows the effect that this additional time has on the final discharge voltage through two different resistors (the instants for the start of discharge of the two resistors have been superimposed in this figure for clarification). Since these final discharge voltages are the initial ones in the following charge processes, the latter initially show the same difference. The only condition necessary for this difference to appear is that the resistors used for discharge differ from each other. However, this is precisely what happens in all the above calibration methods, since, firstly, RC1RC2 must always be met, and, secondly, RS is usually different from the calibration resistors.
The following section presents a new resistive DIC that can reduce errors in estimating RS, although the voltages the capacitor is charged at in each cycle differ from each other. This also allows shorter charge times, which in turn decreases TE(RS).

3. Calibration Method for Reducing Error Due to Different Voltages Stored on the Capacitor of a Resistive DIC

To achieve that the initial values of the voltage on the capacitor do not affect the discharge process, we propose a new DIC that is shown in Figure 3. Three calibration resistors are used, RC11, RC12, and RC2 apart from the resistor that models the sensor, RS, and the capacitor, C. The sum of the first two resistors will be called RC1. This sum plays a role equivalent to the first calibration resistor in the TPCM. Moreover, resistor Rp, as used in the DICs of the previous section, is eliminated. The proposed DIC also requires three charge and discharge cycles (three measurement cycles) to estimate RS. The charge cycles are performed by placing a logic 1 in all the PDD outputs in order to decrease the capacitor charge time, although this will be very similar to that needed if charging through Pp only. All discharges consist of two parts. In the first one, a partial discharge occurs through Pc1 (i.e., through RC1 = RC11 + RC12) for a preset time TA. All other pins will be in the HZ state (inputs) during this time. TA must meet the following relationship
T X < T A < T R C 1
where TX is the time elapsed from the start of discharge through Pc1 until voltage VTh is reached in VX. Since the voltage on the capacitor, at instant TX, is
V C ( T X ) = ( 1 + R C 11 R C 12 ) V T h
and, therefore, higher than VTh; discharge continues through Pc1 up to TA, without a logic 0 being detected in the Pp pin. The second part of the discharge begins as of TA, continuing with RS, RC2, or RC1 itself, depending on the measurement cycle.
Bearing in mind that the initial discharge voltage may differ in each measurement cycle, it is necessary to distinguish between Vch(RS), Vch(RC1), and Vch(RC2), and between TX(RS), TX(RC1), and TX(RC2), where the resistor that the discharge finishes through in a specific measurement cycle is shown in brackets. Moreover, TRs, TRc1, and TRc2 maintain their meaning as the total discharge time up to VC = VTh in each measurement cycle. However, TRs is now the sum of the time taken in the first part of the discharge through RC1, TA, plus the time taken in the second part of the discharge through RS. Similarly, TRc2 is the sum of TA and discharge time through RC2. Moreover, TRc1 is the discharge time through RC1 only, since both the first and second parts of the discharge take place through this resistor. The following variables will be used to set the equation for the new calibration method more straightforwardly: T R s * , T R c 1 * , and T R c 2 * . These variables measure the time it would take for the resistor that appears in the sub-index of these variables to discharge C from TX to VC = VTh in the Pp pin (although these times are not measured in this calibration method). The times defined above, for the case of the RS measurement cycle, are represented in Figure 4 (a similar figure would be achieved for the RC2 measurement cycle by changing RS for RC2).
Only T R c 1 * can be found directly, since
T R c 1 * = T R c 1 T X ( R C 1 )
However, T R * and T R c 2 * can only be found using the equation that describes the Modified Discharge Process, as introduced in [13]. This process is similar to the one described above, i.e., a capacitor is discharged through two resistors, Ri and Rj (first through Ri for time ti, with discharging then ending through Rj for time tj). Carrying out another capacitor discharge (from the same initial voltage to the same final voltage) through Rj only with discharge time Tj would allow us to know the time Ri would take to carry out the whole discharge, Ti, (without the need to carry out the discharge) by means of the equation (see Appendix A).
T i = T j · t i T j t j
The equivalent equation to this, considering the discharge shown in Figure 4 from instant TX(RS), is given by
T R c 1 * = T R s * ( T A T X ( R S ) ) T R s * ( T R s T A )
Thus:
T R s * = T R c 1 * ( T R s T A ) T R c 1 * T A + T X ( R S )
Using this procedure when discharge ends through RC2 finds
T R c 2 * = T R c 1 * ( T R c 2 T A ) T R c 1 * T A + T X ( R C 2 )
Moreover, times T R s * , T R c 1 * , and T R c 2 * can used to write a modified version of Equation (3) for three discharge cycles that start with the same capacitor voltage as shown in Equation (7), ending in VTh.
R S = T R s * T R c 1 * T R c 2 * T R c 1 * ( R C 2 R C 1 ) + R C 1
If the results of Equations (8), (11), and (12) are substituted in this expression, RS can be estimated by the equation
R S = T R s T A T R c 1 T A + T X ( R S ) T X ( R c 1 ) 1 T R c 2 T A T R c 1 T A + T X ( R c 2 ) T X ( R c 1 ) 1 ( R C 2 R C 1 ) + R C 1
All times are known in this equation, either because they have been measured, TRs, TRc1, TRc2, TX(RS), TX(RC1), and TX(RC2), or because it has been established by the designer, TA. The set formed by the new DIC proposed in Figure 3 and the new equation for calculating RS (14) will be called the Short-Time Charging Calibration Method, SCCM.
The basic idea in this new calibration method is to convert a series of initial discharge voltages that can vary between measurement cycles, namely Vch(RS), Vch(RC1), and Vch(RC2), into one indicated by Equation (7) that is constant and independent of the measurement cycle. Equation (14) needs more arithmetic operations and measurements than Equation (3), meaning it therefore has more sources of uncertainty. However, if the variation in the charge voltages of the three measurement cycles is large enough (which is indeed the case when shortening charge times to reduce TE(RS)), the new calibration method may provide better results than TPCM.

4. Experimental Results and Discussion

In order to study the proposed DIC and subsequently compare its results with those based on a classic calibration method such as TPCM, both circuits were implemented using a Xilinx FPGA, specifically the Spartan 6 XC6SLX25-3FTG256 model. The working voltage of the I/O blocks of this FPGA, and therefore, the maximum voltage on the capacitor for the discharges, Vch, was 3.3 V. Output buffers were configured to drive up to 24 mA each. Time-to-digital conversion was performed by a 14-bit counter with a 20 ns time base, which allowed discharge times of up to 327.68 µs. To achieve low measurement uncertainties, we have used the smart capture modules proposed in [28]. FPGA device utilization for the acquisition module was 2% of the Slice LUTs (329), 326 used as logic, and 3 used as route-thrus, and 1% of the Slice Registers (231), 223 used as Flip-Flops, and 8 used as latches. The choice of this device has been mainly due to the versatility of FPGAs. However, it is important to highlight that any PDD is a good candidate for the implementation of the method presented in this article, since no special characteristics of these circuits are required to work with these resistive DICs.
The tests were performed on a set of resistors in the range 270 to 7500 Ω, although the new SCCM allowed values of 10 kΩ to be reached in some of the experiments. As for the calibration resistors, the values chosen for SCCM were RC11 = 557.46 Ω, RC12 = 559.04 Ω, and RC2 = 6165.9 Ω, while for TPCM, they were RC1 = 1116.5 Ω and RC2 = 6165.9 Ω. Note that RC1 for TPCM is the sum of RC11 + RC12 = 1116.5 Ω used in SCCM. A 47 nF capacitor was chosen for C. The design rules for this type of DIC are fulfilled with these values, for both the calibration resistors and the capacitor used, as stated in the literature [23,29] (the value of RC1 is around 15% of the range of resistances to be measured and RC2 is around 85%). All the resistors were measured using an Agilent 34401A digital multimeter. In the case of the SCCM method, TA = 9.68 µs was established for partial discharge time through Pc1, thus complying with the restriction expressed in Equation (6).
In order to compare the results provided for the estimation of RS using TPCM, as shown in Equation (3), and SCCM, as shown in Equation (14), several tests were carried out for both methods, with varying capacitor charge times. For the comparison, the TPCM has been slightly modified to ensure the capacitor charges as quickly as possible. Therefore, in TPCM, it was decided to charge through all the available pins, as in SCCM. Furthermore, as resistor Rp in Figure 1a slows down the charge process, it was decided to replace it with a short circuit.
A 12-bit counter was implemented in the FPGA, b11b10...b1b0, to control the charge time in both methods. These bits will determine charge time. In order to simplify the hardware design in the FPGA, bearing in mind that a range of charge times must be implemented, the most significant output bit of this counter, b11, was used to control maximum charge time, as indicated below. When the charge process starts, the counter resets, and the count starts. Charging continues as the counter advances, as long as b11 remains 0. The charge process (and the counter advance) ends at the moment b11 becomes 1, with the discharge process then starting. Therefore, the maximum charge time is 211·TCK, where TCK = 20 ns is the period of the clock signal used in the counter. In our case, this maximum charge time is therefore 40.96 µs. Other counter output bits were used to find shorter charge times. For example, b10 was used as the control bit to find a charge time of 20.48 µs. Bit pairs were used to make this control more precise when charge times were shorter. Therefore, the charge time was 1.92 µs if the charge stops the first time bits b6 and b5 are simultaneously 1. The charge times used for the comparison between the two calibration methods were 1.92 µs, 2.56 µs, 3.84 µs, 5.12 µs, 10.24 µs, 20.48 µs, and 40.96 µs. The figure of merit to be used for the comparison will be the maximum relative error found for the set of 500 estimations made for each resistor with each charge time.
The maximum relative errors found in the estimation of RS with the charge times indicated above are shown in Figure 5 for both calibration methods. The results for the shortest charge time are shown in Figure 5a, with charge time increasing in the different figures up to Figure 5g, which shows the results for the longest charge time. Figure 5 shows two main features. Firstly, the maximum relative error with SCCM hardly varies between the different charge times. Indeed, for most resistors, this error varies between 0.5% and 0.3% and, only for very low resistance values, this error is higher with small charge times. This increase in the error for small resistances is caused by the quantization errors, since, in the case of SCCM, these errors are more severe because the time measurements of TX(RS), TX(RC1), and TX(RC2) are smaller than TRs, TRc1, or TRc2. Obviously, this can be compensated by an increase in the clock frequency and/or the capacitance, C. However, these changes must be carefully evaluated considering the drawbacks that they entail (higher power consumption, increasing noise, and TE(RS)). Another more interesting way that could be used to achieve the reduction of quantization errors would be to use the method proposed in [16] together with the SCCM. However, this is beyond the objectives of this article.
Secondly, as expected, the maximum relative error in TPCM is large for small charge times, with a maximum of 12.4% for a charge time of 1.92 µs and a resistance value of 7464 Ω. As the charge time increases, this error decreases for all resistance values in the range, until values slightly below 0.1% are reached for high resistances with a maximum charge time of 40.96 µs. SCCM almost always outperforms TPCM in accuracy for short charge times up to 3.84 µs. The exceptions to this are resistances of less than 600 Ω with a charge time of exactly 3.84 µs. Relative errors in both methods are very similar for a charge time of 5.12 µs. For higher charge times, TPCM slightly outperforms SCCM. However, even in these cases, the difference in the maximum relative errors is only 0.2% for almost the entire resistance range. Therefore, SCCM makes it possible to reduce the charge time more than 20-fold with a very moderate increase in error. Secondly, it is observed that SCCM allows higher resistance values to be estimated than in the case of TPCM. This is because part of the discharge through RS is via RC1, meaning that the total discharge time for RS > RC1 is shortened and discharges for higher resistance values can be measured with the designed counter.
The reason why error with high charge times is greater in SCCM than in TPCM is related to uncertainty in the measurement of TX, u(TX), (independent of the measurement cycle, because to find TX, the discharges are always through RC1). Indeed [30] shows that uncertainty in measuring discharge time through any R, u(TR), depends proportionally on the circuit’s electrical noise in the measurement node (in this case, the capacitor node), ε C , and inversely on the absolute value of the derivative of the discharge curve (1) with respect to time at the measured instant.
u ( T R ) ε C · ( R + R o ) · C ε C · R · C
Finally, as the VX(t) discharge curve in Figure 3 is given by
V X ( t ) = R C 12 R C 1 V c h · e t ( R C 1 + R o ) C
it is easy to find that
u ( T X ) ε X · ( R C 1 + R o ) · C ε X · R C 1 · C
where ε X is the electronic noise of node X in Figure 3. The relationship between u(TRc1) and u(TX) is therefore found by adapting Equation (15) and using Equation (17).
u ( T X ) u ( T R c 1 ) ε X ε C
However, the electronic noise in node X is higher than that in the capacitor node, which is mainly due to the fact that the capacitor itself filters this noise. Therefore, the ratio in Equation (18) should be greater than one and approximately constant. Furthermore, the relationship between uncertainties will vary for each implementation of a single DIC. Figure 6 shows the results for u(TRc1) and u(TX) in our implementation of the circuit for the different charge times. Except for a small increase in u(TX) when the charge time is 1.92 µs, the uncertainties are approximately constant, since the resistance carrying out the capacitor discharge is the same in all cases, RC1, and the relationship between these uncertainties is u ( T X ) 4 · u ( T R c 1 ) . The observed growth in uncertainty for a charge time of 1.92 µs is due to the final charging voltage already being much less than VDD, and therefore TX is a smaller value that is more affected by quantization errors. This high value of u(TX) compared to u(TRc1) is responsible for the maximum relative error of SCCM being higher than that of TPCM for longer charge times, especially considering that there are three times to be measured in node X, each with their corresponding uncertainties, as shown in Equation (14).
In order to compare the results for SCCM with those for TPCM, minimizing the influence of any uncertainty in the estimation of RS, the average of the 500 estimations of RS for each charge time has been calculated, and this value has been taken as the systematic estimation of each method. We call the absolute difference between the real value of RS and this systematic estimation systematic error. Figure 7 shows the difference between these systematic errors for both methods in the case of a charge time close to the minimum, 5.12 µs, as shown in Figure 7a, and, for the maximum charge time, 40.96 µs, as shown in Figure 7b. In Figure 7b, the systematic error is lower in SCCM (except for resistance value 556.4 Ω), unlike the relative errors shown in Figure 5g. This shows that the main cause of errors in SCCM is the higher uncertainty of the different TX measurements. The form of systematic errors in TPCM is typical, increasing with resistance value [30]. However, systematic errors increase more slowly in SCCM, meaning that the advantage for SCCM increases as the resistance value increases.

5. Conclusions

Direct Interface Circuits are a simple way to read a resistive sensor in digital form without the need for analog-to-digital converters. The simplest versions of these circuits need only a few passive elements (resistors and a capacitor) to provide this information, RS. Even with these simple circuits, the accuracy achieved in measurement is quite high, with errors of just a few tenths of a percent. However, as in any circuit, they also have a series of limitations, most notably the time needed to carry out the estimation of RS, TE(RS). Since this time is the sum of various charge and discharge times, reducing each of them helps decrease TE(RS).
Accuracy in the estimations when using a DIC is only possible if the final voltages stored on the capacitor are the same in the different charge cycles, which, since the initial voltages that charging starts from differ from each other, can only be achieved if capacitor charge times are long enough. This slows down the operation of the DIC, which can be a serious problem when multiple resistive sensors need to be read in a system.
This article presents a method to reduce charge times that consists of a new DIC architecture (in which only passive components are still used) together with a new calculation method for the estimation of RS, which we call the Short-Time Charging Calibration Method, SCCM. The method is based on performing two measurements within a single discharge process, while a classic DIC only performs one. These new measurements only require an additional pin for the programmable digital device used in the DIC, and the information they provide means that the initial voltages in the discharge processes do not necessarily have to be the same in order to correctly estimate RS. For charge times of 1.92 µs, this method has achieved errors very similar to those in a classic DIC with charge times of 40.96 µs, the difference being around 0.2%–0.3% for almost all resistance values in the tested range. Furthermore, SCCM can measure higher resistance values for the same maximum discharge time.

Author Contributions

Conceptualization, J.A.H.-L. and Ó.O.-P.; methodology, Ó.O.-P. and J.A.S.-D.; software, Ó.O.-P.; validation and investigation, J.A.H.-L., J.A.S.-D., and Ó.O.-P.; writing—original draft preparation, J.A.H.-L.; writing—review and editing, J.A.H.-L., J.A.S.-D., and Ó.O.-P. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Spanish Government and by the European ERDF program funds under contract TEC2015-67642-R and by the Universidad de Málaga under program “Plan Propio 2020”.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

If ti, tj, and Tj are the times defined in Section 3, then it is possible to find Ti using Equation (9). To demonstrate this, ti, tj, and Tj could be written as:
t i = ( R i + R o ) C ln ( V c h V X )
t j = ( R j + R o ) C ln ( V X V T h )
T j = ( R j + R o ) C ln ( V c h V T h )
where VX is the final voltage reached during the partial discharging through Ri. With these equations, we can write:
T j · t i T j t j = ( R j + R o ) C ln ( V c h V T h ) · ( R i + R o ) C ln ( V c h V X ) ( R j + R o ) C ln ( V c h V T h ) ( R j + R o ) C ln ( V X V T h ) = = ( R i + R o ) C ln ( V c h V T h ) ln ( V c h V X ) ln ( V c h V T h ) ln ( V X V T h ) = ( R i + R o ) C ln ( V c h V T h ) = T i

References

  1. Sherman, D.; Sherman, A.D. AN449 Measure Resistance and Capacitance without an A/D; Philips Semiconductors: Sunnyvale, CA, USA, 1993. [Google Scholar]
  2. Webjörn, A. Simple A/D for MCUs without Built-in A/D Converters; AN477.Freescale Semiconductor, Inc.: Milton Keynes, UK, 1993. [Google Scholar]
  3. Kokolanski, Z.; Gavrovski, C.; Dimcev, V.; Makraduli, M. Hardware Techniques for Improving the Calibration Performance of Direct Resistive Sensor-to-Microcontroller Interface. Metrol. Meas. Syst. 2013, 20, 529–542. [Google Scholar] [CrossRef] [Green Version]
  4. Reverter, F. Interfacing sensors to microcontrollers: A direct approach. Smart Sens. MEMs 2018, 23–55. [Google Scholar] [CrossRef]
  5. López-Lapeña, O.; Serrano-Finetti, E.; Casas, O. Low-Power Direct Resistive Sensor-to-Microcontroller Interfaces. IEEE Trans. Instrum. Meas. 2016, 65, 222–230. [Google Scholar] [CrossRef] [Green Version]
  6. Custodio, A.; Pallas-Areny, R.; Bragos, R. Error analysis and reduction for a simple sensor-microcontroller interface. IEEE Trans. Instrum. Meas. 2001, 50, 1644–1647. [Google Scholar] [CrossRef]
  7. Nagarajan, P.R.; George, B.; Kumar, V.J. Improved Single-Element Resistive Sensor-to-Microcontroller Interface. IEEE Trans. Instrum. Meas. 2017, 66, 2736–2744. [Google Scholar] [CrossRef]
  8. Anarghya, A.; Rao, S.S.; Herbert, M.A.; Navin Karanth, P.; Rao, N. Investigation of errors in microcontroller interface circuit for mutual inductance sensor. Eng. Sci. Technol. Int. J. 2019, 22, 578–591. [Google Scholar] [CrossRef]
  9. Kokolanski, Z.; Gasulla, M.; Reverter, F. Differential Inductive Sensor-to-Microcontroller Interface Circuit. In Proceedings of the 2019 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Auckland, New Zealand, 20–23 May 2019; pp. 1–5. [Google Scholar]
  10. Czaja, Z. A measurement method for capacitive sensors based on a versatile direct sensor-to-microcontroller interface circuit. Meas. J. Int. Meas. Confed. 2020, 155, 107547. [Google Scholar] [CrossRef]
  11. Oballe-Peinado, Ó.; Vidal-Verdú, F.; Sánchez-Durán, J.A.; Castellanos-Ramos, J.; Hidalgo-López, J.A. Accuracy and Resolution Analysis of a Direct Resistive Sensor Array to FPGA Interface. Sensors 2016, 16, 181. [Google Scholar] [CrossRef] [Green Version]
  12. Oballe-Peinado, O.; Hidalgo-Lopez, J.A.; Sanchez-Duran, J.A.; Castellanos-Ramos, J.; Vidal-Verdu, F. Architecture of a tactile sensor suite for artificial hands based on FPGAs. In Proceedings of the IEEE RAS and EMBS International Conference on Biomedical Robotics and Biomechatronics, Rome, Italy, 24–27 June 2012. [Google Scholar]
  13. Hidalgo-López, J.A.; Botín-Córdoba, J.A.; Sánchez-Durán, J.A.; Oballe-Peinado, Ó. Fast Calibration Methods for Resistive Sensor Readout Based on Direct Interface Circuits. Sensors 2019, 19, 3871. [Google Scholar] [CrossRef] [Green Version]
  14. Botín-Córdoba, J.A.; Oballe-Peinado, Ó.; Sánchez-Durán, J.A.; Hidalgo-López, J.A. Quasi Single Point Calibration Method for High-Speed Measurements of Resistive Sensors. Micromachines 2019, 10, 664. [Google Scholar] [CrossRef] [Green Version]
  15. Hidalgo-Lopez, J.A.; Botin-Cordoba, J.A.; Sanchez-Duran, J.A.; Tejero-Calado, J.C.; Oballe-Peinado, O. Improved Calibration Method for Resistive Sensors using Direct Interface Circuits. IEEE Trans. Instrum. Meas. 2019, 9456, 1. [Google Scholar] [CrossRef]
  16. Hidalgo-Lopez, J.A.; Sanchez-Duran, J.A.; Oballe-Peinado, O. Method to Reduce Quantization Error in Direct Interface Circuits for Resistive Sensors. IEEE Sens. J. 2020. [Google Scholar] [CrossRef]
  17. Oballe-Peinado, O.; Hidalgo-Lopez, J.A.; Castellanos-Ramos, J.; Sanchez-Duran, J.A.; Navas-Gonzalez, R.; Herran, J.; Vidal-Verdu, F. FPGA-Based Tactile Sensor Suite Electronics for Real-Time Embedded Processing. IEEE Trans. Ind. Electron. 2017, 64, 9657–9665. [Google Scholar] [CrossRef]
  18. Sifuentes, E.; Casas, O.; Reverter, F.; Pallàs-Areny, R. Direct interface circuit to linearise resistive sensor bridges. Sens. Actuators A Phys. 2008, 147, 210–215. [Google Scholar] [CrossRef]
  19. Reverter, F.; Casas, Ó. Interfacing Differential Resistive Sensors to Microcontrollers: A Direct Approach. IEEE Trans. Instrum. Meas. 2009, 58, 3405–3410. [Google Scholar] [CrossRef]
  20. Asif, A.; Ali, A.; Abdin, M.Z.U. Resolution Enhancement in Directly Interfaced System for Inductive Sensors. IEEE Trans. Instrum. Meas. 2018, 68, 4104–4111. [Google Scholar] [CrossRef]
  21. Reverter, F.; Pallàs-Areny, R. Uncertainty reduction techniques in microcontroller-based time measurements. Sens. Actuators A Phys. 2006, 127, 74–79. [Google Scholar] [CrossRef]
  22. Reverter, F.; Casas, Ò. Direct interface circuit for capacitive humidity sensors. Sens. Actuators A Phys. 2008, 2, 315–322. [Google Scholar] [CrossRef]
  23. Pallàs-Areny, R.; Jordana, J.; Casas, Ó. Optimal two-point static calibration of measurement systems with quadratic response. Rev. Sci. Instrum. 2004, 75, 5106–5111. [Google Scholar] [CrossRef]
  24. Sifuentes, E.; Gonzalez-Landaeta, R.; Cota-Ruiz, J.; Reverter, F. Measuring Dynamic Signals with Direct Sensor-to-Microcontroller Interfaces Applied to a Magnetoresistive Sensor. Sensors 2017, 17, 1150. [Google Scholar] [CrossRef] [Green Version]
  25. Anandanatarajan, R.; Mangalanathan, U.; Gandhi, U. Enhanced Microcontroller Interface of Resistive Sensors through Resistance-to-Time Converter. IEEE Trans. Instrum. Meas. 2019, 9456, 1. [Google Scholar] [CrossRef]
  26. Reverter, F.; Gasulla, M.; Pallàs-Areny, R. Analysis of power-supply interference effects on direct sensor-to-microcontroller interfaces. IEEE Trans. Instrum. Meas. 2007, 56, 171–177. [Google Scholar] [CrossRef]
  27. Sifuentes, E.; Gasulla, M.; Casas, Ò.; Reverter, F. Improving the performance of direct interface circuits using the Vernier technique. In Proceedings of the 2009 IEEE Instrumentation and Measurement Technology Conference, Singapore, 5–7 May 2009; pp. 1300–1303. [Google Scholar]
  28. Oballe-Peinado, Ó.; Vidal-Verdú, F.; Sánchez-Durán, J.A.; Castellanos-Ramos, J.; Hidalgo-López, J.A. Smart Capture Modules for Direct Sensor-to-FPGA Interfaces. Sensors 2015, 15, 31762–31780. [Google Scholar] [CrossRef] [Green Version]
  29. Reverter, F.; Pallàs-Areny, R. Effective number of resolution bits in direct sensor-to-microcontroller interfaces. Meas. Sci. Technol. 2004, 15, 2157–2162. [Google Scholar] [CrossRef]
  30. Reverter, F. Direct Sensor to Microcontroller Interface Circuits; Marcombo: Barcelona, Spain, 2005; ISBN 978-8426713803. [Google Scholar]
Figure 1. Different types of resistive Direct Interface Circuits (DICs) proposed in the literature (resistor/sensor to be estimated shown in red). (a) Two-Point Calibration Method, TPCM. (b) Three-Signal Method, TSM. (c) DIC for measuring low resistance values. (d) DIC designed to reduce quantization error.
Figure 1. Different types of resistive Direct Interface Circuits (DICs) proposed in the literature (resistor/sensor to be estimated shown in red). (a) Two-Point Calibration Method, TPCM. (b) Three-Signal Method, TSM. (c) DIC for measuring low resistance values. (d) DIC designed to reduce quantization error.
Sensors 20 02596 g001
Figure 2. The C discharge process through two different resistors, Ra and Rb (curves VC(Ra) and VC(Rb)) ends in different voltages due to the prolongation of the discharge for a certain number of clock cycles, n·TCK.
Figure 2. The C discharge process through two different resistors, Ra and Rb (curves VC(Ra) and VC(Rb)) ends in different voltages due to the prolongation of the discharge for a certain number of clock cycles, n·TCK.
Sensors 20 02596 g002
Figure 3. New resistive DIC proposed for error reduction due to different initial voltages stored on the capacitor (resistor/sensor to be estimated shown in red).
Figure 3. New resistive DIC proposed for error reduction due to different initial voltages stored on the capacitor (resistor/sensor to be estimated shown in red).
Sensors 20 02596 g003
Figure 4. Times taken to estimate RS in its measurement cycle. Actual discharge through RS is shown in orange; in green is the length of a hypothetical discharge through RS if started after a discharge through RC1 up to T X ( R S ) ,   T R s * .
Figure 4. Times taken to estimate RS in its measurement cycle. Actual discharge through RS is shown in orange; in green is the length of a hypothetical discharge through RS if started after a discharge through RC1 up to T X ( R S ) ,   T R s * .
Sensors 20 02596 g004
Figure 5. Comparison of maximum relative errors in estimating RS when using the Short-Time Charging Calibration Method (SCCM) or TPCM. Each graph represents a different capacitor charge time. (a) charge time of 1.92 µs (b) charge time of 2.56 µs, (c) charge time of 3.84 µs, (d) charge time of 5.12 µs, (e) charge time of 10.24 µs, (f) charge time of 20.48 µs, (g) charge time of 40.96 µs.
Figure 5. Comparison of maximum relative errors in estimating RS when using the Short-Time Charging Calibration Method (SCCM) or TPCM. Each graph represents a different capacitor charge time. (a) charge time of 1.92 µs (b) charge time of 2.56 µs, (c) charge time of 3.84 µs, (d) charge time of 5.12 µs, (e) charge time of 10.24 µs, (f) charge time of 20.48 µs, (g) charge time of 40.96 µs.
Sensors 20 02596 g005
Figure 6. Comparison of uncertainties in discharge times measured in the capacitor node and in node X when discharge occurs through RC1. Uncertainty in the capacitor node in Figure 3, u(TRc1), is shown in green, while uncertainty in the X node, u(TX), is shown in purple, both for different charge times (in log2 scale).
Figure 6. Comparison of uncertainties in discharge times measured in the capacitor node and in node X when discharge occurs through RC1. Uncertainty in the capacitor node in Figure 3, u(TRc1), is shown in green, while uncertainty in the X node, u(TX), is shown in purple, both for different charge times (in log2 scale).
Sensors 20 02596 g006
Figure 7. Systematic error for TPCM and SCCM for various charge times. (a) Charge Time of 5.12 µs. (b) Charge Time of 40.96 µs.
Figure 7. Systematic error for TPCM and SCCM for various charge times. (a) Charge Time of 5.12 µs. (b) Charge Time of 40.96 µs.
Sensors 20 02596 g007

Share and Cite

MDPI and ACS Style

Hidalgo-López, J.A.; Sánchez-Durán, J.A.; Oballe-Peinado, Ó. Reducing Measurement Time in Direct Interface Circuits for Resistive Sensor Readout. Sensors 2020, 20, 2596. https://doi.org/10.3390/s20092596

AMA Style

Hidalgo-López JA, Sánchez-Durán JA, Oballe-Peinado Ó. Reducing Measurement Time in Direct Interface Circuits for Resistive Sensor Readout. Sensors. 2020; 20(9):2596. https://doi.org/10.3390/s20092596

Chicago/Turabian Style

Hidalgo-López, José A., José A. Sánchez-Durán, and Óscar Oballe-Peinado. 2020. "Reducing Measurement Time in Direct Interface Circuits for Resistive Sensor Readout" Sensors 20, no. 9: 2596. https://doi.org/10.3390/s20092596

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop