0% found this document useful (0 votes)
60 views71 pages

Unit 5 Merged

This document discusses signal conditioning, which involves processing sensor signals to prepare them for measurement. It explains that [1] sensors convert physical variables into electrical signals that require conditioning before measurement, [2] signal conditioning converts sensor signals into suitable formats for processing and transmission, and [3] common signal conditioning processes include amplification, attenuation, filtering, and isolation to improve measurement performance and accuracy.

Uploaded by

Sakshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views71 pages

Unit 5 Merged

This document discusses signal conditioning, which involves processing sensor signals to prepare them for measurement. It explains that [1] sensors convert physical variables into electrical signals that require conditioning before measurement, [2] signal conditioning converts sensor signals into suitable formats for processing and transmission, and [3] common signal conditioning processes include amplification, attenuation, filtering, and isolation to improve measurement performance and accuracy.

Uploaded by

Sakshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 71

Instrumentation & Measurement _____________________________________________________ _ AAiT

Chapter 4
Signal Conditioning
4.1 Introduction

Many applications require environment or structural measurements, such as temperature and


vibration, from sensors. These sensors, in turn, require signal conditioning before a data
acquisition device can effectively and accurately measure the signal. Key signal conditioning
technologies provide distinct enhancements to both the performance and accuracy of data
acquisition systems.

Figure 4.1 General structure of measurement system.

The first component of a measurement system is the sensor that converts the physical variable to
be measured into an electrical quantity. However, the signal is usually in a format that cannot be
directly used: it requires ‘conditioning’.

Hence the second part of any measurement system is the signal conditioning component that
converts the electrical signal from an unsuitable format to a suitable format. Signal processing
further modifies the signal to prepare it for transmission.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 1 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

Signal conditioning element takes the output of the sensing element and converts it into a form
more suitable for further processing, usually a d.c. voltage, d.c. current or frequency signal.

Examples are:

• Deflection bridge which converts an impedance change into a voltage change


• Amplifier which amplifies millivolts to volts
• Oscillator which converts an impedance change into a variable frequency voltage.

4.2 Signal conditioning processes

Signal processing is concerned with improving the quality of the reading or signal at the output
of a measurement system, and one particular aim is to attenuate any noise in the measurement
signal that has not been eliminated by careful design of the measurement. However, signal
processing performs many other functions apart from dealing with noise, and the exact
procedures that are applied depend on the nature of the raw output signal from a measurement
transducer. Procedures of signal filtering, signal amplification, signal attenuation, signal
linearization and bias removal are applied according to the form of correction required in the raw
signal.

Traditionally, signal processing has been carried out by analogue techniques in the past, using
various types of electronic circuit. However, the ready availability of digital computers in recent
years has meant that signal processing has increasingly been carried out digitally, using software
modules to condition the input measurement data.

Digital signal processing is inherently more accurate than analogue techniques, but this
advantage is greatly reduced in the case of measurements coming from analogue sensors and
transducers, because an analogue-to-digital conversion stage is necessary before the digital
processing can be applied, thereby introducing conversion errors. Also, analogue processing
remains the faster of the two alternatives in spite of recent advances in the speed of digital signal
processing. Hence, both analogue and digital processing are considered in this chapter, with
analogue processing being considered first because some preliminary analogue processing is
often carried out even when the major part of the processing is carried out digitally.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 2 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

Regardless of the types of sensors or transducers you are using, the proper signal conditioning
equipment can improve the quality and performance of your system.

Signal conditioning can include Amplification, Attenuation, Linearization, Excitation, Filtering,


Converting, Cold-Junction Compensation, Range matching, Bridge Completion , Isolation and
any other processes required to make sensor output suitable for processing after conditioning.

4.2.1 Amplification

Amplifiers are necessary in order to amplify low-level signals, e.g. thermocouple or strain gauge
bridge output voltages, to a level which enables them to be further processed. Because real-world
signals are often very small in magnitude, signal conditioning can improve the accuracy of your
data. Amplifiers increase the level of the input signal to better match the range of the analog-to-
digital converter (ADC), thus increasing the resolution and sensitivity of the measurement. While
many data acquisition (DAQ) devices include onboard amplifiers for this reason, many
transducers, such a thermocouples, require additional amplification.

In addition, using external signal conditioners located closer to the signal source, or transducer,
improves the signal-to-noise ratio of the measurement by boosting the signal level before it is
affected by environmental noise.

The operational amplifier can be regarded as the basic building block for modern amplifiers. It is
a high gain, integrated circuit amplifier designed to amplify signals from d.c. up to many kHz. It
is not normally used by itself but with external feedback networks to produce precise transfer
characteristics which depend almost entirely on the feedback network. Usually there are two
input terminals and one output terminal, the voltage at the output terminal being proportional to
the difference between the voltages at the input terminals.

Figure 4.2 shows a common amplifier configuration that is used to amplify the small difference
that may exist between two voltage signals V A and V B . The output voltage V 0 is given by:

R3
V0 = (VB − VA )
R1

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 3 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

Figure 4.2 Operational amplifier connected in differential amplification mode.

4.2.2 Attenuation

Attenuation is the opposite of amplification. It is necessary when the voltages to be digitized are
beyond the input range of the digitizer. This form of signal conditioning diminishes the
amplitude of the input signal so that the conditioned signal is within range of the ADC.
Attenuation is necessary for measuring high voltages (more than 10 V).

