Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
OUTLINE
Introduction
Conditioning Bridge Circuits
Amplifiers for Signal Conditioning
Analog to Digital Converters for Signal Conditioning
Signal Conditioning High Impedance Sensors
INTRODUCTION
MECHATRONICS STUDY PROGRAM
Signal Filtering:
1. Linear continuous-time filters Linear continuous-time circuit is perhaps the
most common meaning for filter in the signal processing world, and simply
"filter" is often taken to be synonymous. These circuits are generally designed
to remove certain frequencies and allow others to pass. Circuits that perform
this function are generally linear in their response, or at least approximately so.
Any nonlinearity would potentially result in the output signal containing
frequency components not present in the input signal.
The modern design methodology for linear continuous-time filters is called network
synthesis. Some important filter families designed in this way are:
1. Chebyshev filter, has the best approximation to the ideal response of any
filter for a specified order and ripple.
2. Butterworth filter, has a maximally flat frequency response.
3. Bessel filter, has a maximally flat phase delay.
4. Elliptic filter, has the steepest cutoff of any filter for a specified order and
ripple.
The difference between these filter families is that they all use a different polynomial
function to approximate to the ideal filter response. This results in each having a
different transfer function.
INTRODUCTION
MECHATRONICS STUDY PROGRAM
Signal Filtering:
1. Linear continuous-time filters
The frequency response can be classified into a number of different band
forms describing which frequency bands the filter passes (the passband)
and which it rejects (the stopband):
Low-pass filter – low frequencies are passed, high frequencies are attenuated.
High-pass filter – high frequencies are passed, low frequencies are attenuated.
Band-pass filter – only frequencies in a frequency band are passed.
Band-stop filter or band-reject filter – only frequencies in a frequency band are
attenuated.
Notch filter – rejects just one specific frequency - an extreme band-stop filter.
Comb filter – has multiple regularly spaced narrow passbands giving the band form
the appearance of a comb.
All-pass filter – all frequencies are passed, but the phase of the output is modified.
Some Terminology:
Cutoff frequency is the frequency beyond which the filter will not pass signals. It is usually measured at a specific
attenuation such as 3 dB.
Roll-off is the rate at which attenuation increases beyond the cut-off frequency.
Transition band, the (usually narrow) band of frequencies between a passband and stopband.
Ripple is the variation of the filter's insertion loss in the passband.
The order of a filter is the degree of the approximating polynomial and in passive filters corresponds to the number
of elements required to build it. Increasing order increases roll-off and brings the filter closer to the ideal response.
INTRODUCTION
MECHATRONICS STUDY PROGRAM
Filter Technologies
Filters can be built in a number of different technologies. The same transfer function can
be realized in several different ways, that is the mathematical properties of the filter are
the same but the physical properties are quite different. Often the components in different
technologies are directly analogous to each other and fulfill the same role in their
respective filters. For instance, the resistors, inductors and capacitors of electronics
correspond respectively to dampers, masses and springs in mechanics. Likewise, there
are corresponding components in distributed element filters.
INTRODUCTION
MECHATRONICS STUDY PROGRAM
Filter Technologies
Electronic filters were originally entirely passive consisting of resistance, inductance and
capacitance. Active technology makes design easier and opens up new possibilities in filter
specifications.
Digital filters operate on signals represented in digital form. The essence of a digital filter is
that it directly implements a mathematical algorithm, corresponding to the desired filter transfer
function, in its programming or microcode.
Mechanical filters are built out of mechanical components. In the vast majority of cases they
are used to process an electronic signal and transducers are provided to convert this to and
from a mechanical vibration. However, examples do exist of filters that have been designed for
operation entirely in the mechanical domain.
Distributed element filters are constructed out of components made from small pieces of
transmission line or other distributed elements. There are structures in distributed element
filters that directly correspond to the lumped elements of electronic filters, and others that are
unique to this class of technology.
Waveguide filters consist of waveguide components or components inserted in the
waveguide. Waveguides are a class of transmission line and many structures of distributed
element filters, for instance the stub (electronics), can also be implemented in waveguides.
Crystal filters use quartz crystals as resonators, or some other piezoelectric material.
Acoustic filters
Optical filters were originally developed for purposes other than signal processing such as
lighting and photography. With the rise of optical fiber technology, however, optical filters
increasingly find signal processing applications and signal processing filter terminology, such as
longpass and shortpass, are entering the field.
INTRODUCTION
MECHATRONICS STUDY PROGRAM
Crystal filter
Op Amp Circuit
The blue signal is an amplification of
the red signal with gain 2
INTRODUCTION
MECHATRONICS STUDY PROGRAM
Electronic amplifier:
is an electronic device that can increase the power of a signal. An amplifier
functions by taking power from a power supply and controlling the output to
match the input signal shape but with a larger amplitude.
In this sense, an amplifier modulates the output of the power supply based
upon the properties of the input signal. An amplifier is effectively the opposite
of an attenuator: while an amplifier provides gain, an attenuator provides loss.
An amplifier can either be a discrete piece of equipment or an electrical circuit
contained within another device.
Amplification is fundamental to modern electronics, and amplifiers are widely
used in almost all electronic equipment.
Amplifiers can be categorized in different ways. One is by the frequency of the
electronic signal being amplified; audio amplifiers amplify signals in the audio
(sound) range of less than 20 kHz, RF amplifiers amplify frequencies in the
radio frequency range between 20 kHz and 300 GHz. Another is which
quantity, voltage or current is being amplified; amplifiers can be divided into
voltage amplifiers, current amplifiers, trans conductance amplifiers, and trans
resistance amplifiers.
INTRODUCTION
MECHATRONICS STUDY PROGRAM
A signal isolator in the process loop block ground currents to restore signal accuracy and reliability
MECHATRONICS STUDY PROGRAM
OUTLINE
Introduction
Conditioning Bridge Circuits
Amplifiers for Signal Conditioning
Analog to Digital Converters for Signal Conditioning
Signal Conditioning High Impedance Sensors
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
Introduction
Resistive elements are some of the most common sensors. They are inexpensive to
manufacture and relatively easy to interface with signal conditioning circuits. Resistive
elements can be made sensitive to temperature, strain (by pressure or by flex), and light.
Using these basic elements, many complex physical phenomena can be measured, such
as fluid or mass flow (by sensing the temperature difference between two calibrated
resistances) and dew-point humidity (by measuring two different temperature points), etc.
Bridge circuits are often incorporated into force, pressure and acceleration sensors.
Sensor elements’ resistances can range from less than 100 Ω to several hundred kΩ,
depending on the sensor design and the physical environment to be measured. For
example, RTDs (resistance temperature devices) are typically 100 Ω or 1000 Ω.
Thermistors are typically 3500 Ω or higher.
RTD Circuits
Thermistor Circuits
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
Bridge Circuits
Resistive sensors such as RTDs and strain gages produce small percentage changes in
resistance in response to a change in a physical variable such as temperature or force.
Platinum RTDs have a temperature coefficient of about 0.385%/°C. Thus, in order to
accurately resolve temperature to 1°C, the measurement accuracy must be much better
than 0.385 Ω, for a 100 Ω RTD.
Strain gages present a significant measurement challenge because the typical change in
resistance over the entire operating range of a strain gage may be less than 1% of the
nominal resistance value. Accurately measuring small resistance changes is therefore
critical when applying resistive sensors.
One technique for measuring resistance is to force a constant current through the resistive
sensor and measure the voltage output. This requires both an accurate current source and
an accurate means of measuring the voltage. Any change in the current will be interpreted
as a resistance change. In addition, the power dissipation in the resistive sensor must be
small, in accordance with the manufacturer’s recommendations, so that self-heating does
not produce errors, therefore the drive current must be small.
1. What do you need to consider carefully in the selection Wheatstone Bridge for your
transducer signal conditioning?
2. What the level of linearity error in (i) single element varying, (ii) double element
varying and (iv) all element varying?
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
Amplifying and Linearizing Bridge Outputs
The output of a single-element varying bridge may be amplified by a single precision op-amp
connected in the inverting mode as shown in figure a below. This circuit, although simple, has
poor gain accuracy and also unbalances the bridge due to loading from Rf (feedback resistor)
and the op amp bias current. The Rf resistors must be carefully chosen and matched to
maximize the common mode rejection (CMR). Also it is difficult to maximize the CMR while at
the same time allowing different gain options. In addition, the output is nonlinear. The key
redeeming feature of the circuit is that it is capable of single supply operation and requires a
single op amp. Note that the RF resistor connected to the non-inverting input is returned to VS/2
(rather than ground) so that both positive and negative values of ΔR can be accommodated, and
the op amp output is referenced to VS/2.
b. Using an
instrumentation
amplifier
with a single-
element varying
bridge.
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
Amplifying and Linearizing Bridge Outputs
Various techniques are available to linearize bridges, but it is important to distinguish between
the linearity of the bridge equation and the linearity of the sensor response to the phenomenon
being sensed. For example, if the active element is an RTD, the bridge used to implement the
measurement might have perfectly adequate linearity; yet the output could still be nonlinear due
to the RTD’s nonlinearity. Manufacturers of sensors employing bridges address the nonlinearity
issue in a variety of ways, including keeping the resistive swings in the bridge small, shaping
complementary nonlinear response into the active elements of the bridge, using resistive trims
for first-order corrections, and others.
Figure below shows a single-element varying active bridge in which an op amp produces a
forced null, by adding a voltage in series with the variable arm. That voltage is equal in
magnitude and opposite in polarity to the incremental voltage across the varying element and is
linear with ΔR. Since it is an op amp output, it can be used as a low impedance output point for
the bridge measurement. This active bridge has a gain of two over the standard single-element
varying bridge, and the output is linear, even for large values of ΔR. Because of the small output
signal, this bridge must usually be followed by a second amplifier. The amplifier used in this
circuit requires dual supplies because its output must go negative.
Linearizing a single-
element
varying bridge
method 1.
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
Driving Bridges
Wiring resistance and noise pickup are the biggest problems associated with remotely located bridges. Figure below
shows a 350 Ω strain gage which is connected to the rest of the bridge circuit by 100 feet of 30 gage twisted pair copper
wire. The resistance of the wire at 25°C is 0.105 Ω/ft, or 10.5 Ω for 100ft. The total lead resistance in series with the 350
Ω strain gage is therefore 21 Ω. The Temperature Coefficient (TC) of the copper wire is 0.385%/°C. Now we will
calculate the gain and offset error in the bridge output due to a +10°C temperature rise in the cable. These calculations
are easy to make, because the bridge output voltage is simply the difference between the output of two voltage dividers,
each driven from a +10 V source. The full-scale variation of the strain gage resistance (with flex) above its nominal 350
Ω value is +1% (+3.5 Ω), corresponding to a full-scale strain gage resistance of 353.5 Ω, which causes a bridge output
voltage of +23.45 mV.
Notice that the addition of the 21 Ω RCOMP resistor compensates for the wiring resistance and balances the bridge when
the strain gage resistance is 350 Ω. Without RCOMP, the bridge would have an output offset voltage of 145.63 mV for a
nominal strain gage resistance of 350 Ω. This offset could be compensated for in software just as easily, but for this
example, we chose to do it with RCOMP. Assume that the cable temperature increases +10°C above nominal room
temperature. This results in a total lead resistance increase of +0.404 Ω (10.5 Ω × 0.00385/°C × 10°C) in each lead.
Note: The values in parentheses in the diagram indicate the
values at +35°C. The total additional lead resistance (of the
two leads) is +0.808 Ω. With no strain, this additional lead
resistance produces an offset of +5.44 mV in the bridge
output. Full-scale strain produces a bridge output of +28.83
mV (a change of +23.39 mV from no strain). Thus the
increase in temperature produces an offset voltage error of
+5.44 mV (+23% full scale) and a gain error of –0.06 mV
(23.39 mV – 23.45 mV), or –0.26% full scale. Note that these
errors are produced solely by the 30 gage wire, and do not
include any temperature coefficient errors in the strain gage
itself. Errors produced by wiring resistance for remote resistive bridge sensor
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
(a) 3-wire connection to remote bridge element (b) Errors produced by wiring resistance
(single-element varying). for remote resistive bridge sensor.
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
Driving Bridges
The three-wire method works well for remotely located resistive elements which make up one leg
of a single-element varying bridge. However, all-element varying bridges generally are housed in
a complete assembly, as in the case of a load cell. When these bridges are remotely located from
the conditioning electronics, special techniques must be used to maintain accuracy.
Of particular concern is maintaining the accuracy and stability of the bridge excitation voltage. The
bridge output is directly proportional to the excitation voltage, and any drift in the excitation
voltage produces a corresponding drift in the output voltage.
For this reason, most all-element varying bridges (such as load cells) are six-lead assemblies: two
leads for the bridge output, two leads for the bridge excitation, and two sense leads. This method
(called Kelvin or 4-wire sensing) is shown in Figure below. The sense lines go to high impedance
op amp inputs, so there is minimal error due to the bias current induced voltage drop across their
lead resistance.
The op amps maintain the required excitation voltage to
make the voltage measured between the sense leads
always equal to VB. Although Kelvin sensing eliminates
errors due to voltage drops in the wiring resistance, the
drive voltages must still be highly stable since they directly
affect the bridge output voltage. In addition, the op amps
must have low offset, low drift, and low noise.
Kelvin (4-wire) sensing
minimizes errors due to lead resistance
Conditioning Bridge
MECHATRONICS STUDY PROGRAM Circuits
Driving Bridges
The constant current excitation method shown in Figure (a) below is another method for minimizing the
effects of wiring resistance on the measurement accuracy. However, the accuracy of the reference, the
sense resistor, and the op amp all influence the overall accuracy.
A very powerful ratiometric technique which includes Kelvin sensing to minimize errors due to wiring
resistance and also eliminates the need for an accurate excitation voltage is shown in Figure (b). The
AD7730 measurement ADC can be driven from a single supply voltage which is also used to excite the
remote bridge. Both the analog input and the reference input to the ADC are high impedance and fully
differential. By using the + and – SENSE outputs from the bridge as the differential reference to the
ADC, there is no loss in measurement accuracy if the actual bridge excitation voltage varies. The
AD7730 is one of a family of sigma-delta ADCs with high resolution (24 bits) and internal programmable
gain amplifiers (PGAs) and is ideally suited for bridge applications. These ADCs have self- and system
calibration features which allow offset and gain errors due to the ADC to be minimized. For instance, the
AD7730 has an offset drift of 5 nV/°C and a gain drift of 2 ppm/°C. Offset and gain errors can be
reduced to a few microvolts using the system calibration feature.
OUTLINE
Introduction
Conditioning Bridge Circuits
Amplifiers for Signal Conditioning
Analog to Digital Converters for Signal Conditioning
Signal Conditioning High Impedance Sensors
Amplifiers for Signal
MECHATRONICS STUDY PROGRAM Conditioning
Operational amplifiers
The operational amplifier in the middle of the circuit was added in this circuit to isolate the
high-pass from the low-pass filter so that they do not effectively load each other. The op-amp
simply works as a buffer in this case. Operational amplifiers (op-amps) are electronic devices
that are of enormous generic use for signal processing. The use of op-amps can be complicated,
but there are a few simple rules and a few simple circuit building blocks which designers need to
be familiar with to understand many common sensors and the circuits used with them.
An op-amp is essentially a simple 2-input, 1-output device. The output voltage is equal to the
difference between the non-inverting input and the inverting input multiplied by some extremely
large value (105). Use of op-amps as simple amplifiers is uncommon.
Feedback is a particularly valuable concept in op-amp applications. For instance, consider the circuit
shown in figure Band-pass filter above, called the follower configuration. Notice that the inverting input is
tied directly to the output. In this case, if the output is less than the input, the difference between the
inputs is a positive quantity, and the output voltage will be increased. This adjustment process
continues, until the output is at the same voltage as the non-inverting input. Then, everything stays
fixed, and the output will follow the voltage of the non-inverting input. This circuit appears to be useless
until you consider that the input impedance of the op-amp can be as high as 109 ohms, while the output
can be many orders of magnitude smaller. Therefore, this follower circuit is a good way to isolate circuit
stages with high output impedance from stages with low input impedance.
Linearizing a single-
element
varying bridge
method 1.
Amplifiers for Signal
MECHATRONICS STUDY PROGRAM Conditioning
Amplifying and Linearizing Bridge Outputs
Another circuit for linearizing a single element varying bridge is shown in Figure (a) below. The
bottom of the bridge is driven by an op amp, which maintains a constant current in the varying
resistance element. The output signal is taken from the right hand leg of the bridge and amplified
by a non-inverting op amp. The output is linear, but the circuit requires two op amps which must
operate on dual supplies. In addition, R1 and R2 must be matched for accurate gain.
A circuit for linearizing a voltage-driven two-element varying bridge is shown in Figure (b). This
circuit has twice the sensitivity. A dual supply op amp is required. Additional gain may be
necessary.
The two-element varying bridge circuit in Figure (c) uses an op amp, a sense resistor, and a
voltage reference to maintain a constant current through the bridge (IB = VREF/RSENSE). The
current through each leg of the bridge remains constant (IB/2) as the resistances change;
therefore the output is a linear function of ΔR. An instrumentation amplifier provides the additional
gain. This circuit can be operated on a single supply with the proper choice of amplifiers and
signal levels.
OUTLINE
Introduction
Conditioning Bridge Circuits
Amplifiers for Signal Conditioning
Analog to Digital Converters for Signal Conditioning
Signal Conditioning High Impedance Sensors
Analog to Digital Converters
MECHATRONICS STUDY PROGRAM for Signal Conditioning
The trend in ADCs and DACs is toward higher speeds and higher resolutions at reduced
power levels. Modern data converters generally operate on ±5 V (dual supply) or +5 V (single
supply). In fact, many new converters operate on a single +3 V supply. This trend has created a
number of design and applications problems which were much less important in earlier data
converters, where ±15 V supplies and ±10 V input ranges were the standard.
Lower supply voltages imply smaller input voltage ranges, and hence more susceptibility to
noise from all potential sources: power supplies, references, digital signals, EMI/RFI, and
probably most important, improper layout, grounding, and decoupling techniques. Single-supply
ADCs often have an input range which is not referenced to ground. Finding compatible single-
supply drive amplifiers and dealing with level shifting of the input signal in direct-coupled
applications also becomes a challenge.
In spite of these issues, components are now available which allow extremely high
resolutions at low supply voltages and low power. This section discusses the applications
problems associated with such components and shows techniques for successfully designing them
into systems.
The most popular precision signal conditioning ADCs are based on two fundamental architectures:
successive approximation and sigma-delta. The tracking ADC architecture is particularly suited for
resolver-to-digital converters, but it is rarely used in other precision signal conditioning applications.
The flash converter and the sub ranging (or pipelined) converter architectures are widely used
where sampling frequencies extend into the megahertz and hundreds of megahertz region, but are
overkills in both speed and cost for low frequency precision signal conditioning applications.
Analog to Digital Converters
MECHATRONICS STUDY PROGRAM for Signal Conditioning
Low power, low voltage ADC design issues:
Typical Supply Voltages: ±5V, +5V, +5/+3V, +3V
Lower Signal Swings Increase Sensitivity to all Types of Noise (Device, Power Supply, Logic, etc.)
Device Noise Increases at Low Currents
Common Mode Input Voltage Restrictions
Input Buffer Amplifier Selection Critical
Auto-Calibration Modes Desirable at High Resolutions
The binary representation of decimal 149, with the LSB highlighted. The MSB
in an 8-bit binary number represents a value of 128 decimal. The LSB
represents a value of 1.
MECHATRONICS STUDY PROGRAM
Bit Number 8 7 6 5 4 3 2 1
Assigment order 7 6 5 4 3 2 1 0
Binary Value System 2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
Decimal Value System 10^7 10^6 10^5 10^4 10^3 10^2 10^1 10^0
Example:
Binary Value 1 0 0 1 0 1 0 1
Decimal Value 1 x 2^7 0 x 2^6 0 x 2^5 1 x 2^4 0 x 2^3 1 x 2^2 0 x 2^1 1 x 2^0
128 0 0 16 0 4 0 1
Total Value 149
MSB LSB
MECHATRONICS STUDY PROGRAM
OUTLINE
Measuring Temperature
Suppose you are given a Pt100 thermo-
resistor
We read the temperature as a voltage with a
digital voltmeter
47
MECHATRONICS STUDY PROGRAM
In DAQ we if (dev-
>descriptor.idVendor == HOBBICO) vmh =
usb_open(dev);
normally need usb_bulk_read(vmh ,3,&u,sizeof(float),500);
not worry
about the
details of the
things we
USB/RS232
readout
48
MECHATRONICS STUDY PROGRAM
Read-out 16 Sensors
OUTLINE
SIGNAL GROUNDING
• Two types of signal sources
- grounded: signals which are referenced
to a system ground
ex:110V outlets, signal generators, power
supplies
- floating: signals which are not connected
to an absolute reference
ex: battery powered sources, thermocouples
transformers
MECHATRONICS STUDY PROGRAM
Signal Amplification
First step of signal conditioning is signal amplification by using
amplifier.
For maximum resolution, the voltage range of the input signals should
be approximately equal to the maximum input range of the A/D
converter.
Amplification expands the range of the transducer signals so that they
match the input range of the A/D converter.
For example,
input signal Amplifier output signal
Amplitude =1v (Gain=10) amplitude =10v
MECHATRONICS STUDY PROGRAM
Signal Linearization
MECHATRONICS STUDY PROGRAM
Converter
Converter is an electronic circuit that converts
signal in one form to another form.
A/D Converter
A/D converter converts analog signal into digital
signal.
Single chip integrated circuit
A single input connection for the analog signal
Multiple pins for digital output
Each pin responds an output bit
MECHATRONICS STUDY PROGRAM
A/D Conversion
y(t)=f(t) yk=f(tk)
MECHATRONICS STUDY PROGRAM
A/D Conversion
The process in which analog signal is converted into
digital signal is called A/D conversion. Changes a
continuous electrical signal into a discrete numerical
value, represented by a binary number.
Steps of A/D conversion:
Sampling
Quantizing
Encoding
Sampler Quantizer Encoder
Analog
Sampled Quantized Digital
Signal
Signal Signal Signal
MECHATRONICS STUDY PROGRAM
Sampling
Sampling is the process in which a continuous time
signal is sampled to produce discrete time signal.
Sampling Rate is the number of sample per second.
The higher the sampling rate, the better reconstruction of
original signal.
Analog 4 Samples/cycle 8 Samples/cycle
Input
16 Samples/cycle
MECHATRONICS STUDY PROGRAM
Sampling
Sampling: Numerical evaluate the signal at
discrete distance in time, yk=y(kDt)
Digitized Signal: a sequence of numbers that is
an approximation to an analog signal
Sampling time/Period: time duration between
two consecutive samples, Dt
Sampling rate fs (Hz): fs = 1/Dt
Nyquist Frequency: 2fmax
Sampling theory: fs > Nyquist Frequency
MECHATRONICS STUDY PROGRAM
Sampling
• Shannon-Nyquist sampling theorem
– The maximum frequency component a sampled data system can
accurately handle is its Nyquist limit (i.e., Nyquist frequency).
MECHATRONICS STUDY PROGRAM
Sampling
Aliasing: Acquired signal gets distorted if sampling rate is
too small(less than Nyquist Rate)
Nyquist Rate=2*Frequency of original signal
Anti-aliasing Filter
• One way of avoiding the problem of aliasing is to
apply an anti-aliasing filter to the signal, prior to
the sampling stage, to remove any frequency
components above the "folding" or Nyquist
frequency (half the sampling frequency).
• An anti-aliasing filter is a low-pass filter.
Quantization
Quantization Error
When a signal is quantized, we introduce an error - the
coded signal is an approximation of the actual amplitude
value.
Timing
• Aperture time: the duration of the time window that
the analog is sampled
• Jitter:
jitter is the deviation from true periodicity of a presumably
periodic signal, often in relation to a reference clock signal. In
clock recovery applications it is called timing jitter. Jitter is a
significant, and usually undesired, factor in the design of almost
all communications links.
Jitter can be quantified in the same terms as all time-varying
signals, e.g., root mean square (RMS), or peak-to-peak
displacement. Also like other time-varying signals, jitter can be
expressed in terms of spectral density.
MECHATRONICS STUDY PROGRAM
D/A Converter
D/A converter converts digital signal into analog signal.
Single chip integrated circuit
A single output connection for the analog signal
Multiple pins for digital input
Each pin takes an input bit
MECHATRONICS STUDY PROGRAM
OUTLINE
Contents
•RTD Overview
•RTD Nonlinearity
•Analog Linearization
•Digital Acquisition and Linearization
MECHATRONICS STUDY PROGRAM
What is an RTD?
• Resistive Temperature Detector
• Sensor with a predictable resistance vs. temperature
• Measure the resistance and calculate temperature based on the
Resistance vs. Temperature characteristics of the RTD material
360
320
280 PT100
Resistance (Ohms)
200
α = 0.00385
160
120
80
40
0
200 100 0 100 200 300 400 500 600 700 800
Temperature (C)
MECHATRONICS STUDY PROGRAM
*AAA (1/10 DIN) 0 - +100 0 - +100 +/-(0.03 + 0.0005*t) 100 +/- 0.012 0.08 0.08
AA (1/3DIN) -50 - +250 0 - +150 +/-(0.1 + 0.0017*t) 100 +/- 0.04 0.27 0.525
A -100 - +450 -30 - +300 +/-(0.15 + 0.002*t) 100 +/- 0.06 0.35 1.05
B -196 - +600 -50 - +500 +/-(0.3 + 0.005*t) 100 +/- 0.12 0.8 3.3
C -196 - +600 -50 - +600 +/-(0.6 + 0.01*t) 100 +/- 0.24 1.6 6.6
*AAA (1/10DIN) is not included in the DIN-IEC-60751 spec but is an industry accepted tolerance class for high-performance measurements
**Manufacturers may choose to guarantee operation over a wider temperature range than the DIN-IEC60751 provides
RA RA
+
RRTD VMEAS ISOURCE
-
VMEAS
+
-
RA RRTD
+
Denominator causes a non-linear 100 RTD
output even for a linear sensor
500.00m
375.00m
Voltage (V)
250.00m
125.00m
0.00
100.00 112.50 125.00 137.50 150.00
Input resistance (ohms)
Simple Current Source
MECHATRONICS STUDY PROGRAM / Sink Circuits
+5V +5V
REF200
R9 10k
AM5
I_Out 100uA R8 40k +5V 100uA
U8 REF5025 V3 2.5
+5V R2 200k
Vin Vout -
R1 INA326T1 INA326T
+
1u Tem p
10u Vdiff -49.85m
GND Trim R1 +
+
R3 49.9
R2
1u
Rset 25k
+
V2 2.5
R1 10k
Vcm 2.5
- I_Out 100.05uA
C1 100n
R4 100
+
+5V +
U9 OPA340
I_Out 100uA
RTD 100
RTD Types and Their
MECHATRONICS STUDY PROGRAM Parasitic Lead Resistances
RL RL White
White
Red Red
RL RL
Red
RL
RL White
RL White
RL White
RRTD
2-Wire with Red
4-Wire RRTD Compensating RL
Loop RL Blue
Red
RL Blue
Red
RL
RL
MECHATRONICS STUDY PROGRAM
2-Wire Measurements
RL +Vsource
+
RA
RRTD
A
VMEAS I SOURCE
R
-
-
RL
VMEAS
+
RL RRTD
RA
Vmeas Isource RRTD Isource 2 RL
RRTD 2RL 1
In a 2-wire RTD the lead resistances of the wire Vmeas Vsource
connecting the RTD to the measurement circuitry
appear in series with the RTD element and therefore
RA RRTD 2.RL 2
appear as errors in the measurement. There is no
way to cancel the lead resistances in a 2-wire RTD. 2 RA RL
Error Vsource
With a current source as the excitation, the error is RA RRTD RA 2 RL RRTD
simply 2*Rl * Isource
3-Wire Measurements
MECHATRONICS STUDY PROGRAM
With a 3-wire RTD an additional wire is connected to one end of the RTD element allowing for the
cancellation of the lead resistances by placing one lead resistance in series with both the positive and
negative measurement connections. When the differential measurement is made, the two lead resistances
cancel in the subtraction.
Using current sources as the excitation source, the lead resistances can completely cancel as long as the two
current sources are matched and the lead resistances are equal. The 3-wire RTD provides improvements
from the 2-wire solution by placing one lead resistance in series with both the top and bottom leg of the
bridge. However the lead resistances unbalance the bridge resulting in a remaining error.
ISOURCE1
RL
+Vsource
RRTD
+
RA RA RL
VMEAS
-
ISOURCE2
VMEAS
-
+
RL
RL RRTD
RL RA
RL
Isource1 Isource2 I
RRTD RL 1
Vmeas I RL I RRTD ( 2 I) RL I RRTD 3 I RL Vmeas Vsource
RA RRTD 2 RL
+
2
Vmeas I RL ( 2 I) RL
-
3 I RL
RL RA RRTD
Vsource
Error
Vmeas Vmeas
+ - I RRTD 3 I RL 3 I RL I RRTD
RA RRTD RA 2 RL RRTD
With a 4-wire RTD all lead resistance errors are removed from the measurement circuit by providing a Kelvin
connection to the RTD. Two wires carry the current and the other two wires connect to the high impedance
measurement circuitry. In this method the measurement circuitry does not include any lead resistance.
In a bride a “2-wire with compensating loop” can be used to provide further improvement by actually using the
compensating loop to balance the bridge.
+Vsource
RL
RL RA RA
+
RL
RRTD VMEAS
-
+
VMEAS I
- RL
RL RRTD
RA
RL
RL
RL
0.1
Temperature (C)
Errorselfheat200n( I) 0.01
Errorselfheat0( I) 3
110
Errorselfheat850( I)
4
110
5
110
6
110
7
110
5 4 3
110 110 110 0.01
I
RTD Resistance vs
MECHATRONICS STUDY PROGRAM Temperature
For (T > 0) : RTD( T) R0 1 A T B T 2 IEC 60751 PT-100 RTD (α = 0.00385)
R0 100
RTD( T) R0 1 A T B T C T ( T 100)
2 3
For (T < 0) : 3
A 3.9083 10
RTD Resistance vs. Temperature 7
400 B 5.775 10
12
C 4.183 10
360
320
280
Resistance (Ohms)
240
RTD (T)
200
160
120
80
40
0
200 100 0 100 200 300 400 500 600 700 800
Temperature (C)
RTD Nonlinearity
MECHATRONICS STUDY PROGRAM
RTD Resistance vs. Temperature
400
360
Resistance (Ohms)
240
RTD( Temp)
R LINFIT( Temp)
200
160
120
80
40
Temperature (C)
4.5
4 40
Nonlinearity = 4.5%
Temperature Nonlinearity (%FSR)
3.5
Temperature Error (C)
2 20
1.5
1 10
0.5
0 0
200 95 10 115 220 325 430 535 640 745 850
Temperature (C)
RTD Nonlinearity
MECHATRONICS STUDY PROGRAM
3
A 3.9083 10 405
7
B 5.775 10 360
12
C 4.183 10
315
Resistance (Ohms)
180
B and C terms are negative so
2nd and 3rd order effects 135
0
200 95 10 115 220 325 430 535 640 745 850
Temperature (C)
Measurement Nonlinearity
MECHATRONICS STUDY PROGRAM
+
RRTD VMEAS ISOURCE
-
0.0415
0.038
0.0345
0.031
Voltage (V)
V RTD (Temp)
0.0275
V RTD_linear (Temp)
0.024
0.0205
0.017
0.0135
0.01
0 80 160 240 320 400 480 560 640 720 800
Temperature (C)
Correcting for Non-Linearity
MECHATRONICS STUDY PROGRAM
Sensor output decreases over span? Compensate by increasing excitation over span!
+ +
RRTD VMEAS
-
ISOURCE I SOURCE RRTD VMEAS
-
I CORRECTION
Icorrection = gain*Vmeas+Offset
0.0415
0.031
Voltage (V)
V RTD (Temp)
0.0275
V RTD_linear (Temp)
0.024
0.0205
0.017
0.0135
0.01
0 80 160 240 320 400 480 560 640 720 800
Temperature (C)
Isource 0.0005
Isource 0.0005
VRTD_linear (T) VRTD( T)
Isource_correction ( T) Isource
RTD( T)
VRTD( T) RTD( T) Isource
VRTD_correction ( T) RTDlinear ( T) Isource_correction ( T)
0.2
VRTD_linearized ( T) Isource_correction
0.175 ( T) RTD( T)
VRTD_correction ( Temp )
0.125
VRTD_linearized ( Temp )
0.1
0.075
0.05
0.025
0
200 100 0 100 200 300 400 500 600 700 800
Temp
Temperature (C)
MECHATRONICS STUDY PROGRAM
Analog Linearization
Circuits
Analog Linearization
MECHATRONICS STUDY PROGRAM Circuits
R2 49.13k R3 60.43k
Example
Amplifiers:
Vout
R4 1k - Low-Voltage:
R1 4.99k
V1 5 OPA333
+
OPA376
R5 105.83k
High Voltage:
I_Correction
OPA188
RTD 100
OPA277
A voltage-controlled current
source is formed from the op-amp
I_RTD
output through R4 into the RTD
This circuit is designed for a 0-5V output for a 0-200C temperature span. Components R2, R3,
R4, and R5 are adjusted to change the desired measurement temperature span and output.
Analog Linearization Circuits
R4 1k
R1 4.99k
V1 5
+
RTD 100
I_RTD
50.00u
37.50u
I_Correction (A)25.00u
12.50u
0.00
1.01m
1.00m
988.00u
980.00u
0.00 50.00 100.00 150.00 200.00
Temperature (C)
Temperat
100.0
Analog Linearization
Circuits
75.00
MECHATRONICS STUDY PROGRAM
Without Linearization
50.00
Vout
-
This type of linearization typically provides a 20X - 40X
R4 1k
R1 4.99k
V1 5
+
improvement in linearity
25.00
R5 105.83k
I_Correction
RTD 100
5.00
I_RTD
4.38 0.00
3.13
2.50
1.88
1.25
0.00
625.00m
3.75
1.25
625.00m
0.00
0.00 25.00 50.00 75.00 100.00 125.00 150.00 175.00 200.00
Temperature (C)
Analog Linearization
MECHATRONICS STUDY PROGRAM Circuits
Three-Wire Single INA
A voltage-controlled current
+15V
source is formed from the INA Example
R1 4.99k
R2 4.99k
output through Rlin into the RTD
Amplifiers:
V1 15
I_Bias
Low-Voltage:
I_Correction Rlin 105.83k
V2 5 INA333
-15V
INA114
V3 15
-
Rg
Rz 100
Vout
Rg 801
-15V
Ref High Voltage
Rg
+ U2 INA826 INA826
+
+15V
INA114
I_RTD
RL2 1
RL3 1
Remote RTD
Analog Linearization
MECHATRONICS STUDY PROGRAM Circuits
R7 4.99k
R9 4.99k
V1 15
I_Bias
I_Correction R2 105.83k
V2 5
-15V
V3 15
R14 100
Vout
R6 801
-15V
R1 10k
Rg
+ U2 INA826
+
+15V
I_RTD
5.00
RL1 1
RL2 1
RL3 1
RTD 175.8
3.75
3.12
Without Correction
Voltage (V) 2.50
1.25
622.27m
0.00
0.00 25.00 50.00 75.00 100.00 125.00 150.00 175.00 200.00
Temperature (C)
Analog Linearization
MECHATRONICS STUDY PROGRAM Circuits
Iref1 800u
XTR105
R4 1k
OA1
+
Q1_INT
VIN+
R5 1k
i_rtd -
Rlin 1k
Rg 162.644
R_CL 0
OA3
-
VIN- V_PS 24
Q1
+
-
+
OA2
RTD 100 Rz 100 i_afe
RL 250
Analog Linearization
MECHATRONICS STUDY PROGRAM Circuits
18.00m
16.00m
14.00m
Without Correction
I_Out (A) 12.00m
10.00m
With Correction
8.00m
6.00m
4.00m
0.00 25.00 50.00 75.00 100.00 125.00 150.00 175.00 200.0
Temperature (C)
Analog + Digital
MECHATRONICS STUDY PROGRAM Linearization Circuits
+V source
RA RA
RL AIN0
RRTD
RL
AIN1
RL AIN2
RRTD
AIN3
RL
MECHATRONICS STUDY PROGRAM
RL
RL
R RTD
RL
RL
RL R COMP
R RTD
RL
RL
RL
R RTD
RL
RL
MECHATRONICS STUDY PROGRAM
0.037
0.034
0.031
0.028
Voltage (V)
0.022
0.019
0.016
0.013
0.01
0 80 160 240 320 400 480 560 640 720 800
Temperature (C)
Digital Linearization
MECHATRONICS STUDY PROGRAM Methods
Linear Fit
Pro’s: Con’s:
•Easiest to implement Least Accurate
•Very Fast Processing Time
•Fairly accurate over small temp span
TLinear ( t) A RTD( t) B
End-point Fit Best-Fit
RTD Sensor Output vs. Temperature (Isource = 100uA) RTD Sensor Output vs. Temperature (Isource = 100uA)
0.04 0.04
0.037 0.037
0.034 0.034
0.031 0.031
0.028 0.028
Voltage (V)
Voltage (V)
0.022 0.022
0.019 0.019
0.016 0.016
0.013 0.013
0.01 0.01
0 80 160 240 320 400 480 560 640 720 800 0 80 160 240 320 400 480 560 640 720 800
Temp Temp
0.037
0.034
0.031
0.028
Voltage (V)
0.019
0.016
0.013
0.01
0 80 160 240 320 400 480 560 640 720 800
Temperature (C)
Digital Linearization
MECHATRONICS STUDY PROGRAM Methods
Direct Computation
Pro’s: Con’s:
•Almost Exact Answer, Least Error •Processor intensive
•With 32-Bit Math Accuracy to +/-0.0001C •Requires Math Libraries
•Negative Calculation Requires
simplification or bi-sectional solving
RTD Sensor Output vs. Temperature (Isource = 100uA)
0.04
A 4B 1
RTD( t)
0.034
2
A
R0
0.031
0.028
Voltage (V)
TDirect( t) V RTD (Temp) 0.025
+ 2B 0.022
0.019
0.016
3 6 8
0.01
2 0 80 160 240 320
3
400 480 560 640 720 800
Direct Computation
Bi-Section Method for Negative Temperatures
TBisection 99.999
-
MECHATRONICS STUDY PROGRAM
OUTLINE
ANALOGUE TO DIGITAL
CONVERSION CONSIDERATIONS
The quality of the analogue to digital conversion is
dependent on the following four parameters:
1. Resolution
2. Device range
3. Signal input range
4. Sampling rate
These will be set using hardware (board switches)
or software (Measurement and Automation
Explorer in Labview)
MECHATRONICS STUDY PROGRAM
RESOLUTION
• Resolution: The number of bits used to represent the
analogue signal The term bit is a portmanteau of binary digit. These values
are most commonly represented as either a 0 or 1
16-bit
Devices with higher resolution (14-bit, 16-bit, etc) give us data that
better approximates the original signal
111
110
101
Volts
100
011
010
001
000
T, sec
DEVICE RANGE
• device range: minimum and maximum analogue
signal levels that the ADC can convert.
• The device range should be matched to the range
of the analogue input signal to best take
advantage of the available resolution!
RANGE
MECHATRONICS STUDY PROGRAM
DAQ Device
Temperatu
re Sensor
Pressure
Sensor PC Station and
Experimenter
Experimenta
l
Apparatus
Sampling Rate
MECHATRONICS STUDY PROGRAM
• This DAQ Assistant has been set-up so that the Acquisition Mode for the device will
be to collect N Samples.
• We select the value for N as 1000 Samples to Read.
• The Rate (Hz) will be a frequency of 1000.
• So we have selected our standard data collection settings but what do these
parameters actually mean and how will they affect the VI’s overall timing? This is an
important question as it pertains to data collection.
Sampling Rate
MECHATRONICS STUDY PROGRAM
• When we execute the VI with the rate of 1000 Hz and the number of samples set to
1000 data points we may get a result similar to the one in this figure.
• In this case we measure the output of a battery pack. The battery pack has a voltage
in excess of 6 volts. We run the DAQ frequency at 1000 Hz.
• The DAQ collects this information to a buffer. All the data it collects goes to the
buffer and is then displayed when the DAQ has finished collecting.
• Each data point enters the buffer in the form of an array. Each data point that we
collect will be given a specific address within the array.
• When it comes time to display this data the first point in will be the first point out.
Thus LabVIEW keeps track of the data it collects via the classic first-in/first-out or
FIFO method.
Sampling Rate
MECHATRONICS STUDY PROGRAM
• Clock rate for this DAQ instrument allows us to take samples at a rate up to 48000
Hz.
• This is very useful if we have a situation in which we need to record some event very
quickly.
• If an experiment was conducted where we had to monitor an event that happened in
less than 200 micro-seconds LabVIEW could help us.
• This could be a controlled detonation like the ignition of a model rocket engine or a
chemical reaction in which a precipitate forms in solution.
• In this case we would apply the maximum collection rate and opt to collect 10
samples within that interval.
Sampling Rate
MECHATRONICS STUDY PROGRAM
• We noted that the DAQ Assistant made a weird little flash just before our VI crashed.
• And so we take a closer look at it. Near the bottom of the menu under the DAQ
Assistant we note something we may have overlooked earlier. What, we ask, is this
orange terminal labeled timeout?
• With further investigation we realize that the DAQ Assistant has a default setting in
which it will only collect data for 10 seconds. This is an important discovery because
sometimes we need to collect data for longer periods of time!
• If you set the timeout to a value of -1 the VI will not shutdown until it has collected
all of the data that you have programmed it to collect.
• This is done by using the Wiring Tool to connect a constant to timeout. When we
run our VI again we get a full two minutes of data.
Sampling Rate
MECHATRONICS STUDY PROGRAM
• In all of our examples we have collected data at varying rates and sample sizes.
• This has been done to illustrate VI timing. When we create a VI we may want it to
collect data for a very specific rate of time.
• When dealing with measurements it is important also to understand that there are
set collection rates that work better than others, and that if we set a rate too low we
can lose valuable information.
• Next week we will explore what this means and a tool that we can use to assure
ourselves that we are seeing all of the data that is relevant to our experiment.
MECHATRONICS STUDY PROGRAM
MODE
Gain = 1 Gain = 2
Digital Representation Digital Representation
(4 of 8 possible divisions) (8 of 8 possible divisions)
Gain Effect on Resolving
MECHATRONICS STUDY PROGRAM Power
Architectures
Multiplexed Simultaneous
• Simultaneous Sampling
– Eliminates time skew
between channels
– Simplifies both time and
frequency based analysis
techniques
• Multiplexed Sampling
– Channels are sampled
sequentially
– May require software
correction for detecting
certain patterns
MECHATRONICS STUDY PROGRAM
• Performance: • Performance:
CH Rate per channel Signal Bandwidth CH Rate per channel Signal Bandwidth
1 150kHz 75kHz 1 150kHz 75kHz
2 75kHz 37.5kHz 2 150kHz 75kHz
3 50kHz 25kHz 3 150kHz 75kHz
4 37.5kHz 18.75kHz 4 150kHz 75kHz
5 30kHz 15kHz 5 150kHz 75kHz
6 25kHz 12.5kHz 6 150kHz 75kHz
MECHATRONICS STUDY PROGRAM
Built In Accuracy
• Simultaneous A/D Converters
– All inputs sampled at same time
– Single clock pulse to acquire all
channels
– 35nS max aperture delay
• Matched within 5nS across all
circuits
• 1nS jitter (aperture uncertainty)
C = 100pF
1TC = (10kOhm * 100pF) = 1uS
Channel-to-Channel Crosstalk
• Signal on a channel couples with the signal on another channel
• Occurs because of parasitic capacitance across each open switch
Example:
• Assume an 8
channel MUX’d
system:
• Each 5pF
capacitor can
cause crosstalk
between channels
• Simultaneous System
– No MUX, No Settling
– No added cost
MECHATRONICS STUDY PROGRAM
Demonstration…
MECHATRONICS STUDY PROGRAM
2) In order to find the voltage change near the zero-crossing, take the derivative:
ΔV = 628uV in 1nanosecond
So, with an aperture uncertainty of 1nS, a 10kHz signal should yield a voltage
change near the origin of 628uV or ~2 bits of error for a 16-bit A/D converter.
Aperture Jitter Peak Voltage Frequency (Hz) 12-Bit A/D Error 16-Bit A/D Error
(nS) (Number of lsb’s) (Number of lsb’s)
1 10 100 .001 .021
OUTLINE
Functions of Software
Process, analyze, store, and display the acquired data
with the help of software.
Different alternatives:
Programmable software.
Data acquisition software packages.
MECHATRONICS STUDY PROGRAM
Programmable Software
Involves the use of a programming language, such as:
C++, visual C++
BASIC, Visual Basic + Add-on tools (such as
VisuaLab with VTX)
Fortran
Pascal
Advantage: flexibility
Disadvantages: complexity and steep learning curve
MECHATRONICS STUDY PROGRAM
Data Logger
Combines sensors, transducers, signal conditioning, A/D
conversion, storage, and readout into a compact, battery
powered unit.
MECHATRONICS STUDY PROGRAM
Future Implementation
Android-based Platform for Data Acquisition and Control:
Develop a platform that connects Android applications to
hardware devices.
MECHATRONICS STUDY PROGRAM
OUTLINE
Introduction
Conditioning Bridge Circuits
Amplifiers for Signal Conditioning
Analog to Digital Converters for Signal Conditioning
Signal Conditioning High Impedance Sensors
Signal Conditioning High
MECHATRONICS STUDY PROGRAM Impedance Sensors
Short circuit current versus light intensity for photodiode (photovoltaic mode).
Signal Conditioning High
MECHATRONICS STUDY PROGRAM Impedance Sensors
Generalized noise
gain (NG) Bode plot.
Signal Conditioning High
MECHATRONICS STUDY PROGRAM Impedance Sensors
where k is Boltzmann’s constant (1.38 × 10−23 J/K) and T is the absolute temperature in K.
A simple way to compute this is to remember that the noise spectral density of a 1 kΩ
resistor is 4 nV/√Hz at +25ºC. The Johnson noise of another resistor value can be found by
multiplying by the square root of the ratio of the resistor value to 1000 Ω. Johnson noise is
broadband, and its spectral density is constant with frequency.
Signal Conditioning High
MECHATRONICS STUDY PROGRAM Impedance Sensors
If the circuit is to be operated at higher levels of illumination (greater than approximately 0.3 fc), the
value of the feedback resistor can be reduced thereby resulting in further increases in circuit bandwidth
and less resistor noise. If gain-ranging is to be used to measure the higher light levels, extreme care
must be taken in the design and layout of the additional switching networks to minimize leakage paths.
Signal Conditioning High
MECHATRONICS STUDY PROGRAM Impedance Sensors
Compensation of a High Speed Photodiode I/V Converter.
A classical I/V converter is shown in Figure below. Note that it is the same as the
photodiode preamplifier if we assume that R1 >> R2. The total input capacitance, C1, is the
sum of the diode capacitance and the op amp input capacitance. This is a classical second-
order system, and the following guidelines can be applied in order to determine the proper
compensation..
Note that we are neglecting the effects of the compensation capacitor C2 and are assuming
that it is small relative to C1 and will not significantly affect the zero frequency f1 when it is
added to the circuit. In most cases, this approximation yields results which are close
enough, considering the other variables in the circuit.
If left uncompensated, the phase shift at the frequency of intersection, f2, will cause
instability and oscillation. Introducing a pole at f2 by adding the feedback capacitor C2
stabilizes the circuit and yields a phase margin of about 45 degrees.
Since f2 is the geometric mean of f1 and the unity-gain bandwidth frequency of the op amp,
fu,