1. Introduction
Resistive sensors are widely adopted due to their simple structure, low cost, and compatibility with digital electronics. These sensors operate by converting physical quantities—such as temperature, pressure, humidity, or gas concentration—into a corresponding change in electrical resistance. Common examples include thermistors, strain gauges, metal-oxide gas sensors (e.g., MQ series), and resistive soil moisture probes [
1,
2]. Their versatility has led to broad applications in fields such as wearable health monitoring, smart agriculture, robotics, and environmental sensing [
3,
4]. For instance, textile-based resistive sensors are used in wearable systems to detect posture, motion, and respiration [
3], while resistive moisture and gas sensors are commonly deployed in agricultural environments to monitor soil hydration and livestock air quality [
1,
4]. These widespread applications have increased the demand for compact, low-power, and accurate readout systems that can support reliable resistive sensing under noisy, mobile, or remote conditions.
While resistive sensors provide numerous advantages, their measurement accuracy is often compromised by parasitic resistances introduced by long interconnect wires—particularly in remote or distributed sensing scenarios. In two-wire configurations, the same pair of conductors is used for both excitation and signal acquisition, making it difficult to distinguish the sensor resistance from the resistance of the lead wires. This results in systematic measurement errors that increase with wire length and vary with temperature-induced changes in wire resistance [
5]. To mitigate lead-wire resistance effects, three-wire and four-wire measurement techniques are commonly employed. The three-wire configuration relies on matched lead resistances and differential sensing to compensate for one wire contribution, whereas the four-wire (Kelvin) method completely separates the excitation and sensing paths, enabling highly accurate measurements even over long cable lengths. Despite their effectiveness, both approaches require additional wiring and hardware resources, which increases system complexity and cost. As a result, they are poorly suited for compact, wearable, or large-scale deployments where many sensing points must be addressed. In parallel, alternative solutions have been proposed for direct microcontroller interfacing or simplified analog front-end implementation, typically based on resistance-to-voltage (R-to-V) or resistance-to-time (R-to-T) conversion techniques [
6,
7,
8,
9,
10]. These methods translate resistance variations into voltage levels or timing intervals that can be readily digitized, reducing the need for dedicated instrumentation circuits. However, their performance is often constrained by nonlinearity, limited dynamic range, and sensitivity to parasitic elements such as switch resistance, comparator thresholds, and ADC nonidealities. More importantly, these approaches are difficult to extend to multi-sensor systems—such as electronic noses, tactile arrays, or distributed environmental sensors—where scalable, accurate readout with shared wiring and switching resources is required.
To address the limitations of conventional multi-wire configurations and direct R-to-V interface methods in multi-sensor systems, this work presents a diode-guided, op-amp-based readout circuit for two-wire resistive sensors using unidirectional square-wave excitation generated by a microcontroller. Unlike [
11], which requires analog filtering and strict 50% PWM excitation, the proposed technique enables real-time resistance extraction by directly sampling two steady-state output voltage levels—simplifying both hardware and timing requirements. The core challenge of lead-wire and analog switch resistance is resolved by exploiting symmetric diode-steered conduction paths. During alternating excitation phases, the excitation current flows through mirrored paths that include both the sensor and its associated parasitic elements. As a result, undesired resistive voltage drops are inherently canceled when the resistance is computed from the differential output. This compensation is achieved without additional calibration or compensation circuitry. The proposed architecture supports fast response and improved scalability while maintaining a simple implementation based on a single operational amplifier and a row–column analog switch matrix. Sensor resistance is calculated from the op-amp output voltage plateaus relative to a virtual bias point, avoiding cumulative errors commonly introduced by analog averaging or comparator delays. Experimental results validate the effectiveness of the method over a wide resistance range from 0.5 to 3.5 kΩ, with a maximum relative error of only 0.23% even under significant lead-wire resistance. These characteristics make the proposed solution well suited for compact, low-power, and cost-sensitive sensing applications in remote, wearable, or distributed environments.
The remainder of the paper is organized as follows:
Section 2 introduces the proposed configuration for lead-wire compensation and outlines the theoretical framework for resistance extraction.
Section 3 presents experimental results, including waveform observations and measurement accuracy under various parasitic conditions.
Section 4 provides a detailed discussion of the findings, comparing the proposed approach with existing resistive sensor readout techniques. Finally,
Section 5 concludes the paper by summarizing the key contributions and practical implications of the method.
2. The Basis of the Proposed Method and Theoretical Analysis
The proposed method extends the diode-steered, op-amp-based configuration from [
11], originally designed for accurate two-wire resistance measurement using bidirectional square-wave excitation. While effective for a single sensor, that approach lacks scalability and requires low-pass filtering and fixed-duty control. To address these limitations, our previous work [
12] introduced a resistive sensor array interface using differential sampling and multi-phase averaging. Building on these foundations, the present system employs unidirectional square-wave excitation and a row-selectable analog switch matrix to dynamically insert each sensor into the feedback loop of a shared op-amp. This configuration enables fast, filter-free, and scalable two-wire measurements suitable for sensor arrays, while inherently compensating for parasitic wire and switch resistance.
2.1. Proposed Configuration
The proposed circuit provides a scalable and accurate readout solution for multiplexed two-wire resistive sensors using a single inverting operational amplifier, diode steering, and unidirectional square-wave excitation. As illustrated in
Figure 1a, a unipolar square-wave excitation voltage
, toggling between 0 V and 5 V, is generated by a microcontroller output and applied across a precision reference resistor
. This produces a constant excitation current
, which serves as the stimulus for all sensor measurements. Sensor selection is achieved through an analog switch matrix that sequentially connects one sensor row to a shared column return line. Once a row is selected, the corresponding sensor is dynamically inserted into the feedback path of the operational amplifier. Each sensor node incorporates two diode paths (
and
), which steer the excitation current depending on the state of
. When
is high, one diode path conducts and the current flows through the sensor in one direction; when
is low, the complementary diode path conducts, reversing the sensor current. This mechanism enables effective bidirectional current excitation using a single unidirectional drive signal.
To ensure compatibility with single-supply microcontroller systems, the non-inverting input of the op-amp is biased to a fixed mid-supply voltage
(typically 2.5 V). This establishes a virtual reference point and forces the op-amp output to swing around
, keeping both output levels within the ADC input range. During each excitation phase, the op-amp output settles to a stable voltage plateau—denoted
or
—corresponding to the voltage drop across the active conduction path. Although the excitation current
remains unidirectional, the diode-guided conduction paths cause the sensor current to alternate direction between phases. By sampling the two output plateaus and performing a differential calculation referenced to
, the sensor resistance can be accurately extracted. This operation inherently cancels the effects of lead-wire resistance and analog switch on-resistance, without requiring analog low-pass filtering, signal averaging. As shown in
Figure 1b, the microcontroller controls both the excitation signal
and the row-selection lines, while the ADC samples the op-amp output
during each phase. The resistance computation is performed digitally, enabling a compact, low-power implementation suitable for multiplexed sensor systems.
2.2. Theoretical Derivation
The proposed circuit determines the sensor resistance by analyzing the steady-state output plateaus of the op-amp during two alternating excitation phases. As shown in
Figure 2, a unipolar square-wave excitation signal
toggles between 0 V and
Vcc (e.g., 5 V), producing a constant excitation current
through the reference resistor
. Although this current remains unidirectional, the diode steering network causes the current through the sensor to alternate direction in each half-cycle.
Let us define:
: The op-amp output during the interval, when the sensor current flows in the reverse direction (e.g., through diode ). This corresponds to the lower excitation level , causing the op-amp to drive current out.
: The op-amp output during the interval, when the sensor current flows in the reverse direction (e.g., through diode ). This corresponds to the lower excitation level , causing the op-amp to drive current out.
are the lead-wire resistances and is the analog switch on-resistance.
, are diode forward voltages during each conduction path.
During the low phase of excitation (), the excitation current is sourced from the op-amp output and flows through the path: op-amp →→→→→→ .
Applying KVL, the op-amp output voltage becomes:
During the high phase of excitation (), the current flows from through , into the op-amp (held at ), and exits through the path: op-amp →→→→→.
It is important to note that the same analog switch channel is used during both excitation phases, such that the on-resistance
appears identically in Equations (1) and (2). Consequently,
—along with the lead-wire resistances
and
—acts as a common-path parasitic and does not introduce asymmetry between the two measurements. Assuming matched diode forward voltages (
) and constant parasitic elements, these terms cancel analytically when the differential output is formed. Moreover, while the CD4051B analog switch exhibits a nonlinear, voltage-dependent
characteristic (e.g., ranging from ~125 Ω near 2.5 V to >300 Ω near 0 V or 5 V) [
13], its effect is minimized by the symmetry of the current path and further mitigated through the differential measurement approach. Any residual nonlinearity is compensated by the one-point calibration and averaging method described in
Section 3.2. The true sensor resistance
can therefore be isolated as:
2.3. Non-Ideality
Under non-ideal conditions, the resistance measurement using the proposed method may be affected by several error sources, including diode mismatch, op-amp input offset voltage (), input bias current (), and ADC quantization. These effects contribute to offset and gain errors in the computed sensor resistance , which are detailed below.
2.3.1. Diode Forward Voltage Mismatch
In the ideal case, both steering diodes exhibit identical forward voltage drops, and the differential output voltage depends linearly on the sensor resistance
. However, in practice, a mismatch between the forward voltages of diodes
and
introduces a residual error. Let
, denote this mismatch. The total differential output over a full excitation cycle becomes:
As a result, the measured resistance becomes:
Since may be positive or negative, the resistance error can lead to either overestimation or underestimation. For example, if and , the resulting resistance error is 0.2 Ω. For a 1 kΩ sensor, this corresponds to a 0.02% error. Using well-matched diodes or integrated diode pairs can significantly reduce this mismatch and improve overall accuracy.
2.3.2. Op-Amp Voltage Offset
The input offset voltage of the op-amp introduces a consistent asymmetry in both measurement phases. During each half-cycle, the output voltage is shifted by
, depending on the direction of current flow. As a result, the total differential output is affected by a cumulative offset of
, leading to:
Solving for the measured resistance yields:
Assuming a typical op-amp input offset of and an excitation current , the resulting worst-case resistance error is 0.6 Ω. For a 1 kΩ sensor, this corresponds to 0.06% full-scale span (FSS). The error becomes proportionally more significant at lower excitation currents, making low-offset op-amps preferable in high-accuracy applications.
2.3.3. Input Bias Current
The input bias current
of the op-amp flows into or out of the inverting input, where the virtual ground is maintained at
. In the proposed configuration, the inverting input node is connected to the column line through diode steering and the selected sensor path. As a result, any nonzero
introduces a small additional current that either adds to or subtracts from the excitation current
, depending on its polarity.
Solving for the measured resistance:
This results in a systematic underestimation of the true resistance , since the denominator is larger than the nominal excitation current. For example, assuming and a typical op-amp input bias current , the effective current increases by only 0.005%, resulting in a negligible error (about 0.5 Ω for a 10 kΩ sensor).
2.3.4. ADC Nonlinearities
In the experimental setup, an ATmega2560 microcontroller was used to acquire the op-amp output voltage via its built-in 10-bit successive-approximation ADC. This ADC operates with a full-scale reference voltage of
, providing a digital output described by the expression [
14]:
where
is the output code,
is the gain error coefficient, and
is the offset code.
According to the ATmega2560 datasheet [
15] (p. 382), the ADC exhibits a worst-case absolute accuracy of ±2.25 LSB under typical operating conditions, which includes the combined effects of gain error, offset error, differential nonlinearity (DNL), and integral nonlinearity (INL). For a 10-bit ADC with a full-scale voltage of 5 V, one LSB corresponds to approximately 4.88 mV, yielding a maximum voltage uncertainty of about 11 mV. The proposed readout method calculates sensor resistance from the differential quantity
, which inherently cancels static gain and offset errors. However, DNL and quantization noise still introduce small deviations in the digitized values. Given the voltage-to-resistance scaling factor of approximately 800 Ω/V, this voltage uncertainty contributes a resistance error of around 8.8 Ω, or 0.35% over the 0.5–3.5 kΩ range. To further suppress ADC-induced errors, 100 samples are averaged during each excitation phase. This averaging reduces the influence of random quantization noise and DNL-related fluctuations by a factor of
, lowering the effective ADC contribution to below 0.2% full-scale span (FSS). These results indicate that, while ADC nonlinearity represents a fundamental limitation, its impact on the proposed readout scheme is effectively mitigated through differential measurement and digital averaging.
3. Experimental Results
The experimental system was built to validate the proposed resistive sensor array readout method. The main components and configuration details are summarized in
Table 1. The setup emulates practical remote sensing conditions, including lead-wire parasitic resistance and time-multiplexed sensor scanning via analog switches. The Arduino Mega2560 microcontroller serves as the core controller, while an OP07 precision op-amp and CD4051B multiplexer form the analog front-end. Special attention was given to ensuring that the prototype reflects real-world, low-cost embedded deployments. This configuration allows systematic evaluation of measurement accuracy, linearity, and robustness to parasitic effects. A TECPEL DMM8050 multimeter was used to verify the actual resistor values used as sensor emulators.
Figure 3 shows the full experimental setup, including the Arduino board, dual ±5 V power supplies, oscilloscope used to monitor waveforms, and the PC running the Arduino IDE to log computed resistance values.
3.1. Waveform Observation During Array Scanning
To validate the switching behavior and output voltage response of the proposed system, the op-amp output
was monitored in real time using an oscilloscope.
Figure 4a shows the waveform corresponding to two sensor nodes with
= 0.49 kΩ and
= 1.469 kΩ, while
Figure 4b presents results for
= 2.18 kΩ and
= 3.47 kΩ. Each sensor was scanned sequentially, with one complete excitation cycle—comprising a
and
–phase—allocated per sensor. For each polarity, 100 ADC samples were acquired over a duration of approximately 12.5 ms per phase, resulting in a total cycle time of 25 ms per sensor. To ensure accurate resistance extraction, each plateau was held long enough for the op-amp output to settle. A fixed delay of approximately 1 ms was inserted after each multiplexer switching event before starting ADC sampling, mitigating errors from transient disturbances due to the OP07’s limited slew rate. This ensured that all samples were taken during the stable plateau region. The waveform captures confirm that the output voltages
and
—vary clearly with different
values and remain well within the OP07’s linear operating range, supporting the system’s ability to perform fast and accurate measurements without analog filtering.
In practice, several hardware design measures were applied to enhance robustness under real-world conditions. First, ADC sampling jitter was minimized by synchronizing data acquisition with the excitation waveform and averaging 100 samples per phase. Second, bias noise was reduced by decoupling the virtual ground () using a local bypass capacitor at the op-amp input. Third, PCB layout was optimized with a solid ground plane and short return paths to minimize ground bounce and common-mode noise. These techniques collectively improved measurement repeatability and noise immunity, particularly in embedded or field-deployed systems. The clearly alternating output plateaus— and –corresponded to each excitation phase and displayed distinguishable amplitudes between the two sensor nodes, verifying accurate resistance tracking. The clean waveform transitions confirm correct diode steering, stable excitation, and low crosstalk, supporting the system’s effectiveness for time-resolved multiplexed readout of resistive sensor arrays. The alternating output plateaus and − correspond to the excitation phases and , respectively. To account for the OP07’s limited slew rate and circuit settling behavior, a fixed delay of approximately 1 ms is inserted after each multiplexer switching event before ADC sampling.
In large-scale sensor arrays, practical non-idealities such as increased capacitive loading on long interconnects and leakage currents from multiplexers may affect signal fidelity. These effects can introduce settling delays, slow edge transitions, and minor offsets in the measured plateaus. However, since the proposed method samples only steady-state voltages after switching transients have settled, such errors are inherently reduced. The op-amp’s high input impedance and the use of digital switches with low leakage current (e.g., CD4051B) help minimize static offsets. To further mitigate capacitive artifacts in future high-density implementations, shorter interconnects, shielded traces, and analog switch ICs with lower parasitic capacitance may be employed. Moreover, extending the plateau duration slightly or applying software baseline correction can ensure continued measurement accuracy in dense array configurations.
3.2. Uncertain Measurement
In this prototype, the offset compensation pins (VosTrim) of the OP07 operational amplifier were left unconnected. Instead of hardware trimming, a simple one-point software calibration was employed: the system was configured with
, and the bias voltage
was manually adjusted until the computed resistance output also read zero. This approach does not aim to resolve the op-amp’s input offset voltage directly—typically in the tens of microvolts, which is below the resolution of the 10-bit ADC—but rather to eliminate its systematic effect on the measured differential output quantity
. Since this differential output is used in the resistance extraction formula, a fixed offset results in a constant baseline shift across all measurements. By aligning the baseline at
, the calibration effectively cancels such offsets—including contributions from diode mismatch and op-amp bias asymmetry—without the need for physical trimming circuitry. This method simplifies the system design while maintaining reliable measurement accuracy in low-cost embedded environments. After calibration, a set of known resistors was used to evaluate performance across the target operating range. Eight resistors with nominal values of 0.49 kΩ, 0.982 kΩ, 1.469 kΩ, 2.18 kΩ, 2.67 kΩ, 2.98 kΩ, and 3.47 kΩ were selected, as indicated by the boxed labels along the
x-axis in
Figure 5. These values span typical ranges encountered in practical resistive sensing applications and support evaluation of accuracy at low, mid, and high resistance levels. To emulate remote sensing conditions, the lead-wire resistances were fixed at
and
= 100 Ω. All resistor values were independently verified using a TECPEL DMM8050 digital multimeter.
The sensor resistance was calculated from the differential output quantity
using (3). In
Figure 5, the best-fit line represents the linear regression between the measured resistance and the actual resistance values. This line serves two purposes: (i) it confirms the strong linearity achieved by the proposed readout method, and (ii) it demonstrates that parasitic wire and switch resistances introduce no observable gain distortion across the measurement range. The slope of the best-fit line, which remains close to unity, indicates consistent measurement scaling, while the clustering of data points around this line suggests minimal variation across the tested resistance values. The alignment of the slope across different segments—low, medium, and high resistance—reflects uniform behavior of the circuit throughout the range. To quantify this, a statistical analysis was performed, and the coefficient of determination (
R2) between the measured and actual resistance values was computed. The result yielded an
R2 value of 0.9997, indicating an excellent linear fit with negligible deviation. The relative error
, plotted on the secondary
y-axis, remains within ±0.23% for all test points. These results confirm that the proposed circuit enables accurate, wire-resistance-insensitive measurements without requiring complex signal processing or multi-point calibration, even under significant parasitic interconnect conditions.
3.3. Robustness to Wire Resistance Variations
To evaluate the immunity of the proposed method to parasitic lead-wire resistance, additional experiments were conducted by varying the wire resistances
and
from 20 Ω to 100 Ω in 20 Ω steps. Four different sensor values were tested: 0.49 kΩ, 1.469 kΩ, 2.67 kΩ, and 3.47 kΩ. In each case, the measured resistance was computed from the sampled output voltages using Equation (3) and compared to the actual sensor value.
Figure 6 presents the results.
For all tested sensor resistances, the measured values remain remarkably stable across the entire range of wire resistance. No significant deviation or trend is observed, confirming that the differential measurement technique effectively cancels the symmetrical parasitic contributions of wire and switch resistance. The maximum observed deviation across all experiments was less than 0.23%, demonstrating excellent robustness. These results validate the effectiveness of the proposed readout approach in rejecting lead-wire effects without the need for complex compensation or calibration, even in scenarios involving high parasitic resistance such as remote or wearable sensor deployments.
4. Discussion
The proposed circuit provides a practical and scalable solution for accurate two-wire resistive sensor readout under long-lead and high-parasitic conditions. Unlike conventional array configurations based on voltage dividers or row–column scanning [
16,
17,
18,
19], which often suffer from crosstalk, parasitic paths, and complex analog front ends, this approach uses a single op-amp and diode-steered current paths to isolate each sensor. Only one sensor is activated per cycle, ensuring minimal interference and improved signal integrity without the need for shielding or differential amplifiers. Although the wiring requirement is higher than passive matrix arrays, this trade-off yields a significant benefit in measurement accuracy and robustness. Parasitic effects from long cables and analog switches are inherently canceled through differential sensing, allowing the system to maintain sub-0.3% error across a wide sensor range—even under wire resistance as high as 100 Ω. With minimal analog components and low power needs, the design is suitable for wearable, environmental, or low-cost embedded platforms.
Compared to the method proposed by Reverter [
11], which also employs diode-based bidirectional excitation for two-wire resistive sensing, the present system offers superior scalability and dynamic response. Although the approach achieves very high accuracy (approximately 0.005% relative error), it relies on a low-pass filter with a cutoff frequency of 0.16 Hz to extract the averaged op-amp output, which significantly limits the measurement bandwidth and results in a slow response. In contrast, the proposed method directly samples steady-state output voltage plateaus without analog filtering or strict PWM duty-cycle constraints, enabling resistance measurements to be completed within milliseconds and making the system suitable for real-time sensing applications. To further clarify the contributions and practical advantages of the proposed system,
Table 2 presents a comparative summary of this method and several representative prior works on resistive sensor array readouts, including [
11,
16,
17,
18,
19]. The table highlights differences in excitation and readout methods, scalability, crosstalk immunity, hardware complexity, and measurement accuracy. As summarized, the proposed technique strikes a favorable balance between simplicity, accuracy, and scalability—making it well-suited for real-world deployments in compact, multi-sensor, or remote environments. Moreover, because the circuit produces well-defined differential output plateaus centered around a virtual bias point, it is inherently compatible with higher-resolution ADCs (e.g., 12-bit to 16-bit) used in modern embedded platforms. The design’s resilience to noise, combined with digital averaging, makes it highly suitable for integration into low-current, high-precision systems without requiring analog filtering or complex compensation, thereby supporting next-generation sensor technologies in wearable, IoT, or environmental monitoring applications.
Moreover, because the circuit produces well-defined differential output plateaus centered around a virtual bias point, it is inherently compatible with higher-resolution ADCs (e.g., 12-bit to 16-bit) used in modern embedded platforms. The design’s resilience to noise, combined with digital averaging, makes it highly suitable for integration into low-current, high-precision systems without requiring analog filtering or complex compensation, thereby supporting next-generation sensor technologies in wearable, IoT, or environmental monitoring applications. While the system demonstrates strong performance in these areas, one important consideration involves the analog multiplexer (CD4051B). Its on-resistance exhibits a nonlinear dependence on the switched signal level—lowest near mid-supply (≈2.5 V) and increasing toward the supply rails—due to its CMOS pass-transistor structure. This behavior may introduce minor nonlinearities in the resistance extraction process, particularly at extreme values where the op-amp output approaches the lower (0 V) or upper (Vcc) supply limits. Furthermore, since the Arduino’s ADC uses Vcc as its reference voltage, any variation in the supply can directly impact measurement accuracy. These issues were mitigated in this prototype through careful design, stable power supplies, and a software-based calibration procedure. Nevertheless, future implementations may benefit from precision voltage references, lower analog switches, or ratiometric signal processing for enhanced accuracy and robustness.
5. Conclusions
This paper presents a scalable op-amp-based readout interface for accurate measurement of remote resistive sensors arranged in a multiplexed matrix. By employing diode-guided bidirectional excitation and analyzing differential op-amp output plateaus, the proposed method effectively eliminates the influence of parasitic resistances—including analog switch on-resistance and long wire leads—without requiring analog low-pass filtering, strict PWM duty cycle, or additional compensation circuitry.
Experimental results confirm that the circuit maintains high measurement accuracy across a wide range of sensor values and parasitic conditions, with a maximum observed error below 0.23% even when the lead-wire resistance is varied up to 100 Ω. Compared to previous works, the method provides a superior balance between accuracy, responsiveness, and implementation simplicity, making it well suited for remote, wearable, or distributed sensor platforms. Future work may explore full matrix implementations with multiple column returns, automatic sensor calibration, and integration with higher-resolution ADCs to further improve performance in ultra-low current applications.