One method of attenuating signals by analogue means is to use a potentiometer connected in a


voltage-dividing circuit, as shown in Figure 4.3. For the potentiometer slider positioned a
distance of x along the resistance element of total length L, the voltage level of the processed
signal V 0 is related to the voltage level of the raw signal V i by the expression:

xVi
V0 =
L

Figure 4.3 Potentiometer in voltage-dividing circuit.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 4 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

4.2.3 Isolation

Improper grounding of the system is one of the most common causes for measurement problems,
including noise and damaged measurement devices. Signal conditioners with isolation can
prevent most of these problems. Such devices pass the signal from its source to the measurement
device without a physical connection by using transformer, optical, or capacitive coupling
techniques. Besides breaking ground loops, isolation blocks high-voltage surges and rejects high
common-mode voltage and thus protects both the operators and expensive measurement
equipment.

4.2.4 Filtering

Signal filtering consists of processing a signal to remove a certain band of frequencies within it.
The band of frequencies removed can be either at the low-frequency end of the frequency
spectrum, at the high-frequency end, at both ends, or in the middle of the spectrum. Filters to
perform each of these operations are known respectively as low-pass filters, high-pass filters,
band-pass filters and band-stop filters (also known as notch filters). All such filtering operations
can be carried out by either analogue or digital methods.

The result of filtering can be readily understood if the analogy with a procedure such as sieving
soil particles is considered. Suppose that a sample of soil A is passed through a system of two
sieves of differing meshes such that the soil is divided into three parts, B, C and D, consisting of
large, medium and small particles, as shown in Figure 4.4. Suppose that the system also has a
mechanism for delivering one or more of the separated parts, B, C and D, as the system output. If
the graded soil output consists of parts C and D, the system is behaving as a low-pass filter
(rejecting large particles), whereas if it consists of parts B and C, the system is behaving as a
highpass filter (rejecting small particles). Other options are to deliver just part C (band-pass filter
mode) or parts B and D together (band-stop filter mode). As any gardener knows, however, such
perfect sieving is not achieved in practice and any form of graded soil output always contains a
few particles of the wrong size.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 5 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

Figure 4.4 Soil sieving analogy of signal filtering.

Signal filtering consists of selectively passing or rejecting low-, medium- and high frequency
signals from the frequency spectrum of a general signal. The range of frequencies passed by a
filter is known as the pass-band, the range not passed is known as the stop-band, and the
boundary between the two ranges is known as the cut-off frequency. To illustrate this, consider a
signal whose frequency spectrum is such that all frequency components in the frequency range
from zero to infinity have equal magnitude. If this signal is applied to an ideal filter, then the
outputs for a lowpass filter, high-pass filter, band-pass filter and band-stop filter respectively are
shown in Figure 4.4. Note that for the latter two types, the bands are defined by a pair of
frequencies rather than by a single cut-off frequency.

Just as in the case of the soil sieving analogy presented above, the signal filtering mechanism is
not perfect, with unwanted frequency components not being erased completely but only
attenuated by varying degrees instead, i.e. the filtered signal always retains some components (of
a relatively low magnitude) in the unwanted frequency range. There is also a small amount of
attenuation of frequencies within the pass-band that increases as the cut-off frequency is
approached. Figure 4.5 shows the typical output characteristics of a practical constant-k
(‘Constant-k’ is a term used to describe a common class of passive filters) filter designed
_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 6 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

respectively for high-pass, low-pass, band-pass and band-stop filtering. Filter design is
concerned with trying to obtain frequency rejection characteristics that are as close to the ideal as
possible. However, improvement in characteristics is only achieved at the expense of greater
complexity in the design. The filter chosen for any given situation is therefore a compromise
between performance, complexity and cost.

Figure 4.5 Outputs from ideal filters.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 7 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

Figure 4.6 Outputs from practical constant-k filters.

Figure 4.7 Circuit components

4.2.5 Excitation

Excitation is required for many types of transducers. For example, strain gages, accelerometers
thermistors, and resistance temperature detectors (RTDs) require external voltage or current
excitation. RTD and thermistor measurements are usually made with a current source that
converts the variation in resistance to a measurable voltage. Accelerometers often have an
_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 8 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

integrated amplifier, which requires a current excitation provided by the measurement device.
Strain gages, which are very-low-resistance devices, typically are used in a Wheatstone bridge
configuration with a voltage excitation source.

4.2.6 Linearization

Linearization is necessary when sensors produce voltage signals that are not linearly related to
the physical measurement. Linearization is the process of interpreting the signal from the sensor
and can be done either with signal conditioning or through software. Thermocouples are the
classic example of a sensor that requires linearization.

4.2.7 Cold-Junction Compensation

Cold-junction compensation (CJC) is a technology required for accurate thermocouple


measurements. Thermocouples measure temperature as the difference in voltage between two
dissimilar metals. Based on this concept, another voltage is generated at the connection between
the thermocouple and terminal of your data acquisition device. CJC improves your measurement
accuracy by providing the temperature at this junction and applying the appropriate correction.

Thermocouples
The most popular transducer for measuring temperature is the thermocouple. The thermocouple
is an inexpensive, rugged device that can operate over a very wide range of temperatures.
However, the thermocouple has unique signal conditioning requirements.

