Ilovepdf Merged
Ilovepdf Merged
Illustrated example
ME 7203 2
Chapter 1
Characteristics of sensors
1.1 Generalized Measurement Model
• A sensor is a device which provides a measurement y, of a physical variable x.
• The measured physical variable is also termed as the measurand (denoted as x).
E.g. Temperature, Force, etc.
• A measurement system performs the task of manipulating and indicating measure-
ments in a manner which is useful for a given application.
• Main components of a basic measurement system can be divided as follows:
• Modern measurement systems mostly operate using electrical signals. This allows to
exploit digital data processing (computing) capabilities in the system.
+5V
T co
NTC10K
AMPLIFIER. y NONLINEAR EST.
V2
A/D
R1=10K y(t) yk x^
NI6008 x
Output modules
Data Processing
Input modules
Data Processing Data Processing
Output modules
Arduino Mini
Input modules
NI cDAQ
Input modules Output modules
Siemens S7-300
Embedded design Embedded designs focus on designing purpose built measurement sys-
tems meeting Size, Weight, Power, and Cost (SWaP-C) specification of a product
design. Typically miniaturization of the measurement system and integrating in an
industrial design is a characteristic of these applications. Examples include wearable
devices, consumer electro-mechanical products, point of care medical devices, pros-
thetics, drones, and satellites. The data processing is often performed on a single
board computer (like Raspberry Pi) or a micro controller (similar to Arduino devices
you used in the mechatronics course).
Experimental data acquisition These applications focus on getting large quantities of
accurate data for experimental purposes. Measurement system designs in labora-
tory or research environments typically employ such designs, which allow easy re-
configuration of the devices depending on the experimental study. Examples include
ME 7203 6
• In this course we will mainly consider experimental data acquisition case, since we
predominantly use LabView for Labs. A set of case studies in topic 3 will review
measurement system designs for the three application scenarios discussed here.
• Static calibration: the input (measurand) is held constant at a known value and
the output is measured after it converges to a steady state value, i.e. The dynamic
or transient behaviour is not considered in this test. Performed by applying known
values of the measurand and recording the output in order to identify a functional
relationship ŷ = f (x). The value ŷ denotes the expected value of the measurement
for a given measurand x.
ME 7203 7
• Dynamics calibration: The dynamic behaviour of the system is established using time
varying input signals. E.g. Finding the transfer function and frequency response of a
sensor using sinusoidal inputs of different frequencies. (The sensor should be a linear
time invariant system to support this type of modelling).
• Different types of tests are used to model the static and dynamic behaviour of a
sensor.
• Sequential test applies a sequential set of values of the input variable over the
desired input range. This allows to capture any trends in the measurement such as
hysteresis, temperature drifts etc.
• Random tests applies a random set of values of the input variable over the desired
input range. Random tests allow to break trends in the measurement occurring
due to extraneous variables. E.g., increasing environment temperature during the
experiment. Unless it is required to study effects such as hysterisis, it is always
recommended to perform random tests for experiments.
• Repetitions are repeated measurements made in a single test run. Repetitions
allows to better estimate a quantity which is corrupted by noise.
• Replications are measurements made in different test runs under same operating
conditions. Replication permits to asses how well a set of conditions can be dupli-
cated. (captures more extraneous effects than repetitions) Replications are preferred
over repetitions because replications allows to break trends due to extraneous vari-
ables.
• Dynamic tests are performed to asses the dynamic response of a system using
different signals. I.e, Step input, Sinusoidal input, Impulse input.
Example 1.7: Find the calibration equation for the given dataset
A load cell was calibrated using a set of precision standard weights. The voltage
reading was recorded for each applied weight for static conditions. The recored values
are tabulated below. Using a software tool find a linear, and a cubic calibration
equation for the data. How would you decide on a suitable calibration model for the
data.
Load Voltage
(g) (V)
0 0.33
200 1.56
400 2.79
600 4.01
800 5.23
1000 6.449
ŷ = Kx + b (2)
3.Range The operating range of the sensor. This can be expressed as minimum
and maximum limits of the input (xmin , xmax ) or the output (ymin , ymax )
of the sensor.
4.Span (F SO) The difference between maximum measured value and the min-
imum measured value. Can be expressed in units of the input:
Or can be expressed in the units of the output. Also termed the full scale
output (FSO)
ro = ymax − ymin (4)
ME 7203 10
Example 1.8
Find sensitivity, bias, range, and span using the given calibration plot.
ME 7203 11
Vspan
δV = (5)
2N
Example 1.9
Find the resolution of the sensor in grams assuming that a DAQ with a resolution
of 11-bits and a voltage range of -10 to +10 V was used for measurement in the
previous example.
6.Error (e) The difference between the measured value and the true value of
the measurement (True value is the reading if the measurement system
is unaffected by any errors). Since true value is not known the expected
value is used. A deviation plot is used to illustrate errors which records
the errors along y axis and measurand along the x axis.
e = y − ŷ (6)
±2Sx
A= × 100% (95% C.I) (7)
ro
3.33±0.2
3
2
Error(mV)
1 0.93±0.2
-0.67±0.2 -0.67±0.3
-1
-1.47±0.4 -1.47±0.5
-2
0 200 400 600 800 1000
Load(g)
3.Resolution errors (eδ ) The error due to quantization (round off) during
sampling the measurement.
±δy
eδ = × 100% (10)
2ro
ME 7203 15
26 ±0.2
25
Time(s)
5.Nonlinearity (eL ) The error between the output and the linear approxima-
tion of the sensor. A random test should be performed to find nonlinearity.
There are two methods to measure this, Terminal point method and the
best fit straight line (BFSL) method. In this course we’ll opt for the
terminal point method which is more accurate than the second option.
• For each level of x, defined as xlevel find the average error for each
xlevel . i.e., ē(xlevel )
• Draw the terminal line which connects the first and last points of the
deviation plot. i.e., connect ē(min(xlevel )) and ē(max(xlevel )).
ME 7203 16
3.33±0.2
3
2
Error(mV)
1 0.93±0.2
-0.67±0.2 -0.67±0.3
-1
-1.47±0.4 -1.47±0.5
-2
0 200 400 600 800 1000
Load(g)
ME 7203 17
0.0667 0.0667
0
-1
-0.1733 -0.1733
-2
-0.2533
-3
-4
0 200 400 600 800 1000
Load(g)
ME 7203 18
Y (s) b0 + b1 s + b2 s2 + · · · + bm sm (14)
G(s) = =
X(s) a0 + a1 s + a2 s2 + · · · + an sn
The zeros and poles of the transfer function governs its stability and response to
different signal.
ME 7203 21
2.Frequency response : The steady state response of the sensor for sinu-
soidal inputs. This is illustrated using a magnitude and phase plots (sim-
ilar to the plots you used in the control systems course).
• The bode magnitude plot has the gain of the transfer function (i.e., the sensi-
tivity of the sensor K ) along y axis for different frequencies f Hz of the input
signal indicated along the x axis. Hence we can use the plot to find the gain
of a sensor for a given input frequency.
• Typically the gain in y axis is shown in decibels (i.e., 20log(K) dB) and the x
axis is shown in logarithm scale.
ME 7203 22
3.Bandwidth : Specifies the minimum and maximum frequency that the sen-
sor produces constant sensitivity (flat magnitude response). Usually a 3dB
specification is used. (corresponds to 70% sensitivity change).
4.Noise density (power spectral density of noise) : The precision error
of a sensor is caused due to electrical noise. This noise can be modelled as a
summation of Gaussian noise signals with different frequencies and similar
power levels at each frequency, i.e, additive white Gaussian noise. This
constant power level is termed the noise density. Noise density allows us
to calculate the standard deviation of noise using the following equation:
√
σnoise = N oise Density Bandwidth (15)
ME 7203 23
20log|K|
V
b 3dB
f
g`s
dB/dec
ME 7203 24
1.7 Standards
• Calibration process uses known values of the measurand, which is assumed to be
highly accurate. These “known values” used for calibration purposes are referred to
as standards.
• Standards are related to fundamental dimensions and units.
• Dimensions define some aspect of a physical variable. Units define a quantitative
measure of a dimension. SI standard defines 7 basic dimensions and their units.
• For each basic unit a primary standard is defined which exactly quantifies the unit
(with zero error).
• The primary standards (which corresponds to zero error) are difficult to obtain for
calibration. Therefore secondary or derived standards can be used (which has some
error relative to the primary standard). The accuracy of the standard deteriorates
down the hierarchy of the derived standard.
ME 7203 25
• Therefore the error of the standard used for calibration (±es ) deteriorates the ac-
curacy of a sensor. This is taken in to account when a manufacturer specifies the
accuracy of a sensor in the datasheet. If we perform a separate calibration of a sensor
using some standard, then we should take in to account the standard error (±es ) as
a error component which affects the system.
• A conservative estimate of the overall measurement system error is the root sum
squared (RSS) of all component errors.
q
etotal = e2L + e2h + e2b + e2K + e2r + e2s (16)
• This calculation assumes that the square of each error term is proportional to its
variance.
Example 1.18:
The following table summarizes specifications of a LM35 Temperature measurement
IC. Find the total accuracy of the measurement system in ◦ C using the provided
data.
References
[1] Figliola, R.S. and Beasley, D., Theory and Design for Mechanical Measurements, 6th
Edition, Wiley, 2015.
[4] Lye, L., Design and Analysis of Experiments, DOE Course notes, 2015.
[6] Analog Devices 335 3 axis accelerometer datasheet, Analog Devices, 2015. URL:
adxl335.pdf
[7] Temperature probes: How to choose the right temperature sensor type, Omega Inc. 2018.
URL: thermocouple-RTD.html
ME 7203 27
Chapter 2
• Industrial standards dictate the output span of the signal conditioning modules to
scale the sensed variable to a 0 − 5V (or 0 − 10V ) Voltage signal, 4 − 20mA current
signal, or a frequency signal (sensed information is communicated using a digital FM
waveform, RS 485, USB etc.).
• Signal conditioning needs vary widely depending on your sensor, so theres no one gen-
eral instrument which can provide all types of conditioning requirements. Following
table summarizes the signal conditioning needs of different types of sensors.
Example 2.1
Briefly explain each of the following signal conditioning stages used for instrumen-
tation.
• Amplification:
• Attenuation:
• Isolation:
• Filtering:
• Excitation:
• Linearization:
ME 7203 29
• A resistive sensors can be thought of as a variable resistor which changes its resistance
in response to some physical variable.
• The resistance of the sensor can be measured using a current source or a voltage
divider.
Vs
R1
Vo Vo= RsensorVs
R1+Rsensor
Rsensor
Is
Vo Vo= Rsensor Is
Rsensor
Rl l 2
Vo
x Rx
xR
Rx= l
3 l
• In order to measure the output voltage of a voltage divider, we must use a high
impedance measuring device, i.e, a device which draws a very low current from the
voltage divider when measuring. Otherwise the system will produce loading errors
ME 7203 31
V- - Vo
Non- Inverting Input
-Vs
Vo = A(V+ − V− )
• An op amp voltage follower can be used to minimize the effects of inter stage loading.
• Op-amps have a very high input impedance which draws a very low current from the
connecting circuit, minimizing any loading effects.
+Vs
Vi +
- Vo
-Vs
ME 7203 32
+Vs
Vin R1
- Vo
+
-Vs
+Vs
R1
-
Vo
Vin +
-Vs
ME 7203 34
differential amplifier:
R1
+Vs
R2
V1 -
Vo
V2 +
R2
-Vs
R1
instrumentation amplifier:
+Vs
V1 + R3 R3
-
R1 +Vs
-Vs
-
Rg Vo
+
-Vs
R1
-
V2 + R2 R2
-Vs
ME 7203 35
• The following graph shows resistance vs temperature for common sensing elements.
Platinum devices exhibit good linearity and long term stability.
• The change in resistance of an RTD is best described by the R-T table. e.g., PT100
R-T Table URL: pt100.pdf
R = R0 + αT (18)
• The change in resistance for a given change in temperature is defined by the temper-
ature coefficient α, the resistance at reference temperature (typically 0 ◦ C) is given
by R0 and the measured temperature in Celsius is denoted as T .
R = R0 (1 + AT + BT 2 ) f or T > 0◦ C
(19)
R = R0 (1 + AT + BT + C(T − 100)T ) f or T < 0◦ C
2 3
• The accuracy of RTDs depends on the tolerance class of the sensor and temperature
range that is measured. e.g. PT100 tolerance table URL: pt100.pdf
• Use of a Voltage divider for a RTD makes the output voltage nonlinear. Use of a
current source is recommended for linear response.
• These devices exhibit self heating errors and very low sensitivity. I.e. 0.385Ω/C ◦
sensitivity and 50mW/C o self heating capacity in water for the PT100 RTD.
• The self heating effect of the transducer can be minimized by making use of a very
low excitation current to drive the sensor and an amplification stage is recommended
to improve its sensitivity.
Tco
PT100
+5V
+
Vo1
-
Rs=100
Vs= 5V
LM334
R2=68.3
+5V
+
V02
Is~1mA -
T co
PT100
ME 7203 37
• Lead wire resistance is a major source of error when they run long distances. This is
compensated by 3 wire or 4 wire RTD circuits.
Instrumentation
Amp
+ Vo
-
Is
Is
Rw Rw
+
+
T co - Vo Vo
PT100 Rw -
Rw T co
PT100
Rw
Instrumentation
Amplifier
Gain =1
Rw
(b)
(a)
ME 7203 38
2.3.2 Thermistors
• Thermistors change their resistance as temperature changes similar to RTDs. The
main difference is that thermistors offer much higher sensitivity than RTDs.
• The temperature response of thermistors are not linear, it can be approximated using
the following equation.
β( 1 − 1 )
R = R0 e T T0 (20)
• Although thermistors offer better response and sensitivity, they have less range, and
are also prone to self heating. Additionally, the nonlinear response (variable sensi-
tivity) of these devices is undesirable when designing precise measurement systems.
• For best linear response about T0 the thermistor can be used in a voltage divider
configuration with a series resistance equal to R0 as illustrated below.
Figure: Response of NTC thermistor with β=3984K ◦ , R25 =10kΩ at reference temperature
25C ◦
ME 7203 39
2.3.3 Thermocouples
• Thermocouples(TCs) are self generating devices, i.e., produces a voltage signal in
response to temperature without any excitation.
• Applicable in very high temperatures when compared with RTDs and thermistors
[7].
• Thermocouples operate using the Seebeck effect. I.e., generation of a voltage potential
VT1 −T2 (emf) in an open thermocouple circuit due to a difference in temperature (T1
and T2 ) between dissimilar material junctions in the circuit.
• The voltage due to Seebeck effect is not produced when the junctions are at same
temperature VT1 −T1 = 0.
Material A Material A
T1 T2 T1 T2
+
=
Material A Material A
T1 T2 T2 T3
T3 V2-3
Material B Material B
Material C
V1-2
=
=
Material B
V1-3 Material B
Thermocouple Laws
T co + +5V + OP AMP
NTC
5V
V+ + INSTRUMENTATION
SIG+ AMP
K-Type Thermocouple Voltages
SIG- V- - A/D VDAQ 2
V0-0 =0 mV GND V1 NI6008
V0-25 =1 mV OpAmp
Adder
V0-100 =4.1 mV (Bias Compensation)
V0-600 =24.9 mV Rg=
VT-0 =-V0-T
Vb= Gain=1+(49.4kΩ/Rg)
ME 7203 42
∆R/R ∆R
Gf = Gf ε =
∆l/l R
• Here ε = ∆l/l is the axial strain experience by the strain gauge and R is the nominal
gauge resistance. Therefore by knowing the change in resistance ∆R, the nominal
gauge resistance R, and the gauge factor Gf , one can find the axial strain ε of the
strain gauge.
• The sensitivity of a strain gauge on a typical steel specimen will be 10−6 Ω/(kN/m2 ).
I.e., a millionth of the nominal resistance would change for a 1kN/m2 stress.
• Therefore a highly sensitive setup should perform the task of converting the change
in resistance ∆R to a measurable voltage signal.
• The Wheatstone bridge is a circuit which converts minute changes in resistance to
measurable voltage.
R1 R4
V2
V1
R2 R3
Vb=V2 - V1
ME 7203 44
R1 R4
= =⇒ Vb = 0 (22)
R2 R3
1 ∆R1 ∆R2 ∆R3 ∆R4
Vb = − + − Vs (23)
4 R R R R
• The Wheatstone bridge can be used in many configurations for strain measurement:
• Quarter bridge: The configuration produces an output for both bending and axial
loading. There is no temperature compensation for this configuration.
1
Vb = Gf εVs (24)
4
Vs
R1 R4+ε
V1
V2
R2 R3
Vb=V1 - V2
• Half bridge - Type 1: This configuration also produces an output for both bending
and axial loading. This configuration is temperature compensated because both R3
and R4 experience equal effects due to temperature.
1
Vb = Gf ε(1 + ν)Vs (25)
4
ME 7203 45
Vs
R1 R4+ε
V1
V2
R2 R3-νε
Vb=V1 - V2
• Half bridge - Type 2: This configuration only produces an output for bending.
Strains due to axial loading cancels off. The configuration is temperature compen-
sated because both R3 and R4 experience equal effects due to temperature.
1
Vb = Gf εVs (26)
2
Vs
R1 R4+ε
V1
V2
R2 R3-ε
Vb=V1 - V2
ME 7203 46
• Full bridge: This configuration only produces an output for bending. Strains due to
axial loading cancels off each other. The configuration is temperature compensated
because all resistors experience equal effects due to temperature. The sensitivity of
this configuration is 4 times the quarter bridge.
Vb = Gf εVs (27)
Vs
R1-ε
R4+ε
V1
V2
R2+ε R3-ε
Vb=V1 - V2
ME 7203 47
R1
SG1 R+ΔR R4 +Vs
V+ +
h Vo
-
w SG2 R-ΔR R2 R3
V-
-Vs
d AD620
Gain = K
l
Vb=V+-V-
σ My F (l − d)h/2
SG1 = = =
E EI Ewh3 /12
1. Find an equation relating the output voltage (Vo ) and the applied load (in
kg) of the half bridge load cell shown in figure and find the expected mV /V
output rating of the load cell (without any amplification) assuming that the
rated load is 1 kg.
ME 7203 48
2. Find the maximum load (in kg) that can be applied to the load cell as a
function of the parameters.
ME 7203 49
+10 V
SG2 120
EX+
+10V
SIG+ + V1 3
SIG- 1 7 Vo
Full Bridge +10V Rg 6
EX- 5
+ 8 4
Cell 3
1 7
6
- V2
2
SG1 SG4 5 -10V
8 4
To DAQ
Gain Amp
+10V - 2
(AD 620)
-10V
SG2 SG3 1K 200 1K Bias Amp
-10V (AD 620)
Bias adjustment
ME 7203 50
R1
R4 +Vs
V+ - Vo
V- +
R2 R3 -Vs
T
Source
2 +ε 2 3
-ε 3 Load
T τ
+ε 4
-ε 1 4
1
ME 7203 51
• Depending on the pressure applied P on the diaphragm strain gauges are elongated
and compressed along tangential and radial directions.
• Pressure sensors are available to measure absolute, gauge pressure or vacuums pres-
sure. The output is typically specified as a mV /V rating. e.g. Demo of mV out-
put pressure transducer acquisition in Labview URL: demo-video-pressure-reading-
LabView
ME 7203 52
SG1
SG2
SG1 SG2
SG4 SG2
SG3 SG4
SG3
SG4
SG1 SG4 are radial guages
SG2 SG3 are tangential guages
ME 7203 53
• Many industrial sensors are packaged with the transducer and signal processing stages
to provide standard output levels.
• A 0 − 5V sensor outputs 0V for the minimum rated input xmin and outputs 5V for
maximum rated input xmax .
• Data acquisition systems digitize the voltage signal using an analog to digital con-
verter. E.g NI 6008 DAQ [5]
• When a voltage signal travels long distances at a site, the signal drops due to resis-
tance of the long wires used for the purpose.
• A remedy for this is the use of current signals. Current signals are efficient for
signal transmission over long distances. (e.g. Automation direct 4-20mA temperature
transmitters URL: demo-video-temperature-transmitters)
• A 4 − 20mA sensor outputs 4mA for the minimum rated input xmin and outputs
20mA for maximum rated input xmax of a sensor. Out of range readings are used to
indicate sensor faults or sensor startup routines.
• For basic data acquisition needs a 250Ω current sensing resistor can be used with an
analog to digital converter to perform digitization of 4 − 20mA signals.
ME 7203 54
Vo
NI6008 -
Ai0 +
250
NI6008
GND
ME 7203 55
• Analog signal: the voltage ( or current) varies between a range of values and the
voltage values directly correspond to the measured quantity following a standard
linear relationship. As an example, a 0-350 mBar pressure sensor with 0-5V output
has a linear relationship with 0V corresponding to 0 mBar, and 5V for 350 mBar.
• If the sensor outputs a standard analog signal (0-5V, 4-20 mA), analog input modules
can be used to interface the signal to a data processing device. Example illustrations
of the analog input ports of embedded, DAQ, and PLC data processing devices are
illustrated below.
Digital IN
Digital IN*
Analog IN
Digital OUT
TCP/IP
Analog OUT
Digital IN*
USART
Analog IN
Analog IN
USART
Analog OUT
• These analog input modules perform the function of analog to digital (A to D) con-
version, which converts a voltage signal to a digital representation that the data
processing units can work with. Following are typical examples of interfacing stan-
dard analog output of a sensor with an analog input module of a data processing
unit.
ME 7203 56
DAQ
0-5V VS 8-bit
Output SIG 3V AD0
Sensor GND GND USB
VS+ VS-
Power
Supply
DAQ DAQ
4-20mA VS 5mA R=250 8-bit 4-20mA R=250
10mA 8-bit
Output SIG AD0 Output SIG+ AD0
Sensor GND GND Sensor SIG-
USB GND USB
3 wire VS+ VS- 2 wire VS+ VS-
Power Power
Supply Supply
• Digital signals have the voltage changing between only two levels. For example high
voltage (2 to 5V) corresponds to digital “1” and low voltage (0 to 0.8V) corresponds
to digital “0” for digital TTL output type sensors.
• The Digital input modules are capable of recording the state (High or Low), keep
track of the frequency, or the pulse width of a digital signal. Example illustrations
of the digital input ports of embedded, DAQ, and PLC data processing devices are
shown in figure ??.
5V
DAQ
TTL VS
Output SIG D0
Sensor GND GND USB
VS+ VS-
Power
Supply
• Digital frequency signals are also commonly used to transmit speed values.
• In this case a data acquisition system captures the frequency signal using a counter
and a clock. E.g NI DAQ digital pulse counting example URL: demo-video-counter-
Labview
ME 7203 59
NI6008
CTR0
ME 7203 60
• Digital sensor can also make use of a communication standard to communicate with
a device. Communication standards define how a “packet” of digital data is com-
municated between two devices. These data ”packets” can conveniently carry any
information related to the sensor and its measurements. Three common protocols
are shown below IC to IC (i2c), universal asynchronous receive transmit (USART),
and ethernet (tcp/ip).
• Similar to the input ports discussed above, data processing modules can also have
output ports. Analog output ports perform digital to analog conversation ( D to A)
to output an analog signal. Digital output ports are used to output digital signals to
communicate with another digital device.
References
[1] Figliola, R.S. and Beasley, D., Theory and Design for Mechanical Measurements, 6th
Edition, Wiley, 2015.
[4] Lye, L., Design and Analysis of Experiments, DOE Course notes, 2015.
[6] Analog Devices 335 3 axis accelerometer datasheet, Analog Devices, 2015. URL:
adxl335.pdf
[7] Temperature probes: How to choose the right temperature sensor type, Omega Inc. 2018.
URL: thermocouple-RTD.html