Sensors and Actuators

Chapter 4
Signal Conditioning and Data Acquisition

Bachelor Program in Mechatronics Engineering
Sensors and Actuators   •   Bachelor

Signal Conditioning and Data Acquisition

Introduction

Sensors rarely produce signals that can be connected directly to a controller, data logger, or actuator. A strain gauge may generate only a few millivolts, a thermocouple produces a small differential voltage with significant offset, and a piezoelectric sensor may produce a high-impedance alternating signal. These signals must be excited, amplified, filtered, isolated, protected, linearized, and converted into a digital representation. This collection of functions is called signal conditioning and data acquisition.

A signal-conditioning system is the interface between a physical sensor and an electronic measurement or control system. Its design affects accuracy, bandwidth, noise immunity, safety, reliability, and cost. A poorly designed interface can produce errors that cannot be corrected by software.

A typical measurement chain is:

Physical variable → sensor → excitation → bridge or transducer circuit → amplifier → filter → isolation/protection → ADC → digital processing → controller or storage

The reverse chain is used for outputs:

Controller → DAC or PWM → reconstruction filter → power driver → actuator

The central engineering task is to preserve the information contained in a sensor signal while rejecting noise, interference, and unwanted components.

Learning Objectives

After studying this chapter, the reader should be able to:

  1. Explain the purposes of bridges, excitation circuits, amplifiers, isolation, filtering, grounding, shielding, and protection.
  2. Design basic Wheatstone-bridge and instrumentation-amplifier interfaces.
  3. Select suitable ADC and DAC characteristics for a mechatronic application.
  4. Analyze sampling, aliasing, quantization, and digital filtering.
  5. Apply linearization and compensation methods to sensor signals.
  6. Identify practical sources of measurement error and develop a robust acquisition architecture.
  7. Evaluate safety, reliability, calibration, and electromagnetic-compatibility requirements.

1. Signal-Conditioning Requirements

A conditioning circuit should satisfy several requirements:

  • Compatibility: The signal must lie within the voltage, current, impedance, and common-mode ranges of the next circuit.
  • Accuracy: Gain, offset, linearity, drift, and noise must meet the measurement specification.
  • Bandwidth: The circuit must pass the required signal frequencies but reject unnecessary noise.
  • Safety: Galvanic isolation and overvoltage protection may be required.
  • Reliability: The system should tolerate sensor disconnection, short circuits, transients, and electromagnetic interference.
  • Testability: Calibration points and diagnostic measurements should be available.

A useful first step is to create a signal budget. For each stage, document nominal signal level, maximum signal level, source impedance, frequency range, common-mode voltage, expected noise, and allowable error.

Important terminology includes sensitivity, the change in output per unit input; resolution, the smallest distinguishable input change; accuracy, closeness to the true value; precision, repeatability; offset, output at zero input; gain error, deviation of actual scale factor from the ideal value; and bandwidth, the frequency range passed with acceptable attenuation.

2. Bridges and Sensor Excitation

2.1 Wheatstone bridge

Resistance-based sensors such as strain gauges, resistance temperature detectors, and force-sensitive elements are frequently used in a Wheatstone bridge. For four resistors, the differential output is

Vo = Vex [R2/(R1 + R2) − R4/(R3 + R4)]

where Vex is the excitation voltage and R1 through R4 are bridge resistances. The equation assumes ideal resistors, negligible loading by the measurement circuit, and a differential output measured between the divider midpoints.

The bridge is balanced when

R1/R2 = R3/R4

At balance, Vo = 0. A bridge is valuable because it converts small resistance changes into a differential voltage and can provide temperature compensation when sensing elements are arranged appropriately.

For a quarter-bridge strain-gauge arrangement with one active gauge, small strain gives approximately

Vo/Vex ≈ (GF ε)/4

where GF is gauge factor and ε is mechanical strain in metres per metre. This approximation applies to small resistance changes and a bridge initially balanced at zero strain.

2.2 Excitation methods

Excitation may be a constant voltage or constant current. Constant-voltage excitation is simple and common in bridge circuits. Constant-current excitation can be useful for resistive sensors when lead resistance or self-heating must be controlled. The excitation source should have low noise and adequate stability because excitation variation directly affects the measured result unless ratiometric measurement is used.