A thermocouple operates on the principle that the junction of two dissimilar metals generates a
voltage that varies with temperature. Measuring this voltage is difficult because connecting the
thermocouple to the terminals of a DAQ board creates what is called the reference junction or
cold junction, shown in Figure 4.2. These additional junctions act as thermocouples themselves
and produce their own voltages. Thus, the final measured voltage, V MEAS , includes both the
thermocouple and cold junction voltages. The method used to compensate for these unwanted
cold-junction voltages is called cold-junction compensation.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 9 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

Figure 4.8. The connection of thermocouple wires to a measurement system creates an


additional thermoelectric junction, called the cold junction, which must be compensated for with
signal conditioning.
There are two general approaches to cold-junction compensation – hardware and software
compensation. Hardware compensation uses a special circuit that applies the appropriate voltage
to cancel the cold-junction voltage. Although you need no software for hardware compensation,
each thermocouple type must have its own compensation circuit that works at all ambient
temperatures.

Cold-junction compensation in software, on the other hand, is very flexible and requires only
knowing the ambient temperature. If you use an additional sensor to directly measure the
ambient temperature at the cold junction, you can compute the appropriate compensation for the
unwanted thermoelectric voltages. This approach is why many signal conditioning accessories
are equipped with direct-reading temperature sensors, such as thermistors or semiconductor
sensors. Software cold-junction compensation follows this process:

1. Measure the temperature of the reference junction and compute the equivalent
thermocouple voltage for this junction using standard thermocouple tables or
polynomials.
2. Measure the output voltage (V MEAS ) and add – not subtract – the reference-junction
voltage computed in Step 1.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 10 of 11
Instrumentation & Measurement _____________________________________________________ _ AAiT

3. Convert the resulting voltage to temperature using standard thermocouple polynomials or


look-up tables.

_____________________________________________________________________________________
Compiled by Yidnekachew M. Page 11 of 11
www.learnabout-electronics.org Amplifiers Module 1

Video Amplifiers
Video amplifiers are a special type of wide band amplifier that also preserve the DC level of the
signal and are used specifically for signals that are to be applied to CRTs or other video equipment.
The video signal carries all the picture information in TV, video and radar systems. The bandwidth
of video amplifiers depends on use. In TV receivers it extends from 0Hz (DC) to 6MHz and is
wider still in radar.

Buffer Amplifiers
Buffer amplifiers are a commonly encountered, specialised amplifier type that can be found within
any of the above categories, they are placed between two other circuits to prevent the operation of
one circuit affecting the operation of the other. (They ISOLATE the circuits from each other). Often
buffer amplifiers have a gain of one, i.e. they do not actually amplify, so that their output is the
same amplitude as their input, but buffer amplifiers have a very high input impedance and a low
output impedance and can therefore be used as an impedance matching device. This ensures that
signals are not attenuated between circuits, as happens when a circuit with a high output impedance
feeds a signal directly to another circuit having a low input impedance.
Operational Amplifiers
Operational amplifiers (Op-amps) have developed from circuits designed for the early analogue
computers where they were used for mathematical operations such as adding and subtracting. Today
they are widely used in integrated circuit form where they are available in single or multiple
amplifier packages and often incorporated into complex integrated circuits for specific applications.
The design is based on a differential amplifier, which
has two inputs instead of one, and produces an output
that is proportional to the difference between the two
inputs. Without negative feedback, op amps have an
extremely high gain, typically in the hundreds of
thousands. Applying negative feedback increases the
op amp’s bandwidth so they can operate as wideband
amplifiers with a bandwidth in the MHz range, but
reduces their gain. A simple resistor network can apply
such feedback externally and other external networks
can vary the function of op-amps.

LM324N Low power Quad Operational Amplifier IC by ST Microelectronics.

AMPLIFIERS MODULE 01.PDF 4  E. COATES 2007 -2021


www.learnabout-electronics.org Amplifiers Module 1

The Output Properties of Amplifiers


Amplifiers are used to increase the amplitude of a voltage or current, or to increase the amount of
power available usually from an AC signal. Whatever the task, there are three categories of
amplifier that relate to the properties of their output;
1. Voltage amplifiers.
2. Current amplifiers.
3. Power amplifiers.
The purpose of a voltage amplifier is to make the amplitude of the output voltage waveform greater
than that of the input voltage waveform (although the amplitude of the output current may be
greater or smaller than that of the input current, this change is less important for the amplifier’s
designed purpose).
The purpose of a current amplifier is to make the amplitude of the output current waveform greater
than that of the input current waveform (although the amplitude of the output voltage may be
greater or smaller than that of the input voltage, this change is less important for the amplifier’s
designed purpose).
In a power amplifier, the product of voltage and current (i.e. power = voltage x current) at the
output is greater than the product of voltage x current at the input. Note that either voltage or
current may be less at the output than at the input. It is the product of the two that is significantly
increased.

AMPLIFIERS MODULE 01.PDF 5  E. COATES 2007 -2021


www.learnabout-electronics.org Amplifiers Module 1

