Data acquisition systems
Data acquisition systems: signal chain, conditioning, anti-aliasing, multichannel architectures, sampling rate, resolution and gain selection, with worked numericals.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
A data acquisition system (DAS) is what turns a plant full of sensors into numbers on a screen or in a database. It ties together everything in this subject: signal conditioning, multiplexers, sample-and-hold, ADCs, microcontrollers, timers and serial links. Designing one means choosing resolution, sampling rate and channel architecture so that the stored data really represents the process.
Key ideas
Signal chain. Transducer → signal conditioning → anti-aliasing filter → analog multiplexer → sample-and-hold → ADC → processor (storage, display, control, communication).
- Transducer: converts the physical quantity (temperature, pressure, flow, strain) into an electrical signal, often millivolts or a resistance change.
- Signal conditioning: excitation (bridge supply, RTD current), amplification to use the ADC's full range, offset removal, linearisation, cold-junction compensation for thermocouples, isolation for safety, and differential (instrumentation-amplifier) inputs to reject common-mode noise.
- Anti-aliasing filter: a low-pass filter before sampling that removes components above half the sampling rate; it must come before the ADC, because once aliasing occurs it cannot be undone.
- Multiplexer: lets many channels share one ADC; its on-resistance, settling time and crosstalk add errors.
- Sample-and-hold: freezes the input during conversion.
- ADC: chosen for resolution and speed (SAR for general multichannel work, sigma-delta for slow high-resolution sensors, flash for very high speed).
- Processor: sets the sampling clock with a timer, reads the ADC (often by interrupt or DMA), scales readings to engineering units, stores or transmits them (UART, RS-485, Ethernet, 4–20 mA).
Single-ended versus differential inputs. Single-ended inputs measure against a common ground and suit high-level signals near the DAS. Differential inputs measure the difference of two wires and reject common-mode noise and ground-potential differences, which is essential for low-level signals such as thermocouples and strain-gauge bridges.
Multichannel architectures.
- Multiplexer → one S/H → one ADC: cheapest; channels are sampled one after another, so there is a time skew between channels.
- One S/H per channel → multiplexer → one ADC: all channels are held at the same instant (simultaneous sampling), needed when phase relations matter (e.g. voltage and current for power measurement).
- One ADC per channel: highest throughput and simultaneous sampling; highest cost and power. Aggregate throughput = channels × per-channel sampling rate, and each conversion slot must cover multiplexer settling, S/H acquisition and ADC conversion.
Sampling rate. The Nyquist criterion requires f_s > 2f_max. Real filters are not ideal, so practical systems sample at 5–10 times f_max, or more for waveform display. A component at frequency f sampled at f_s appears at the alias frequency |f − k·f_s| (the nearest value in 0 to f_s/2). Slowly varying process variables (temperature, level) need only a few samples per second; vibration and power-quality signals need kHz to MHz.
Resolution and range. The number of bits follows from the required resolution relative to full scale: 2ⁿ ≥ span/resolution. Amplify the sensor signal so that its maximum just fills the ADC input range; otherwise the effective resolution is lost. Overall accuracy also depends on sensor accuracy, amplifier offset and drift, reference stability and noise, not just on the bit count.
Types of DAS. Analog versus digital; single-channel versus multichannel; centralised (all signals wired to one unit) versus distributed (remote I/O modules near the sensors communicating over a field bus), which reduces long analog wiring and noise pickup.
Formulas
f_s > 2·f_max (Nyquist; practical f_s ≈ 5–10·f_max)
f_alias = |f − k·f_s| (k chosen so the result lies in 0 to f_s/2)
f_aggregate = N_ch · f_s,ch and t_slot = 1 / f_aggregate ≥ t_mux + t_acq + t_conv
n ≥ log₂(span / required resolution)
G = V_ADC,FS / V_sensor,max (amplifier gain to fill the ADC range)
1 LSB referred to input = V_FS / (2ⁿ · G)
Worked examples
Example 1 (standard). An 8-channel DAS uses one multiplexer, one S/H and one ADC. Each channel must be sampled at 2 kHz. The multiplexer settles in 5 µs, S/H acquisition takes 10 µs and the ADC converts in 40 µs. Is the ADC fast enough?
- Aggregate rate = 8 × 2 kHz = 16 kS/s.
- Time slot per conversion = 1 / 16 000 = 62.5 µs.
- Time needed = 5 + 10 + 40 = 55 µs.
- 55 µs < 62.5 µs, so it works with 7.5 µs to spare.
Answer: Yes: 55 µs needed per channel against a 62.5 µs slot
Example 2 (GATE level). A temperature channel covers 0–500 °C and must resolve 0.1 °C. The sensor output (given) is 50 µV/°C, and the ADC has a 0–5 V input range. Find the minimum ADC bits, the amplifier gain and the resolution actually achieved.
- Levels needed = 500 / 0.1 = 5000 → n ≥ log₂ 5000 = 12.3 → n = 13 (8192 levels).
- Sensor maximum = 500 × 50 µV = 25 mV. Gain G = 5 V / 25 mV = 200.
- LSB at the ADC = 5 V / 8192 = 0.610 mV; referred to the sensor = 0.610 mV / 200 = 3.05 µV.
- In temperature: 3.05 µV / (50 µV/°C) = 0.061 °C, better than 0.1 °C.
Answer: 13 bits, gain 200, resolution ≈ 0.061 °C (a standard 16-bit ADC would usually be chosen in practice)
Example 3 (aliasing). A DAS samples at 1 kHz without an anti-aliasing filter. The input contains a 1.2 kHz interference component. At what frequency does it appear?
- f_alias = |1200 − 1 × 1000| = 200 Hz, which lies within 0–500 Hz.
Answer: 200 Hz (indistinguishable from a genuine 200 Hz signal)
Common mistakes
- Putting the anti-aliasing filter after the ADC or relying on digital filtering to remove aliases.
- Sampling exactly at 2f_max and expecting a faithful waveform.
- Forgetting that a multiplexed system divides the ADC rate among the channels.
- Using the ADC bit count alone as the system accuracy, ignoring sensor, amplifier and reference errors.
- Connecting a low-level sensor single-ended over long cables, inviting ground-loop and mains pickup.
For GATE IN
Expect: minimum sampling rate and alias frequencies, ADC resolution and bits needed for a required measurement resolution, gain selection to fill the ADC range, throughput and timing of multiplexed systems, and the order and purpose of blocks in a DAS. Practise working out the resolution referred back to the physical quantity.
Quick check
- Minimum sampling rate for a signal band-limited to 5 kHz?
- How many levels does a 12-bit ADC have?
- A 900 Hz tone sampled at 1 kHz aliases to what frequency?
- Which architecture samples all channels at the same instant with one ADC?
Answers: 1. More than 10 kHz 2. 4096 3. 100 Hz 4. One S/H per channel followed by a multiplexer
Interview questions
All Digital Electronics and Microcontrollers interview questionsTry answering each one aloud before you open it.
1.What is a data acquisition system (DAS) in the context of digital electronics?Concept
A data acquisition system (DAS) is a system used to collect, digitize, and process data from various sensors and instruments. It typically includes components such as sensors, signal conditioning circuits, analog-to-digital converters (ADCs), and a computer or microcontroller to process and store the data.
2.Explain the role of an analog-to-digital converter (ADC) in a data acquisition system.Concept
An analog-to-digital converter (ADC) is a crucial component in a data acquisition system that converts analog signals from sensors into digital data that can be processed by a computer or microcontroller. The ADC samples the analog signal at discrete intervals and quantizes it into a digital value, allowing for further digital processing and analysis.
3.Why is signal conditioning important in data acquisition systems?Application
Signal conditioning is important in data acquisition systems because it prepares the analog signals from sensors for accurate conversion by the ADC. This process may involve amplification, filtering, and isolation to ensure that the signals are within the appropriate range and free from noise or interference, which improves the accuracy and reliability of the data collected.
4.What happens if the sampling rate of an ADC is too low in a data acquisition system?Application
If the sampling rate of an ADC is too low, it can lead to aliasing, where higher frequency components of the signal are incorrectly represented as lower frequencies. This results in inaccurate data and can significantly affect the quality of the information obtained from the data acquisition system. To avoid aliasing, the sampling rate should be at least twice the highest frequency present in the signal, as per the Nyquist theorem.
5.How does a microcontroller process data in a data acquisition system?Concept
In a data acquisition system, a microcontroller processes data by receiving digital signals from the ADC, performing computations or transformations as needed, and then storing or transmitting the processed data. The microcontroller may also control the timing of data acquisition and manage communication with other devices or systems.
6.What is the purpose of using multiplexers in data acquisition systems?Application
Multiplexers are used in data acquisition systems to allow multiple analog input signals to share a single ADC. By rapidly switching between different input channels, a multiplexer enables the system to acquire data from multiple sensors without needing a separate ADC for each one, reducing cost and complexity.
7.Explain the difference between single-ended and differential inputs in data acquisition systems.Concept
Single-ended inputs measure the voltage of a signal with respect to a common ground, while differential inputs measure the voltage difference between two input signals. Differential inputs are often preferred in noisy environments because they can reject common-mode noise, leading to more accurate measurements.
8.Why might a data acquisition system use a buffer amplifier before the ADC?Application
A buffer amplifier is used before the ADC in a data acquisition system to provide impedance matching and to isolate the sensor from the ADC. This prevents the ADC from loading the sensor, which could affect the accuracy of the signal. The buffer amplifier ensures that the signal is strong and stable enough for accurate conversion by the ADC.
9.Calculate the minimum sampling rate required for a signal with a maximum frequency of 5 kHz to avoid aliasing.Numerical
According to the Nyquist theorem, the minimum sampling rate required to avoid aliasing is twice the maximum frequency of the signal. Therefore, for a signal with a maximum frequency of 5 kHz, the minimum sampling rate should be 2 × 5 kHz = 10 kHz.
10.A data acquisition system uses a 12-bit ADC. What is the resolution of this ADC in terms of the number of discrete levels it can represent?Numerical
The resolution of an ADC is determined by the number of bits it uses. A 12-bit ADC can represent 2^12 discrete levels. Therefore, the resolution is 2^12 = 4096 discrete levels.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?