UNIT 4 - Signal Conditioning
UNIT 4 - Signal Conditioning
UNIT 4 - Signal Conditioning
SIGNAL CONDITIONING
Signal Conditioning Operations
Following are the some of the processes that can occur in signal conditioning.
1. Protection
To protect the damage to the next element of mechatronics system.
e.g. a microprocessor from the high current or voltage. Thus there can be series
current-limiting resistors, fuses to break if the current is too high, polarity protection
and voltage limitation circuits.
2.Right type of signal
To convert the output signal from a transducer into the desired form i.e.
Voltage / current.
e.g. The resistance change of a strain gauge has to be converted into a voltage
change. This can be done by the use of a Wheatstone bridge and using the out-of-
balance voltage.
3. Right level of the signal
To amplify or attenuate the signals to a right /acceptable level for the next
element.
e.g. The signal from a thermocouple might be just a few millivolts. If the signal is
to be fed into an analogue-to-digital converter for inputting to a microprocessor then
it needs to be made much larger, volts rather than millivolts
4. Noise
To eliminate noise from a signal.
1
e.g. Electronic filters might be used to eliminate mains noise from a signal
5. Signal Manipulation
To manipulate the signal from its nonlinear form to the linear form.
e.g. Making it a linear function of some variable. The signals from some sensors,
(e.g. a flowmeter) are non-linear and thus a signal conditioner might be used so
that the signal fed on to the next element is linear.
2
The op amp is the basic building block for:
■ Amplifiers
■ Integrators
■ Summers
■ Differentiators
■ Comparators
■ A/D and D/A converters
■ Active filters
■ Sample and hold amplifiers
An op amp circuit usually includes feedback from the output to the negative
(inverting) input.
This so-called closed loop configuration results in stabilization of the amplifier
and control of the gain.
When feedback is absent in an op amp circuit, the op amp is said to have an open
loop configuration.
This configuration results in considerable instability due to the very high gain,
and it is rarely used.
The voltages are all referenced to a common ground.
The op amp is an active device requiring connection to an external power supply,
usually +−15 𝑉.
Op amp feedback.
INVERTING AMPLIFIER
An inverting amplifier is one whose output is amplified and is out of phase by
180° with respect to the input.
The input is taken to the inverting input of Op Amp through a resistor R1 with
the non-inverting input being connected to ground.
A feedback path is provided from the output, via the resistor R2 to the inverting
input.
The operational amplifier has a voltage gain of about 1,00, 000 and the change
in out put voltage is limited to about +
−10 𝑉
The input voltage then must be between +0.0001 V and -0.0001 V. This is
virtually zero and so point X is at virtually earth potential.
For this reason it is called a virtual earth.
4
The potential difference across R1 is;
(Vin -Vx)
As Vx is virtual earth therefore Vx = 0, the input potential Vin can be considered to
be across R1.
• i.e., (Vin- Vx) = 𝑉𝑖𝑛
Thus, 𝑽𝒊𝒏 = 𝑰𝟏 𝑹𝟏 --------------(i)
For an ideal operational amplifier, the input impedance is taken to be infinite and so
there is no current flow through ‘X’.
Hence the current I1 through R1 must be the current through R2.
The potential difference across R2 is (Vx - Vout)
thus, since Vx =0 for an ideal amplifier, the potential difference across R2 is
(Vx - Vout) = –Vout
Thus,
−𝑽𝒐𝒖𝒕 = 𝑰𝟏 𝑹𝟐 --------------(ii)
Dividing eqn.(i) & (ii) we get;
𝑽𝒐𝒖𝒕 𝑹𝟐
Voltage gain of circuit = =−
𝑽𝒊𝒏 𝑹𝟏
Thus the voltage gain is determined solely by the relative values of R1 and R2.
The negative sign indicates that the output is inverted, i.e. 180° out of phase, with
respect to the input
As the name implies, this circuit amplifies the input voltage without inverting
the signal.
The output can be considered to be taken from across a potential divider circuit
consisting of R1 in series with R2.
𝑅1
The voltage Vx is then the fraction of the output voltage.
𝑅1 +𝑅2
𝑹𝟏
𝑽𝒙 = 𝑽𝒐𝒖𝒕 ------(1)
𝑹𝟏 +𝑹𝟐
Since there is virtually no current through the operational amplifier between the
two inputs there can be virtually no potential difference between them.
Thus, with the ideal operational amplifier, we must have Vx =Vin
𝑹𝟏
Eqn. (1) can be written as 𝑽𝒊𝒏 = 𝑽𝒐𝒖𝒕
𝑹𝟏 +𝑹𝟐
Hence,
𝑽𝒐𝒖𝒕 𝑹𝟏 + 𝑹𝟐 𝑹𝟐
Voltage gain of circuit= = =𝟏+
𝑽𝒊𝒏 𝑹𝟏 𝑹𝟏
If we let R2 =0 and R1= ∞ in the noninverting op amp circuit, the resulting circuit
is known as a buffer or follower because Vout =Vin .
It has a high input impedance and low output impedance.
This circuit is useful in applications where you need to couple to a voltage signal
without loading the source of the voltage.
The high input impedance of the op amp effectively isolates the source from the
rest of the circuit.
7
INTEGRATOR
8
DERIVATIVE AMPLIFIER
9
DIFFERENTIAL AMPLIFIER
10
Common Mode Rejection Ratio (CMRR)
It is the ratio of differential gain to common mode gain
𝐺𝑑
𝐶𝑀𝑅𝑅 =
𝐺𝐶𝑀
Where 𝐺𝑑 is differential gain
GCM is common mode gain
The difference mode gain is the amplification factor for the difference
between the input signals, and the common mode gain is the amplification
factor for the average of the input signals.
For an ideal difference amplifier, the common mode gain is 0, implying an
infinite CMRR.
Instrumentation Amplifier
Often we need to amplify a small differential voltage few hundred times in
instrumentation applications.
A single stage differential amplifier, is not capable of performing this job
efficiently, because of several reasons.
The input impedance is finite;
The achievable gain in this single stage amplifier is also limited due to
gain bandwidth product limitation as well as limitations due to offset
current of the op. amp.
Naturally, we need to seek for an improved version of this amplifier.
A three op. amp. Instrumentation amplifier, is an ideal choice for achieving the
objective.
The major properties are
(i) High differential gain (adjustable up to 1000)
(ii) infinite input impedance
(iii) Large CMRR (80 dB or more)
(iv) Moderate bandwidth
11
We analyze this circuit in two parts.
The two op amps on the left provide a high-impedance amplifier stage where each
input is amplified separately.
This stage involves a moderate CMRR.
The outputs V3 and V4 are supplied to the op amp circuit on the right, which is a
difference amplifier with a potentiometer R5 used to maximize the overall
CMRR.
We first apply KCL and Ohm’s law to the left portion of the circuit to express V3
and V4 in terms of V1 and V2 .
Using the assumptions and rules for an ideal op amp, it is clear that the current I1
passes through R1 and both feedback resistors R2 .
Applying Ohm’s law to the feedback resistors gives
V3 – V1 = I1R2 ---------------------(1)
And
V2 – V4 = I1R2 --------------------(2)
Applying Ohm’s law to R1 gives
V1 – V2 = I1R1 ---------------------(3)
To express V3 and V4 in terms of V1 and V2, we eliminate I1 by solving Equation
(3) for I1 and substituting it into Equations (1) and (2).
The results are
𝑹𝟐 𝑹𝟐
𝑽𝟑 = ( + 𝟏) 𝑽𝟏 − 𝑽𝟐 -------------------(4)
𝑹𝟏 𝑹𝟏
𝑹𝟐 𝑹𝟐
𝑽𝟒 = − 𝑽𝟏 + ( + 𝟏) 𝑽𝟐 ----------------(5)
𝑹𝟏 𝑹𝟏
By analyzing the right portion of the circuit, it can be shown that,
𝑹𝟓 (𝑹𝟑 +𝑹𝟒 ) 𝑹𝟒
𝑽𝒐𝒖𝒕 = 𝑽𝟓 − 𝑽𝟑 ---------------(6)
𝑹𝟑 (𝑹𝟑 +𝑹𝟓 ) 𝑹𝟑
We can substitute the expressions for V3 and V4 from Equations (4) and (5) into
Equation (6) to express the output voltage V out in terms of the input voltages V1
andV2.
Assuming R5 = R4, the result is
𝑹𝟒 𝑹
𝑽𝒐𝒖𝒕 = [
𝑹𝟑
(𝟏 + 𝟐 𝑹𝟐)] (𝑽𝟐 − 𝑽𝟏 ) ------------(7)
𝟏
A design objective for the instrumentation amplifier is to maximize the CMRR by
minimizing the common mode gain.
For a common mode input, V1 =V2, Equation 7 yields an output voltage Vout=0.
Hence, the common mode gain is 0, and the CMRR is infinite if R5=R4
12
LOGARITHMIC AMPLIFIER
Logarithmic amplifier is an amplifier for which the output voltage V out is K
times the natural log of the input voltage
Some sensors have outputs which are nonlinear.
A logarithmic amplifier can be designed in a way when its input is nonlinear the
output is linear.
The feedback loop contains a diode. The diode has a non-linear characteristic.
It might be represented as,
Vin −Vx Vin
𝑉 = 𝐶 𝑙𝑛(𝑖) i= = ( ̊. ̊Vx =0)
R R
𝑽𝒊𝒏
𝑽 = 𝑪 𝒍𝒏 ( )
𝑹
Where C is a constant
Since the current through the feedback loop is same as the current through the input
resistance
The potential difference across diode is (𝑉𝑥 − 𝑉𝑜 )
i.e., − 𝑉𝑜𝑢𝑡
Thus we have −𝑪 𝒍𝒏(𝑽𝒊𝒏 ) + 𝑪 𝒍𝒏(𝑹)
𝑉𝑖𝑛
𝑉𝑜𝑢𝑡 = −𝐶 𝑙𝑛 ( ) 𝒍𝒏(𝑹)
𝑅 −𝑪 𝒍𝒏(𝑽𝒊𝒏 ) + 𝑪 ( ) 𝒍𝒏(𝑽𝒊𝒏 )
= 𝐾 ln 𝑉𝑖𝑛 𝒍𝒏(𝑽𝒊𝒏 )
Where ‘K’ is a constant 𝑹
𝒍𝒏(𝑽𝒊𝒏 ) [−𝑪 + 𝑪 𝒍𝒏( )]
𝑽𝒊𝒏
𝑹
K=[−𝑪 + 𝑪 𝒍𝒏( )]
𝑽𝒊𝒏
13
However if 𝑉𝑖𝑛 is provided by a sensor with an input t, where 𝑉𝑖𝑛 = 𝐴𝑒 𝑎𝑡 with ‘a’
and ‘A’ being constants, then
𝑉𝑜𝑢𝑡 = 𝐾 ln 𝑉𝑖𝑛
= 𝐾 ln(𝐴 𝑒 𝑎𝑡 )
= 𝐾 ln 𝐴 + 𝐾𝑎𝑡
COMPARATOR
14
Application of a comparator
Temperature switch circuit
The circuit is designed such that when a critical temperature is reached a relay is
activated and initiates some response.
15
ZENER DIODE
Zener diode circuits are widely used to protect a mechatronics control system
from high values of voltages and wrong polarity.
Zener diode acts as ordinary or regular diodes up to certain breakdown voltage
level when they are conducting.
When the voltage rises to the breakdown voltage level, Zener diode breaks down
and stops the voltage to pass to the next circuit.
OPTOISOLATORS
16
Different Forms of Opto-isolators
17
WHEATSTONE BRIDGE
Wheatstone bridge is used to convert a resistance change detected by a transducer
to a voltage change.
When the output voltage Vo is zero, then the potential at ‘B’ must be equal at ‘D’.
The potential difference across R1, i.e, VAB must then be equal across R3
i.e, 𝑉AB = 𝑉AD -----------------------(1)
thus, 𝐼1 𝑅1 = 𝐼2 𝑅3 --------------------(2)
Also,
𝑉BC = 𝑉DC ---------------------------(3)
𝐼1 𝑅2 = 𝐼2 𝑅4 -----------------------(4)
Dividing eqn. (2)& (4)
𝑹𝟏 𝑹𝟑
= ---------------------------(5)
𝑹𝟐 𝑹𝟒
The bridge is said to be balanced.
The supply voltage Vs is connected between points A & C, thus the potential drop
across the resistor R1 is;
𝑹𝟏
𝑽𝑨𝑩 = ( ) 𝑽𝒔 -----------------(6)
𝑹𝟏 +𝑹𝟐
similarly, the potential difference across R3 is
𝑹𝟑
𝑽𝑨𝑫 = ( ) 𝑽𝒔 -------------------(7)
𝑹𝟑 +𝑹𝟒
Thus the output voltage Vo is given by,
𝐑𝟏 𝐑𝟑
𝐕𝐨 = 𝐕𝐀𝐁 − 𝐕𝐀𝐃 = 𝐕𝐬 ( − ) --------------(8)
𝐑 𝟏 +𝐑 𝟐 𝐑 𝟑 +𝐑 𝟒
This eqn. gives the balanced condition when 𝑉𝑜 = 0
Assume that a transducer produces a resistance change from R1 to
(𝑅1 + 𝛿𝑅1 ) which gives a change in output from Vo to (𝑉𝑜 + 𝛿𝑉𝑜 ),
18
From equation (8) we can write,
𝑹𝟏 +𝜹𝑹𝟏 𝑹𝟑
(𝑽𝒐 + 𝜹𝑽𝒐 ) = 𝑽𝒔 ( − ) ----------------(9)
(𝑹𝟏 +𝜹𝑹𝟏 +𝑹𝟐 𝑹𝟑 +𝑹𝟒
Hence
𝑹𝟏 +𝜹𝑹𝟏 𝑹𝟏
(𝑽𝒐 + 𝜹𝑽𝒐 ) − 𝑽𝒐 = 𝑽𝒔 ( − ) ----------(10)
𝑹𝟏 +𝜹𝑹𝟏 +𝑹𝟐 𝑹𝟏 +𝑹𝟐
If 𝛿𝑅1 is much smaller than 𝑅1 then the above eqn. (10) approximates to;
𝛿𝑅1
𝛿𝑉𝑜 ≈ 𝑉𝑠 ( )
𝑅1 +𝑅2
We can say that change in resistance 𝑅1 produces a change in output voltage. Thus
we can convert a change in resistance signal into voltage signal.
Temperature Compensation
In many measurements involving a resistive sensor the actual sensing element
may have to be at the end of long leads.
The resistance of the leads will be affected by changes in temperature
Example: In a platinum resistance temp sensor consists of a platinum coil
at the end of lead.
When the temperature changes, not only the resistance of the coil change
but also will the resistance of leads.
Some means have to be employed to compensate for the resistance of the leads to
the coil.
Compensation for Leads
19
Compensation with Strain Gauge
(a) Use of dummy gauge:
The strain gauge changes resistance when the strain applied to it changes.
Resistance also changes with the change in temperature
Dummy strain gauge is a strain gauge which is identical to the active gauge
and is mounted on the same material but is not subject to strain.
It is positioned close to active gauge
A temperature change will cause both the gauges to change resistance by
same amount.
The active gauge is mounted on one arm and dummy gauge on other arm so
the effect of temperature induced resistance changes cancel out.
20
FILTERING
Output signals from sensors contain noise due to various external factors like
improper hardware connections, environment etc.
Noise gives an error in the final output of system. Therefore, it must be
removed.
In practice, change in desired frequency level of output signal is a commonly
noted noise. i.e., by using filters.
Following types of filters are used in practice:
1. Low Pass Filter
2. High Pass Filter
3. Band Pass Filter
4. Band Stop Filter
ACTIVE AND PASSIVE FILTERS
The term passive is used to describe a filter made up using only resistor
capacitor and inductors.
The term active is used when the filter involves an operational amplifier.
Commonly used filters are Low pass filters because most of the information is
transmitted in low frequency.
The noise tends to occur at high frequency, a low pass filter can be used to
block it off.
Disadvantage with passive filters
There is no isolation b/w input and output.
These circuits can not provide any gain
21
Low Pass Filter
Low pass filter is used to allow low frequency content and to reject high frequency
content of an input signal
Pass band for low pass filter Circuitry of Low Pass Filter
22
Band pass filter can be developed by connecting a low-pass and a high-pass filter
in series.
Band stop Filter.
These filters pass all frequencies above and below a particular range set by the
operator/manufacturer.
They are constructed by connecting a low-pass and a high-pass filter in parallel
PULSE MODULATION
A problem that is often encountered with dealing with the transmission of low
level d.c. signals from the sensors is that the gain of the operational amplifier
used to amplify them may drift and so the output drifts.
The term "drift" can be applied broadly to many things. In general, it means a
state or property that changes by itself with time without user control. When
applied to opamp offset voltage, drift is the gradual change in offset voltage
without any external input.
This problem can be overcome if the signal is a sequence of pulses rather than
a continuous- time signal.
This can be achieved by chopping the DC signal into a chain of pulses.
23
After Amplification and any other signal conditioning, the modulated signal can
be demodulated to give d.c. output.
24
and phenomena such as the flow of time, are for most practical purposes
continuous and thus analogue quantities rather than discrete digital ones.
Binary Numbers
Number systems provide the basis for all operations in information processing
systems.
In a number system the information is divided into a group of symbols: i.e
letters & numbers
The binary number has a radix of 2
As r = 2, only two digits are needed, and these are 0 and 1, these are termed as
binary digits or bits.
Binary is a positional system; each bit position corresponds to a power of 2.
23 22 21 20
bit 3 bit 2 bit1 bit 0
Example:
MSB
1111LSB
In a binary number the bit 0 is termed as least significant bit (LSB) and the
highest bit is termed as most significant bit (MSB).
The combination of bits to represent a number is termed as a word.
The byte is used for a group of 8 bits.
25
Analogue to Digital conversion process
26
Example for an Analogue to digital conversion: A 3 bit ADC
The relationship between the sampled and held input and the output for an
analogue-to-digital converter is illustrated by the graph for a digital output which
is restricted to three bits.
With three bits there are 23 = 8 possible output levels.
The eight possible output levels are termed quantisation levels and the difference
in analogue voltage between two adjacent levels is termed the quantisation interval.
Thus for the ADC given in Figure, the quantisation interval is l V.
Because of the step-like nature of the relationship, the digital output is not always
proportional to the analogue input and thus there will be error, this being termed
the quantisation error.
when the input is centred over the interval the quantisation error is zero, the
maximum error being equal to one-half of the interval or ± 1/2, bit.
27
SAMPLING THEOREM
In signal processing, sampling is the reduction of a continuous signal to a discrete
signal.
When the signal is reconstructed from the samples if the sampling rate is atleast
twice that of the highest frequency of the analogue signal, the sample gives the
original form of signal. This criterion is known as the Nyquist criterion or
Shannon’s sampling theorem.
When the sampling rate is less than twice the highest frequency, the reconstruction
can represent some other analogue signal and we obtain a false image of real signal.
This is termed as aliasing.
Effect of sampling frequency
Analogue signal
28
[Sampled signal]
DIGITAL TO ANALOGUE CONVERSION
The input is a binary word and the output is an analogue signal that represents the
weighted sum of nonzero bits represented by the word.
Example:
• An input of 010 must give an analogue output which is twice that
given by an input of 001.
• Thus for an input to a DAC with a resolution of l V for unsigned
binary words. Each additional bit increases the output voltage by l V.
29
Example: To control a valve
• Consider the situation where a microprocessor gives an output of an 8-bit
word
• This is fed through an 8-bit digital-to-analogue converter to a control valve.
• The control valve requires 6.0 V to be fully open.
• If the fully open state is indicated by 11111111
• what will be the output to the valve for a change of l bit?
• The full-scale output voltage of 6V will be divided into 28 intervals.
• A change of l bit is thus a change in the output voltage of 6 /28 = 0.023 V.
It uses summing amplifier to form the weighted sum of all the non-zero bits in
the input word.
The reference voltage is connected to the resistors by means of electronic
switches which corresponds to binary 1.
The values of the input resistance depends on which bit in the word a switch is
corresponds to, the value of the resistor for successive bits from the LSB being
halved.
Hence the sum of the Voltages is a weighted sum of the digits in the word.
A problem with the weighted-resistor network is that accurate resistances have
to be used for each of the resistors and it is difficult to obtain such resistors over
the wide range needed.
As a result, this form of DAC tends be limited to 4-bit conversions.
30
2. R-2R ladder DAC
The R-2R ladder overcomes the problem of obtaining accurate resistances over
a wide range of values, as only two resistance values being required.
The output voltage is generated by switching sections of the ladder to either 0
or 1 in the digital o/p
31
Analogue to Digital Converters
1. Successive Approximation ADC
32
Ramp generator generates Ramp voltage which is increased at a constant rate.
The ramp voltage is compared with the analogue voltage from the sensor.
The time taken for the ramp voltage to increase to the value of the sensor voltage
will depend on the size of the sampled analogue voltage.
When the ramp voltage starts the gate is opened which starts a binary counter
counting the regular pluses from a clock.
When two voltages are equal, the gate closes & the word indicated by the counter
is the digital representation of the sampled analogue voltage.
3. Dual ramp ADC
33
4. Flash ADC
34
MULTIPLEXERS
A Digital multiplexer
The logic level applied to the select input determines which AND gate is enabled
so that its data passes through the OR gate to the output.
Fig:-Two-channel multiplexer
DAQ system
35
The term data acquisition is used for the process of taking data from sensors
and inputting data into a computer for processing.
A computer software is used to control the acquisition of data via DAQ board.
The computer program sends a control word to register.
The board switches the multiplexer to the appropriate i/p channel.
I/p from the sensor connected to multiplexer is passed via amplifier to ADC.
The digital signal is then passed to the data register.
The word in the control & status register changes to indicate that the signal has
arrived.
36