Module 1.1
Amplifier Parameters
What you’ll learn in Module 1.1. Amplifier Parameters
Any amplifier is said to have certain parameters. These
After studying this section, you are the particular properties that make the amplifier
should be able to: perform in a certain way, and so make it suitable for a
Describe typical amplifier parameters. given task. Typical amplifier parameters are described
below.
• Gain.
Gain
• Frequency response.
The gain of an amplifier is a measure of the
• Bandwidth.
"Amplification" of an amplifier, i.e. how much it
• Input impedance. increases the amplitude of a signal. More precisely it is
the ratio of the output signal amplitude to the input
• Output impedance. signal amplitude, and is given the symbol "A". It can be
• Phase shift. calculated for voltage (Av), current (Ai) or power (Ap),
When the subscript letter after the A is in lower case
• Feedback. this refers to small signal conditions, and when the
subscript is in capitals it refers to DC conditions. The
gain or amplification for the three differnt types of amplifiers can be described using the appropriate
formula:
Voltage gain Av = Amplitude of output voltage ÷ Amplitude of input voltage.

Current gain Ai = Amplitude of output current ÷ Amplitude of input current.

Power gain Ap = Signal power out ÷ Signal power in.

The gain of an amplifier is governed, not only by the components (transistors etc.) used, but also by
the way they are interconnected within the amplifier circuit.

Frequency Response
Amplifiers do not have the same gain at all frequencies. For example, an amplifier designed for
audio frequency amplification will amplify signals with a frequency of less than about 20kHz but
will not amplify signals having higher frequencies. An amplifier designed for radio frequencies will
amplify a band of frequencies above about 100kHz but will not amplify the lower frequency audio
signals. In each case the amplifier has a particular frequency response, being a band of frequencies
where it provides adequate amplification, and excluding frequencies above and below this band,
where the amplification is less than adequate.
AMPLIFIERS MODULE 01.PDF 6  E. COATES 2007 -2021
www.learnabout-electronics.org Amplifiers Module 1

To show how the gain of an amplifier varies with frequency, a graph, showing the frequency
response of the amplifier is used. Fig. 1.1.1a shows the typical frequency response curve of an audio
amplifier, and Fig. 1.1.1b, that of a RF amplifier. In such graphs, it is common that very large
values may be encountered for both gain and frequency. For this reason it is usual for both the
frequency and gain axes of the graph to use logarithmic scales. It can be seen from Fig. 1.1.1a that
scales on the (horizontal) x-axis do not increase in a linear manner; each equal division represents a
tenfold increase in the frequency plotted. This ensures that a very wide range of frequency can be
plotted on a single graph. The (vertical) y-axis uses linear divisions but logarithmic units (deciBels
dB). The curve of the graph shows how gain, measured in deciBels, varies with frequency.

Fig. 1.1.1a Response curve for an audio amplifier

Comparing Figs. 1.1.1a and b drawn in this manner, shows how each type of amplifier (audio, RF
etc) has its own characteristic shape of frequency response curve. An amplifier which has a very
narrow, sharply peaked response curve is said to be very "selective". This is typical of an RF
amplifier and is precisely what is needed in an amplifier designed for the tuning stages of a radio
where only one radio carrier wave among many hundred others, crowded along the medium wave
band for example, must be selected.

Fig. 1.1.1b Response curve for a RF amplifier tuned to 774kHz

AMPLIFIERS MODULE 01.PDF 7  E. COATES 2007 -2021


www.learnabout-electronics.org Amplifiers Module 1

Bandwidth
An important piece of information that can be obtained from a frequency response curve is the
Bandwidth of the amplifier. This refers to the ‘band’ of frequencies for which the amplifier has a
useful gain. Outside this useful band the gain of the amplifier is considered to be insufficient
compared with the gain at the centre of the bandwidth. Bandwidth specified for voltage amplifiers is
the range of frequencies for which the amplifier’s gain is greater than 0.707 of the maximum gain
(see Fig. 1.1.1.b). Alternatively, decibels are used to indicate the gain, the ratio of output to input
voltage, (see Fig. 1.1.1.a). The useful bandwidth in Fig. 1.1.1a would be described as extending to
those frequencies at which the voltage gain is −3dB down compared to the gain at the mid band
frequency. Several ways of describing the bandwidth can be used, firstly it could be said (of Fig
1.1.1a), that "The bandwidth is from 10Hz to 20kHz." Alternatively it could be said (of Fig. 1.1.1b)
"The bandwidth is 9kHz, centred on 774kHz." or even that it is "774kHz plus or minus 4.5kHz."

Input Impedance
The word impedance means opposition to AC current flow. At 0 Hz, (that is, DC) impedance
(symbol Z) is the same as resistance (R), but at frequencies other than 0Hz impedance and
resistance are not the same. The input impedance of an amplifier is the effective impedance between
the input terminals. "Effective" means that the impedance is not necessarily just that of the amplifier
components (resistors, capacitors etc.) actually connected across the input terminals, but is the
impedance experienced as the amount of current able to flow into the input terminals for a given
signal voltage applied at a particular frequency. Input Impedance is influenced by a number of
factors including the frequency of the applied signal, the gain of the amplifier, any signal feedback
used and even what is connected to the output of the amplifier.

Output Impedance
The output impedance of an amplifier is not solely dependent on the actual components connected
within the output of an amplifier. It is an ‘apparent’ impedance and can best be demonstrated as
being responsible for a fall in signal voltage at the output terminals of an amplifier, when a current
is drawn from the output terminals. The more current drawn from the output terminals, the greater
the reduction in output signal voltage. The effect is that of an impedance or resistance in series with
the output terminals.

Fig. 1.1.2 Amplifier Input and Output Impedances