In a ratiometric ADC system, the same reference is used for sensor excitation and ADC conversion. If the sensor output is proportional to excitation, changes in excitation can largely cancel in the digital ratio. This improves rejection of supply-voltage variation.

Excitation also causes self-heating. For a resistive sensor,

P = V2/R = I2R

where P is dissipated power, V is sensor voltage, I is current, and R is resistance. The design must keep this power below the level that produces unacceptable temperature error.

3. Amplification and Level Translation

3.1 Differential and instrumentation amplifiers

A differential amplifier responds to the difference between two input voltages while rejecting voltage common to both inputs. Its common-mode rejection ratio is

CMRR = 20 log10(Ad/Acm)

where Ad is differential gain and Acm is common-mode gain. CMRR is expressed in decibels. High CMRR is essential when a small sensor signal is superimposed on a large common-mode voltage.

An instrumentation amplifier generally consists of two input buffer amplifiers followed by a precision differential stage. It provides high input impedance, adjustable gain, and high CMRR. For a common three-op-amp design, the gain is often represented by

G = 1 + 2R/RG

for the input stage, followed by the gain of the differential stage. Here R is an internal resistor and RG is the gain-setting resistor. The exact expression depends on the implementation, so the manufacturer’s circuit equation must be used for a particular device.

The gain should be selected so that the largest expected sensor signal uses most, but not all, of the ADC input range. Excessive gain causes saturation; insufficient gain wastes resolution. Input and output common-mode limits must also be checked, particularly with single-supply amplifiers.

3.2 Offset and bias-current effects

Amplifier input offset voltage appears as a false sensor signal. If the gain is high, a small input offset can produce a large output error. Input bias currents flowing through source resistance also create voltage errors:

Verror = IB RS

where IB is bias current and RS is source resistance. Low-bias-current amplifiers are preferred for high-impedance sensors, while low-noise current-feedback or bipolar-input amplifiers may be preferable in other applications.

Worked Example 1: Bridge amplifier gain

A bridge produces a full-scale differential signal of 8 mV. An ADC accepts 0 to 3.3 V, and the amplifier is configured with a 1.65 V offset so that zero signal corresponds to midscale. To produce a ±1.5 V output swing around 1.65 V, the required gain is

G = 1.5 V / 0.008 V = 187.5

A practical design might use a gain of 180 or 187, leaving margin for overload and component tolerance. The output range at gain 187 is approximately ±1.496 V, or 0.154 to 3.146 V after adding the offset. This remains inside the ADC range, assuming the amplifier can reach those output voltages.

4. Isolation, Grounding, Shielding, and Protection

4.1 Isolation

Galvanic isolation prevents direct conductive current between two sections of a system. It is used for operator safety, ground-loop prevention, high-side measurements, and communication between circuits at different potentials. Isolation can be implemented with transformers, optocouplers, isolated amplifiers, capacitive isolators, or isolated ADCs.

Important isolation specifications include isolation voltage, working voltage, common-mode transient immunity, creepage, clearance, and leakage current. Isolation does not eliminate the need for appropriate safety design; insulation, enclosure, fusing, and protective earthing remain necessary.

4.2 Grounding and ground loops

A ground loop occurs when multiple conductive paths connect nominally common grounds. Small voltage differences caused by resistance and interference can drive currents through signal cables. Differential measurement, single-point grounding where appropriate, galvanic isolation, and careful cable routing reduce this problem.

Ground is not automatically a perfect zero-voltage reference. Every conductor has impedance, and high-current actuator returns can create voltage drops that contaminate sensitive sensor measurements. Power returns and low-level analog returns should be planned separately and joined at a controlled point when system architecture permits.

4.3 Shielding

A shield is a conductive enclosure or braid that reduces electric-field coupling. A cable shield is commonly connected to chassis at one end for low-frequency systems to avoid shield-current loops, but high-frequency designs may require short, low-impedance connections at both ends. The correct choice depends on frequency, enclosure design, safety requirements, and EMC testing.

Twisted-pair wiring reduces magnetic pickup because induced voltages tend to cancel. Differential inputs, short cable lengths, guarded high-impedance nodes, and separation from switching power conductors are additional good practices.

