Mecha U2
Mecha U2
(MEMEC20/ MPMEC20)
UNIT – 2
Sensors & Signal Conditioning
Topics
• Sensors
• Performance terminologies
• Displacement, velocity, force, pressure, flow, temperature and light sensors
• Signal conditioning
• Operational amplifier
• Digital signals
• ADC, DAC
• Digital logic
• Logic gates and its application
Introduction to Sensors
• The term sensor is used for an element which produces a signal relating to
the quantity being measured.
• Transducers are defined as elements that when subject to some physical
change experience a related change.
• A sensor/transducer is said to be analogue if it gives an output which is
analogue and so changes in a continuous way and typically has an output
whose size is proportional to the size of the variable being measured.
• The term digital is used if the systems give outputs which are digital in
nature.
• The sensor and signal conditioning combined with a microprocessor all in
the same package. Such an arrangement is termed a smart sensor.
Introduction to Sensors
Introduction to Sensors
Performance terminology
• Range and span
The range of a transducer defines the limits between which the input
can vary.
• Accuracy:
Accuracy is the extent to which the value indicated by a measurement
system might be wrong.
Performance terminology
• Sensitivity
The sensitivity is the relationship indicating how much output there is
per unit input, i.e. output/input.
• Error:
Error is the difference between the result of the measurement and the true
value of the quantity being measured:
Error=measured value-true value
Performance terminology
• Hysteresis error
Transducers can give different outputs from the same value of quantity
being measured according to whether that value has been reached by a
continuously increasing change or a continuously decreasing change. This
effect is called hysteresis.
Performance terminology
• Non-linearity error
The term non-linearity error is used for the error that occurs as a result of
assuming a linear relationship between the input and output over the
working range, i.e. a graph of output plotted against input is assumed to
give a straight line.
Performance terminology
Repeatability/reproducibility
The terms repeatability and reproducibility of a transducer are used to
describe its ability to give the same output for repeated applications of the
same input value.
Performance terminology
Stability and Drift
• The stability of a transducer is its ability to give the same output when used to
measure a constant input over a period of time.
• The term drift is often used to describe the change in output that occurs over time.
Performance terminology
Dead band/time
• The dead band or dead space of a transducer is the range of input values
for which there is no output.
• The dead time is the length of time from the application of an input until the output
begins to respond and change.
Performance terminology
Resolution
• The resolution is the smallest change in the input value that will produce
an observable change in the output.
Performance terminology
Output Impedance
• Measure of the source's propensity to drop in voltage when the load draws
current.
• When a sensor giving an electrical output is interfaced with an electronic
circuit it is necessary to know the output impedance since this impedance
is being connected in either series or parallel with that circuit.
Performance terminology
Example: Performance parameter required to design a strain gauge
pressure transducer:
70-1000 kPa/2000-70000 kPa; 10 V; 40 mV; ±0.5%; -54ºC - +120ºC ; 0.03%
Static and Dynamic characteristics
• Static characteristics are the values given when steady-state
conditions occur, i.e. the values given when the transducer has
settled down after having received some input.
• The dynamic characteristics refer to the behaviour between the time
that the input value changes and the time that the value given by the
transducer settles down to the steady-state value.
Dynamic characteristics are stated in terms of the response of the transducer
to inputs in particular forms.
1. Response time
2. Time constant
3. Rise time
4. Settling time
Response to a step input
Thermometer in liquid
cont..
Response time:
• This is the time which elapses after a constant input, a step input, is
applied to the transducer up to the point at which the transducer
gives an output corresponding to some specified percentage, e.g.
95%, of the value of the input shown in figure.
• For example, if a mercury-in-glass thermometer is put into a hot
liquid there can be quite an appreciable time lapse, perhaps as much
as 100 s or more, before the thermometer indicates 95% of the actual
temperature of the liquid.
cont..
Time constant:
• This is the 63.2% response time shown in figure.
• A thermocouple in air might have a time constant of perhaps 40 to
100 s.
• The time constant is a measure of the inertia of the sensor and so
how fast it will react to changes in its input.
• The bigger the time constant, the slower the reaction to a changing
input signal.
cont..
Rise time:
• This is the time taken for the output to rise to some specified
percentage of the steady-state output.
• Often the rise time refers to the time taken for the output to rise from
10% of the steady-state value to 90 or 95% of the steady-state value.
Settling time:
• This is the time taken for the output to settle to within some
percentage, e.g. 2%, of the steady-state value.
Displacement and position sensors
• Since strain is the ratio (change in length/original length) then the resistance change of a
strain gauge is a measurement of the change in length of the element to which the strain
gauge is attached.
Capacitive Element
The capacitance C of a parallel plate capacitor is given by:
• The output signal from the sensor of a measurement system needs to be processed for next
stage of the operation.
• The signal may be too small and have to be amplified, contain interference which has to be
removed, be non-linear and require linearisation, be analogue and have to be made digital or
vice-versa, be a resistance change and have to be made into a current change, be a voltage
change and have to be made into a suitable size current change, etc.
• For example, the output from a thermocouple is a small voltage, a few millivolts. A signal
conditioning module might then be used to convert this into a suitable size current signal,
provide noise rejection, linearisation and cold junction compensation (i.e. compensating for
the cold junction not being at 0°C).
SIGNAL CONDITIONING PROCESSES
• Protection to prevent damage to the next element, e.g. a microprocessor, as a result of 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.
• Getting the signal into the right type of signal. This can mean making the signal into a d.c. voltage or current.
Thus, for example, 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 . It can mean making the
signal digital or analogue .
• Getting the level of the signal right. 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. Operational amplifiers are widely used for amplification.
• Eliminating or reducing noise. For example, filters might be used to eliminate mains noise from a signal
• Signal manipulation, 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.
Overview to op-amps
THE OPERATIONAL AMPLIFIER
• An Amplifier is a system which has an input and an output.
• Voltage gain of the amplifier being the ratio of the output and input voltages when each is
measured relative to the earth.
• Input impedance of an amplifier is defined as the input voltage divided by the input current,
• Output impedance being the output voltage divided by the output current.
• The operational amplifier is a high-gain d.c. amplifier, the gain typically being of the order of
100000 or more, that is supplied as an integrated circuit on a silicon chip.
• It has two inputs, known as the inverting input (-) and the non-inverting input (+).
• The output depends on the connections made to these inputs.
• There are other inputs to the operational amplifier, namely a negative voltage supply, a
positive voltage supply and two inputs termed offset null, these being to enable corrections
to be made for the non-ideal behaviour of the amplifier.
THE OPERATIONAL AMPLIFIER
• Figure shows the pin connections for a 741-type operational amplifier.
• An ideal model for an operational amplifier is as an amplifier with an infinite
gain, infinite input impedance and zero output impedance, i.e. the output
voltage is independent of the load.
INVERTING AMPLIFIER
• The input is taken to the inverting input 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 100 000 and the change in output voltage is typically limited to about
±10V. The input voltage must then be between -0.0001 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.
• The potential difference across R1 is (Vin - VX ). For an ideal operational amplifier with an infinite gain, and hence VX = 0, the
input potential Vin can be considered to be across R1 is (Vin - VX ).
• The operational amplifier has a very high impedance between its input terminals for a 741 about 2MΩ. Thus virtually no
current flows through X into it.
• Virtually no current flows through X into it. 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), since VX is
zero for the ideal amplifier, the potential difference across R2 is -Vout.
• Thus, Vout = I1R2
INVERTING AMPLIFIER
• Voltage gain of circuit is Vout / Vin = -R2 /R1
• Thus the voltage gain of the circuit is determined solely by the relative values of
R2 and R1. The negative sign indicates that the output is inverted, i.e. 180° out
of phase, with respect to the input.
• The inverting amplifier circuit can be used with sensor to give a current to
voltage converter, the photodiode being reverse bias connected in place of
resistor R1, and so enable the output to be used as input to a microcontroller.
NON INVERTING AMPLIFIER
• Non-inverting amplifier is an Amplifier with positive voltage gain
• The output can be considered to be taken from across a potential divider
circuit consisting of R1 in series with R2. The voltage VX is then the fraction R1 /
(R1+ R2 ) of the output voltage
• An important parameter which affects the use of an operational amplifier with alternating
current applications is the slew rate.
• This is the maximum rate of change at which the output voltage can change with time in
response to a perfect step-function input.
• Typical values range from 0.2 V/μs to over 20 V/μs. With high frequencies, the large-signal
operation of an amplifier is determined by how fast the output can swing from one voltage to
another.
• Thus for use with high-frequency inputs a high value of slew rate is required.
Need for A-D and D-A convertors
• Output from most sensors tends to be in analogue form
Signal Representation
OR gate
Boolean equation:
A+B=Q
Switch Representation Symbolic Representation
Signal Representation
NOT gate
Boolean equation:
Symbolic Representation
Signal Representation
NAND gate
Boolean equation:
Symbolic Representation
Signal Representation
NOR gate
Boolean equation:
Symbolic Representation
Signal Representation
XOR gate
Boolean equation:
expression for XOR gate cannot
determined directly Symbolic Representation
Signal Representation
Applications of logic gates
• Parity generators
• Digital comparator
• Coder
• Code converter