AMPLIFIERS MODULE 01.PDF 8  E. COATES 2007 -2021


www.learnabout-electronics.org Amplifiers Module 1

Calculation of gain in multi stage amplifiers.


Matching of inputs and outputs is necessary to ensure that the maximum amount of signal can be
transferred between the amplifier, and any other circuit or device preceding or following it. This is
usually the case when the gain of a single amplifier is insufficient for a given purpose. Then several
stages of amplification are used which involves feeding the output of one amplifier into the input of
another. (This is called connecting the amplifiers in ‘Cascade’). In such designs the output

Fig. 1.1.3 Potential divider effect of amplifiers in Cascade

impedance of the first amplifier and the input impedance of the second amplifier form a potential
divider, as shown in Fig. 1.1.3
When connecting voltage amplifiers in cascade, the input signal to the second stage should ideally
be 100% of the output voltage of stage 1, i.e. have as high a voltage amplitude as possible. This will
occur if the output impedance of the first amplifier is a much lower value than the input impedance
of the second amplifier. This allows most of the voltage available at the output terminal (point A) to
be developed across the input impedance of the second amplifier (and therefore across its input
terminals) rather than across the first amplifier’s output impedance.
If the second amplifier is a current amplifier however, it will be necessary that as much current as
possible flows into its input terminals. In this case therefore, the input impedance of the second
amplifier must be low.
In the case of power amplifiers, the maximum power is transferred from output to input if both
impedances are equal.
The values of input and output impedance have a considerable effect on the gain of multi stage
amplifiers, and there is always some loss of signal amplitude which occurs due to the coupling of
successive amplifier stages. In calculating the overall gain of a multi stage amplifier, the overall
gain should be equal to the product of the individual gains of each amplifier. i.e. if each stage of a
two stage amplifier has a gain of 10, then the overall gain should be 10 x 10 = 100. In practice
however, this is not achievable due to the coupling losses incurred in matching the amplifiers, and a
slightly lower overall gain results.

AMPLIFIERS MODULE 01.PDF 9  E. COATES 2007 -2021


www.learnabout-electronics.org Amplifiers Module 1

Phase Shift
Phase shift in an amplifier is the amount (if any) by which the output signal is delayed or advanced
in phase with respect to the input signal expressed in degrees. If a phase shift of 90 degrees occurs
then the peak of the output wave occurs one quarter of a cycle after the peak of input wave. Such a
shift can be caused by the effect of components such as resistors inductors and capacitors in the
amplifier circuit. The action of the transistor in a single stage amplifier can cause 180 degrees of
phase shift, and therefore the input and output will be in "anti-phase." Whether a phase shift in an
amplifier is important depends on the purpose of the amplifier.

Fig. 1.1.4 Phase Shift

The design of multi stage amplifiers must take phase shift into consideration, as the amount of
phase shift will vary with frequency it is possible that at some frequencies the total phase shift may
add up to 360 degrees. If the output signal of such a system is allowed to re-enter the input then
positive feedback occurs and the amplifier will become unstable and is likely to oscillate.

Feedback
Feedback is the process of taking a proportion of an amplifier’s output signal and feeding it back
into the input. Feedback can be arranged to either increase or decrease the input signal. When
feedback is used to increase the input signal it is called POSITIVE FEEDBACK, and when the
effect of the feedback reduces the input signal it is called NEGATIVE FEEDBACK.
POSITIVE FEEDBACK occurs when the feedback signal is in phase with the input signal, this
increases the amplitude of the input and hence the output signal, effectively increasing the gain of
the amplifier.
NEGATIVE FEEDBACK occurs when the feedback signal is in anti-phase with the input signal,
effectively reducing the amplitude of the input and hence also the output signal. This causes a
reduction in gain. See Fig. 1.1.5.

Fig. 1.1.5 Negative feedback reduces gain, distortion and noise, it also increases bandwidth.

AMPLIFIERS MODULE 01.PDF 10  E. COATES 2007 -2021


www.learnabout-electronics.org Amplifiers Module 1

In high quality amplifiers negative feedback is often used to reduce the gain of the amplifier. A
particular benefit of this, is that any distortion of the signal or background noise produced by the
amplifier is also reduced. A further beneficial effect is that applying negative feedback increases the
bandwidth of the amplifier. The reason for this can be seen in Fig. 1.1.6 where reducing the height

Fig. 1.1.6 The effect of negative feedback on amplifier bandwidth.

of the gain curve produces wider spacing of the 0.707 points, therefore widening the bandwidth.

AMPLIFIERS MODULE 01.PDF 11  E. COATES 2007 -2021


Analog & Digital Signals

• In analogue signal changes are


continuous whereas, a digital signal
exists only at specific levels or states
and changes its level in discrete steps.
• Most digital signals have only two
Analogue signal
states: high and low.
• A system using two-state signals
allows the application of Boolean
logic and binary number
Digital signal
representations.
3
Digital Signals

• The o/p from most sensors tends to be in analogue form, the


size of the o/p being related to the size of the input.
• A microprocessor is used as part of the measurement or
control system and it can take only digital signals.
• So the analogue output from the sensor has to be converted
into a digital form before it can be used as an input to the
microprocessor.
• Likewise, most actuators operate with analogue inputs.

4
• So, the digital output from a microprocessor has to be
converted into an analogue form before it can be used as an
input by the actuator.