4.4 Protection

Protection must address electrostatic discharge, electrical fast transients, surge voltages, reverse polarity, overcurrent, and accidental connection to high voltage. Common devices include series resistors, resettable fuses, transient-voltage suppressors, clamps, Schottky diodes, gas discharge tubes, and common-mode chokes.

A protection network must not introduce unacceptable leakage, capacitance, noise, or signal distortion. For example, a clamp diode may protect an ADC input but can inject current into the supply rail. The current must be limited and the rail must be able to absorb or divert it safely.

5. Linearization and Compensation

Many sensors have nonlinear transfer characteristics. A general sensor model can be written as

y = f(x, T, Vex, t)

where x is the measurand, T is temperature, Vex is excitation, and t represents ageing or time-dependent effects. Linearization attempts to estimate x from measured y.

Methods include:

  • Analog linearization: resistor networks, feedback circuits, or piecewise circuits.
  • Lookup tables: measured sensor values are stored and interpolated.
  • Polynomial approximation: a fitted relation such as x ≈ a0 + a1y + a2y2.
  • Model-based compensation: a physical sensor model is evaluated in software.
  • Calibration: known reference inputs are applied and correction coefficients are determined.

Compensation may address temperature coefficient, lead resistance, amplifier offset, excitation variation, and drift. A two-point calibration corrects offset and scale but cannot generally correct curvature. Multi-point calibration or a validated physical model is needed when nonlinearity is significant.

Calibration data should include environmental conditions, reference uncertainty, date, instrument identity, and traceability. Software correction must not conceal a hardware fault or be used outside the range for which it was validated.

6. Analog Filtering

A filter modifies signal amplitude and phase as a function of frequency. A first-order low-pass filter has cutoff frequency

fc = 1/(2πRC)

where R is resistance in ohms, C is capacitance in farads, and fc is the −3 dB cutoff frequency in hertz. Its magnitude response is

|H(f)| = 1/√[1 + (f/fc)2]

This passive filter assumes an ideal source and load or, more precisely, that the effective resistance and capacitance have been correctly identified. Loading changes the actual cutoff frequency.

A low-pass anti-aliasing filter is placed before an ADC. High-pass filters remove DC or slow drift; band-pass filters retain a selected frequency band; notch filters reject a narrow interference frequency such as mains power. Active filters can provide gain and buffering, but their op-amp bandwidth, noise, stability, and saturation must be checked.

Filter selection is a compromise. A narrow filter improves noise rejection but can delay or distort a rapidly changing signal. In a feedback control system, excessive phase delay can reduce stability margins.

7. Sampling and Data Acquisition

7.1 Sampling theorem and aliasing

If a continuous-time signal contains no frequency components above fmax, ideal uniform sampling requires

fs > 2fmax

where fs is sampling frequency. This is the Nyquist condition. In practical systems, sampling substantially above twice the highest useful frequency is preferred because real filters are not ideal.

Aliasing occurs when a frequency component above half the sampling rate appears as a false lower frequency. A sinusoid sampled at frequency fs can appear at an alias frequency related to

falias = |fin − kfs|

where k is an integer chosen to place the result in the range from 0 to fs/2. Once aliasing occurs, digital processing cannot reliably recover the original frequency. An analog anti-aliasing filter is therefore essential.

7.2 ADC selection

An ADC is selected using resolution, sample rate, input range, architecture, reference quality, integral and differential nonlinearity, effective number of bits, input impedance, latency, and interface requirements.

For an ideal N-bit ADC with input span VFS, the nominal quantization step is

q = VFS/2N

The quantization error for rounding is ideally bounded by ±q/2. This idealization assumes a uniform quantizer and does not include thermal noise, reference error, nonlinearity, or amplifier noise.

The ideal signal-to-quantization-noise ratio for a full-scale sine wave is approximately

SNRdB ≈ 6.02N + 1.76

This relation applies to an ideal ADC and a full-scale sinusoidal input; practical SNR is lower. Oversampling and averaging can improve effective resolution when noise is sufficiently uncorrelated and the signal bandwidth is reduced, but they cannot correct deterministic interference or ADC nonlinearity.

