Pee Sensors and Transducers
Pee Sensors and Transducers
SENSORS
Structure
1.1 Introduction
Objectives
1.2 Active and Passive Sensors
1.3 Basic Requirements of a Sensor/Transducer
1.4 Discrete Event Sensors
1.4.1 Mechanical Limit Switches
1.4.2 Proximity Limit Sensors
1.4.3 Photoelectric Sensors
1.4.4 Fluid Flow Switch
1.5 Continuous Sensor
1.5.1 Components of a Continuous Sensing System
1.5.2 Analog to Digital Conversion
1.5.3 Digital to Analog Conversion
1.6 Transducers
1.6.1 Position Transducers
1.6.2 Velocity Transducers
1.6.3 Force of Pressure Transducers
1.6.4 Temperature Transducers
1.7 Smart Sensors
1.8 Summary
1.9 Key Words
1.10 Answers to SAQs
1.1 INTRODUCTION
Mechatronics can be defined as mechanics controlled by electronic systems.
Sensors are the eyes and ears of the control system. They can be used to provide
real time information for directly controlling processes as well as provide
information for data logging purposes; for example, to provide a count of the daily
units produced off a particular manufacturing line. A sensor can be formally
defined as device that maps a physical or chemical quantity to a signal (normally
electrical). A transducer is defined as a device that converts a signal from one
form of energy to another form. For example, a piezoelectric crystal, properly cut,
can be called a sensor whereas it becomes a transducer with appropriate
electrodes and input-output mechanisms attached to it. Quite often the terms
sensor and transducer are being used interchangeably.
Sensors can be broadly classified in two categories: discrete event and continuous.
Discrete event, or on/off sensor, changes its state based on the occurrence of some
external event. These sensors typically only give knowledge of two states based
on the condition being sensed. They are based on either mechanical, electrical or
optical technology. A continuous sensor provides information over the continuous
range of operation of the process and are commonly used in continuous control
applications, where the process is being regulated based on continuously sensed
attribute data. They are based on electrical, optical and acoustical technologies.
Objectives
After studying this unit, you should be able to
describe different type of sensors and transducers, and
understand the concepts of digital to analog conversion and vice-versa.
Figure 1.1: Mechanical Limit Switches (a) Lever Type in Open Contact Position, (b)
Push Type
1.4.2 Proximity Limit Switches
The term proximity switch (sometimes called proximity sensor) refers to a non-
contact sensor that works on the principle of inducing changes in an
electromagnetic field. The proximity switches most commonly used in the
manufacturing environment are the inductive proximity switch and the capacitive
proximity switch.
Inductive proximity sensors are designed to operate by generating an
electromagnetic field and detecting the eddy current losses generated when ferrous
or non-ferrous metal target objects enter the field. The sensor consists of a coil on
a ferrite core, an oscillator, a trigger-signal level detector and an output circuit. As
a metal object advances into the field, eddy current are introduced in the target.
The result is a loss of energy and smaller amplitude of oscillation. The detector
circuit then recognises a specific change in amplitude and generates a signal
which will turn the output "ON" or "OFF".
A metal target approaching an inductive proximity sensor absorbs energy
generated by an oscillator. When the target is in close range, the energy drain
stops the oscillator and changes the output state.
The active face of an inductive proximity switch is the surface where a high-
frequency electromagnetic field emerges. A standard target is a mild steel, 1 mm
thick, square form with side lengths equal to the diameter of the circle of the
sensing surface, or 3 times the normal switching distance, if this is greater than the
diameter of the sensing surface circle. The distance at which this approaching
target activates (changes state of) the proximity output is called normal sensing
distance. The size, shape and material affects the sensing distance in the following
fashion:
Rounded targets may reduce the sensing distance.
Non-ferrous materials usually reduce the sensing distance.
Targetssmallerthanthesensingfacetypicallyreducethesensingdistance.
Targets larger than the sensing face may increase the sensing distance.
One of the short coming of the inductive proximity switch is that it can only sense
metal objects. The capacitive proximity switch, on the other hand, can sense non-
metallic objects as well. It uses a resistor/capacitor (RC) oscillator to generate a
directed magnetic field. Introducing an object within the magnetic field causes a
change incapacitance, which is detected by the control circuitry, which in turn
operates an electronic switch that outputs a signal to the controller.
Proximity switches have relatively short ranges, typically from 1 to 60 mm;
therefore, they must be used in situations where the target is allowed to come
close to the sensor.
1.4.3 Photoelectric Sensors
Photoelectric sensors are non-contact devices that output a signal in response to
the interruption of a light beam. The components of a photoelectric sensing
systems are shown in Figure 1.2. The two main components are the emitter and
the receiver. The light source is a light emitting diode (LED). An LED is a solid
state semiconductor that emits light when current flows through it. LEDs are
manufactured to produce light in the visible range in the near infra-red range. The
light source is paired with a receiver, which is light sensitive transistor, called a
phototransistor. A transistor conducts when its base is forward biased. This is
done by applying a small amount of current on the base lead. A phototransistor
operates in the same fashion except that the base is biased by the energy from a
light source incident on it. Phototransistors are manufactured to be sensitive to
light within the spectrum of the emitter.
1.5 CONTINUOUSSENSOR
The term continuous sensor is used to describe a device that converts one
measured physical quantity into another that is proportional to the measured
physical quantity. The measured physical quantity might be position, velocity or
temperature; the converted physical quantity is typically one that can be used in an
electronic circuit, such as electrical resistance.
1.5.1 Components of a Continuous Sensing System
The components of a sensing system and their relationship to a digital controller
are shown in Figure 1.4. Each component of the chain has a unique purpose,
which shall be briefly explained.
Figure 1.4: Components of a Continuous Sensing System
The sensor takes the actual physical input, such as force or temperature, and
provides an output that can be used by an electronic measurement circuit. The
measurement circuit is used for calibration and reading of the sensor output. The
output of a measurement circuit will be a voltage or current that is proportional to
the physical property of the system being measured by the sensor. For example, it
may be a voltage whose magnitude is proportional to a force being measured at
the sensor/process interface.
Sometimes a signal will have electronic noise or be too week to processes directly
from the measurement circuit. In such cases the signal may be filtered to remove
the noise or may be amplified for further processing. This is the role of signal
conditioning.
Since computers and controller processors are digital devices, any analog signal
will have to be digitized before it can be read by the computer. An A/D converter
provides the conversion. In cases where the sensor signal is already in digital
form, such as that emitted from an optical encoder such step is unnecessary.
Finally, the signal is presented to the computer for processing.
1.5.2 Analog to Digital Conversion
When a sensor provides an analog voltage input to the controller, it will be
necessary to convert the signal to digital form for computer processing. This is the
role of the A/D converter. This is accomplished by sampling the analog input at
discrete intervals of time and mapping each sample into one of the discrete
quantizing levels of the converter. An A/D converter has 2ndiscrete quantizing
levels, where n is the number of bits in the register of the A/D converter.
Figure 1.5 illustrates a 2-bit A/D converter, with a full range voltage of 6.0 volts,
i.e. it is designed to be used over the range 0 to 6.0 volts. The mapping of voltage
into a binary count is shown in Table 1.1. An A/D converter maps a voltage range
to a binary count. In general, the analog signal will fall into one of the quantizing
levels of the converter. There are 4 quantizing levels and 3 incremental changes of
2.0 volts each.
The resolution of an A/D converter is determined by the step size, which is 2.0 volts.
The percent resolution can be completed using the following equations.
step size
% resolution = × 100% ….(i)
full range
1
% resolution = × 100% ….(ii)
2𝑛 −1
In the above example, therefore, the percent resolution is. The term accuracy is used
to describe the worst case error between the actual analog input signal and the
recorded value as determined from the digital reading. In general, the accuracy is one
half of the resolution.
1.5.3 Digital to Analog Conversion
The basic process of taking a binary number and converting it to a voltage level is
illustrated for a 4-bit binary D/A converter in Figure 1.6(a). With 4 bits provided by
the computer, 24= 16 possible input states can be presented to the D/A converter. The
desired range of the output voltage must be designed into the D/A device. For Figure
1.6 the full range of the device is 0 to 15 volts. The input binary count can range
between 0-15. Since there are 15 increments over the full range of the 15 volts, each
increment of the binary count equals volts. Table 1.2 illustrates the relationship
between the binary input and analog output. Each increment of the binary count adds
1.0 volts to the output voltage.
Figure 1.6: Digital to Analog Converter (a) 4-bit D/A Block Diagram,(b)
Implementation of a 4 -bit D/A Converter
Table 1.2: Binary Input and Analog Output
B3 B2 B1 B0 Vout
0 0 0 0 0.00
0 0 0 1 1.00
0 0 1 0 2.00
0 0 1 1 3.00
0 1 0 0 4.00
0 1 0 1 5.00
0 1 1 0 6.00
0 1 1 1 7.00
1 0 0 0 8.00
1 0 0 1 9.00
1 0 1 0 10.00
1 0 1 1 11.00
1 1 0 0 12.00
1 1 0 1 13.00
1 1 1 0 14.00
1 1 1 1 15.00
There is a relationship between the binary position weights and the output
voltages. In particular, a '1' in each successive binary position results in a doubling
of the output voltage. This is a clue to the way in which D/A converters are
constructed, which is illustrated in Figure 1.6(b).
Each binary output signal from the computer at five volts controls an electronic
switch. Each electronic switch is used to connect or disconnect a branch to a
reference voltage, VRef. Current will flow in connection branches. The op amp is a
device that produces a weighted sum of the input voltages.
The op amp voltage, Vout is the output voltage of a ladder of resistors which are
electronically switched (connected) to a reference voltage, VRef. Hence, by placing
the appropriate binary code on B0 - B3, the voltage level Vout can be produced.
The values of the resistors on the ladder are incremental in binary powers, i.e.2R,
4R, . . . , 2nR. Hence, from the law of passive linear circuits, the current in each
branch of the ladder is:
𝑉𝑅𝑒𝑓 𝑉𝑅𝑒𝑓
𝐼1 = =
𝑅1 2𝑅
𝑉𝑅𝑒𝑓 𝑉𝑅𝑒𝑓
𝐼2 = =
𝑅2 4𝑅
𝑉𝑅𝑒𝑓 𝑉𝑅𝑒𝑓
𝐼3 = = (1.3)
𝑅3 8𝑅
: : :
𝑉𝑅𝑒𝑓 𝑉𝑅𝑒𝑓
𝐼𝑛 = = 𝑛
𝑅𝑛 2 𝑅
The current at point A in the circuit is the summation of the current through each
branch:
𝑛
𝑉𝑅𝑒𝑓
𝐼𝐴 = ( ) ∑ 𝑎𝑖 2−𝑖 (1.4)
𝑅
𝑖=1
where IA is the current in the junction point A, VRef is the reference voltage, R is the
resistance basis, ai is a binary indicator (0 or 1) of whether the ith bit position is off or
on, where the first position is the most significant bit (MSB) and n is the number of
bits in the output resister and, therefore, the number of branches in the ladder.
The above equations can be combined to yield the following function for a D/A
converter:
𝑉𝑓
𝑉𝑜𝑢𝑡 = 𝑉𝑅𝑒𝑓 𝑁 (1.5)
𝑅
where
𝑎1 𝑎2 𝑎𝑛
𝑁 = ( 1 ) + ( 2 ) + … … . . + ( 𝑛 ). (1.6)
2 2 2
SAQ 2
(a) A 6-bit D/A converter gives an output voltage of 8.625 volts for an input of
010111. What is the step size, the full range voltage and the percentage
resolution?
(b) A typical A/D converter has 12-bit resolution and a full range of 10 volts.
What is the percent resolution and voltage resolution of this device?
1.6 TRANSDUCERS
A useful way to classify transducers is on the basis of the physical property the
device is intended to measure. The important properties discussed in this section
are:
Position
Velocity
Force or Pressure
Temperature
1.6.1 Position Transducers
Position transducers are widely used in servomotors, linear position tables, and
other applications where prices position is important. In this section we will
discuss four analog position transducers (potentiometers, linear variable
differential transformers, floats and resolvers) and two digital position transducers
(the optical encoder and ultrasonic range sensor).
(a) Potentiometers
An often-used position sensor is the potentiometer. The potentiometer is
composed of a resistor and a contact slider that allows position to be made
proportional to resistance. There are linear and rotary potentiometers
depending on whether the displacement to be measured is linear or angular.
An angular potentiometer is shown in Figure 1.7. Potentiometers are quite
inexpensive, very rugged, and easy to use. However, they are not as
accurate as some other position transducers.
Figure 1.7: A Rotary Potentiometer
(b) Linear Variable Differential Transformers
1.7 SMARTSENSORS
The next stage of a sensor development is smart sensors, defined by the IEEE as 'a
device with built-in intelligence, whether apparent to the user or not'. These
sensors are equipped with dedicated 'microcomputers' for 'sensor-specific'
methods of signal processing. These sensors are also called intelligent sensors.
The motivation behind the development of smart sensors are (a) compensation for
the non-ideal behavior of the sensors, and (b) provision for communication of the
process data with the 'host' system. Traditional sensors that are being used have
varying requirements of compensation and signal processing objectives and the
number of measurands in industrial establishments is growing each day. The
variety of variables, both physical and chemical is also increasing and newer
sensing mechanisms are being exploited increasing the load on signal processing
which already is much.
Thus for each variable or rather each type of variables, a different processing is
required and with increasing number of types in industries such load is becoming
too much for a centralized computer. The smart sensor is intended to sense as well
as do the sensing related processing within it.
SAQ 3
(a) Differentiate between a resolver and an encoder.
(b) What is the difference between a thermocouple and a thermistor?
1.8 SUMMARY
Sensors can be broadly divided into two types: discrete and continuous. Discrete
sensors are used in applications for which it is only necessary to know the state of
the physical process being sensed. Continuous sensors are used when it is
necessary to measure the magnitude of some physical property of the process.
In this unit, we examined the components of a sensing system, which included a
sensor and measurement circuit, and may include some form of signal processing.
Sensors, their measurement circuit and, sometimes, a signal conditioner are
designed and sold by vendors as a complete package. The term 'transducer' is used
to describe such a sensing system when the electrical output of a transducer is to
be interfaced to a computer, an analog to digital converter is required. The
functioning of A/D and D/A converters are discussed in some detail and a number
of typical transducers are described for measuring position, velocity, force and
temperature. Finally, a brief introduction to smart sensors is presented.
1.9 KEYWORDS
Accuracy : The closeness of the measured value to the true value.
A/D : Abbreviation for analog to digital converter.
Analog : A quantity which is continuously varying as distinct from
a digital quantity.
Analog to : The device which converts the signal from analog to digital
Digital Converter form.
D/A : Abbreviation for digital to analog converters.
Digitization : The process of converting an analog signal to digital form.
Hysteresis : The maximum difference in output for the same
measurand value within the transducer's range, one
obtained by increasing from zero and the other by
decreasing from a higher value of a measurand.
Measured : The quantity being measured.
Precision : The closeness together of the measured values when the
measurement is repeated.
Range : The measured values over which a transducer is intended
to measure, specified by upper or lower limits.
Resolution : The smallest change in the measured which can be
detected. In a analogue system, the resolution in limited
by size of the least significant bit or the noise level,
whichever is larger.
1.10 ANSWERS TO SAQs
SAQ 2
(a) 0.375 volts/step, 23.625 volts,1.587%.
(b) 0.02442%, 0.002442.
Check your answers of all other SAQs with respective preceding text of each
SAQ.