A/D Micro- D/A


Sensor Actuator
converter processor converter

5
Binary System

• It is based on two symbols or states 0 and 1, these possibly


being 0 V and 5 V signals.
• 0, 1 are termed as binary digits or bits.
• Digit position in number indicates the weight attached to each
digit.
• Weight increases by a factor 2 as we proceed from right to
left.
−− − 23 22 21 20
Bit 3 Bit 2 Bit 1 Bit 0
6
• Example: the decimal number 15 = 23 + 22 + 21 + 20
• Thus binary representation of 15 is 1111
• The combination of bits to represent a number is a word.
• Thus 1111 is a 4-bit word.
• Such a word could be used to represent the size of a signal.
• The term 1 byte = 8 bits.

7
Decimal and their Binary Equivalent
Binary Decimal Binary Decimal
0000 0 1000 8
0001 1 1001 9
0010 2 1010 10
0011 3 1011 11
0100 4 1100 12
0101 5 1101 13
0110 6 1110 14
0111 7 1111 15
8
Analogue and Digital Signals

• A/D conversion involves converting analogue signals into


binary words.
• A clock supplies regular time signal pulses to the A/D
converter and every time it receives a pulse it samples the
analogue signal
Input Sample A/D Output
Analogue and hold converter
Digital
signal signal
• We have a analogue signal.
• The clock signal supplies the time signals at which the
sampling occurs.
• The result of the sampling is a series of narrow pulses.
• A sample and hold unit is then used to hold each
sampled value until the next pulse occurs.
• The sample and hold unit is necessary because the
A/D Conversion requires a finite amount of time (i.e.,
conversion time), to convert the analogue signal into a
digital.
10
Analog-to-digital Conversion

• A/D converter is an electronic device that converts an


analogue voltage to digital code.
• The o/p of the A/D converter can be directly interfaced to
digital devices such as microcontrollers and computers.
• Analog-to-digital conversion, conceptually involves two steps:
Quantizing and Coding.
• Quantizing is the transformation of a continuous analog i/p
into a set of discrete output states and coding is the
assignment of a digital code word/number to each o/p state.
11
• The resolution of an A/D converter is the number of bits used to
digitally approximate the analog value of the input.
• The number of possible states N is equal to the number of bit
combinations that can be o/p from the converter, i.e., 𝑁 = 2𝑛
• Where n is the number of bits. For example in a 3-bit device has 23 or 8
o/p states.
• The o/p states are usually numbered consecutively from 0 to (N-1)i.e.,
0 to 7 in this case.
• Most A/D converters are 8, 10 or 12 bit devices that resolves 28, 210,
212 or 256, 1024, 4096 states.

12
• The analog quantization size Q, sometimes called the code
width, is defined as the full-scale range of the A/D converter
divided by the number of output states
𝑄 = (𝑉𝑚𝑎𝑥 −𝑉𝑚𝑖𝑛 )/𝑁
• It is a measure of the analog change that can be resolved by
the converter.
• The number of analog decision points that occur in the
process of quantizing is (N-1), i.e. 7 in case of 3 bit device.
13
• Consider a 3-bit device, which has 23 or 8 output states as listed in the
first column.
• The output states are numbered from 0 to (N-1).
• The corresponding code word for each output state is listed in the
second column.
• The decision points occur at 1.25 V, 2.50 V, . . . , and 8.75 V.
Code Width, 𝑄 = (𝑉𝑚𝑎𝑥 −𝑉𝑚𝑖𝑛 )/𝑁 = (10 − 0)/8 = 1.25 𝑉
• This means that the amplitude of the digitized signal has an error of at
most 1.25 V. Therefore, the A/D converter can only resolve a voltage to
within 1.25 V of the exact analog voltage.
14
Shannon’s Sampling Theorem
• The first step for A/D conversion is to numerically evaluate the
signal at discrete instants in time.
• This process is called sampling, and the result is a digitized
signal composed of discrete values corresponding to each
sample.
• So how fast or often the signal should be sampled to obtain an
accurate representation?
• It needs high speed hardware and large computer memory.

16
• Shannon’s Sampling Theorem states that, the sampling rate of
a signal should be more than two times the maximum
frequency component in the signal to retain all frequency
components.
• In other words, to represent the analog signal, the digital
samples must be taken at a frequency 𝑓𝑠 (sampling rate) such
that
𝑓𝑠 > 2𝑓𝑚𝑎𝑥

17
• 𝑓𝑠 > 2𝑓𝑚𝑎𝑥
• Where 𝑓𝑚𝑎𝑥 (Nyquist frequency) is the highest frequency
component in the input analog signal.
• Time period between digital samples is ∆𝑡 = 1/𝑓𝑠
• If sampling rate is 5000 Hz, time interval between samples
would be 1/5000 = 0.2 ms

18
Aliasing

• If a signal is sampled at less than two times its maximum


frequency component, then aliasing will occur.
• Twelve equally spaced samples are taken over 10 cycles of the
original signal. Therefore, the sampling frequency is 1.2𝑓0 ,
where 𝑓0 is the frequency of the original sine wave.
• Because the sampling frequency is not greater than 2𝑓0 , it will
not capture the frequency in the original signal.

19
• Furthermore, the apparent frequency in the sampled signal is
0.2𝑓0 (2 aliased signal cycles for ten original signal cycles).
• Therefore, under-sampling not only results in errors but
also creates information that is not really there!