Worked Example 2: ADC resolution and aliasing

A 12-bit ADC has a 0–5 V input range. Its nominal step is

q = 5 V/212 = 5/4096 V ≈ 1.221 mV

The ideal rounding uncertainty is approximately ±0.610 mV. If the sample rate is 2 kHz and a vibration component occurs at 1.3 kHz, it aliases to

falias = |1.3 kHz − 1(2 kHz)| = 0.7 kHz

Thus the recorded data may show a 700 Hz component even though the actual vibration is 1.3 kHz. An anti-aliasing filter must attenuate that component before conversion.

7.3 DACs and reconstruction

A DAC converts digital codes into an analog signal for actuator commands, waveform generation, or reference control. Important specifications include resolution, settling time, monotonicity, output range, glitch impulse, reference stability, and output drive capability.

A zero-order-hold DAC produces a staircase waveform. A reconstruction low-pass filter can smooth the staircase and suppress images at multiples of the update frequency. For power actuators, a PWM output followed by an appropriate power stage and load filtering may be more efficient than a linear DAC.

8. Digital Filtering

Digital filters operate on sampled data. A simple moving average of length M is

y[n] = (1/M) ∑k=0M−1 x[n−k]

where x[n] is the input sequence and y[n] is the output. It reduces uncorrelated noise but introduces delay and attenuates rapid changes. A moving average is unsuitable when its delay or frequency response interferes with control performance.

A first-order exponential filter is

y[n] = αx[n] + (1−α)y[n−1]

where 0 < α ≤ 1. Larger α responds faster and filters less; smaller α produces stronger smoothing and greater delay. Digital filtering must be designed with the sampling interval, signal dynamics, computational limits, overflow, and startup behavior in mind.

Finite impulse response filters are inherently stable and can provide linear phase. Infinite impulse response filters achieve sharp responses with fewer coefficients but require attention to numerical stability and phase distortion. In safety-related or control applications, filter delay should be included in the system timing and stability analysis.

9. Integrated Design Procedure

A disciplined design procedure is:

  1. Define the measurand, range, accuracy, response time, and environmental conditions.
  2. Select the sensor and determine its excitation, impedance, sensitivity, and failure modes.
  3. Calculate the smallest and largest expected signal, including offset and transients.
  4. Select gain and level shifting without violating amplifier common-mode or output limits.
  5. Establish the required analog bandwidth and design the anti-aliasing filter.
  6. Select ADC resolution, sample rate, reference, interface, and input driver.
  7. Design grounding, shielding, isolation, protection, and cable routing.
  8. Define calibration, diagnostics, fault detection, and maintenance procedures.
  9. Verify the design through simulation, prototype measurement, environmental testing, and EMC testing.

Applied Case: Isolated Load Measurement in a Robotic Joint

Background

Consider an illustrative robotic-joint module that measures torque using a bonded strain-gauge bridge. The bridge has a 5 V excitation, a nominal full-scale differential output of 10 mV, and a useful mechanical bandwidth of 100 Hz. The motor drive produces fast switching currents and may place the sensor electronics at a different ground potential from the controller.

Problem

Direct connection to the controller causes a fluctuating offset and occasional ADC saturation. Spectral measurements show switching interference, while cable movement produces intermittent transients.

Analysis

The bridge output is differential and small, so a high-CMRR instrumentation amplifier is required. A bandwidth much greater than 100 Hz would pass unnecessary motor-drive noise. The controller and joint grounds should not be assumed to be equipotential. Protection is required because the cable is accessible during maintenance.

Approach and solution

The design uses a regulated, low-noise bridge excitation and a ratiometric ADC reference. An instrumentation amplifier provides a gain of approximately 150, followed by a low-pass anti-aliasing filter with a passband exceeding 100 Hz but strong attenuation near the selected sampling frequency. The ADC samples at 2 kHz, providing ample control bandwidth and allowing a practical analog filter transition region.

A galvanically isolated digital interface separates the joint electronics from the controller. Twisted shielded differential wiring connects the bridge. The shield terminates at the chassis entry point, and high-current motor returns are routed separately from the analog return. Series resistance and transient clamps protect the amplifier and ADC inputs. A multi-point calibration table compensates amplifier offset, bridge imbalance, and temperature-dependent gain.

