Chap 6 Data Acquisition System
Chap 6 Data Acquisition System
Chap 6 Data Acquisition System
DATA ACQUISITION
SYSTEM
Nor Farhani Zakaria
DAS
Serial
Communication USB Data
Data Acquisition Acquisition Systems
Systems
-Common DAS
-Consist of signal conditioner followed by analog to digital ADC
converter
Multi-Channel DAS
• multiplexed system = timely
shared of various sub systems of
the data acquisition from two or
more sources
Multiplexing
Why multiplex?
Reference Voltage
I i
Rf = R
R 2R 4R 8R Vo
MSB
LSB
-VREF
Binary Representation
Rf = R
I i
R 2R 4R 8R Vo
Most
Significant Bit
Least
Significant Bit
-VREF
Consider the truth table for 3 bit binary signal:
- there are 8 possible states of digital
signals (23)
- Say 000 = 0 V and 111=+7V
- The least significant bit (LSB) weight
(increment change): 1/(2n-1)= 1/7
- Output = 1/7 x 7 V = 1 V
SET CLEARED
Most
Significant Bit
Least
-VREF Significant Bit
( 1 1 1 1 )2 = ( 15 )10
Milman’s Theorem
• “Weighted
Vo
Resistors”
based on bit R 2R 4R 8R
• Reduces MSB
current by a
factor of 2 for -VREF LSB
each bit
B3 B2 B1 B0
I = VREF R + 2R + 4R + 8R
Bi = Value of bit i
B2 B1 B0
VOUT = I R f = VREF B3 + + +
2 4 8
• More Generally:
Bi
VOUT = VREF n −i −1
2
Bi = Value of Bit i
n = Number of Bits
Drawbacks of Binary Weighted Resistor
LSB
• The less significant the bit, the more resistors must pass
through before reaching the op-amp
• The current is divided by a factor of 2 at each node
LSB MSB
V
• Analysis for current from (001)2 :
𝐼𝑅𝐸𝐹 𝐼𝑅𝐸𝐹 𝐼𝑅𝐸𝐹 2R 2R
2 4 8
R R R 2R
R 2R 2R 2R
∑I Req =
(2 R )(2 R ) = R
(2 R + 2 R )
IREF
Op-Amp input
VREF B1 B2
“Ground”
𝑉𝑅𝐸𝐹 𝑉𝑅𝐸𝐹
B0 𝐼𝑅𝐸𝐹 = =
2𝑅 + (2𝑅ԡ2𝑅) 3𝑅
VREF B2 B1 B0 VREF Bi
I= + + =
3R 2 4 8 3R
2 n −i
• Output voltage:
VREF Bi Bi = Value of Bit i
I=
3R
2 n −i
Rf Bi
VOUT =R f I = VREF n −i
3R 2
Rf
R R R 2R
R 2R 2R 2R
∑I
𝐼𝑅𝐸𝐹
Op-Amp input
VREF B1 B2
“Ground”
B0
• If Rf = 6R, VOUT :
Rf B2 B1 B0
VOUT = VREF + +
3R 2 4 8
Bi = Value of Bit i
Bi
VOUT = VREF n −i −1
2
i) Refence current B0 B1 B2
ii) Output current through op-amp (1 0 1 )2 = 5
iii) Output voltage
R R R 2R
R 2R 2R 2R
𝐼𝑅𝐸𝐹 𝐼𝑅𝐸𝐹
Op-Amp input
VREF VREF
“Ground”
B1
B0 B2
38
V
Solution:
𝐼𝑅𝐸𝐹 𝐼𝑅𝐸𝐹 𝐼𝑅𝐸𝐹
2R 2R
2 4 8
R R R 2R
R 2R 2R 2R
𝐼𝑅𝐸𝐹 𝐼𝑅𝐸𝐹
Req =
(2 R )(2 R ) = R
Op-Amp input (2 R + 2 R )
VREF VREF
“Ground”
B0 B2
−𝑉𝑅𝐸𝐹 −𝑉𝑅𝐸𝐹
𝐼𝑅𝐸𝐹 = = = −1.67 mA
2𝑅 + 2𝑅 ԡ2𝑅 3𝑅
𝐼𝑅𝐸𝐹 𝐼𝑅𝐸𝐹
𝐼= + = −1.04 mA
8 2
VOUT = − IR f = 4.17 V
EXAMPLE 3
Pros & Cons
Limited to ~ 8 bits
Large # of resistors
Cons Susceptible to noise More confusing analysis
Expensive
Greater Error
Chapter Outline
• Data Acquisition System (DAS) Overview
• Multichannel DAS
• Computer Based DAS
• Digital to Analog Converters
• Analog to Digital Converters
• Data Loggers
ANALOG DIGITAL CONVERTER (ADC)
• Converts analog signals into binary words
Examples of A/D Applications
• Microphones - take your voice varying pressure waves in the air
and convert them into varying electrical signals
• Voltmeters
• Digital Multimeter
Why ADC is important?
Encoder
Comparator
ADC Types
3 Basic Types:
4 10/16 = 0.625
Example: 10 V analog range, n=8
3 10/32 = 0.313
2 10/64 = 0.157
1 10/128 = 0.078
0 10/256 = 0.039
Successive Approximation
Example
• 10 bit resolution or
0.0009765625V of Vref
• Vin= 0.6 volts
• Vref=1volts
• Find the digital value of
Vin
Successive Approximation
• MSB (bit 9)
– Divided Vref by 2 (1V/2)
– Compare Vref /2 (V=0.5 V) with Vin (0.6 V)
– If Vin is greater than Vref /2 , turn MSB on (1)
– If Vin is less than Vref /2 , turn MSB off (0)
– Vin =0.6V and V=0.5
– Since Vin>V, MSB = 1 (on)
Successive Approximation
23-1 = 7 Comparators
3-bit flash ADC with resolution 1 volt
Flash ADC
Advantages Disadvantages
• Introduction
• Instumentation Protocols
• Types
• Choosing a Data Logger
• Applications
• Data logging versus data
acquisition
Introduction
• A data logger (also data recorder) = electronic device that
records data over time or in relation to location either with a
built in or via external instruments and sensors
• available in various shapes, sizes, range from simple
economical single channel fixed function loggers to more
powerful programmable devices capable of handling
hundreds of inputs.
Types of Data Loggers
Choosing a Data Logger
• Input Signal
• Number of Inputs
• Size
• Speed/Memory
• Real Time Operation
Examples of data logger