20
Analog-to-Digital Conversion
• To properly acquire an analog voltage signal for digital
processing, the following components must be properly
selected and applied in this sequence:
0011 0010 0100
0011 0010 1011
0001 0011 1100
0011 0101 0111

Buffer Low-pass sample A/D Computer


Sensor
Amplifier filter & hold converter memory

Components used in A/D conversion


21
• The buffer amplifier isolates the output from the input (i.e., it
draws negligible current and power from the input) and
provides a signal in a range close to but not exceeding the full
input voltage range of the A/D converter.
• The low-pass filter removes any undesirable high- frequency
components in the signal that could produce aliasing. The
cutoff frequency of the low-pass filter should be no greater
than 1/2 the sampling rate.

22
• The sample and hold amplifier maintains a fixed input value
(from an instantaneous sample) during the short conversion
time of the A/D converter.
• The converter should have a resolution and analog
quantization size appropriate to the system and signal.
• The computer must be properly interfaced to the A/D
converter system to store and process the data.

23
• The A/D system components described above can be found
packaged in a variety of commercial products called data
acquisition (DAC or DAQ) cards or modules.
• DAC products are available in a variety of form factors
including PC and instrument panel plug-in cards, laptop
computer PCMCIA cards, and stand-alone external units with
standard interfaces (e.g., USB). DAC and modules usually
support various high-level language interfaces (e.g., C++ , Visual
Basic, FORTRAN) that give easy access to the product’s features.
24
Analog-to-Digital Converters

• The input to an ADC is an analogue signal and the output is a


binary word that represents the level of the input signal.
• A/D converters are designed based on a number of different
principles:
1. Successive Approximation
2. Flash or Parallel Encoding
3. Single-slope and Dual-slope Integration
4. Switched Capacitor
5. Delta Sigma
26
• Successive approximations
Controls the admission of
pulses to storage register
Clock
Analogue i/p Comparator
4 bit
Gate 1 0 0 0 storage
register

DAC

Digital o/p
27
• A voltage is generated by a clock emitting a regular sequence
of pulses which are counted in a binary manner.
• Resulting binary word is converted into an analogue voltage
by a digital to analogue converter..
• This voltage rises in steps and is compared with the analogue
i/p voltage from the sensor.
• When the clock generated voltage passes the i/p analogue
voltage the pulses from the clock are stopped being counted
by a gate.
28
• o/p of the counter at that time in the digital representation of
the voltage.
• While the comparison could be accomplished by starting the
count at 1, the LSB, and then proceeding bit by bit upwards, a
faster method is by successive approximations.
• This involves selecting the MSB that is less than the analogue
value, then adding successive lesser bits for which the total
does not exceed the analogue value.

29
• For example, we might start the comparison with 1000. If this
is too large we try 0100. If this is too small we then try 0110. If
this is too large we try 0101.
• Because each of the bits in the word is tried in sequence, with
an n-bit word it only takes n steps to make the comparison.
• Thus if the clock has a frequency f, the time between pulses is
1/f .
• Hence the time taken to generate the word, i.e. the
conversion time, is nf.
30
Introduction

• Simple control problem, can be solved by an electronic control


system using combinational and sequential logic integrated
circuits.
• However, with complex situation there might be many more
variables to control in a more complex control sequence.
• With combinational and sequential logic IC wired connections
are used to connect.
• For complex situations microprocessor are used and software
is used to make the interconnections.
3
Microprocessor System

• Microprocessor system has three parts namely Central


Processing Unit (CPU), Input & Output interfaces and Memory
• CPU recognise and carry out program instructions (this part of
microprocessor system uses the microprocessor)
• I/P & O/P interfaces handle communications between the
microprocessor and the outside world
• Memory hold the program instructions and data
• Microprocessor having memory, input & output arrangements
all on same chip are microcontrollers
4
Buses
• Digital signals moves from one section to another along paths
called buses.
• Typically a bus may have 16 or 32 parallel connections so that
each can carry 1 bit
of a data word simultaneously.
• Types of bus available in a microprocessor system are
1. Data bus
2. Address bus
3. Control bus

6
Data bus

• It carries data associated with processing function of CPU


• Used to transport a word to or from the CPU and the memory
or the input/output interfaces.
• Each bit being carried by a separate wire in the bus
• More wire means longer word length
• For example: For a word of length 4 bits, the number of values
it can have are 24 = 16.

7
Address bus

• It carries signal which indicates where data is to be found.


• A computer with an 8-bit data bus has typically a 16-bit-wide
address bus, i.e. 16 wires.
• This size of address bus enables 216 locations to be
addressed.
• 216 indicates 65536 locations and is usually written as 64K,
where K is equal to 1024.

8
Control Bus

• It carries signals related with control actions (e.g. operation of


i/p, o/p devices).
• READ is used for receiving a signal.
• WRITE for sending a signal.
• The control bus is also used to carry the system clock signals
to synchronize all the actions of the microprocessor system.

9
Microprocessor
Address bus Data bus
Address bus

Data bus

Flag Stack General Accum Program Instruction


registers pointer registers -ulator counter decoder &
registers

ALU
Control unit

General internal architecture of Control bus


a microprocessor External control signals
10
Constituents parts of the microprocessor