Outcome

The revised system remains within the ADC input range at full torque, rejects common-mode interference, and detects cable disconnection by monitoring bridge resistance and signal plausibility. The digital controller applies a modest low-pass filter, but the primary anti-aliasing function remains analog.

Learning points

The case demonstrates that signal quality is a system property. A high-resolution ADC alone cannot correct poor grounding, aliasing, amplifier saturation, or an unsuitable sensor interface. Electrical, mechanical, software, and safety considerations must be designed together.

Challenges, Safety, and Contemporary Practice

Modern systems increasingly use smart sensors with integrated ADCs, calibration memory, digital interfaces, and self-diagnostics. These reduce analog wiring but introduce concerns about communication latency, cybersecurity, firmware integrity, interoperability, and dependence on vendor-specific protocols. Edge processing and machine-learning methods can detect abnormal patterns, but they should not replace validated limits, physical protection, or traceable calibration.

Safety-related measurement systems require documented failure modes, diagnostic coverage, independence of protective functions, and compliance with applicable machinery, electrical-safety, EMC, and functional-safety standards. Exact standards depend on the industry and jurisdiction. Engineers must consult current requirements rather than treating a general circuit rule as regulatory approval.

Best practice includes conservative voltage margins, controlled impedance, separated return paths, documented calibration, version-controlled firmware, input plausibility checks, watchdogs, sensor-disconnection detection, and testing under temperature, vibration, humidity, and electromagnetic stress.

Chapter Summary

Signal conditioning converts imperfect sensor outputs into reliable measurement data. Bridges translate small resistance changes into differential voltages, while stable excitation and ratiometric conversion reduce supply-related error. Instrumentation amplifiers provide high input impedance, gain, and common-mode rejection, but offset, bias current, range limits, and noise must be evaluated.

Isolation, grounding, shielding, and protection are essential for safety and electromagnetic compatibility. Linearization and compensation correct sensor nonlinearity, temperature effects, excitation variation, and drift. Analog filters establish bandwidth and prevent aliasing before conversion. ADC design requires attention to sample rate, resolution, quantization, reference accuracy, and effective number of bits. DACs require reconstruction filtering and suitable output drive. Digital filters can reduce noise, but their delay and frequency response must be compatible with the application.

A successful acquisition system is designed as an integrated chain, verified through calibration and testing, and supported by diagnostics, documentation, and appropriate safety controls.

Key Terms

Aliasing: False low-frequency representation caused by sampling a signal too slowly.

Anti-aliasing filter: Analog filter placed before an ADC to attenuate frequencies above the usable band.

Bridge: Network of resistive elements used to measure small resistance changes.

Calibration: Comparison with known references and adjustment or characterization of measurement error.

Common-mode rejection ratio: Measure of an amplifier’s ability to reject voltage common to both inputs.

Compensation: Correction for predictable influences such as temperature or excitation variation.

Differential signal: Signal represented by the voltage difference between two conductors.

Excitation: Electrical energy supplied to a sensor to obtain a measurable output.

Gain error: Deviation of actual scale factor from its intended value.

Galvanic isolation: Separation that prevents direct conductive current between circuits.

Instrumentation amplifier: Precision differential amplifier with high input impedance and adjustable gain.

Linearity: Degree to which a sensor response follows an ideal straight-line relationship.

Quantization: Conversion of a continuous amplitude into discrete numerical levels.

Resolution: Smallest nominal input change represented by a measurement system.

Sampling frequency: Number of samples acquired per second.

Shielding: Use of conductive barriers or enclosures to reduce electromagnetic coupling.

Signal conditioning: Processing that adapts a sensor signal for measurement or control.

Strain gauge: Resistive element whose resistance changes with mechanical strain.

Transducer: Device that converts a physical quantity into another form, commonly an electrical signal.

Wheatstone bridge: Four-resistor bridge circuit used for precise differential measurement.

Review Questions

Short Answer Questions

  1. Why is a bridge circuit useful for measuring small resistance changes?
  2. Define CMRR and explain why it matters in strain-gauge measurement.
  3. What is the purpose of an anti-aliasing filter?
  4. Distinguish ADC resolution from measurement accuracy.
  5. Give two reasons why galvanic isolation may be required.

