IoT Unit-I
IoT Unit-I
Electrical Engineering
(PEEE5053T)
Unit-I
Transducers, Sensors and Actuators
Introduction and classification of Transducers,
Sensors and Actuators, Types of Sensors: Motion
Detectors, Force Sensors, Temperature and Humidity
Sensors, Light Sensor, Level Sensor, Ultrasonic
Sensor, Current and voltage Sensor, Types of
Actuators, Solenoid, DC Motor, AC Motor and Stepper
motor.
Transducers
• A transducer is any device which converts one form of energy into another.
Examples of common transducers include the following:
1. A microphone converts sound into electrical impulses and a loudspeaker converts
electrical impulses into sound (i.e., sound energy to electrical energy and vice versa).
2. A solar cell converts light into electricity and a thermocouple converts thermal energy
into electrical energy.
3. An incandescent light bulb produces light by passing a current through a filament.
Thus, a light bulb is a transducer for converting electrical energy into optical energy.
4. An electric motor is a transducer for conversion of electricity into mechanical energy
or motion.
• An actuator is a device that actuates or moves something. An actuator uses
energy to provide motion. Therefore, an actuator is a specific type of a
transducer.
Basic Concepts of Transducers
• There are many variables which affect our everyday lives: the
speed of a car, the velocity of the wind, and the temperature in a
home.
• In most situations these variables are continuously monitored. It is
these variables that are the feedback that is used to control the
speed of a car, the operation of an air conditioner, heater levels,
and oven temperatures.
• The elements that sense these variables and convert them to a
usable output are transducers.
Definition
• A transducer is defined as a substance or a
device that converts (or transfers) an input
energy into a different output energy.
• Because of this broad definition, transducers
come in many varieties converting many
different types of energy.
Types of transducers
• Electrochemical Transducers
• pH probe – Converts chemical energy into an electrical energy
• Molecular electric transducer – Converts motion in an electrolytic solution into
electrical energy
• Battery – Converts chemical energy directly into electrical energy
• Fuel cell – Converts the energy from a reaction within a fuel cell to electrical energy
• Electroacoustic
• Loudspeaker – Converts an electrical signal into sound
• Microphone – Converts sound waves in air into an electrical signal
• Hydrophone - Converts sound waves in water into an electrical signal.
• Electromagnetic
• Magnetic cartridge – Converts motion in a magnetic field into an electrical energy
• Generator – Converts motion in a magnetic field into electrical energy
Types of transducers
• Electrostatic Transducers
• Electrometer – Converts static or energy from a vibrating reed into electricity
• Van de Graaf generator – Converts static into high voltage
Types of transducers
• Electromechanical Transducers
• Strain gauge – Converts the deformation (strain) of an object into electrical
resistance
• Galvanometer – Converts the electric current of a coil in a magnetic field into
movement
• Generators – Converts mechanical energy (motion) into electrical energy.
• Motor – Converts electrical energy into mechanical energy
• Photoelectric Transducers
• Cathode ray tube (CRT) –Converts electrical signals into light energy for a
visual output
• Light bulb –Converts electrical energy into visible light and heat (explained in
next section)
• Laser diode – Converts electrical energy into light energy
• Photodiode - Converts light energy into electrical energy
Types of transducers
• Thermoelectric Transducers
• Thermocouple – Converts heat energy into electrical energy
• Temperature sensitive resistor (Thermister) – a variable
resistor affected by temperature changes (heat energy to
electrical energy)
Sensor
• Sensors are fundamental building blocks of IoT networks.
• Sensors are the foundational elements found in smart objects—the
“things” in the Internet of Things
• The words sensors and transducers are widely used in association
with measurement systems. The sensor is an element that
produces signals relating to the quantity that is being measured.
• According to Instrument Society of America, “a sensor is a device
that provides usable output in response to a specified quantity
which is measured.” The word sensor is derived from the original
meaning ‘to perceive.’
• In simple terms, a sensor is a device that detects changes and
events in a physical stimulus and provides a corresponding output
signal that can be measured and/or recorded. Here, the output
signal can be any measurable signal and is generally an electrical
quantity.
• Sensors are devices that perform input function in a system as
they ‘sense’ the changes in a quantity. The best example of a sensor
is mercury thermometer. Here the quantity that is being measured
is heat or temperature. The measured temperature is converted to
a readable value on the calibrated glass tube, based on the
expansion and contraction of liquid mercury.
A sensor: It senses
• More specifically, a sensor measures some physical quantity and
converts that measurement reading into a digital representation.
• That digital representation is typically passed to another device
for transformation into useful data that can be consumed by
intelligent devices or humans
• Sensors are not limited to human-like sensory data.
• They are able to provide an extremely wide spectrum of rich and
diverse measurement data with far greater precision than human
senses
NEED FOR SENSORS
• Sensors are omnipresent. They embedded in our bodies,
automobiles, airplanes, cellular telephones, radios, chemical
plants, industrial plants and countless other applications.
• Sensors in industrial applications being used for process control,
monitoring, and safety, and in medicine being used for diagnostics,
There monitoring, critical care, and public health.
• Sensors can improve the world through diagnostics in medical
applications; improved performance of energy sources like fuel
cells and batteries and solar power; improved health and safety
and security for people; sensors for exploring space and improved
environmental monitoring
NEED FOR SENSORS
• Without the use of sensors, there would be no automation!
• In our day-to-day life we frequently use different types of sensors
in several applications.
• We can find different types of Sensors in our homes, offices, cars
etc. Working to make our lives easier by turning on the lights by
detecting our presence, adjusting the room temperature, detect
smoke or fire, make us delicious coffee and open garage doors as
soon as our car is near the door and many other tasks.
CHARACTERISTICS
1. Range It is the difference between the maximum and minimum
value of the sensed parameter. Temperature range of a
thermocouple is 25-225°C.
2. Resolution The smallest change the sensor can differentiate. It is
also frequently known as the least count of the sensor.
Resolution of an digital sensor is easily determined.
3. Sensitivity It is the ratio of change in output to a unit change of
the input. The sensitivity of digital sensors is closely related to
the resolution. The sensitivity of an analog sensor is the slope of
the output vs input line, or sensor exhibiting truly linear
behaviour has a constant sensitivity over the entire input range.
4. Error Error is the difference between the result of the measurement
and the true value of the quantity being measured. The classification of
errors are as follows:
• Bias errors (systematic errors)
• Precision (Random errors)
Bias errors are present in all measurement made with a given sensor
and cannot be detected (or) removed by statically means.
5. Accuracy It is the difference between measured value and true value.
The accuracy defines the closeness between the actual measured value
and a true value.
6. Precision Precision is the ability to reproduce repeatedly with a given
accuracy.
7. Repeatability The ability of a sensor to give same output for repeated
applications of same input value.
Repeatability = (maximum – minimum values given) X 100 ⁄ full range
8. Impedance It is the ratio of voltage and current flow for sensor. For a
resistive sensor, the impedance Z is same as the resistance R& its unit is
ohms.
ZR = V/I = R
9. Response time Response time is the amount of time required for a
sensor to respond completely to a change in input. It describes the speed
of change in the output on a step-wise change of the measurand.
10. Linearity Percentage of deviation from the best fit linear calibration
curve.
11. Non-Linearity
The nonlinearity
indicates the maximum
deviation of the actual
measured curve of a
sensor from the ideal
curve.
Nonlinearity (%) =
Maximum deviation in
input ⁄ Maximum full scale
input
11. Dead band/time The dead band or dead space of a transducer is
the range of input values for which there is no output. The dead
time of a sensor device is the time duration from the application of
an input until the output begins to respond or change.
DHT11/DHT22
• Besides, they consist of a NTC temperature sensor/Thermistor to
measure temperature. A thermistor is a thermal resistor – a resistor that
changes its resistance with temperature. Technically, all resistors are
thermistors – their resistance changes slightly with temperature – but the
change is usually very very small and difficult to measure.
• Thermistors are made so that the resistance changes drastically with
temperature so that it can be 100 ohms or more of change per degree!
The term “NTC” means “Negative Temperature Coefficient”, which means
that the resistance decreases with increase of the temperature.
• On the other side, there is a small PCB
with an 8-bit SOIC-14 packaged IC. This
IC measures and processes the analog
signal with stored calibration
coefficients, does analog to digital
conversion and spits out a digital signal
with the temperature and humidity.
DHT11 and DHT22 Pinout
Light Sensor
• The light sensor is a passive device that converts the light energy into
an electrical signal output.
• Light sensors are electronic devices that indicates the intensity of
daylight or artificial light.
• Light intensity and full field vision are two important measurements
used in many control applications.
• Phototransistors and photodiodes are some of the more common type
of light intensity sensors.
• A common photoresistor is made of cadmium sulphide whose
resistance is maximum when the sensor is in dark.
• When the photoresistor is exposed to light, its resistance drops in
proportion to the intensity of light.
• Light sensors have several uses in industrial and everyday consumer
applications.
• Light is often measured in Lumens, a which describes how much light is
emitted from a source, and Lux which describe light intensity measured
over a specific area.
• Visible light exists on the electromagnetic radiation spectrum an has a
specific range of wavelengths between about 400-700 nanometers (nm)
long.
• On the smaller end of the spectrum is ultraviolet light (down to about
300nm) and on the longer end of the spectrum is infrared light(up to
about nm).
• Light sensors often detect the intensity of light across a specific range of
wavelengths.
• Sensors that detect the full spectrum of visible light measure light
intensities across all wavelengths between 300-1000 nm.
Types of Light sensors
• Photovoltaic cells:
• Photovoltaic cells, like the name suggests, follows the principle of the
photovoltaic effect for converting light energy directly into electrical
energy.
• These cells produce an electromotive force proportional to the radiant
energy received. The most popular single-junction silicon cells generate a
maximum open-circuit voltage of about 0.5 to 0.6 Volts. Solar cells use
selenium as a photovoltaic material.
• Apart from generating and storing electrical energy, photovoltaic cells also
act as photodetectors. Photo-conductive cells and photo-emissive cells
also provide a similar function.
• Photodiodes:
• Photodiode light sensors are diodes that change light energy into a flow of
electrons. Photodiodes are comparable to the common P-N junction
diodes, but instead of an opaque casing, these diodes have a transparent
lens for focusing light on the P-N junction.
• These diodes are more sensitive towards the light with longer
wavelengths i.e. light belonging to the red and infra-red spectrum than
the visible or ultraviolet spectrum. Silicon and germanium are the most
commonly used materials in such diodes. Since photodiodes are sensitive
to infrared light, they offer a lot of applications in medicine.
• Photo-transistors:
• Photo-transistors can be referred to as photodiodes with amplification.
• Photo-transistors have a reverse biased collector-base P-N junction that
is exposed to the radiant light energy source.
• Photo-transistors are much more (about 50 to 100 times) sensitive
compared to photo-diodes because of amplification.
• Photo-transistors have bipolar NPN transistors with the base region
electrically unconnected.
• The radiant light energy is focused on the base junction by a
transparent lens. Photo-transistors are widely used in mobile phones
and automobiles.
Light Dependent Resistor or photoresistor
• 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.
• 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 Light Dependent Resistor Cell
• 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, R2 is
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.
• 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Ω in the
sun light, to over 10MΩ in absolute darkness with this
variation of resistance being converted into a voltage
variation at VOUT as shown.
Level Sensors
• Level sensors is a device that is designed to monitor, maintain and
measure liquid levels.
• Once the liquid level is detected, the sensor converts the perceived
data into an electrical signal.
• Level sensor are used primarily in the manufacturing and
automotive industries, but they can be found in many household
appliances as well, such as ice makers in refrigerators.
https://youtu.be/EMotg3BQjlI
• Level Sensors can be broken into two classifications;
• Point level measurement
• Continuous level measurement
• Point level measurement indicates when a product is present at a
certain point and continuous level measuring indicates the continuous
level of a product as it rises and falls.
• The sensors for point level indication are:
• Capacitance
• Optical
• Conductivity
• Vibrating (Tuning fork)
• Float Switch
• The sensors for continuous level measuring are:
• Ultrasonic
• Radar (Microwave)
Capacitance Level Sensor
• A capacitance level sensor is a proximity sensor that gives off an electrical field
and detects a level by the effect on its electrical field. These sensors are:
• Small
• Less expensive than other sensors
• Invasive to the product
• Accurate
• Have no moving parts
• However, they do have to be calibrated and will only detect certain liquids.
• Capacitance sensors can be used in liquid storage tanks. A water treatment facility
that has storage tanks would be an ideal use for a capacitance sensor.
Optical Level Sensor
• Optical sensors work by converting light rays into electrical signals which
measure a physical quantity of light then translate it into a measurement.
• These sensors have no moving parts
• They are not affected by high pressure or temperature
• They are small in size
• They can be used in liquid applications
• However, if the lens gets coated or dirty they would require cleaning.
• They can be used as low-level indicators to prevent run dry conditions
when using oil, coolant, or hydraulics.
Conductivity (Resistance) Level Sensor
• A conductivity or resistance sensor uses a probe to read conductivity. The probe
has a pair of electrodes and applies alternating current to them.
• When a liquid covers the probe its electrodes form a part on an electric circuit,
causing current to flow which signals a high or low level.
• The advantages of using a conductivity level sensor are:
• There are no moving parts
• They are low cost
• Fairly easy to use
• The disadvantages are:
• They are invasive (meaning they must touch the product being sensed)
• They only sense conductive liquids
• The probe will erode over time
• Appropriate use for these sensors would
be for signaling high or low levels.
Vibrating (Tuning Fork) Level Sensor
• Sensor use a fork-shaped sensing element with two tines. The fork vibrates
at its natural resonant frequency. As the level changes, the frequency of the
fork will change detecting the level. These sensors are:
• Cost effective and compact
• Invasive to the product, meaning they have to touch the material to sense the level
• Easy to install
• Essentially maintenance-free
• They have unlimited uses based on the material that they can sense. Mining,
food and beverage, and chemical processing industries use these sensors for
their applications.
Float Switch
• Float switches use a float, a device that will raise or lower when a product is applied or
removed, which will open or close a circuit as the level raises or lowers moving the float.
• The advantages of a float switch are:
• They are non powered device
• They provide a direct indication
• They are inexpensive
• The disadvantages are:
• They are invasive to the product
• They have moving parts
• They can be large in size
• Float switches will only give an indication for a high or low level, they cannot measure a
variable level. A great use for float switches is in liquid storage tanks for high or low-
level indication.
Continuous Level Measurement Sensors
• Ultrasonic level sensors work by emitting and receiving ultrasonic waves. The time it takes for the waves to
reflect back is how distance is measured.
• The advantage of using this type of sensor is that:
• These sensors have no moving parts
• They are compact
• They are reliable
• Non-invasive (Non-contact)
• Unaffected by the properties of the material they are sensing
• Self-cleaning because of the vibrations they give off
• The disadvantage of using this type of sensor is that:
• They can be expensive
• In some situations, the environment can have a negative effect on them
• An example application is a hot asphalt tank in a shingle manufacturing plant.
The ultrasonic sensor would be placed in the top of the tank away from the hot asphalt and used to
sense the level in order to send a fill request for the tank.
Ultrasonic Sensor
• An ultrasonic sensor is an instrument that measures the
distance to an object using ultrasonic sound waves.
• An ultrasonic sensor uses a transducer to send and
receive ultrasonic pulses that relay back information
about an object’s proximity.
• High-frequency sound waves reflect from boundaries to
produce distinct echo patterns.
How Ultrasonic Sensors Work.
• Ultrasonic sensors emit short, high-frequency sound pulses at regular
intervals. These propagate in the air at the velocity of sound.
• If they strike an object, then they reflected back as an echo signal to the
sensor, which itself computes the distance to the target based on the time-
span between emitting the signal and receiving the echo.
• Ultrasonic sensor are excellent at suppressing background interference.
Virtually all materials which reflect sound can be detected, regardless of
their colour. Even transparent materials or thin foils represent no problem
for an ultrasonic sensor.
• Microsonic ultrasonic sensors are suitable for target distances from 20 mm
to 10 m and as they measure the time of flight they can ascertain a
measurement with pinpoint accuracy.
• Some of sensors can even resolve the signal to an accuracy of 0.025 mm.
• Ultrasonic sensors can see through dust-laden air and ink mists. Even thin
deposits on the sensor membrane do not impair its function.
Timing Diagram of Ultrasonic Sensor
1. First, need to transmit trigger pulse of at
least 10 us to the HC-SR04 Trig Pin.
2. Then the HC-SR04 automatically sends
Eight 40 kHz sound wave and wait for
rising edge output at Echo pin.
3. When the rising edge capture occurs at
Echo pin, start the Timer and wait for a
falling edge on Echo pin.
4. As soon as the falling edge captures at the
Echo pin, read the count of the Timer.
This time count is the time required by
the sensor to detect an object and return
back from an object.
How to calculate Distance?
• If you need to measure the specific distance from your sensor, this
can be calculated based on this formula:
• We know that, Distance= Speed* Time/2.
• The speed of sound waves is 343 m/s.
So,
• Total Distance= (343 * Time of hight(Echo) pulse)/2
• Total distance is divided by 2 because the signal travels from HC-
SR04 to object and returns to the module HC-SR-04.
https://www.maxbotix.com/wp-content/uploads/2020/03/How-Ultrasonic-Sensors-Work.gif
https://wokwi.com/projects/345682622142218835
Current Sensor
• Hall Effect Sensors are transducer type components that can
convert magnetic information into electrical signals for
subsequent electronic circuit processing. Generally, current
sensors use the Hall Effect to convert current inputs into voltage
outputs.
• In the Hall effect, electrons from an electric current flow through a
magnetic field plate. The field then causes the electrons to "push"
to one side of the plate and produce a voltage difference between
the two sides. The difference in voltage from the side of the plate is
the output of the sensor.
https://youtu.be/32Vw40nUSwA https://youtu.be/RrQA_-YETJw
1. ACS712 is a current sensor that can operate on both AC and DC. This sensor operates
at 5V and produces an analog voltage output proportional to the measured current.
This tool consists of a series of precision Hall sensors with copper lines.
2. The output of this instrument has a positive slope when the current increases
through the copper primary conduction path (from pins 1 and 2 to pins 3 and 4). The
internal resistance of the conduction path is 1.2 mΩ
3. This sensor has an output voltage of Vcc x
0.5 = 2.5 at the input current 0A and a 5V
Vcc power supply. There are three types
based on the readable current range, ± 5A, ±
20A, and ± 30A with output sensitivity of
each type of 185mV / A, 100mV / A, and
66mV / A respectively.
• The output of this current
sensor is analog, so to read it, we
can directly measure the output
voltage using voltmeter or
measure it by using a
microcontroller like Arduino
through Analog Read pin or ADC
pin.
Applications
• The ACS712 sensor can be used in the different types of
application and they are,
• Inverters
• SMPS
• Battery Chargers
• Automotive Applications like Inverters
• Used in industrial, commercial and communication applications.
• Overcurrent fault protection circuit
Voltage Sensor
• Voltage sensor is used to monitor, calculate and determine the
voltage supply.
• This sensor can determine the AC or DC voltage level. The input of
this sensor can be the voltage whereas the output is the switches,
analog voltage signal, a current signal, an audible signal, etc.
• Some sensors provide sine waveforms or pulse waveforms like
output & others can generate outputs like AM (Amplitude
Modulation), PWM (Pulse Width Modulation) or FM (Frequency
Modulation).
• The measurement of these sensors can depend on the voltage
divider.
• This sensor includes input and output. The input side mainly includes two
pins namely positive and negative pins.
• The two pins of the device can be connected to the positive & negative pins
of the sensor.
• The device positive & negative pins can be connected to the positive &
negative pins of the sensor.
• The output of this sensor mainly includes supply voltage (Vcc), ground
(GND), analog o/p data
Pin Name Description
Positive terminal of the External voltage source (0-
VCC
25V)
GND Negative terminal of the External voltage source
S Analog pin connected to Analog pin of Arduino
+ Not Connected
- Ground Pin connected to GND of Arduino
Types of Voltage Sensors
• These sensors are classified into two types like a resistive type sensor and
capacitive type sensor.
1) Resistive Type Sensor
a. This sensor mainly includes two circuits a. The bridge circuit can be
like a voltage divider & bridge circuit. designed with four resistors.
b. The resistor in the circuit works as a One of these resistors can be
sensing element. subjected to the voltage
c. The voltage can be separated into two detector device.
resistors like a reference voltage & b. The change in voltage can be
variable resistor to make a circuit of the directly exhibited. This
voltage divider. Vout = (R1/R1 + R2) * Vin difference alone can be
d. A voltage supply is applied to this amplified but the difference
circuit. The output voltage can be within the voltage divider
decided by the resistance used in the circuit not only amplified.
circuit. So the voltage change can be
amplified.
• Capacitor Type Sensor
a. This type of sensor consists of an insulator and
two conductors within the center. As the
capacitor is power-driven with 5 Volt, then the
flow of current will be there in the capacitor.
b. This can create revulsion of electrons within the
capacitor.
c. The difference in capacitance indicates the
voltage and the capacitor can be connected
within the series.