Sensor and Transducer
Sensor and Transducer
Sensor and Transducer
But in order for an electronic circuit or system to perform any useful task or function it needs to
be able to communicate with the “real world” whether this is by reading an input signal from an
“ON/OFF” switch or by activating some form of output device to illuminate a single light.
In other words, an Electronic System or circuit must be able to “do” something and Sensors
and Transducers are the perfect components for doing this.
Related Products: Ambient Light Sensor | Temperature and Humidity Sensors
The word “Transducer” is the collective term used for both Sensors which can be used to sense a
wide range of different energy forms such as movement, electrical signals, radiant energy,
thermal or magnetic energy etc, and Actuators which can be used to switch voltages or currents.
There are many different types of sensors and transducers, both analogue and digital and input
and output available to choose from. The type of input or output transducer being used, really
depends upon the type of signal or process being “Sensed” or “Controlled” but we can define a
sensor and transducers as devices that converts one physical quantity into another.
Devices which perform an “Input” function are commonly called Sensors because they “sense” a
physical change in some characteristic that changes in response to some excitation, for example
heat or force and covert that into an electrical signal. Devices which perform an “Output”
function are generally called Actuators and are used to control some external device, for
example movement or sound.
Electrical Transducers are used to convert energy of one kind into energy of another kind, so
for example, a microphone (input device) converts sound waves into electrical signals for the
amplifier to amplify (a process), and a loudspeaker (output device) converts these electrical
signals back into sound waves and an example of this type of simple Input/Output (I/O) system is
given below.
Thermocouple
Thermistor Heater
Temperature
Thermostat Fan
Resistive Temperature Detectors
Potentiometer
Motor
Encoders
Position Solenoid
Reflective/Slotted Opto-switch
Panel Meters
LVDT
Tacho-generator AC and DC Motors
Speed Reflective/Slotted Opto-coupler Stepper Motor
Doppler Effect Sensors Brake
Bell
Carbon Microphone
Sound Buzzer
Piezo-electric Crystal
Loudspeaker
Input type transducers or sensors, produce a voltage or signal output response which is
proportional to the change in the quantity that they are measuring (the stimulus). The type or
amount of the output signal depends upon the type of sensor being used. But generally, all types
of sensors can be classed as two kinds, either Passive Sensors or Active Sensors.
Generally, active sensors require an external power supply to operate, called an excitation
signal which is used by the sensor to produce the output signal. Active sensors are self-
generating devices because their own properties change in response to an external effect
producing for example, an output voltage of 1 to 10v DC or an output current such as 4 to 20mA
DC. Active sensors can also produce signal amplification.
A good example of an active sensor is an LVDT sensor or a strain gauge. Strain gauges are
pressure-sensitive resistive bridge networks that are external biased (excitation signal) in such a
way as to produce an output voltage in proportion to the amount of force and/or strain being
applied to the sensor.
Unlike an active sensor, a passive sensor does not need any additional power source or excitation
voltage. Instead a passive sensor generates an output signal in response to some external
stimulus. For example, a thermocouple which generates its own voltage output when exposed to
heat. Then passive sensors are direct sensors which change their physical properties, such as
resistance, capacitance or inductance etc.
But as well as analogue sensors, Digital Sensors produce a discrete output representing a binary
number or digit such as a logic level “0” or a logic level “1”.
Analogue Sensors
Analogue Sensors produce a continuous output signal or voltage which is generally proportional
to the quantity being measured. Physical quantities such as Temperature, Speed, Pressure,
Displacement, Strain etc are all analogue quantities as they tend to be continuous in nature. For
example, the temperature of a liquid can be measured using a thermometer or thermocouple
which continuously responds to temperature changes as the liquid is heated up or cooled down.
Thermocouple used to produce an Analogue Signal
Analogue sensors tend to produce output signals that are changing smoothly and continuously
over time. These signals tend to be very small in value from a few mico-volts (uV) to several
milli-volts (mV), so some form of amplification is required.
Then circuits which measure analogue signals usually have a slow response and/or low accuracy.
Also analogue signals can be easily converted into digital type signals for use in micro-controller
systems by the use of analogue-to-digital converters, or ADC’s.
Digital Sensors
As its name implies, Digital Sensors produce a discrete digital output signals or voltages that are
a digital representation of the quantity being measured. Digital sensors produce a Binary output
signal in the form of a logic “1” or a logic “0”, (“ON” or “OFF”). This means then that a digital
signal only produces discrete (non-continuous) values which may be outputted as a single “bit”,
(serial transmission) or by combining the bits to produce a single “byte” output (parallel
transmission).
Were some random noise still remains after filtering it may be necessary to take several samples
and then average them to give the final value so increasing the signal-to-noise ratio. Either way,
both amplification and filtering play an important role in interfacing both sensors and transducers
to microprocessor and electronics based systems in “real world” conditions.
In the next tutorial about Sensors, we will look at Positional Sensors which measure the position
and/or displacement of physical objects meaning the movement from one position to another for
a specific distance or angle.
Previous
Inductive Reactance
Next
Position Sensors
Summary of Transducers
Sound Transducers
DC Motors
Linear Solenoid Actuator
Electrical Relay
Light Sensors
Temperature Sensors
Position Sensors
Sensors and Transducers
Home / Input/Output Devices / Position Sensors
Position Sensors
In this tutorial we will look at a variety of devices which are classed as Input Devices and are
therefore called “Sensors” and in particular those sensors which are Positional in nature.
As their name implies, Position Sensors detect the position of something which means that they
are referenced either to or from some fixed point or position. These types of sensors provide a
“positional” feedback.
One method of determining a position, is to use either “distance”, which could be the distance
between two points such as the distance travelled or moved away from some fixed point, or by
“rotation” (angular movement). For example, the rotation of a robots wheel to determine its
distance travelled along the ground. Either way, Position Sensors can detect the movement of an
object in a straight line using Linear Sensors or by its angular movement using Rotational
Sensors.
Related Products: Angular and Linear Position Sensor
The Potentiometer
The most commonly used of all the “Position Sensors”, is the potentiometer because it is an
inexpensive and easy to use position sensor. It has a wiper contact linked to a mechanical shaft
that can be either angular (rotational) or linear (slider type) in its movement, and which causes
the resistance value between the wiper/slider and the two end connections to change giving an
electrical signal output that has a proportional relationship between the actual wiper position on
the resistive track and its resistance value. In other words, resistance is proportional to position.
Potentiometer
Potentiometers come in a wide range of designs and sizes such as the commonly available round
rotational type or the longer and flat linear slider types. When used as a position sensor the
moveable object is connected directly to the rotational shaft or slider of the potentiometer.
A DC reference voltage is applied across the two outer fixed connections forming the resistive
element. The output voltage signal is taken from the wiper terminal of the sliding contact as
shown below.
This configuration produces a potential or voltage divider type circuit output which is
proportional to the shaft position. Then for example, if you apply a voltage of say 10v across the
resistive element of the potentiometer the maximum output voltage would be equal to the supply
voltage at 10 volts, with the minimum output voltage equal to 0 volts. Then the potentiometer
wiper will vary the output signal from 0 to 10 volts, with 5 volts indicating that the wiper or
slider is at its half-way or centre position.
Potentiometer Construction
The output signal (Vout) from the potentiometer is taken from the centre wiper connection as it
moves along the resistive track, and is proportional to the angular position of the shaft.
An inductive proximity sensor has four main components; The oscillator which produces the
electromagnetic field, the coil which generates the magnetic field, the detection circuit which
detects any change in the field when an object enters it and the output circuit which produces the
output signal, either with normally closed (NC) or normally open (NO) contacts.
Inductive proximity sensors allow for the detection of metallic objects in front of the sensor head
without any physical contact of the object itself being detected. This makes them ideal for use in
dirty or wet environments. The “sensing” range of proximity sensors is very small, typically
0.1mm to 12mm.
Proximity Sensor
As well as industrial applications, inductive proximity sensors are also commonly used to control
the flow of traffic by changing of traffic lights at junctions and cross roads. Rectangular
inductive loops of wire are buried into the tarmac road surface.
When a car or other road vehicle passes over this inductive loop, the metallic body of the vehicle
changes the loops inductance and activates the sensor thereby alerting the traffic lights controller
that there is a vehicle waiting.
One main disadvantage of these types of position sensors is that they are “Omni-directional”,
that is they will sense a metallic object either above, below or to the side of it. Also, they do not
detect non-metallic objects although Capacitive Proximity Sensorsand Ultrasonic Proximity
Sensors are available. Other commonly available magnetic positional sensors include: reed
switches, Hall Effect Sensors and variable reluctance sensors.
Rotary Encoders
Rotary Encoders are another type of position sensor which resemble potentiometers mentioned
earlier but are non-contact optical devices used for converting the angular position of a rotating
shaft into an analogue or digital data code. In other words, they convert mechanical movement
into an electrical signal (preferably digital).
All optical encoders work on the same basic principle. Light from an LED or infra-red
light source is passed through a rotating high-resolution encoded disk that contains the required
code patterns, either binary, grey code or BCD. Photo detectors scan the disk as it rotates and an
electronic circuit processes the information into a digital form as a stream of binary output pulses
that are fed to counters or controllers which determine the actual angular position of the shaft.
There are two basic types of rotary optical encoders, Incremental Encoders and Absolute
Position Encoders.
Incremental Encoder
Encoder Disk
Incremental Encoders, also known as quadrature encoders or relative rotary encoder, are the
simplest of the two position sensors. Their output is a series of square wave pulses generated by
a photocell arrangement as the coded disk, with evenly spaced transparent and dark lines called
segments on its surface, moves or rotates past the light source. The encoder produces a stream of
square wave pulses which, when counted, indicates the angular position of the rotating shaft.
Incremental encoders have two separate outputs called “quadrature outputs”. These two outputs
are displaced at 90o out of phase from each other with the direction of rotation of the shaft being
determined from the output sequence.
The number of transparent and dark segments or slots on the disk determines the resolution of
the device and increasing the number of lines in the pattern increases the resolution per degree of
rotation. Typical encoded discs have a resolution of up to 256 pulses or 8-bits per rotation.
The simplest incremental encoder is called a tachometer. It has one single square wave output
and is often used in unidirectional applications where basic position or speed information only is
required. The “Quadrature” or “Sine wave” encoder is the more common and has two output
square waves commonly called channel A and channel B. This device uses two photo detectors,
slightly offset from each other by 90o thereby producing two separate sine and cosine output
signals.
By using the Arc Tangent mathematical function the angle of the shaft in radians can be
calculated. Generally, the optical disk used in rotary position encoders is circular, then the
resolution of the output will be given as: θ = 360/n, where n equals the number of segments on
coded disk.
Then for example, the number of segments required to give an incremental encoder a resolution
of 1o will be: 1o = 360/n, therefore, n = 360 windows, etc. Also the direction of rotation is
determined by noting which channel produces an output first, either channel A or channel B
giving two directions of rotation, A leads B or B leads A. This arrangement is shown below.
Next
Temperature Sensors
Summary of Transducers
Sound Transducers
DC Motors
Linear Solenoid Actuator
Electrical Relay
Light Sensors
Temperature Sensors
Position Sensors
Sensors and Transducers
Advertisement
These types of temperature sensor vary from simple ON/OFF thermostatic devices which control
a domestic hot water heating system to highly sensitive semiconductor types that can control
complex process control furnace plants.
We remember from our school science classes that the movement of molecules and atoms
produces heat (kinetic energy) and the greater the movement, the more heat that is
generated. Temperature Sensors measure the amount of heat energy or even coldness that is
generated by an object or system, allowing us to “sense” or detect any physical change to that
temperature producing either an analogue or digital output.
There are many different types of Temperature Sensor available and all have different
characteristics depending upon their actual application. A temperature sensor consists of two
basic physical types:
Contact Temperature Sensor Types – These types of temperature sensor are required to
be in physical contact with the object being sensed and use conduction to monitor changes in
temperature. They can be used to detect solids, liquids or gases over a wide range of temperatures.
Non-contact Temperature Sensor Types – These types of temperature sensor use
convection and radiation to monitor changes in temperature. They can be used to detect liquids
and gases that emit radiant energy as heat rises and cold settles to the bottom in convection
currents or detect the radiant energy being transmitted from an object in the form of infra-red
radiation (the sun).
The two basic types of contact or even non-contact temperature sensors can also be sub-divided
into
the following three groups of sensors, Electro-mechanical, Resistive and Electronic and all three
types are discussed below.
The Thermostat
The Thermostat is a contact type electro-mechanical temperature sensor or switch, that basically
consists of two different metals such as nickel, copper, tungsten or aluminium etc, that are
bonded together to form a Bi-metallic strip. The different linear expansion rates of the two
dissimilar metals produces a mechanical bending movement when the strip is subjected to heat.
The bi-metallic strip can be used itself as an electrical switch or as a mechanical way of
operating an electrical switch in thermostatic controls and are used extensively to control hot
water heating elements in boilers, furnaces, hot water storage tanks as well as in vehicle radiator
cooling systems.
The thermostat consists of two thermally different metals stuck together back to back. When it is
cold the contacts are closed and current passes through the thermostat. When it gets hot, one
metal expands more than the other and the bonded bi-metallic strip bends up (or down) opening
the contacts preventing the current from flowing.
On/Off Thermostat
There are two main types of bi-metallic strips based mainly upon their movement when
subjected to temperature changes. There are the “snap-action” types that produce an
instantaneous “ON/OFF” or “OFF/ON” type action on the electrical contacts at a set temperature
point, and the slower “creep-action” types that gradually change their position as the temperature
changes.
Snap-action type thermostats are commonly used in our homes for controlling the temperature
set point of ovens, irons, immersion hot water tanks and they can also be found on walls to
control the domestic heating system.
Creeper types generally consist of a bi-metallic coil or spiral that slowly unwinds or coils-up as
the temperature changes. Generally, creeper type bi-metallic strips are more sensitive to
temperature changes than the standard snap ON/OFF types as the strip is longer and thinner
making them ideal for use in temperature gauges and dials etc.
Although very cheap and are available over a wide operating range, one main disadvantage of
the standard snap-action type thermostats when used as a temperature sensor, is that they have a
large hysteresis range from when the electrical contacts open until when they close again. For
example, it may be set to 20oC but may not open until 22oC or close again until 18oC.
So the range of temperature swing can be quite high. Commercially available bi-metallic
thermostats for home use do have temperature adjustment screws that allow for a more precise
desired temperature set-point and hysteresis level to be pre-set.
The Thermistor
The Thermistor is another type of temperature sensor, whose name is a combination of the
words THERM-ally sensitive res-ISTOR. A thermistor is a special type of resistor which
changes its physical resistance when exposed to changes in temperature.
fThermistor
Thermistors are generally made from ceramic materials such as oxides of nickel, manganese or
cobalt coated in glass which makes them easily damaged. Their main advantage over snap-action
types is their speed of response to any changes in temperature, accuracy and repeatability.
Most types of thermistor’s have a Negative Temperature Coefficient of resistance or (NTC), that
is their resistance value goes DOWN with an increase in the temperature, and of course there are
some which have a Positive Temperature Coefficient, (PTC), in that their resistance value goes
UP with an increase in temperature.
Thermistors are constructed from a ceramic type semiconductor material using metal oxide
technology such as manganese, cobalt and nickel, etc. The semiconductor material is generally
formed into small pressed discs or balls which are hermetically sealed to give a relatively fast
response to any changes in temperature.
Thermistors are rated by their resistive value at room temperature (usually at 25oC), their time
constant (the time to react to the temperature change) and their power rating with respect to the
current flowing through them. Like resistors, thermistors are available with resistance values at
room temperature from 10’s of MΩ down to just a few Ohms, but for sensing purposes those
types with values in the kilo-ohms are generally used.
Thermistors are passive resistive devices which means we need to pass a current through it to
produce a measurable voltage output. Then thermistors are generally connected in series with a
suitable biasing resistor to form a potential divider network and the choice of resistor gives a
voltage output at some pre-determined temperature point or value for example:
At 25oC
At 100oC
By changing the fixed resistor value of R2 (in our example 1kΩ) to a potentiometer or preset, a
voltage output can be obtained at a predetermined temperature set point for example, 5v output at
60oC and by varying the potentiometer a particular output voltage level can be obtained over a
wider temperature range.
It needs to be noted however, that thermistor’s are non-linear devices and their standard
resistance values at room temperature is different between different thermistor’s, which is due
mainly to the semiconductor materials they are made from. The Thermistor, have an
exponential change with temperature and therefore have a Beta temperature constant ( β ) which
can be used to calculate its resistance for any given temperature point.
However, when used with a series resistor such as in a voltage divider network or Whetstone
Bridge type arrangement, the current obtained in response to a voltage applied to the
divider/bridge network is linear with temperature. Then, the output voltage across the resistor
becomes linear with temperature.
A Resistive RTD
Resistive temperature detectors have positive temperature coefficients (PTC) but unlike the
thermistor their output is extremely linear producing very accurate measurements of temperature.
However, they have very poor thermal sensitivity, that is a change in temperature only produces
a very small output change for example, 1Ω/oC.
The more common types of RTD’s are made from platinum and are called Platinum Resistance
Thermometer or PRT‘s with the most commonly available of them all the Pt100 sensor, which
has a standard resistance value of 100Ω at 0oC. The downside is that Platinum is expensive and
one of the main disadvantages of this type of device is its cost.
Like the thermistor, RTD’s are passive resistive devices and by passing a constant current
through the temperature sensor it is possible to obtain an output voltage that increases linearly
with temperature. A typical RTD has a base resistance of about 100Ω at 0oC, increasing to about
140Ω at 100oC with an operating temperature range of between -200 to +600oC.
Because the RTD is a resistive device, we need to pass a current through them and monitor the
resulting voltage. However, any variation in resistance due to self heat of the resistive wires as
the current flows through it, I2R , (Ohms Law) causes an error in the readings. To avoid this, the
RTD is usually connected into a Whetstone Bridge network which has additional connecting
wires for lead-compensation and/or connection to a constant current source.
The Thermocouple
The Thermocouple is by far the most commonly used type of all the temperature sensor types.
Thermocouples are popular due to its simplicity, ease of use and their speed of response to
changes in temperature, due mainly to their small size. Thermocouples also have the widest
temperature range of all the temperature sensors from below -200oC to well over 2000oC.
Thermocouples are thermoelectric sensors that basically consists of two junctions of dissimilar
metals, such as copper and constantan that are welded or crimped together. One junction is kept
at a constant temperature called the reference (Cold) junction, while the other the measuring
(Hot) junction. When the two junctions are at different temperatures, a voltage is developed
across the junction which is used to measure the temperature sensor as shown below.
Thermocouple Construction
The operating principal of a thermocouple is very simple and basic. When fused together the
junction of the two dissimilar metals such as copper and constantan produces a “thermo-electric”
effect which gives a constant potential difference of only a few millivolts (mV) between them.
The voltage difference between the two junctions is called the “Seebeck effect” as a temperature
gradient is generated along the conducting wires producing an emf. Then the output voltage from
a thermocouple is a function of the temperature changes.
If both the junctions are at the same temperature the potential difference across the two junctions
is zero in other words, no voltage output as V1 = V2. However, when the junctions are connected
within a circuit and are both at different temperatures a voltage output will be detected relative to
the difference in temperature between the two junctions, V1 – V2. This difference in voltage will
increase with temperature until the junctions peak voltage level is reached and this is determined
by the characteristics of the two dissimilar metals used.
Thermocouples can be made from a variety of different materials enabling extreme temperatures
of
between -200oC to over +2000oC to be measured. With such a large choice of materials and
temperature range, internationally recognised standards have been developed complete with
thermocouple colour codes to allow the user to choose the correct thermocouple sensor for a
particular application. The British colour code for standard thermocouples is given below.
Nickel Chromium /
E -200 to 900oC
Constantan
Nickel Chromium /
K -200 to 1250oC
Nickel Aluminium
Thermocouple Amplification
The type of amplifier, either discrete or in the form of an Operational Amplifier needs to be
carefully selected, because good drift stability is required to prevent recalibration of the
thermocouple at frequent intervals. This makes the chopper and instrumentation type of amplifier
preferable for most temperature sensing applications.
Other Temperature Sensor Types not mentioned here include, Semiconductor Junction
Sensors, Infra-red and Thermal Radiation Sensors, Medical type Thermometers, Indicators and
Colour Changing Inks or Dyes.
In this tutorial about “Temperature Sensor Types”, we have looked at several examples of
sensors that can be used to measure changes in temperature. In the next tutorial we will look at
sensors that are used to measure light quantity, such as Photodiodes, Phototransistors,
Photovoltaic Cells and the Light Dependant Resistor.
Previous
Position Sensors
Next
Light Sensors
Light Sensors
A Light Sensor generates an output signal indicating the intensity of light by measuring the
radiant energy that exists in a very narrow range of frequencies basically called “light”, and
which ranges in frequency from “Infra-red” to “Visible” up to “Ultraviolet” light spectrum.
The light sensor is a passive devices that convert this “light energy” whether visible or in the
infra-red parts of the spectrum into an electrical signal output. Light sensors are more commonly
known as “Photoelectric Devices” or “Photo Sensors” because the convert light energy (photons)
into electricity (electrons).
Photoelectric devices can be grouped into two main categories, those which generate electricity
when illuminated, such as Photo-voltaics or Photo-emissives etc, and those which change their
electrical properties in some way such as Photo-resistors or Photo-conductors. This leads to the
following classification of devices.
• Photo-emissive Cells – These are photodevices which release free electrons from a light
sensitive material such as caesium when struck by a photon of sufficient energy. The amount of
energy the photons have depends on the frequency of the light and the higher the frequency, the
more energy the photons have converting light energy into electrical energy.
• Photo-conductive Cells – These photodevices vary their electrical resistance when
subjected to light. Photoconductivity results from light hitting a semiconductor material which
controls the current flow through it. Thus, more light increase the current for a given applied
voltage. The most common photoconductive material is Cadmium Sulphide used in LDR photocells.
• Photo-voltaic Cells – These photodevices generate an emf in proportion to the radiant light
energy received and is similar in effect to photoconductivity. Light energy falls on to two
semiconductor materials sandwiched together creating a voltage of approximately 0.5V. The most
common photovoltaic material is Selenium used in solar cells.
• Photo-junction Devices – These photodevices are mainly true semiconductor devices such
as the photodiode or phototransistor which use light to control the flow of electrons and holes
across their PN-junction. Photojunction devices are specifically designed for detector application
and light penetration with their spectral response tuned to the wavelength of incident light.
Related Products: Ambient Light Sensor | Photoelectric Sensor
Typical LDR
As its name implies, the Light Dependent Resistor (LDR) is made from a piece of exposed
semiconductor material such as cadmium sulphide that changes its electrical resistance from
several thousand Ohms in the dark to only a few hundred Ohms when light falls upon it by
creating hole-electron pairs in the material.
The net effect is an improvement in its conductivity with a decrease in resistance for an increase
in illumination. Also, photoresistive cells have a long response time requiring many seconds to
respond to a change in the light intensity.
Materials used as the semiconductor substrate include, lead sulphide (PbS), lead selenide (PbSe),
indium antimonide (InSb) which detect light in the infra-red range with the most commonly used
of all photoresistive light sensors being Cadmium Sulphide (Cds).
Cadmium sulphide is used in the manufacture of photoconductive cells because its spectral
response curve closely matches that of the human eye and can even be controlled using a simple
torch as a light source. Typically then, it has a peak sensitivity wavelength (λp) of about 560nm
to 600nm in the visible spectral range.
The most commonly used photoresistive light sensor is the ORP12 Cadmium Sulphide
photoconductive cell. This light dependent resistor has a spectral response of about 610nm in the
yellow to orange region of light. The resistance of the cell when unilluminated (dark resistance)
is very high at about 10MΩ’s which falls to about 100Ω’s when fully illuminated (lit resistance).
To increase the dark resistance and therefore reduce the dark current, the resistive path forms a
zigzag pattern across the ceramic substrate. The CdS photocell is a very low cost device often
used in auto dimming, darkness or twilight detection for turning the street lights “ON” and
“OFF”, and for photographic exposure meter type applications.
Connecting a light dependant resistor in series with a standard resistor like this across a single
DC supply voltage has one major advantage, a different voltage will appear at their junction for
different levels of light.
The amount of voltage drop across series resistor, R2is determined by the resistive value of the
light dependant resistor, RLDR. This ability to generate different voltages produces a very handy
circuit called a “Potential Divider” or Voltage Divider Network.
As we know, the current through a series circuit is common and as the LDR changes its resistive
value due to the light intensity, the voltage present at VOUT will be determined by the voltage
divider formula. An LDR’s resistance, RLDR can vary from about 100Ω’s in the sun light, to over
10MΩ’s in absolute darkness with this variation of resistance being converted into a voltage
variation at VOUT as shown.
One simple use of a Light Dependent Resistor, is as a light sensitive switch as shown below.
LDR Switch
This basic light sensor circuit is of a relay output light activated switch. A potential divider
circuit is formed between the photoresistor, LDR and the resistor R1. When no light is present ie
in darkness, the resistance of the LDR is very high in the Megaohms (MΩ’s) range so zero base
bias is applied to the transistor TR1 and the relay is de-energised or “OFF”.
As the light level increases the resistance of the LDR starts to decrease causing the base bias
voltage at V1 to rise. At some point determined by the potential divider network formed with
resistor R1, the base bias voltage is high enough to turn the transistor TR1 “ON” and thus
activate the relay which in turn is used to control some external circuitry. As the light level falls
back to darkness again the resistance of the LDR increases causing the base voltage of the
transistor to decrease, turning the transistor and relay “OFF” at a fixed light level determined
again by the potential divider network.
By replacing the fixed resistor R1 with a potentiometer VR1, the point at which the relay turns
“ON” or “OFF” can be pre-set to a particular light level. This type of simple circuit shown above
has a fairly low sensitivity and its switching point may not be consistent due to variations in
either temperature or the supply voltage. A more sensitive precision light activated circuit can be
easily made by incorporating the LDR into a “Wheatstone Bridge” arrangement and replacing
the transistor with an Operational Amplifier as shown.
In this basic dark sensing circuit, the light dependent resistor LDR1 and the
potentiometer VR1 form one adjustable arm of a simple resistance bridge network, also known
commonly as a Wheatstone bridge, while the two fixed resistors R1 and R2 form the other arm.
Both sides of the bridge form potential divider networks across the supply voltage whose
outputs V1 and V2 are connected to the non-inverting and inverting voltage inputs respectively
of the operational amplifier.
The operational amplifier is configured as a Differential Amplifier also known as a voltage
comparator with feedback whose output voltage condition is determined by the difference
between the two input signals or voltages, V1 and V2. The resistor combination R1 and R2 form
a fixed voltage reference at input V2, set by the ratio of the two resistors. The LDR –
VR1 combination provides a variable voltage input V1 proportional to the light level being
detected by the photoresistor.
As with the previous circuit the output from the operational amplifier is used to control a relay,
which is protected by a free wheel diode, D1. When the light level sensed by the LDR and its
output voltage falls below the reference voltage set at V2 the output from the op-amp changes
state activating the relay and switching the connected load.
Likewise as the light level increases the output will switch back turning “OFF” the relay. The
hysteresis of the two switching points is set by the feedback resistor Rf can be chosen to give any
suitable voltage gain of the amplifier.
The operation of this type of light sensor circuit can also be reversed to switch the relay “ON”
when the light level exceeds the reference voltage level and vice versa by reversing the positions
of the light sensor LDR and the potentiometer VR1. The potentiometer can be used to “pre-set”
the switching point of the differential amplifier to any particular light level making it ideal as a
simple light sensor project circuit.
Photojunction Devices
Photojunction Devices are basically PN-Junction light sensors or detectors made from silicon
semiconductor PN-junctions which are sensitive to light and which can detect both visible light
and infra-red light levels. Photo-junction devices are specifically made for sensing light and this
class of photoelectric light sensors include the Photodiode and the Phototransistor.
The Photodiode.
Photo-diode
The construction of the Photodiode light sensor is similar to that of a conventional PN-junction
diode except that the diodes outer casing is either transparent or has a clear lens to focus the light
onto the PN junction for increased sensitivity. The junction will respond to light particularly
longer wavelengths such as red and infra-red rather than visible light.
This characteristic can be a problem for diodes with transparent or glass bead bodies such as the
1N4148 signal diode. LED’s can also be used as photodiodes as they can both emit and detect
light from their junction. All PN-junctions are light sensitive and can be used in a photo-
conductive unbiased voltage mode with the PN-junction of the photodiode always “Reverse
Biased” so that only the diodes leakage or dark current can flow.
The current-voltage characteristic (I/V Curves) of a photodiode with no light on its junction
(dark mode) is very similar to a normal signal or rectifying diode. When the photodiode is
forward biased, there is an exponential increase in the current, the same as for a normal diode.
When a reverse bias is applied, a small reverse saturation current appears which causes an
increase of the depletion region, which is the sensitive part of the junction. Photodiodes can also
be connected in a current mode using a fixed bias voltage across the junction. The current mode
is very linear over a wide range.
Photo-diode Construction and Characteristics
When used as a light sensor, a photodiodes dark current (0 lux) is about 10uA for geranium and
1uA for silicon type diodes. When light falls upon the junction more hole/electron pairs are
formed and the leakage current increases. This leakage current increases as the illumination of
the junction increases.
Thus, the photodiodes current is directly proportional to light intensity falling onto the PN-
junction. One main advantage of photodiodes when used as light sensors is their fast response to
changes in the light levels, but one disadvantage of this type of photodevice is the relatively
small current flow even when fully lit.
The following circuit shows a photo-current-to-voltage converter circuit using an operational
amplifier as the amplifying device. The output voltage (Vout) is given as Vout = Ip × Rf and
which is proportional to the light intensity characteristics of the photodiode.
This type of circuit also utilizes the characteristics of an operational amplifier with two input
terminals at about zero voltage to operate the photodiode without bias. This zero-bias op-amp
configuration gives a high impedance loading to the photodiode resulting in less influence by
dark current and a wider linear range of the photocurrent relative to the radiant light intensity.
Capacitor Cf is used to prevent oscillation or gain peaking and to set the output bandwidth
(1/2πRC).
The Phototransistor
Photo-transistor
Photo-darlington
Photovoltaic Cells.
The most common type of photovoltaic light sensor is the Solar Cell. Solar cells convert light
energy directly into DC electrical energy in the form of a voltage or current to a power a resistive
load such as a light, battery or motor. Then photovoltaic cells are similar in many ways to a
battery because they supply DC power.
However, unlike the other photo devices we have looked at above which use light intensity even
from a torch to operate, photovoltaic solar cells work best using the suns radiant energy.
Solar cells are used in many different types of applications to offer an alternative power source
from conventional batteries, such as in calculators, satellites and now in homes offering a form
of renewable power.
Photovoltaic Cell
Photovoltaic cells are made from single crystal silicon PN junctions, the same as photodiodes
with a very large light sensitive region but are used without the reverse bias. They have the same
characteristics as a very large photodiode when in the dark.
When illuminated the light energy causes electrons to flow through the PN junction and an
individual solar cell can generate an open circuit voltage of about 0.58v (580mV). Solar cells
have a “Positive” and a “Negative” side just like a battery.
Individual solar cells can be connected together in series to form solar panels which increases the
output voltage or connected together in parallel to increase the available current. Commercially
available solar panels are rated in Watts, which is the product of the output voltage and current
(Volts times Amps) when fully lit.
Characteristics of a typical Photovoltaic Solar Cell.
The amount of available current from a solar cell depends upon the light intensity, the size of the
cell and its efficiency which is generally very low at around 15 to 20%. To increase the overall
efficiency of the cell commercially available solar cells use polycrystalline silicon or amorphous
silicon, which have no crystalline structure, and can generate currents of between 20 to 40mA
per cm2.
Other materials used in the construction of photovoltaic cells include Gallium Arsenide, Copper
Indium Diselenide and Cadmium Telluride. These different materials each have a different
spectrum band response, and so can be “tuned” to produce an output voltage at different
wavelengths of light.
In this tutorial about Light Sensors, we have looked at several examples of devices that are
classed as Light Sensors. This includes those with and those without PN-junctions that can be
used to measure the intensity of light.
In the next tutorial we will look at output devices called Actuators. Actuators convert an
electrical signal into a corresponding physical quantity such as movement, force, or sound. One
such commonly used output device is the Electromagnetic Relay.
Home / Input/Output Devices / Electrical Relay
Electrical Relay
Thus far we have seen a selection of Input devices that can be used to detect or “sense” a variety
of physical variables and signals and are therefore called Sensors.
But there are also a variety of electrical and electronic devices which are classed
as Output devices used to control or operate some external physical process. These output
devices are commonly called Actuators.
Actuators convert an electrical signal into a corresponding physical quantity such as movement,
force, sound etc. An actuator is also classed as a transducer because it changes one type of
physical quantity into another and is usually activated or operated by a low voltage command
signal. Actuators can be classed as either binary or continuous devices based upon the number of
stable states their output has.
Related Products: Electromechanical Switches | Switch DIP | Switch Push Button
For example, a relay is a binary actuator as it has two stable states, either energised and latched
or de-energised and unlatched, while a motor is a continuous actuator because it can rotate
through a full 360o motion. The most common types of actuators or output devices are Electrical
Relays, Lights, Motors and Loudspeakers.
We saw previously that solenoids can be used to electrically open latches, doors, open or close
valves, and in a variety of robotic and mechatronic applications, etc. However, if the solenoid
plunger is used to operate one or more sets of electrical contacts, we have a device called
a relay that is so useful it can be used in an infinite number of different ways and in this tutorial
we will look at Electrical Relays.
Electrical Relays can also be divided into mechanical action relays called “Electromechanical
Relays” and those which use semiconductor transistors, thyristors, triacs, etc, as their switching
device called “Solid State Relays” or SSR’s.
The relays contacts are electrically conductive pieces of metal which touch together completing a
circuit and allow the circuit current to flow, just like a switch. When the contacts are open the
resistance between the contacts is very high in the Mega-Ohms, producing an open circuit
condition and no circuit current flows.
When the contacts are closed the contact resistance should be zero, a short circuit, but this is not
always the case. All relay contacts have a certain amount of “contact resistance” when they are
closed and this is called the “On-Resistance”, similar to FET’s.
With a new relay and contacts this ON-resistance will be very small, generally less than 0.2Ω’s
because the tips are new and clean, but over time the tip resistance will increase.
For example. If the contacts are passing a load current of say 10A, then the voltage drop across
the contacts using Ohms Law is 0.2 x 10 = 2 volts, which if the supply voltage is say 12 volts
then the load voltage will be only 10 volts (12 – 2). As the contact tips begin to wear, and if they
are not properly protected from high inductive or capacitive loads, they will start to show signs
of arcing damage as the circuit current still wants to flow as the contacts begin to open when the
relay coil is de-energized.
This arcing or sparking across the contacts will cause the contact resistance of the tips to increase
further as the contact tips become damaged. If allowed to continue the contact tips may become
so burnt and damaged to the point were they are physically closed but do not pass any or very
little current.
If this arcing damage becomes to severe the contacts will eventually “weld” together producing a
short circuit condition and possible damage to the circuit they are controlling. If now the contact
resistance has increased due to arcing to say 1Ω’s the volt drop across the contacts for the same
load current increases to 1 x 10 = 10 volts dc. This high voltage drop across the contacts may be
unacceptable for the load circuit especially if operating at 12 or even 24 volts, then the faulty
relay will have to be replaced.
To reduce the effects of contact arcing and high “On-resistances”, modern contact tips are made
of, or coated with, a variety of silver based alloys to extend their life span as given in the
following table.
Where:
C is the Common terminal
NO is the Normally Open contact
NC is the Normally Closed contact
Electromechanical relays are also denoted by the combinations of their contacts or switching
elements and the number of contacts combined within a single relay. For example, a contact
which is normally open in the de-energised position of the relay is called a “Form A contact” or
make contact. Whereas a contact which is normally closed in the de-energised position of the
relay is called a “Form B contact” or break contact.
When both a make and a break set of contact elements are present at the same time so that the
two contacts are electrically connected to produce a common point (identified by three
connections), the set of contacts are referred to as “Form C contacts” or change-over contacts. If
no electrical connection exists between the make and break contacts it is referred to as a double
change-over contact.
One final point to remember about using electrical relays. It is not advisable at all to connect
relay contacts in parallel to handle higher load currents. For example, never attempt to supply a
10A load with two relay contacts in parallel that have 5A contact ratings each, as the
mechanically operated relay contacts never close or open at exactly the same instant of time. The
result is that one of the contacts will always be overloaded even for a brief instant resulting in
premature failure of the relay over time.
Also, while electrical relays can be used to allow low power electronic or computer type circuits
to switch relatively high currents or voltages both “ON” or “OFF”. Never mix different load
voltages through adjacent contacts within the same relay such as for example, high voltage AC
(240v) and low voltage DC (12v), always use separate relays for safety.
One of the more important parts of any electrical relay is its coil. This converts electrical current
into an electromagnetic flux which is used to mechanically operate the relays contacts. The main
problem with relay coils is that they are “highly inductive loads” as they are made from coils of
wire. Any coil of wire has an impedance value made up of resistance ( R ) and inductance ( L ) in
series (LR Series Circuit).
As the current flows through the coil a self induced magnetic field is generated around it. When
the current in the coil is turned “OFF”, a large back emf (electromotive force) voltage is
produced as the magnetic flux collapses within the coil (transformer theory). This induced
reverse voltage value may be very high in comparison to the switching voltage, and may damage
any semiconductor device such as a transistor, FET or micro-controller used to operate the relay
coil.
One way of preventing damage to the transistor or any switching semiconductor device, is to
connect a reverse biased diode across the relay coil.
When the current flowing through the coil is switched “OFF”, an induced back emf is generated
as the magnetic flux collapses in the coil.
This reverse voltage forward biases the diode which conducts and dissipates the stored energy
preventing any damage to the semiconductor transistor.
When used in this type of application the diode is generally known as a Flywheel Diode, Free-
wheeling Diode and even Fly-back Diode, but they all mean the same thing. Other types of
inductive loads which require a flywheel diode for protection are solenoids, motors and inductive
coils.
As well as using flywheel Diodes for protection of semiconductor components, other devices
used for protection include RC Snubber Networks, Metal Oxide
Varistors or MOV and Zener Diodes.
Linear Solenoid
Linear solenoid’s basically consist of an electrical coil wound around a cylindrical tube with a
ferro-magnetic actuator or “plunger” that is free to move or slide “IN” and “OUT” of the coils
body. Solenoids can be used to electrically open doors and latches, open or close valves, move
and operate robotic limbs and mechanisms, and even actuate electrical switches just by
energising its coil.
Solenoids are available in a variety of formats with the more common types being the linear
solenoid also known as the linear electromechanical actuator, (LEMA) and the rotary solenoid.
Both types of solenoid, linear and rotational are available as either a holding (continuously
energised) or as a latching type (ON-OFF pulse) with the latching types being used in either
energised or power-off applications. Linear solenoids can also be designed for proportional
motion control were the plunger position is proportional to the power input.
When electrical current flows through a conductor it generates a magnetic field, and the direction
of this magnetic field with regards to its North and South Poles is determined by the direction of
the current flow within the wire. This coil of wire becomes an “Electromagnet” with its own
north and south poles exactly the same as that for a permanent type magnet.
The strength of this magnetic field can be increased or decreased by either controlling the
amount of current flowing through the coil or by changing the number of turns or loops that the
coil has. An example of an “Electromagnet” is given below.
Rotary Solenoids
Most electromagnetic solenoids are linear devices producing a linear back and forth force or
motion. However, rotational solenoids are also available which produce an angular or rotary
motion from a neutral position in either clockwise, anti-clockwise or in both directions (bi-
directional).
Rotary Solenoid
Rotary solenoids can be used to replace small DC motors or stepper motors were the angular
movement is very small with the angle of rotation being the angle moved from the start to the
end position.
Commonly available rotary solenoids have movements of 25, 35, 45, 60 and 90o as well as
multiple movements to and from a certain angle such as a 2-position self restoring or return to
zero rotation, for example 0-to-90-to-0o, 3-position self restoring, for example 0oto +45o or 0o to -
45o as well as 2-position latching.
Rotary solenoids produce a rotational movement when either energised, de-energised, or a
change in the polarity of an electromagnetic field alters the position of a permanent magnet rotor.
Their construction consists of an electrical coil wound around a steel frame with a magnetic disk
connected to an output shaft positioned above the coil.
When the coil is energised the electromagnetic field generates multiple north and south poles
which repel the adjacent permanent magnetic poles of the disk causing it to rotate at an angle
determined by the mechanical construction of the rotary solenoid.
Rotary solenoids are used in vending or gaming machines, valve control, camera shutter with
special high speed, low power or variable positioning solenoids with high force or torque are
available such as those used in dot matrix printers, typewriters, automatic machines or
automotive applications etc.
Solenoid Switching
Generally solenoids either linear or rotary operate with the application of a DC voltage, but they
can also be used with AC sinusoidal voltages by using full wave bridge rectifiers to rectify the
supply which then can be used to switch the DC solenoid. Small DC type solenoids can be easily
controlled using Transistor or MOSFET switches and are ideal for use in robotic applications.
However, as we saw previously with electromechanical relays, linear solenoids are “inductive”
devices so some form of electrical protection is required across the solenoid coil to prevent high
back emf voltages from damaging the semiconductor switching device. In this case the standard
“Flywheel Diode” is used, but you could equally use a zener diode or small value varistor.
Here, the switch contacts are closed shorting out the resistance and passing the full supply
current directly to the solenoid coils windings. Once energised the contacts which can be
mechanically connected to the solenoids plunger action open connecting the holding
resistor, RH in series with the solenoids coil. This effectively connects the resistor in series with
the coil.
By using this method, the solenoid can be connected to its voltage supply indefinitely
(continuous duty cycle) as the power consumed by the coil and the heat generated is greatly
reduced, which can be up to 85 to 90% using a suitable power resistor. However, the power
consumed by the resistor will also generate a certain amount of heat, I2R (Ohm’s Law) and this
also needs to be taken into account.
Then if a solenoid is switched “ON” or energised for 30 seconds and then switched “OFF” for 90
seconds before being re-energised again, one complete cycle, the total “ON/OFF” cycle time
would be 120 seconds, (30+90) so the solenoids duty cycle would be calculated as 30/120 secs or
25%. This means that you can determine the solenoids maximum switch-ON time if you know
the values of duty cycle and switch-OFF time.
For example, the switch-OFF time equals 15 secs, duty cycle equals 40%, therefore switch-ON
time equals 10 secs. A solenoid with a rated Duty Cycle of 100% means that it has a continuous
voltage rating and can therefore be left “ON” or continuously energised without overheating or
damage.
In this tutorial about solenoids, we have looked at both the Linear Solenoid and the Rotary
Solenoid as an electromechanical actuator that can be used as an output device to control a
physical process. In the next tutorial we will continue our look at output devices
called Actuators, and one that converts a electrical signal into a corresponding rotational
movement again using electromagnetism. The type of output device we will look at in the next
tutorial is the DC Motor.
http://www.electronics-tutorials.ws/ for more details