Long Answer Questions

  1. Explain the complete signal chain for a resistive force sensor, including excitation, bridge circuitry, amplification, filtering, conversion, and calibration.
  2. Discuss the causes of ground loops and compare grounding, shielding, differential measurement, and isolation as mitigation techniques.
  3. Derive the nominal quantization step of an N-bit ADC and discuss the limitations of the ideal quantization-noise model.
  4. Compare analog linearization, lookup-table correction, polynomial fitting, and model-based compensation.
  5. Explain how ADC sample rate, analog bandwidth, aliasing, digital filtering, and control-loop delay are related.

Analytical / Application Questions

  1. A 16-bit ADC measures 0–2.5 V. Calculate its nominal quantization step and maximum ideal rounding error. Then identify practical error sources that may exceed this value.
  2. A sensor contains useful information up to 250 Hz but also experiences interference at 1.8 kHz. Propose a sampling frequency and anti-aliasing strategy, explaining the trade-offs.
  3. Design a conceptual acquisition system for a bridge sensor mounted on a motor-driven machine. Specify the amplifier, excitation, grounding, shielding, protection, isolation, calibration, and diagnostic features you would investigate.

Multiple Choice Questions with Answers

Question 1

What is the primary purpose of an instrumentation amplifier in a bridge-sensor interface?

A. To provide high input impedance and amplify a small differential signal

B. To generate mechanical excitation for the sensor

C. To convert digital codes into actuator power

D. To eliminate the need for an ADC

Correct Answer: A. To provide high input impedance and amplify a small differential signal

Question 2

A 12-bit ADC has a 0–4.096 V input range. What is its nominal quantization step?

A. 0.1 mV

B. 0.5 mV

C. 1.0 mV

D. 4.096 mV

Correct Answer: C. 1.0 mV

Question 3

A 1.3 kHz sinusoid is sampled at 2 kHz. Its principal alias frequency is:

A. 300 Hz

B. 700 Hz

C. 1.3 kHz

D. 3.3 kHz

Correct Answer: B. 700 Hz

Question 4

Which method most directly prevents high-frequency components from aliasing into sampled data?

A. Digital averaging after conversion

B. Increasing amplifier gain

C. An analog low-pass filter before the ADC

D. Using a larger cable shield

Correct Answer: C. An analog low-pass filter before the ADC

Question 5

For a quarter-bridge strain-gauge circuit under small strain, the approximate normalized output is:

A. Vo/Vex ≈ GF ε/4

B. Vo/Vex ≈ 4GF ε

C. Vo/Vex ≈ GF/ε

D. Vo/Vex ≈ ε/GF

Correct Answer: A. Vo/Vex ≈ GF ε/4

Question 6

What is the main function of galvanic isolation?

A. To increase ADC resolution

B. To prevent direct conductive current between circuit sections

C. To linearize a thermistor

D. To increase the sensor’s mechanical stiffness

Correct Answer: B. To prevent direct conductive current between circuit sections

Question 7

If a resistive sensor has 5 V across 100 Ω, its power dissipation is:

A. 0.05 W

B. 0.25 W

C. 2.5 W

D. 20 W

Correct Answer: B. 0.25 W

Question 8

In the digital filter y[n] = αx[n] + (1−α)y[n−1], reducing α generally causes the filter to:

A. Respond more slowly and smooth more strongly

B. Respond faster and smooth less strongly

C. Become an analog filter

D. Increase the ADC’s resolution

Correct Answer: A. Respond more slowly and smooth more strongly

Question 9

Which specification describes an ADC’s ability to represent very small code changes, but not necessarily its closeness to the true voltage?

A. Resolution

B. Accuracy

C. Isolation voltage

D. Common-mode rejection

Correct Answer: A. Resolution

Question 10

Why are twisted-pair differential cables useful in low-level sensor systems?

A. They increase excitation power

B. They reduce magnetic pickup through cancellation of induced interference

C. They guarantee galvanic isolation

D. They eliminate quantization noise

Correct Answer: B. They reduce magnetic pickup through cancellation of induced interference

Sensors and Actuators
Chapter 4 of 14