1. Arithmetic and logic unit (ALU)- performs the data


manipulations
2. Registers- are memory locations with in the microprocessor
and used to store information involved in programme
execution.
3. Control unit- determines the timing and sequence of
operations.

11
Registers

1. Accumulator register- temporary holding register for data to be


operated on by ALU and after operation holds the results.
2. Status register/flag register-
• carries information concerning the results of the latest
process carried out in ALU.
• It carries individual bits called flags.
• Used to indicate whether the last operation resulted in a
negative result, a zero result, a carry output occurs, an
overflow occurs or the program is allowed to be interrupted.

12
• Common flags in status register
Flag Set, i.e. 1 Reset, i.e. 0
Z Result is zero Result is not zero
N Result is negative Result is not negative
C Carry is generated Carry is not ignored
V Overflow occurs Overflow does not occur
I Interrupt is ignored Interrupt is processed normally
13
3. Programme counter register-
• It allows the CPU to keep track of its position in the program.
• Contains the address of the memory location that contains
the next program instruction.
• The program counter is incremented each time so that the
CPU executes instructions sequentially until, JUMP or
BRANCH, changes the program counter out of that
sequence.
14
4. Memory address register- contains the address of data.
5. Instruction register - stores instructions.
6. General purpose register - temporary storage of data or
addresses, involved in the transfer between registers.
7. Stack pointer register
• Content of this register form an address which defines the
top of stack in RAM.
• Stack is a special area of the memory in which program
counter values can be stored when a subroutine part of
program is being used.
15
• The number and form of the registers depends on the
microprocessor.
• For example, the Motorola 6800 microprocessor has two
accumulator registers, a status register, an index register, a
stack pointer register and a program counter register.

16
Memory
• Memory units store binary data.
• Size of memory determined by the number of wires in the
address bus.
• Memory unit consists of large number of storage cells with each
cell capable of storing 0 or 1 bit.
• Storage cells grouped into a location with each location storing a
word.
• In order to access the stored word each location is identified by
a unique word.
• Size of memory specified in terms of no. of memory locations
available. 1 K is 210 =1024 (4K memory has 4096 locations.)
18
Forms of memory

1. ROM (Read only memory)-


• permanent storage of data that CPU can read but CPU
cannot write data on ROM.
• ROM does not require a power supply to retain its data so
called non volatile memory.
• programmed with the required contents during the
manufacture of the integrated circuit.

19
2. RAM (Random access memory)-
• can be read from or written to at any time provided power is
there.
• Data is considered volatile because it is lost when power goes.
• Static RAM- retains data in flip flop as long as memory is
powered.
• Dynamic RAM-consists of capacitor storage of data that must be
refreshed (rewritten) periodically because of the charge leakage.

20
3. EPROM (Erasable programmable ROM)-
• Data stored can be erased with ultraviolet light through a
transparent window at the top of the EPROM IC.
• Then new data can be stored on the EPROM.
• Other type of EPROM is electrically erasable (EEPROM)
• Data in this is electrically erasable and rewritten through its
data line.

21
Input/Output

• Communication to and from the microprocessor occurs


through I/O devices connected to the bus.
• External computer peripheral I/O devices are keyboards,
printers, displays, modems, network device.
• For mechatronic applications A/D, D/A and digital I/O(D/D)
provides interfaces to switches, sensors and actuators.
• Since the speed and characteristic of the peripheral devices
differ with microprocessor, microprocessor are connected via
an interface chip.
22
• Microprocessor accept valid data from interface chip which is
indicated by the interrupt or polling (status bit set to 1).
• Polling is the process of repeated checking each peripheral
device to see if it is ready to send or accept a new byte of
data.

23
Microprocessor Programming

• Instructions executed by CPU are defined on binary code


called machine code.
• Microprocessor can be programmed using assembly language
having mnemonic command corresponding to each
instructions.
• Assembly language converted to machine code using
assembler.
• When set of instructions are small microprocessor is called
RISC (reduced instruction set computer) microprocessor.
24
• If written in high level language as BASIC, or C compiler is to
be used to generate machine code.
• These are easy to debug.

25
Microcontroller

• Microcontroller is the integration of a microprocessor with


memory and input/output interfaces, and other peripherals
such as timers, on a single chip.
• Microcontrollers have limited amounts of ROM and RAM and
are widely used for embedded control systems.
• A microprocessor system with separate memory and
input/output chips is more suited to processing information in
a computer system.

3
• 8-bit microcontrollers – Motorola 68HC11, Intel 8051 and
PIC16C6x/7x .
• 16-bit microcontroller – Motorola 68HC16.
• 32-bit microcontroller – Motorola 68300.

6
Method to Design a Microcontroller-based System
1. Define the problem
2. Draw a functional diagram
3. Identify I/O requirements
4. Select appropriate microcontroller models
5. Identify necessary interface circuits
6. Decide on a programming language
7. Draw the schematic
8. Draw a program flowchart
9. Write the code
10. Build and test the system
27
Factors Considered While Selecting a Microcontroller

1. Number of input/output pins


2. Interfaces required
3. Memory requirements
4. The number of interrupts required
5. Processing speed required

28
Address bus

Crystal Output
Address Memory Memory Input/ port
decoder Output
Clock ROM RAM Input
Micro- Chip port
processor enable
(CPU)
Data bus

Control bus

General form of a microcontroller system


5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy