S&I Unit4-1
S&I Unit4-1
S&I Unit4-1
1
Digital I/O Interfaces: Allow communication with digital sensors and control devices.
Connection Interfaces: USB, PCI, PCIe, Ethernet, etc., to connect DAQ hardware to a computer.
Data Acquisition Software:
Configures and controls the DAQ hardware.
Provides data visualization and logging capabilities.
Performs real-time data analysis and processing.
Interfaces with other software for data export and further analysis.
Computer:
Runs the DAQ software.
Serves as the user interface for monitoring and controlling the data acquisition process.
Stores and processes the collected data.
Example
Suppose you are monitoring the temperature and pressure inside an industrial furnace. A DAQ system
in this case would include:
Temperature and Pressure Sensors: To measure the respective parameters.
Signal Conditioning Unit: To amplify and filter the sensor signals.
DAQ Hardware: With ADC to convert the signals into digital data.
DAQ Software: To display real-time temperature and pressure readings, log the data, and alert
operators if parameters exceed safe limits.
Computer: To run the DAQ software and interface with the user.
By integrating these components, the DAQ system provides a comprehensive solution for acquiring,
analyzing, and acting on data from physical processes and environments.
1.1.1 Important factors when designing or selecting a Data Acquisition (DAQ) system to
ensure optimal performance and accurate data collection.
Resolution:
Refers to the number of bits used by the ADC to represent the analog signal.
Higher resolution provides more precise measurements but generates larger data files.
Accuracy:
The degree to which the measured values represent the true values.
Includes factors like sensor accuracy, signal conditioning accuracy, and ADC accuracy.
2
Range:
The span of input values that the DAQ system can accurately measure.
Should cover the expected range of the physical phenomena being measured.
Channel Count:
The number of input channels available for data collection.
Determines how many sensors can be connected and monitored simultaneously.
Signal Conditioning:
The need for amplifying, filtering, and converting signals to a suitable range and format for the ADC.
Important for ensuring signal integrity and accuracy.
Connectivity:
Types of interfaces available for connecting the DAQ system to a computer (e.g., USB, Ethernet, PCI,
PCIe).
Should match the computer's available ports and desired data transfer rates.
Environmental Conditions:
Consider the operating environment (e.g., temperature, humidity, vibration).
Ensure the DAQ system and sensors can withstand these conditions without degradation in
performance.
Cost:
The overall cost of the DAQ system, including hardware, software, and any additional accessories.
Should be balanced against performance requirements and budget constraints.
3
Analog Input Example:
Measuring temperature with a thermocouple.
Thermocouple generates a small voltage proportional to temperature.
Signal conditioning amplifies and filters the voltage signal.
ADC converts the analog signal to digital data.
DAQ software processes and displays the temperature.
Analog Output (AO)
Function: Converts digital data into continuous analog signals to control actuators, devices, or other
systems (e.g., signal generators, motor controllers).
Components:
Digital-to-Analog Converter (DAC): Converts digital data into analog signals.
Signal Conditioning: May include amplification and filtering to ensure the output signal meets the
required specifications.
4
Digital Output Example:
Turning on an LED indicator.
DAQ software sends a digital command.
Digital I/O port outputs a high/low signal.
LED driver (if needed) amplifies the signal.
LED turns on or off based on the signal.
1.3 COUNTERS
Counters are essential components in digital systems and Data Acquisition (DAQ) systems used for
counting events, measuring frequency, timing intervals, and generating precise time delays.
Applications of Counters
Event Counting:
Counting objects on a conveyor belt using a photoelectric sensor.
Tracking the number of operations in a mechanical process.
Frequency Measurement:
Measuring the rotational speed of a motor using a tachometer.
Determining the frequency of a signal in electronic circuits.
Timing and Interval Measurement:
Measuring the time between two events in a timing system.
Calculating pulse width or duty cycle in pulse-width modulation (PWM) signals.
Position and Speed Measurement:
Using quadrature encoders to measure position and speed of rotating shafts.
Counting steps in stepper motor applications.
1.4 TIMERS
Timers are essential components in digital systems and Data Acquisition (DAQ) systems used for
generating precise time delays, measuring time intervals, and scheduling events.
Applications of Timers
Time Interval Measurement:
Measuring the time between two events in scientific experiments or industrial processes.
Calculating time-of-flight in ranging systems.
Generating Delays:
Creating precise delays in control systems, such as delaying the start of a motor.
Implementing debouncing for mechanical switches to filter out noise.
Periodic Event Scheduling:
Scheduling regular tasks in embedded systems, such as sensor readings or data logging.
Generating pulse-width modulation (PWM) signals for controlling motors or LEDs.
5
Real-Time Clock Functions:
Keeping track of real-world time for data logging, event scheduling, and timestamping data.
Providing time-based alarms and wake-up signals.
System Monitoring:
Watchdog timers reset the system if it becomes unresponsive, ensuring reliability and
robustness.
Monitoring and managing system operation within specified time constraints.
Q) difference between counters & timers ?
Primary Function Event counting, frequency Timing intervals, delay generation, real-
measurement time clock functions
Input External events or pulses (e.g., Clock pulses (internal or external clock
from sensors) source)
Applications Counting objects, steps, rotations, Timing events, scheduling tasks, generating
frequency measurement delays, real-time clocking
Examples Digital tachometers, flow meters, Delay circuits, PWM generation, RTCs,
event loggers watchdog timers
Typical Output Provides count data for further Triggers events or actions after a specified
Use processing time
6
with its own characteristics, advantages, and typical applications.
Here are the main types:
(1). Successive Approximation Register (SAR) ADC
Operation: Uses a binary search algorithm to convert the analog input into a digital output.
Speed: Moderate.
Resolution: High (typically 8 to 18 bits).
Applications: Precision measurement, data acquisition systems, and applications requiring
moderate speed and high accuracy.
(2). Sigma-Delta (Σ-Δ) ADC
Operation: Oversamples the input signal and filters the result to produce a high-resolution
output.
Speed: Low to moderate.
Resolution: Very high (typically 16 to 24 bits).
Applications: Audio processing, instrumentation, and applications requiring high resolution and
noise reduction.
The sensitivity and resolution of an Analog-to-Digital Converter (ADC) are crucial parameters that
affect the accuracy and precision of digital measurements.
Sensitivity
Definition: Sensitivity in the context of an ADC typically refers to the smallest change in input voltage
that results in a change in the output digital code.
Resolution
Definition: Resolution is the smallest voltage increment that can be distinguished by the ADC, usually
expressed in bits.
Formula: For an ADC with N bits of resolution and a full-scale input range V FS, the resolution in volts is
given by:
The SAR ADC performs the conversion in a sequence of steps, each refining the digital approximation of
the analog input signal. The key components of a SAR ADC include:
Sample and Hold Circuit (S/H): Captures and holds the input analog voltage constant during the
conversion process.
Comparator: Compares the analog input voltage to the output of the DAC (Digital-to-Analog
Converter).
7
Digital-to-Analog Converter (DAC): Converts the current digital approximation to an analog voltage
V d.
V ref ∗va lue
V d= n
2
Successive Approximation Register (SAR): A digital register that holds the current approximation of
the digital output.
Control Logic: Manages the conversion process and the successive approximation algorithm.
Example
For a 4-bit SAR ADC converting an analog input of 5.2V with a reference voltage ( V ref ) of 10V:
Initial Setup
Analog Input (V_in): 5.2V
Reference Voltage (V_ref): 10V
Resolution: 4 bits
Step Size: V_ref / (2^n) = 10V / 16 = 0.625V per step
8
DAC Output: 7.5V
V_in: 5.2V
Since 7.5V > 5.2V, the comparator indicates that the SAR should set this bit to 0.
Result: SAR Register changes to 1000.
(Step 3)
Next Bit (Third MSB)
SAR Register: 1010
DAC Output Calculation: The DAC converts the binary code 1010 to an analog voltage. Since 1010 is
the decimal value 10, the DAC output is:
DAC Output=10×0.625V=6.25V
Comparison:
DAC Output: 6.25V
V_in: 5.2V
Since 6.25V > 5.2V, the comparator indicates that the SAR should set this bit to 0.
Result: SAR Register changes to 1000.
(Step 4)
Next Bit (LSB)
SAR Register: 1001
DAC Output Calculation: The DAC converts the binary code 1001 to an analog voltage. Since 1001 is
the decimal value 9, the DAC output is:
DAC Output=9×0.625V=5.625V
Comparison:
DAC Output: 5.625V
V_in: 5.2V
Since 5.625V > 5.2V, the comparator indicates that the SAR should set this bit to 0.
Result: SAR Register changes to 1000.
Final Output
Final SAR Register: 1000
Digital Output (Binary): 1000
Digital Output (Decimal): 8
9
1.5.2 Operation of Sigma-Delta (Σ-Δ) ADC
Modulator block
10
and down-sampling (decimation) to achieve the desired resolution and sampling rate.
Architecture: Uses resistors with values weighted in binary progression (e.g., R, 2R, 4R, etc.).
Operation: The digital input controls switches that connect the binary-weighted resistors to a
summing amplifier.
Advantages: Simple design and fast conversion.
Disadvantages: Requires precise resistor matching and becomes impractical for high resolutions due
to large resistor value ranges.
Applications: Medium-speed and medium-resolution applications.
Architecture: Utilizes a repeating structure of resistors with values R and 2R to create a binary-
weighted ladder network.
Operation: The digital input controls switches that connect different points of the R-2R network to
the output.
Advantages: Easier to design with higher resolutions, good linearity, and relatively simple layout.
Disadvantages: Still requires precision resistors, but less critical than binary-weighted DACs.
Applications: Audio, video, and medium to high-speed signal processing.
11
Use Cases: Applications where speed is critical and some data loss is acceptable, such as live video
streaming, online gaming, and VoIP.
12