IoT (21CS735) Module-2
IoT (21CS735) Module-2
MODULE –2
SYLLABUS
Page 1
Internet of Things [21CS735]
Questions
1 What is IoT?
2 What is sensor?
3 What is Actuator?
4 Difference between Transducers, sensors &Actuators.
Page 2
Internet of Things [21CS735]
SESSION - 2
2.2 SENSORS
Sensors are devices that can measure, or quantify, or respond to the ambient changes in
their environment or within the intended zone of their deployment. They generate
responses to external stimuli or physical phenomenon through characterization of the input
functions (which are these external stimuli) and their conversion into typically electrical
signals.
For example, heat is converted to electrical signals in a temperature sensor, or atmospheric
pressure is converted to electrical signals in a barometer.
A sensor is only sensitive to the measured property (e.g., a temperature sensor only senses
the ambient temperature of a room).
It is insensitive to any other property besides what it is designed to detect (e.g., a
temperature sensor does not bother about light or pressure while sensing the temperature).
a sensor does not influence the measured property (e.g., measuring the temperature does
not reduce or increase the temperature).
Figure 2.1 shows the simple outline of a sensing task. Here, a temperature sensor keeps on
checking an environment for changes. In the event of a fire, the temperature of the
environment goes up. The temperature sensor notices this change in the temperature of the
room and promptly communicates this information to a remote monitor via the processor.
Page 3
Internet of Things [21CS735]
Power Requirements:
The way sensors operate decides the power requirements that must be provided for an IoT
implementation.
Some sensors need to be provided with separate power sources for them to function,
whereas some sensors do not require any power sources.
Depending on the requirements of power, sensors can be of two types.
i) Active:
Active sensors do not require an external circuitry or mechanism to provide it with
power.
It directly responds to the external stimuli from its ambient environment and converts
it into an output signal.
For example, a photodiode converts light into electrical impulses. ‘
ii) Passive:
Passive sensors require an external mechanism to power them up.
The sensed properties are modulated with the sensor’s inherent characteristics to
generate patterns in the output of the sensor.
For example, a thermistor’s resistance can be detected by applying voltage difference
across it or passing a current through it.
Output:
The output of a sensor helps in deciding the additional components to be integrated with
an IoT node or system. Typically, almost all modern-day processors are digital; digital
sensors can be directly integrated to the processors.
The integration of analog sensors to these digital processors or IoT nodes requires
additional interfacing mechanisms such as analog to digital converters (ADC), voltage
level converters, and others.
Sensors are broadly divided into two types, depending on the type of output generated from
these sensors, as follows.
i) Analog:
Analog sensors generate an output signal or voltage, which is proportional (linearly or
non-linearly) to the quantity being measured and is continuous in time and amplitude.
Physical quantities such as temperature, speed, pressure, displacement, strain, and
others are all continuous and categorized as analog quantities.
For example, a thermometer or a thermocouple can be used for measuring the
temperature of a liquid (e.g., in household water heaters).
These sensors continuously respond to changes in the temperature of the liquid.
ii) Digital:
These sensors generate the output of discrete time digital representation (time, or
amplitude, or both) of a quantity being measured, in the form of output signals or
voltages.
Page 4
Internet of Things [21CS735]
Typically, binary output signals in the form of a logic 1 or a logic 0 for ON or OFF,
respectively are associated with digital sensors.
The generated discrete (non-continuous) values may be output as a single “bit” (serial
transmission), eight of which combine to produce a single “byte” output (parallel
transmission) in digital sensors.
Measured Property:
The property of the environment being measured by the sensors can be crucial in deciding
the number of sensors in an IoT implementation.
Some properties to be measured do not show high spatial variations and can be quantified
only based on temporal variations in the measured property, such as ambient temperature,
atmospheric pressure, and others.
Whereas some properties to be measured show high spatial as well as temporal variations
such as sound, image, and others.
Depending on the properties to be measured, sensors can be of two types.
i) Scalar:
Scalar sensors produce an output proportional to the magnitude of the quantity being
measured.
The output is in the form of a signal or voltage.
Scalar physical quantities are those where only the magnitude of the signal is sufficient
for describing or characterizing the phenomenon and information generation.
Examples of such measurable physical quantities include color, pressure, temperature,
strain, and others.
A thermometer or thermocouple is an example of a scalar sensor that has the ability to
detect changes in ambient or object temperatures (depending on the sensor’s
configuration).
Factors such as changes in sensor orientation or direction do not affect these sensors
(typically).
ii) Vector:
Vector sensors are affected by the magnitude as well as the direction and/or orientation
of the property they are measuring.
Physical quantities such as velocity and images that require additional information
besides their magnitude for completely categorizing a physical phenomenon are
categorized as vector quantities.
Measuring such quantities are undertaken using vector sensors. For example, an
electronic gyroscope, which is commonly found in all modern aircraft, is used for
detecting the changes in orientation of the gyroscope with respect to the Earth’s
orientation along all three axes.
Page 5
Internet of Things [21CS735]
Questions
1 What are the types of sensor based on power?
2 Differentiate between scalar and vector sensors
3 What is active and passive sensor types?
4 What is anlog and digital sensor types?
Page 6
Internet of Things [21CS735]
SESSION - 3
2.3 SENSOR CHARACTERISTICS
All sensors can be defined by their ability to measure or capture a certain phenomenon and
report them as output signals to various other systems.
Even within the same sensor type and class, sensors can be characterized by their ability to
sense the phenomenon based on the following three fundamental properties. •
i) Sensor Resolution:
The smallest change in the measurable quantity that a sensor can detect is referred to
as the resolution of a sensor.
For digital sensors, the smallest change in the digital output that the sensor is capable
of quantifying is its sensor resolution.
The more the resolution of a sensor, the more accurate is the precision. A sensor’s
accuracy does not depend upon its resolution.
For example, a temperature sensor A can detect up to 0.5 ◦ C changes in temperature;
whereas another sensor B can detect up to 0.25◦ C changes in temperature. Therefore,
the resolution of sensor B is higher than the resolution of sensor A.
ii) Sensor Accuracy:
The accuracy of a sensor is the ability of that sensor to measure the environment of a
system as close to its true measure as possible.
For example, a weight sensor detects the weight of a 100 kg mass as 99.98 kg. We can
say that this sensor is 99.98% accurate, with an error rate of ±0.02%.
iii) Sensor Precision:
The principle of repeatability governs the precision of a sensor.
Only if, upon multiple repetitions, the sensor is found to have the same error rate, can
it be deemed as highly precise.
For example, consider if the same weight sensor described earlier reports
measurements of 98.28 kg, 100.34 kg, and 101.11 kg upon three repeat measurements
for a mass of actual weight of 100 kg.
Here, the sensor precision is not deemed high because of significant variations in the
temporal measurements for the same object under the same conditions.
Page 7
Internet of Things [21CS735]
As the quality of the measurement obtained from a sensor is dependent on a large number
of factors, there are a few primary considerations that must be incorporated during the
sensing of critical systems.
In the event of a sensor’s output signal going beyond its designed maximum and minimum
capacity for measurement, the sensor output is truncated to its maximum or minimum
value, which is also the sensor’s limits.
The measurement range between a sensor’s characterized minimum and maximum values
is also referred to as the fullscale range of that sensor.
Under real conditions, the sensitivity of a sensor may differ from the value specified for
that sensor leading to sensitivity error. This deviation is mostly attributed to sensor
fabrication errors and its calibration.
If the output of a sensor differs from the actual value to be measured by a constant, the
sensor is said to have an offset error or bias. For example, while measuring an actual
temperature of 0 ◦ C, a temperature sensor outputs 1.1 ◦ C every time. In this case, the
sensor is said to have an offset error or bias of 1.1 ◦ C.
Similarly, some sensors have a non-linear behavior. If a sensor’s transfer function (TF)
deviates from a straight line transfer function, it is referred to as its non-linearity. The
amount a sensor’s actual output differs from the ideal TF behavior over the full range of
the sensor quantifies its behavior. Most sensors have linear behavior.
If the output signal of a sensor changes slowly and independently of the measured property,
this behavior of the sensor’s output is termed as drift. Physical changes in the sensor or its
material may result in long-term drift, which can span over months or years. Noise is a
temporally varying random deviation of signals
In contrast, if a sensor’s output varies/deviates due to deviations in the sensor’s previous
input values, it is referred to as hysteresis error.
The present output of the sensor depends on the past input values provided to the sensor.
Typically, the phenomenon of hysteresis can be observed in analog sensors, magnetic
sensors, and during heating of metal strips.
Focusing on digital sensors, if the digital output of a sensor is an approximation of the
measured property, it induces quantization error.
This error can be defined as the difference between the actual analog signal and its closest
digital approximation during the sampling stage of the analog to digital conversion.
Similarly, dynamic errors caused due to mishandling of sampling frequencies can give
rise to aliasing errors. Aliasing leads to different signals of varying frequencies to be
represented as a single signal in case the sampling frequency is not correctly chosen,
resulting in the input signal becoming a multiple of the sampling rate.
Finally, the environment itself plays a crucial role in inducing sensorial deviations. Some
sensors may be prone to external influences, which may not be directly linked to the
property being measured by the sensor. This sensitivity of the sensor may lead to deviations
in its output values.
Page 8
Internet of Things [21CS735]
For example, as most sensors are semiconductorbased, they are influenced by the
temperature of their environment.
Questions
Page 9
Internet of Things [21CS735]
SESSION - 4
A simple scalar temperature sensing of a fire detection event is shown in Figure 2.3(a)
Figures 2.2(b), 2.2 (d), 2.2 (e), 2.2 (f), 2.2 (g), 2.2 (h), 2.2 (i), and 2.2 (j) show scalar
sensors.
Fig 2.2 Some common commercially available sensors used for IoT-based sensing applications
Page 10
Internet of Things [21CS735]
Fig2.3
Fig 2.3b
A simple camera-based multimedia sensing using surveillance as an example is shown in
Figure 2.3(b)
Page 11
Internet of Things [21CS735]
various properties of that environment at any instant of time, and temporally map the
collected information to generate new information.
For example, in an agricultural field, it is required to measure the soil conditions at regular
intervals of time to determine plant health. Sensors such as soil moisture and soil
temperature are deployed underground to estimate the soil’s water retention capacity and
the moisture being held by the soil at any instant of time.
However, this setup only determines whether the plant is getting enough water or not.
There may be a host of other factors besides water availability, which may affect a plant’s
health.
The additional inclusion of a camera sensor with the plant may be able to determine the
actual condition of a plant by additionally determining the color of leaves.
The aggregate information from soil moisture, soil temperature, and the camera sensor
will be able to collectively determine a plant’s health at any instant of time.
Other common examples of hybrid sensing include smart parking systems, traffic
management systems, and others.
Figure 2.3 (c) shows an example of hybrid sensing, where a camera and a temperature
sensor are collectively used to detect and confirm forest fires during wildlife monitoring.
Questions
Page 12
Internet of Things [21CS735]
SESSION - 5
2.5 SENSING TYPES
Page 13
Internet of Things [21CS735]
Page 14
Internet of Things [21CS735]
If the sensor or the sensor node is so energy inefficient that it requires replenishment of its
energy sources quite frequently, the effort in maintaining the solution and its cost goes up;
whereas its deployment feasibility goes down.
Consider a scenario where sensor nodes are deployed on the top of glaciers. Once deployed,
access to these nodes is not possible. If the energy requirements of the sensor nodes are too
high, such a deployment will not last long, and the solution will be highly infeasible as
charging or changing of the energy sources of these sensor nodes is not an option.
4. Device Size:
Modern-day IoT applications have a wide penetration in all domains of life.
Most of the applications of IoT require sensing solutions which are so small that they do
not hinder any of the regular activities that were possible before the sensor node
deployment was carried out. Larger the size of a sensor node, larger is the obstruction
caused by it, higher is the cost and energy requirements, and lesser is its demand for the
bulk of the IoT applications.
Consider a simple human activity detector. If the detection unit is too large to be carried
or too bulky to cause hindrance to regular normal movements, the demand for this solution
would be low. It is because of this that the onset of wearables took off so strongly. The
wearable sensors are highly energy-efficient, small in size, and almost part of the wearer’s
regular wardrobe.
Questions
Page 15
Internet of Things [21CS735]
SESSION - 6
2.7 ACTUATORS
An actuator can be considered as a machine or system’s component that can affect the
movement or control the said mechanism or the system.
Control systems affect changes to the environment or property they are controlling through
actuators.
The system activates the actuator through a control signal, which may be digital or analog.
It elicits a response from the actuator, which is in the form of some form of mechanical
motion.
The control system of an actuator can be a mechanical or electronic system, a software-
based system (e.g., an autonomous car control system), a human, or any other input. Figure
2.4 shows the outline of a simple actuation system.
A remote user sends commands to a processor. The processor instructs a motor controlled
robotic arm to perform the commanded tasks accordingly. The processor is primarily
responsible for converting the human commands into sequential machine-language
command sequences, which enables the robot to move. The robotic arm finally moves the
designated boxes, which was its assigned task.
Page 16
Internet of Things [21CS735]
Questions
Page 17
Internet of Things [21CS735]
SESSION – 7
2.8 ACTUATOR TYPES
Page 18
Internet of Things [21CS735]
Fig 2.5 Some common commercially available actuators used for IoT-based control
applications
Page 19
Internet of Things [21CS735]
Questions
1 What is Actuator?
2 What is thermal Actuator?
3 What is Hydraulic and pneumatic Actuator?
4 What is mechanical Actuator?
Page 20
Internet of Things [21CS735]
SESSION - 8
2.9ACTUATOR CHARACTERISTICS
The choice or selection of actuators is crucial in an IoT deployment, where a control
mechanism is required after sensing and processing of the information obtained from the
sensed environment.
Actuators perform the physically heavier tasks in an IoT deployment; tasks which require
moving or changing the orientation of physical objects, changing the state of objects, and
other such activities.
The correct choice of actuators is necessary for the long-term sustenance and continuity
of operations, as well as for increasing the lifetime of the actuators themselves.
A set of four characteristics can define all actuators.
1. Weight:
The physical weight of actuators limits its application scope.
For example, the use of heavier actuators is generally preferred for industrial
applications and applications requiring no mobility of the IoT deployment.
In contrast, lightweight actuators typically find common usage in portable systems in
vehicles, drones, and home IoT applications.
It is to be noted that this is not always true.
Heavier actuators also have selective usage in mobile systems, for example, landing
gears and engine motors in aircraft.
2. Power Rating:
This helps in deciding the nature of the application with which an actuator can be
associated.
The power rating defines the minimum and maximum operating power an actuator can
safely withstand without damage to itself. it is indicated as the power-to-weight ratio for
actuators.
For example, smaller servo motors used in hobby projects typically have a maximum rating
of 5 VDC, 500 mA, which is suitable for an operations-driven battery-based power source.
Exceeding this limit might be detrimental to the performance of the actuator and may cause
burnout of the motor.
In contrast to this, servo motors in larger applications have a rating of 460 VAC, 2.5 A,
which requires standalone power supply systems for operations. It is to be noted that
actuators with still higher ratings are available and vary according to application
requirements.
Page 21
Internet of Things [21CS735]
Questions
Page 22