Unit - 4 22EC602-Embedded Systems & IOT Design
Unit - 4 22EC602-Embedded Systems & IOT Design
2
Please read this disclaimer before
proceeding:
This document is confidential and intended solely for the educational purpose of
RMK Group of Educational Institutions. If you have received this document
through email in error, please notify the system manager. This document
contains proprietary information and is intended only to the respective group /
learning community as intended. If you are not the addressee you should not
disseminate, distribute or copy through e-mail. Please notify the sender
immediately by e-mail if you have received this document by mistake and delete
this document from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action in reliance on
the contents of this information is strictly prohibited.
3
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
Department : ECE
Batch/Year/SEM : 2022-2026/ III/VI
Created by : Dr.V.Vidya Lakshmi,ASP/ECE
: Dr.C.Shobana Nageswari,ASP/ECE
: Ms.S.Rajalakshmi,AP/ECE
Date : 20.01.2025
4
Table of Contents
S.No Contents Page
Number
1 Course Objectives 7
2 Pre Requisites 8
3 Syllabus 9
4 Course Outcomes 11
5 CO- PO/PSO Mapping 12
6 Unit IV- Embedded Devices for IOT 13
6.4 Assignments 69
6.6 Part B Qs 74
5
5
S.No Contents Page
Number
7 Assessment Schedule 79
6
6
1.Course Objectives
The student should be made to:
• To be exposed to the basic concepts of real time operating system and scheduling.
• To implement projects based on case studies using Embedded systems and IoT.
7
2. Pre Requisites
8
3. Syllabus
LTPC 3024
Complex Systems and Microprocessors –Embedded system design process –Formalisms for
System Design - Design example: Model train controller- Design methodologies- Design flows-
Designing with computing platforms.
LIST OF EXPERIMENTS
1. Study of ARM Evaluation system.
2. Interface 8 LEDs using ARM Microcontroller..
ARM Architecture Versions – ARM 7 Architecture – Instruction Set –Features of the LPC 214X
Family – Peripherals and Programing – The Timer Unit – Pulse Width Modulation Unit – UART -
Block Diagram of ARM Cortex M3 MCU.
LIST OF EXPERIMENTS
3. Interface Pulse width modulation using ARM Microcontroller.
4. Implementing interrupt in ARM processor
Introduction – Multiple tasks and multiple processes – Multirate systems- Preemptive real time
operating systems- Priority based scheduling- Example Real time operating systems - POSIX -
Windows CE. Networks for embedded Systems – CAN & I2C.
LIST OF EXPERIMENTS
5. Interfacing EPROM using ARM Microcontroller
6. Interfacing Stepper using ARM Microcontroller
9
UNIT IV EMBEDDED DEVICES FOR IOT 15
LIST OF EXPERIMENTS
7. Interfacing LED and switch with Rasperry-Pi
8. Interfacing a Light sensor (LDR) with Rasperry-Pi
Basic building blocks of an IoT device and endpoints- Raspberry Pi -Board - Linux on
Raspberry Pi - Raspberry Pi Interfaces -Programming Raspberry Pi with Python- Clouds for
IoT - Case study- Home automation - Environment-Agriculture.
LIST OF EXPERIMENTS
9. IoT based Home automation.
10. Handling of mosquitto or Paho for handing of MQTT operations
TEXT BOOKS:
10
4. Course Outcomes
Highest
CO
Course Outcomes Cognitive
No
Level
CO6 Construct a real time application using IoT based on case study. K3
11
5. CO- PO/PSO Mapping
Program
Program Outcomes Specific
Course Level Outcomes
Outcomes of CO
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO 1 PSO 2 PSO 3
[K3] [K4] [K4] [K5] [K6] [A3] [A2] [A3] [A3] [A3] [A3] [A2] [K5] [K5] [K3]
CO1 K2 2 1 - 1 - - - - - - - 1 - - 2
CO2 K2 3 2 2 2 - - - - - - - 1 2 - 3
CO3 K3 2 3 - 1 - - - - - - - 1 - - -
CO4 K2 2 1 - 1 - - - - - - - 1 - - 2
CO5 K3 3 2 2 2 - - - - - - - 1 - - 3
CO6 K3 2 1 - 1 - - - - - - - 1 - - 2
CO 3 2 1 2 - - - - - - - 1 1 - 2
12
Unit IV- Embedded Devices for IOT 15
Sensors technology and actuators for IoT- IoT Protocols- IEEE 802.15.4-
LIST OF EXPERIMENTS
13
6.1 Lecture Plan
Unit IV - Embedded Devices for IOT
S. No Prop Actual Perta Reas
N . osed Date ining Taxon Mode of on
o of Date CO omy Delivery for
Topic Pe level Devia
rio tion
ds
14 14
6.2 Activity based learning - I
Just A Minute
The activity ‘Just a minute or JAM’ is an impromptu speech where the speaker is
supposed to express the idea (s) on the given topic, within the duration of a minute.
1. IOT
2. Actuator
3. Sensor
4. COAP
5. HTTP
6. MQTT
7. OSI Layer
8. LoRaWAN
9. AWS
10.Cloud
15
6.2 Activity based learning - II
Unit IV - Embedded Devices for IOT
16
1
7
Activity: OSI Model Layer Cake
❖ Role-Play Scenario:
Engage participants in a role-play scenario where they act out the communication
process between two devices using the OSI model layers. One participant can play
the role of the sender (starting from the Application layer) and the other as the
receiver (ending at the Physical layer). This interactive activity will help participants
understand how data is encapsulated and de-encapsulated as it moves through the
layers.
❖ Discussion and Analysis:
Facilitate a group discussion to review the activity and reinforce the concepts
learned. Encourage participants to share their insights, challenges, and observations
during the role-play.
❖ Real-world Examples:
Provide examples of network devices, protocols, and technologies associated with
each OSI layer to connect the theoretical knowledge to practical applications.
❖ Q&A Session:
Allow participants to ask questions and clarify any doubts they may have about the
OSI model and its layers.
❖ Conclusion:
Summarize the key takeaways from the activity and reinforce the importance of
understanding the OSI model for effective network troubleshooting, design, and
communication. By creating a tangible representation of the OSI layers, participants
will gain a deeper appreciation for the role each layer plays in network operations.
1
8
6.3.LECTURE NOTES
Unit IV- Embedded Devices for IOT
4.1 Introduction to IoT
• Internet of Things (IoT) comprises things that have unique identities and are
connected to the internet.
• Existing devises , such as networked computers or 4G enabled mobile phones
already have some form of unique identities and are also connected to the
internet, the focus on IoT in the configuration, control and networking via the
internet of devices or things , that are traditionally not associated with the
Internet. These include devices such as thermostats, utility meters, a blue tooth-
connected headset, irrigation pumps and sensor or control circuits for an electric
car’s engine
• Experts forecast that by the year 2020 there will be a total of 50 billion devices/
things connected to the internet.
• The scope of IoT is not limited to just connected things(Devices, appliance,
machines) to the Internet.
• Applications on IoT networks extract and create information from lower level data
by filtering, processing , categorizing, condensing and contextualizing the data.
• The information obtained is then organized and structured to infer knowledge
about the system and or its user, its environment and its operations and progress
towards its objectives, allowing a smarter performance.
Characteristics:
Dynamic and self-Adapting:
IoT devices and systems may have the capability to dynamically adapt with the
changing contexts and take actions based on their operating condition. Ex:
Surveillance cameras can adapt their modes based on whether it is day or night.
Self – Configuring:
IoT devices may have self-Configuring capability allowing a large number of devices
to work together to provide certain functionality .
Interoperable communication protocols:
IoT Devices may support a number of interoperable communication protocols and
can communicate with other devices and also with the infrastructure.
Unique Identity:
Each IoT devices has a unique identity and a unique identifier. IPaddress, URI). IoT
systems may have intelligent interfaces which adapt based on the context, allow
communication with users and the environment contexts.
Integrated into information network:
IoT devices are usually integrated into the information network that allows them to
communicate and exchange data with other devices and systems.
The “Things” in IoT usually refers to IoT devices which have unique identities and can
perform remote sensing, Actuating and monitoring capabilities. IoT devices can exchange
data with other connected devices and applications (directly or indirectly), or collect data
from other devices and process the data locally or send the data to Centralized servers or
cloud based applications back ends for processing the data or from some task locally and
other task within the IoT infrastructure, based on temporal and space constraints (ie :
Memory, processing calibrators, communication latencies and speed and deadlines).
An IoT device may consist of several interfaces connections to other devices, both wired
and wireless. These include I)IoT interfaces for sensors II) interfaces for internet
connectivity III) memory and storage interfaces IV) audio video interfaces. An IoT Device
can collect various types of data from the on-board or attached sensors, such as
temperature e , humidity, light intensity
An IoT device may consist of several interfaces connections to other devices, both wired
and wireless. These include I)IoT interfaces for sensors II) interfaces for internet
connectivity III) memory and storage interfaces IV) audio video interfaces. An IoT Device
can collect various types of data from the attached sensors, such as temperature e ,
humidity, light intensity
1
9
4.1.3 IoT ARCHITECTURAL VIEW:
An IoT system has multiple levels .These levels are also known as tiers. A model enables
conceptualisation of a framework. A reference model can be used to depict building
blocks, successive interaction and integration. An example is CISCO’s presentation of
reference model comprising seven levels (Figure 4.2).
2
0
21
Sensors are of two types. The first type gives analog inputs to the control unit. Examples
are thermistor, photoconductor, pressure gauge and Hall sensor. The second type gives
digital inputs to the control unit. Examples are touch sensor, proximity sensor, metal
sensor, traffic presence sensor, rotator encoder for measuring angles and linear encoders
for measuring linear displacements.
Control Units
Most commonly used control unit in IoT consists of a Microcontroller Unit (MCU) or a
custom chip. A microcontroller is an integrated chip or core in a VLSI or SoC. Popular
microcontrollers are ATmega 328, ATMega 32u4, ARM Cortex and ARM LPC. An MCU
comprises a processor, memory and several other hardware units which are interfaced
together. It also has firmware, timers, interrupt controllers and functional IO units.
Additionally, an MCU has application-specific functional circuits designed as per the specific
version of a given microcontroller family. For example, it may possess Analog to Digital
Converters (ADC) and Pulse Width Modulators (PWM).
Communication Module
A communication module consists of protocol handlers, message queue and message
cache. A device message-queue inserts the messages in the queue and deletes the
messages from the queue in a first-in first-out manner. A device message-cache stores the
received messages. Representational State Transfer (REST) architectural style can be used
for HTTP access by GET, POST, PUT and DELETE methods for resources and building web
services. Communication protocols and REST style.
Software
IoT software consists of two components—software at the IoT device and software at the
IoT server. Figure 1.4 shows the software components for the IoT device hardware and
server.
Middleware
OpenIoT is an open source middleware. It enables communication with sensor clouds as
well as cloud-based ‘sensing as a service’. IoTSyS is a middleware which enables
provisioning of communication stack for smart devices using IPv6, oBIX, 6LoWPAN, CoAP
and multiple standards and protocols. The oBIX is standard XML and web services protocol
oBIX (Open Building Information Xchange).
2. Scalability
•Design systems to accommodate growth in the number of devices and data volume.
•Use cloud-based solutions and distributed architectures to handle increasing loads.
•Ensure scalability in both hardware and software.
4. Energy Efficiency
•Design devices to operate with minimal power consumption, especially for battery-
operated devices.
•Use energy-efficient communication protocols (e.g., Zigbee, LoRaWAN).
•Implement sleep modes and power management techniques.
5. Reliability
•Ensure devices and systems function correctly under varying conditions.
•Include redundancy and failover mechanisms to handle failures gracefully.
•Test extensively to identify and resolve potential issues.
6. User-Centric Design
•Focus on creating intuitive and user-friendly interfaces.
•Provide clear documentation and setup instructions for users.
•Ensure devices integrate seamlessly into users' environments.
7. Real-Time Operation
•Design systems to process and respond to data in real-time when necessary.
•Use low-latency communication methods for critical applications.
23
8. Modularity and Flexibility
•Use modular components to allow easy upgrades and customization.
•Enable flexibility in deployment, such as support for different connectivity options
(e.g., Wi-Fi, cellular, Ethernet).
9. Cost-Effectiveness
•Balance performance with cost to ensure affordability.
•Use mass-produced components and open-source solutions where possible.
•10. Sustainability
24
4.3 Sensors technology and actuators for IoT
The basic science of sensing and actuation is based on the process of transduction.
Transduction is the process of energy conversion from one form to another. A transducer
is a physical means of enabling transduction. Transducers take energy in any form (for
which it is designed)—electrical, mechanical, chemical, light, sound, and others—and
convert it into another, which may be electrical, mechanical, chemical, light, sound, and
others.
For example, in a public announcement (PA) system, a microphone (input device) converts
sound waves into electrical signals, which is amplified by an amplifier system (a process).
Finally, a loudspeaker (output device) outputs this into audible sounds by converting the
amplified electrical signals back into sound waves.
Above Table outlines the basic terminological differences between transducers, sensors,
and actuators.
25
5.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.
Figure 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
26
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 based on the type of output.
(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
Example: 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.
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.
27
Fig 4.5 Various Sensing Systems
Sensor Characteristics
Sensors can be characterized by their ability to sense the phenomenon based on
the following three
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.
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%
28
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. Hence, the sensor precision is
not deemed high because of significant variations in the temporal measurements for
the same object under the same conditions. Note: The more the resolution of a
sensor, the more accurate is the precision. A sensor’s accuracy does not depend
upon its resolution.
Sensing Types
Sensing can be broadly divided into four different categories based on the nature of
the environment being
sensed and the physical sensors being used to do so (Figure 5.4):
1) scalar sensing:
2) multimedia sensing
3) hybrid sensing
4) virtual sensing
1) Scalar sensing: Scalar sensing encompasses the sensing of features that can be
quantified simply by measuring changes in the amplitude of the measured values
with respect to time. Example ambient temperature, current, atmospheric pressure,
rainfall, light, humidity, flux The sensors used for measuring these scalar quantities
are referred to as scalar sensors, and the act is known as scalar sensing. Refer
Figure 4.6 for example of scalar sensors. A simple scalar temperature
sensing of a fire detection event is shown in Figure
29
Multimedia Sensing: Multimedia sensing encompasses the sensing of features that have a
spatial variance property associated with the property of temporal variance. They are used
for capturing the changes in amplitude of a quantifiable property concerning space (spatial)
as well as time (temporal).
Example images, direction, flow, speed, acceleration, sound, force, mass, energy, and
momentum have both directions as well as a magnitude. They might have different values
in different directions for the same working condition at the same time. The sensors used
for measuring these quantities are known as vector sensors.
Figures 4.6(a) and 4.6(c) are vector sensors. A simple camera-based multimedia sensing
using surveillance as an example is shown in Figure 4.6(b)
Hybrid Sensing: The act of using scalar as well as multimedia sensing at the same time is
referred to as hybrid sensing. In sensors it is necessary to measure vector as well as scalar
properties of an environment at the same time.
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 examples are smart
parking systems, traffic management systems. Figure 4.6(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.
Virtual Sensing: in agriculture domain, there is a need for very dense and large-scale
deployment of sensor nodes spread over a large area for monitoring of parameters like
measuring the soil moisture, soil temperature, and water level.
For example, if the data from A’s field is digitized using an IoT infrastructure and this
system advises him regarding the appropriate watering, fertilizer, and pesticide regimen for
his crops, this advisory can also be used by B for maintaining his crops. In short, A ’s
sensors are being used for actual measurement of parameters; whereas virtual data (which
does not have actual physical sensors but uses extrapolation_x0002_based measurements)
is being used for advising B. This is the virtual sensing paradigm. Figure 4.6(d) shows an
example of virtual sensing.
30
Types of IoT Sensors: Temperature, humidity, proximity.
➢ IoT sensors are hardware components that detect changes in an environment and
collect data, forming the bridge between the physical and digital worlds.
➢ They can measure variables like temperature, pressure, motion, and more, sharing
information across networks to allow devices to interact and respond effectively.
➢ By gathering real-time data, these sensors enable predictive maintenance, automation,
and data-driven insights, making them essential to IoT solutions.
31
There are many different types of sensors, and they come in different shapes and sizes. Here
are 14 of the most common types and uses of sensors.
Temperature sensors
A temperature sensor is used to measure the temperature of an object or an environment. It
works by detecting changes in physical properties (e.g., resistance, voltage, or current) that
change with temperature.
•Common Types:
• Thermocouples: Measure temperature using the voltage difference between two
different metals.
• RTDs (Resistance Temperature Detectors): Use the change in resistance of a material
(typically platinum) with temperature.
• Thermistors: A type of resistor whose resistance varies significantly with temperature.
• Infrared Sensors: Measure the infrared radiation emitted by an object to infer its
temperature.
•Applications:
• Home automation (e.g., smart thermostats).
• Industrial monitoring (e.g., machines or ovens).
• Healthcare (e.g., body temperature monitoring).
32
MEMS Thermal Sensor measures the surface temperature of items without contacting
them when the thermopile component ingests the measure of energy from the object.
sensors can distinguish human presence by detecting changes in human internal heat
level regarding the encompassing temperature.
sensors can identify protests by pinpointing the objective article temperature.
sensors measure temperature without the need to genuinely contact the item.
This permits estimating temperature where it was impractical for contact warm sensors
because of space deficiency.
The sensors can be utilized in a wide scope of uses including FEMS (Factory Energy
Management System).
Applications
Energy
•Solar PV systems
•Ground and air source heat siphons
•Smart meters
•Submetering
•DC the board
Building Motorization and Security
•Lighting
•Ventilation and temperature control
•Safety and security
•Lifts
Home Devices
•Gas and electric boilers
•Domestic devices
33
2.Types of IoT Sensors : Humidity Sensor
Humidity sensors, also known as hygrometers, are essential in IoT systems for
monitoring the moisture content in the air.
These sensors play a crucial role in maintaining optimal environmental conditions in
various applications such as smart homes, agriculture, weather stations, and industrial
settings.
There are several types of humidity sensors used in IoT, each with unique
characteristics and applications.
Each type of sensor is chosen based on the required accuracy, response time, and
application environment.
34
Humidity sensors are essential components in many IoT applications for monitoring and
controlling environmental conditions. These sensors measure the amount of moisture or
water vapor in the air. They are widely used in smart homes, agriculture, weather
stations, HVAC systems, and industrial environments to maintain optimal conditions.
Here are the types of humidity sensors commonly used in IoT applications:
35
3. Thermal Conductivity Humidity Sensors
• Working Principle: These sensors measure the thermal conductivity of the
air, which changes with humidity levels. Since water vapor has different
thermal conductivity compared to dry air, the sensor detects these changes
to determine the humidity.
• Features:
• High accuracy at both low and high humidity levels.
• Typically used for measuring humidity in gases.
• Can be more expensive than capacitive or resistive sensors.
•Applications:
• Industrial applications such as gas flow monitoring.
• Laboratory environments.
• Environmental monitoring.
4. Gravimetric Humidity Sensors
•Working Principle: Gravimetric humidity sensors measure the change in weight of a
material as it absorbs or releases moisture from the surrounding air. These sensors are
often made of a porous material that changes its weight when the moisture content in
the air changes.
•Features:
• Very accurate but usually slow to respond.
• Used in more precise applications.
• Expensive compared to other types of humidity sensors.
•Applications:
• Specialized industrial processes where high precision is needed.
• Laboratory humidity control.
5. Optical Humidity Sensors
•Working Principle: Optical humidity sensors use a hygroscopic material that changes its
optical properties (such as refractive index or absorption) in response to changes in
humidity. These changes can be detected using light sensors.
•Features:
• Non-contact, which makes them useful for specific applications.
• Can be sensitive and provide accurate measurements over time.
• Applications:
• Precision manufacturing (e.g., electronics assembly).
• High-end environmental monitoring.
36
6. Inductive Humidity Sensors
•Working Principle: Inductive humidity sensors operate by detecting changes in the
inductance of a coil when moisture in the air affects the dielectric properties around the
sensor.
•Features:
• Can be used in harsh or hazardous environments.
• Suitable for high-temperature applications.
•Applications:
• Industrial settings with high temperatures.
• Aerospace and automotive industries.
•Working
•Sensor Type •Accuracy •Applications
Principle
•HVAC, weather
•Measures change
•Capacitive •High accuracy stations,
in capacitance.
agriculture
•Consumer
•Measures change •Moderate
•Resistive electronics,
in resistance. accuracy
industry
•Measures change
•Thermal •Gas flow
in thermal •High accuracy
Conductivity monitoring, labs
conductivity.
•Measures change
in weight of a •Very high •Industrial
•Gravimetric
hygroscopic accuracy processes, labs
material.
•Precision
•Measures change
manufacturing,
•Optical in optical •High accuracy
environmental
properties.
monitoring
•High-temperature
•Measures change
•Inductive •High accuracy industries,
in inductance.
aerospace
37
Types of IoT Proximity Sensors
Proximity sensors are vital components in IoT systems for detecting the presence or
absence of objects within a specific range without making physical contact. These
sensors are widely used in automation, security, robotics, and vehicle systems. Below are
the key types of proximity sensors used in IoT applications:
1. Inductive Proximity Sensors
Working Principle: Inductive sensors detect metallic objects by measuring changes in
inductance when a metal object enters their electromagnetic field.
•Features:
• Reliable for detecting metal objects.
• Immune to dust, dirt, and other environmental factors.
• High durability and long lifespan.
•Applications: Industrial automation, manufacturing lines, robotics, vehicle detection.
38
3. Ultrasonic Proximity Sensors
•Working Principle: Ultrasonic sensors emit high-frequency sound waves and measure
the time taken for the waves to bounce back after hitting an object. This allows for
measuring the distance to the object.
•Features:
• Can measure distances over longer ranges.
• Not affected by object color or transparency.
•Applications: Object detection, distance measurement, parking sensors, robotic
navigation.
39
5. Laser Proximity Sensors
•Working Principle: Laser sensors use laser beams to detect the distance between the
sensor and an object by measuring the reflection time of the beam.
•Features:
• High precision and long-range detection.
• Suitable for fine measurements.
•Applications: High-precision object detection, robotic systems, automotive applications.
Summary:
•Inductive sensors are best for detecting metal objects in industrial settings.
•Capacitive sensors can detect both metal and non-metal objects and are widely used in
manufacturing and safety systems.
•Ultrasonic sensors are ideal for distance measurement and navigation in robotics.
•IR sensors are cost-effective for detecting motion and presence.
•Laser sensors offer high accuracy and are used in precise applications like robotic vision
and automotive safety systems.
These proximity sensors play a critical role in IoT devices, enabling smarter automation
and interaction with the environment.
40
Actuators
An actuator can be considered as a machine or system’s component that can affect the
movement or control of 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. The 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 4.8 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.
41
Hydraulic actuators: A hydraulic actuator works on the principle of compression and
decompression of fluids. These actuators facilitate mechanical tasks such as lifting loads
through the use of hydraulic power derived from fluids in cylinders or fluid motors. The
mechanical motion applied to a hydraulic actuator is converted to either linear, rotary, or
oscillatory motion.
Pneumatic actuators: A pneumatic actuator works on the principle of compression and
decompression of gases. These actuators use a vacuum or compressed air at high pressure
and convert it into either linear or rotary motion. Pneumatic rack and pinion actuators are
commonly used for valve controls of water pipes. Pneumatic actuators are considered as
compliant systems.
Electric actuators: They are used to power an electric actuator by generating mechanical
torque. This generated torque is translated into the motion of a motor’s shaft or for
witching. For example, actuating equipment’s such as solenoid valves control the flow of
water in pipes in response to electrical signals. This class of actuators is considered one of
the cheapest, cleanest and speedy actuator types available. Figures 4.9(a) to 4.9(j) shows
some of the commonly used electrical actuators.
Thermal or magnetic actuators: The use of thermal or magnetic energy is used for
powering this class of actuators. These actuators have a very high power density and are
typically compact, lightweight, and economical. Example of thermal actuators is shape
memory materials (SMMs) such as shape memory alloys (SMAs).
These actuators do not require electricity for actuation. They are not affected by vibration
and can work with liquid or gases.
Magnetic shape memory alloys (MSMAs) are a type of magnetic actuators.
42
The hydroelectric generator shown in Figures 4.9(g) and 4.9(h) convert the water-
flow induced rotary motion of a turbine into electrical energy. Similarly, the
mechanical switches shown in Figures 4.9 (k) and 4.9(l) uses the mechanical motion
of the switch to switch on or off an electrical circuit.
Soft actuators: Soft actuators (e.g., polymer-based) consists of elastomeric
polymers that are used as embedded fixtures in flexible materials such as cloth,
paper, fiber, particles. The conversion of molecular level microscopic changes into
tangible macroscopic deformations is the primary working principle of this class of
actuators.
Shape memory polymers (SMP): SMP are considered as smart materials that
respond to some external stimulus by changing their shape, and then revert to their
original shape once the affecting stimulus is removed. Features such as high strain
recovery, biocompatibility, low density, and biodegradability characterize these
materials. SMP-based actuators function similar to our muscles. Modern-day SMPs
have been designed to respond to a wide range of stimuli such as pH changes, heat
differentials, light intensity, and frequency changes, magnetic changes
Actuator Characteristics
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.
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.
3) Torque to Weight Ratio: The ratio of torque to the weight of the moving part of
an instrument/device is referred to as its torque/weight ratio. This indicates the
sensitivity of the actuator. Higher is the weight of the moving part; lower will be its
torque to weight ratio for a given power.
43
2 Actuators in IoT: Motors, Servos, and Solenoids
Actuators are essential components in the Internet of Things (IoT) systems, converting
electrical signals into physical actions. In IoT, actuators enable devices to interact with
the physical world, performing tasks such as moving, positioning, or controlling the flow
of materials. Motors, servos, and solenoids are common types of actuators used in
various IoT applications, from robotics to automation systems.
How Are Actuators Used in IoT? IoT actuators are mechanical or electromechanical
devices that turn energy into motion. They combine electrical signals with energy
sources, ultimately manipulating the physical world around them. Actuators can open
doors, close windows, raise blinds, or move objects to their intended positions. But how
do IoT actuators work and what are the applications of actuators in IoT? That’s a
several-step process:
✓ IoT sensors gather the data and send it to the IoT controller.
✓ The controller transmits the electrical signal to the actuator.
✓ The actuator interprets this signal and translates it into a physical movement.
The process sounds pretty straightforward. But is it that simple? Keep reading to learn
more about the actuators’ specifics and their interconnection with IoT sensors.
44
Difference Between Sensors and Actuators in IoT?
In simple terms, actuators create movement while sensors observe the environment.
Whether measuring temperature, detecting motion, or capturing light levels, sensor
technology is the IoT solution’s eyes and ears. Actuators, in turn, make physical actions
based on sensor input and subsequent controlled commands.
Here are the main distinctions between IoT sensors and actuators:
•Electrical signalling. Actuators use heat or motion energy to perform actions. Meanwhile,
sensors rely on electrical signals to monitor environmental conditions.
•Conversion direction. Actuators turn electrical signals into physical actions. In turn,
sensors transform physical characteristics into electrical signals.
•Inputs and outputs. Actuators follow machine outputs, while sensors capture
environmental inputs.
1. Motors
•Working Principle: Motors convert electrical energy into mechanical motion. They consist
of a rotor (moving part) and a stator (stationary part). When current flows through the
motor windings, it creates a magnetic field that causes the rotor to spin.
•Types:
• DC Motors: Direct current motors are widely used due to their simple design
and ease of control.
• Stepper Motors: These motors move in discrete steps and are ideal for precise
positioning, such as in 3D printers or CNC machines.
• AC Motors: Alternating current motors are used for high-power applications
and continuous operation.
•Applications:
• Robotics: Motor-driven robots for automated tasks.
• Smart Homes: Actuating window blinds or automated doors.
• Automated Manufacturing: Conveyor belts, robotic arms, and other
mechanical movements.
45
2. Servos
•Working Principle: A servo is a small, self-contained motor that includes feedback
control to achieve precise angular position control. It uses a position sensor to ensure
accurate positioning.
•Types:
• Standard Servos: Limited to a specific range of motion (typically 0-180
degrees).
• Continuous Rotation Servos: Can rotate continuously but lack positional
feedback.
•Components:
• Motor: Provides motion.
• Feedback Mechanism: Often a potentiometer to measure the angular position.
• Control Circuitry: Compares the input control signal with the feedback and
adjusts the motor's position accordingly.
•Applications:
• Robotics: Actuating joints, hands, or limbs of robotic systems.
• Drones: Control surfaces for stabilization and control.
• IoT Projects: Automatic door locks, camera positioning, or other precise
movements.
46
3. Solenoids
•Working Principle: A solenoid is an electromechanical device that converts electrical
energy into linear motion. When current passes through a coil of wire (solenoid coil), it
creates a magnetic field that pulls or pushes a plunger (metallic rod) inside the coil.
•Types:
• Linear Solenoids: Provide linear motion (push or pull).
• Rotary Solenoids: Provide rotary motion, though less common than linear
solenoids.
•Applications:
• Locking Mechanisms: Used in smart locks or electronic door systems to
control access.
• Valves: Used in fluid or gas flow control systems, such as in smart irrigation or
HVAC systems.
• Actuators: Used in automated machinery for pushing or pulling mechanisms.
Fig.4.13 Solenoid
47
4.4 IoT Protocols
Protocol Standardization for IoT:
IoT communication protocols are modes of communication that protect and ensure
optimum security to the data being exchanged between connected devices. The IoT
devices are typically connected to the Internet via an IP (Internet Protocol) network.
However, devices such as Bluetooth and RFID allow IoT devices to connect locally. In
these cases, there’s a difference in power, range, and memory used. Connection through
IP networks are comparatively complex, requiring increased memory and power from the
IoT devices while the range is not a problem. On the other hand, non-IP networks
demand comparatively less power and memory but have a range limitation. As far as the
IoT communication protocols or technologies are concerned, a mix of both IP and non-IP
networks can be considered depending on usage.
4.4.1 Types of IoT Protocols: IoT protocols and standards can be broadly classified
into two separate categories.
4.4.1.1 IoT Network Protocols: IoT network protocols are used to connect devices
over the network. These are the set of communication protocols typically used over the
Internet. Using IoT network protocols, end-to-end data communication within the scope
of the network is allowed. Following are the various IoT Network protocols.
48
4
9
● Bluetooth:
Bluetooth is one of the most widely used protocols for short-range communication. It is a
standard IoT protocol for wireless data transmission. This communication protocol is
secure and perfect for short-range, low-power, low-cost, and wireless transmission
between electronic devices.
BLE (Bluetooth Low Energy) is a low-energy version of Bluetooth protocol that reduces
the power consumption and plays an important role in connecting IoT devices. Bluetooth
protocol is mostly used in smart wearables, smartphones, and other mobile devices,
where small fragments of data can be exchanged without high power and memory.
Offering ease of usage, Bluetooth tops the list of IoT device connectivity protocols.
● ZigBee:
ZigBee is an IoT protocol that allows smart objects to work together. It is commonly used
in home automation. More famous for industrial settings, ZigBee is used with apps that
support low-rate data transfer between short distances.
Street lighting and electric meters in urban areas, which provides low power
consumption, use the ZigBee communication protocol. It is also used with security
systems and in smart homes.
IoT data protocols are used to connect low power IoT devices. These protocols provide
point-to-point communication with the hardware at the user side without any Internet
connection. Connectivity in IoT data protocols is through a wired or a cellular network.
Some of the IoT data protocols are:
MQTT is mainly used in devices which are economical and requires less power and
memory. For instance, fire detectors, car sensors, smart watches, and apps for text-
based messaging.
The protocol uses binary data format EXL (Efficient XML Interchanges). CoAP protocol is
used mainly in automation, mobiles, and microcontrollers. The protocol sends a request
to the application endpoints such as appliances at homes and sends back the response of
services and resources in the application.
● Advanced Message Queuing Protocol (AMQP): AMQP is a software layer
protocol for message-oriented middleware environment that provides routing and
queuing. It is used for reliable point-to-point connection and supports the seamless
and secure exchange of data between the connected devices and the cloud. AMQP
consists of three separate components namely Exchange, Message Queue, and
Binding.
All these three components ensure a secure and successful exchange and storage of
messages. It also helps in establishing the relationship of one message with the
other. AMQP protocol is mainly used in the banking industry. Whenever a message is
sent by a server, the protocol tracks the message until each message is delivered to
the intended users/destinations without failure.
● Business Model: The bottom line is a big motivation for starting, investing in, and
operating any business; without a sound and solid business model for IoT we will
have another bubble , this model must satisfy all the requirements for all kinds of e-
commerce; vertical markets, horizontal markets and consumer markets. But this
category is always a victim of regulatory and legal scrutiny.
● Killer Applications: In this category there are three functions needed to have
killer applications: control "things", collect "data", and analyze "data". IoT needs killer
applications to drive the business model using a unified platform.
● Security: IoT encompasses everything from wireless communications, sensors,
Radio-Frequency Identification (RFID) to Machine-to-Machine (M2M). However, the
IoT industry is still unregulated, which has led to wider security and privacy
implications. The ease with which IoT devices can be hacked, packet data sniffed and
unsecured firmware can be modified, is alarming. Attacks are heterogeneous in
nature and can occur at every layer of IoT’s protocol stack. We need to have
regulation, robust security mechanisms and stricter controls over authentication of
devices that are connected to the Internet
50
5
1
IoT analytics: The basic nature of the IoT is to obtain and to act on information.
Therefore, IoT analytics play a major role. For practical deployment, placing the
analytics platform in the IoT architecture is the major issue.
Since information is generated or gathered at the devices and is communicated to the
cloud with/without the support of edge, decision has to be taken such that parts of the
analytics platform have to be deployed in appropriate places of the framework, i.e.
whether at edge/fog or at the cloud. Factors such as delay, regulatory issues, cost,
scale and ease of operation, etc., play significant roles on this.
● ZigBee IP: Zigbee is a standards-based wireless technology that was developed for
low-cost and low-power wireless machine-to-machine (M2M) and internet of things
(IoT) networks.
● ISA100.11a: It is a mesh network that provides secure wireless communication to
process control.
● Wireless HART: It is also a wireless sensor network technology, that makes use of
time-synchronized and self-organizing architecture.
● Thread: Thread is an IPv6-based networking protocol for low-power Internet of
Things devices in IEEE 802.15. 4-2006 wireless mesh network. Thread is independent
2. Physical Layer:
This standard enables a wide range of PHY options in ISM bands, ranging from 2.4 GHz
to sub-GHz frequencies. IEEE 802.15.4 enables data transmission speeds of 20 kilobits
per second, 40 kilobits per second, 100 kilobits per second, and 250 kilobits per second.
The fundamental structure assumes a 10-meter range and a data rate of 250 kilobits
per second. To further reduce power usage, even lower data rates are possible. IEEE
802.15.4 regulates the RF transceiver and channel selection, and even some energy
and signal management features, at the physical layer.
Based on the frequency range and data performance needed, there are now six PHYs
specified. Four of them employ frequency hopping techniques known as Direct
Sequence Spread Spectrum (DSSS). Both PHY data service and management service
share a single packet structure so that they can maintain a common simple interface
with MAC.
3. MAC layer:
The MAC layer provides links to the PHY channel by determining that devices In the
same region will share the assigned frequencies. The scheduling and routing of data
packets are also managed at this layer.
The 802.15.4 MAC layer is responsible for a number of functions like:
● Beaconing for devices that operate as controllers in a network.
● used to associate and dissociate PANs with the help of devices.
● The safety of the device.
● Consistent communication between two MAC devices that are in a peer-to-peer
relationship. Several established frame types are used by the MAC layer to accomplish
these functions.
5. Security:
For data security, the IEEE 802.15.4 standard employs the Advanced Encryption
Standard (AES) with a 128-bit key length as the basic encryption technique. Activating
such security measures for 802.15.4 significantly alters the frame format and uses a few
of the payloads. The very first phase in activating AES encryption is to use the Security
Enabled field in the Frame Control part of the 802.15.4 header. For safety, this field is a
single bit which is assigned to 1. When this bit is set, by taking certain bytes from its
Payload field, a field known as the Auxiliary Security Header is formed following the
Source Address field.
6. Competitive Technologies:
The IEEE 802.15.4 PHY and MAC layers serve as a basis for a variety of networking
profiles that operate in different IoT access scenarios. DASH7 is a competing radio
technology with distinct PHY and MAC layers.
55
Advantages of IEEE 802.15.4:
IEEE 802.15.4 has the following advantages:
❖ cheap cost
❖ Long battery life,
❖ Quick installation
❖ simple
❖ extensible protocol stack
56
LoRa
LoRa is a long-range and lower-power wireless communication system providing
attractive features that are critical for application in Industrial IoT.
“LoRa® is the physical layer or the wireless modulation utilized to create the long-range
communication link… It is based on chirp spread spectrum modulation, which maintains
the same low power characteristics as FSK modulation but significantly increases the
communication range… LR is the first low-cost implementation for commercial usage.“
Generally, IoT has many technological solutions to transfer data over a network,
including LR, NB-IoT, WiFi, Bluetooth, Zigbee, and sub-1GHz. But in most cases, long
transmission distance and energy conservation can be barely guaranteed simultaneously
in wireless communication network systems, because more energy is always needed for
longer transmission distance.
LoRa and LoRaWAN are the same things, as these two have similar names and are often
used together. But the fact is they have distinctive concepts.
4.6 LoRaWAN
LoRa is based on a chirp spread spectrum modulation that supports an ultra-long
distance wireless transmission,LoRaWAN is a set of communication protocols and system
architecture designed for LoRa long-distance communication network. In other words,
LR is a radio frequency carrier signal based in the physical (PHY) layer that converts the
data it receives to signals. And LoRaWAN is a protocol located in the Media Access
Control (MAC) layer that promotes the LR signals to wider applications. As well, LR is
one of the most commonly used LPWAN, especially in the application of IoT corporations
and devices.
57
LoRaWAN network architecture
LoRaWAN architecture contains four major parts: end nodes, gateway, network server,
and application server. Star topology is adopted between gateways and end nodes, and a
single wireless hop is applied to communicate between these two devices. After gathering
data, end nodes are able to send messages to multiple gateways at the same time by
using LR Radio Frequency (RF). Cellular, WiFi, and or Ethernet Backhaul then help forward
the received information in gateways to the network server, the last part which is eligible
to finalize the uploading of the packets to the application servers.
“LoRaWAN defines the communication protocol and system architecture for the
network while the LR® physical layer enables the long-range communication link.“
LoRaWAN is an LPWAN standard based on an open-source MAC layer protocol brought out
by LR Alliance. It is able to provide local, nationwide, or global network to the battery-
powered wireless devices. LoRaWAN specifically focuses on the core demand of IoT,
including secure bidirectional communication, accessible mobility, and location
identification, etc. Its design has an extreme-easy-to-use mindset, which enables IoT
users and developers to develop and deploy the technology flexibly and rapidly.
With great reliability and practicality, LoRaWAN has widespread network deployment as
there are more than a hundred LoRaWAN network operators around the world.
Star Topology in LoRaWAN
As we mentioned above, LoRaWAN architecture presents as a star topology. Compared
with Mesh topology, Star topology can do a better job in maintaining long battery life while
enforcing the range of communication.
58
•In Star topology structures, messages are transmitted from end nodes to the central
servers by using gateways. Gateways act as transparent bridges and only bi-directionally
convert the information it receives. Each end node concurrently sends data to multiple
gateways and then gateways retransmit data to the network server.
•Star topology has three obvious advantages:
•Ensures the reliability of LoRaWAN: no data collision will occur because all devices are
asynchronous. When one fails to work properly, the other can still send data to the
central server.
•No need for additional communication between gateways, as end nodes can send data to
multiple gateways instead.
•Energy-saving: compared with mesh topology (with large communication range but has
weak network capacity and short battery lifetime), star topology maximizes both the
battery lifespan and the long-distance connectivity.
•End Nodes
•LoRaWAN classifies three types of LR end nodes that serve distinctive requirements and
cover almost all kinds of IoT applications. What is LoRaWAN introduces that “The device
classes trade off network downlink communication latency versus battery lifetime.” The
below chart form shows details of three classes of LR end nodes which can give you a
better understanding of the difference of features and the application of the three types
of end nodes:
•Application of LoRa technology
•Because of its great reliability and outstanding performance, LoRa and LoRaWAN assist
more IoT products to contribute to the establishment of smart agriculture, smart cities,
and smart industry in recent years
59
4.7 Cloud for IOT
IoT cloud platforms combine the capabilities of IoT devices with cloud
computing to provide an end-to-end service. Other names for them are Cloud Service IoT
Platform. Nowadays, when billions of devices are connected to the Internet, we see an
expanding opportunity to tap massive data generated from these devices and process it
efficiently through various apps. IoT devices have several sensors linked to the cloud, often
via gateways. Multiple IoT Cloud Platforms are available on the market today, provided by
various service providers and hosting a diverse range of applications. These can also be
expanded to services that use powerful machine learning algorithms for predictive analysis,
such as disaster prevention and recovery planning, which use data from edge devices.
60
Various Cloud IoT Platforms
PTC Thingworx is an IoT platform designed for enterprise app development. It includes
fundamental features such as:
Advantages:
• Customers might benefit from simple web page designs.
• Devices that are simple to manage
• Solutions for simple connectivity
Disadvantages:
• Difficult to utilize with C# custom programs.
• Complex systems are difficult to handle.
• The inability to deploy the edge application on a customized platform.
Amazon has made it easier for developers to acquire data from sensors and Internet-
connected devices. They assist you in collecting and sending data to the cloud and
analyzing that data to provide the capacity to manage devices.
Even if the gadgets are not connected to the Internet, you can easily communicate with
them.
The following are the primary characteristics of the AWS IoT platform:
• Device administration
• Device security gateway
• Encryption and authentication
• Shadow of a device 61
Advantages:
Disadvantages:
Advantages:
Disadvantages:
• Management is required.
• Expensive
• There is no bug support.
62
Google Cloud’s IoT Platform
Google, the search engine titan, also takes the Internet of Things very seriously. They claim
that the "Google Cloud IoT Platform is the perfect place to launch IoT initiatives, using
Google's heritage of web-scale computing, analytics, and machine intelligence.“ Google's
platform is one of the greatest we have right now. Google offers a complete platform for
Internet-of-Things solutions. It makes it simple to connect, store, and manage IoT data.
This platform assists us in growing our business.
Their primary goal is to make things quick and straightforward. Google Cloud pricing is
done per minute, which is less expensive than competing platforms.
Advantages:
• The most rapid input/output
• Access time is reduced.
• Integrates with other Google services.
Disadvantage:
• Most of the components are Google technologies, with only a few programming
languages available.
Advantages:
• Utilize untapped data
• Handle massive amounts of data and
• Improve customer service
Disadvantages:
A lot of upkeep is required.
Allow enough time for Watson integration.
Switching costs are high. 63
Salesforce IoT Cloud
Salesforce is a company that is specialized in customer relationship management. Thunder
is focused on high-speed, real-time decision-making in the cloud, which powers the
Salesforce IoT cloud platform. The goal is to develop more meaningful encounters with
customers. Their simple point-and-click interface is intended to link you with your clients
successfully.
Advantages:
• Increase the number of connecting devices and messages to billions.
• Simple user interface designs for connecting with customers.
Disadvantages:
• Liability for security
• Flexibility constraints
Advantages:
• Operational savings are driven by data that reduce inventory, downtime, and time to
market.
• It has increased the ability to support company evolution based on a dependable,
transparent technology foundation compatible with future technology releases.
• New revenue streams and business opportunities
• Risk is reduced due to a more holistic, easily managed security approach to both physical
and cyber risks.
• Through informed prioritization, you can make faster and better decisions.
Disadvantages:
Complex systems are difficult to handle.
The inability to deploy the edge application on a customized platform.
64
Thingspeak IoT Platform
Thingspeak is an open-source platform for collecting and storing sensor data in the cloud. It
includes an app for analyzing and visualizing data in Matlab. Sensor data can be sent via
Arduino, Raspberry Pi, and Beaglebone. You can save data in a different channel.
Advantages:
Disadvantages:
65
Amazon Web Services (AWS) provides a comprehensive suite of services and tools to
support Internet of Things (IoT) applications and solutions. AWS IoT services are designed
to simplify the development and management of IoT devices and the data generated by
these devices. Here's an overview of AWS offerings for IoT:
AWS Greengrass:
Description: AWS Greengrass extends AWS capabilities to the edge, allowing local processing
and data management on IoT devices.
Key Features:
Local Compute: Run Lambda functions and containerized applications on IoT devices.
Data Synchronization: Synchronize data with the cloud when connectivity is available.
Device Shadows: Maintain a local copy of device state.
66
AWS IoT SiteWise:
Description: AWS IoT SiteWise is an IoT data management service that makes it easy to
collect, store, organize, and analyze data from industrial equipment at scale.
Key Features:
Industrial Data Modeling: Create digital twins of industrial equipment to model and track
data.
Data Ingestion: Ingest data from various sources and store it for analysis.
Asset Monitoring: Monitor and visualize asset performance in real time
67
68
Video Links
Unit IV - Embedded Devices for IOT
69
6.5 Part A Q & A
Unit IV - Embedded Devices for IOT
70
S.N Question and Answers CO K
o
6 What is IEEE 802.11? Mention its types CO5 K1
IEEE 802.11 is a set of standards that define the specifications
for wireless local area network (WLAN) technologies, commonly
known as Wi-Fi. The IEEE 802.11 standards provide the
framework for wireless communication, allowing devices to
connect to networks and the internet without the need for
physical cables.
The Types are,
IEEE 802.11 a, IEEE 802.11 b, IEEE 802.11 c and IEEE 802.11 g
7 What is LR-WPAN? Mention its standard and example CO5 K1
LR-WPAN is Low Rate Wireless Personal Area Network(LR-
WPAN). LR-WPAN standards provide data rates from 40 k b/ s.
These standards provide low cost and low speed
Communications for power constrained devices.
the standard is IEEE 802.15.4
Example: Zigbee
8 Differentiate IPV4 and IPV6 CO5 K2
IPv4 (Internet Protocol version 4) and IPv6 (Internet Protocol
version 6) are two generations of the Internet Protocol that
facilitate communication and data transmission over the internet.
Here are the key differences between IPv4 and IPv6:
Address Length:
IPv4: Uses 32-bit addresses, allowing for approximately 4.3
billion unique addresses.
IPv6: Uses 128-bit addresses, providing an enormous address
space with approximately 340 undecillion unique addresses
(that's 3.4 x 10^38 addresses).
9 Mention the usage of 6LOWPAN CO5 K2
6LoWPAN stands for "IPv6 over Low-Power Wireless Personal
Area Networks." It is a communication protocol that allows IPv6
packets to be transmitted over low-power wireless networks,
specifically targeting small devices with limited processing power
and energy resources. 6LoWPAN enables these devices to
participate in the Internet of Things (IoT) by providing them
with a way to connect to larger networks, such as the internet,
using IPv6.
10 Mention the purpose of COAP in Application Layer CO5 K2
CoAP stands for "Constrained Application Protocol." It is a
lightweight application layer protocol designed for
communication between devices in constrained environments,
particularly in the context of the Internet of Things (IoT). CoAP
is designed to work efficiently in resource-constrained devices
and networks with low bandwidth, such as those powered by
batteries or operating in environments with limited processing
capabilities
71
S.No Question and Answers CO K
73
6.6 Part B Questions
Q. Questions K CO
Level
No
2 What is the Internet of Things (IoT), and how does it revolutionize K2 CO5
5 What are the core design principles for creating connected K1 CO5
6 What are the key types of sensors used in IoT applications, and K2 CO5
11 K2 CO5
How do cloud services facilitate data storage, processing, and
analytics for IoT devices?
74
6.7 SUPPORTIVE ONLINE CERTIFICATION COURSES
75
6.8 Real time Applications in day to day life and to Industry
76
6.9 Contents beyond the Syllabus
Various Types of Senosrs
In daily life, it has become our habit to implement various types of sensors frequently in
the power systems comprising of load control systems, electrical and electronics
appliances, and industrial and home automation. All types of sensors are further divided
into analog and digital sensors.
However, there are few types of sensors that are used in electronic applications such as
pressure sensors, touch sensors, IR sensors, ultrasonic sensors, temperature sensors,
proximity sensors, and so on.
Temperature Sensors:
On the basis of requirements, various types of sensors are used for the purpose of
measuring temperature in different applications. A simple temperature sensor with a
circuit may be used for switching the load on and off at a specific temperature.
The relay switches on the load that is connected to it which can be AC or DC. This circuit
may be further utilized for the purpose of controlling the fan on the basis of temperature.
Primarily, this type of sensor may be further classified into various other types such as
digital temperature sensors, thermistors, and so on.
IR Sensors:
The small photo chips comprising of photocells that are used for detecting and emitting
infrared light are termed IR sensors. These sensors are most commonly used for the
purpose of designing remote-control technology.
These sensors may be used for detecting various obstacles of the robotic vehicle and
controlling the direction of the same. There are different types of sensors that might be
used for the detection of infrared lights.
A simple example of an IR sensor circuit that we use in our day-to-day life is a TV remote
control. It comprises IR receiver circuits and IR emitter circuits that may be designed.
The IR emitter circuit is used as a remote by the user for the purpose of emitting
infrared light.
77
This infrared light is transmitted or sent to the IR receiver circuit which interfaces to the devices
such as IR remote-controlled robots or a TV. These sensors are further used for designing
television remote controls.
A TV remote is an example of a simple IR sensor-based electronics project which is used for the
purpose of controlling a robotic vehicle in remote areas by using IR or TV remote. This type of
TV remote is being utilized for sending commands to the robotic vehicle.
Ultrasonic Sensor:
An ultrasonic sensor or transceiver is a transducer that works on the principle alike radar or sonar
and is known for estimating the attributes of the target by interpreting. These sensors are
classified as active and passive ultrasonic sensors and maybe differentiated on their working.
The active ultrasonic sensors are known for generating high-frequency sound waves that are
received back by the ultrasonic sensor for the evaluation of echo. The time interval taken for
receiving and transmitting the echo helps in the determination of the distance to an object.
However, the passive ultrasonic sensors are merely used for the detection of ultrasonic noise
whose presence can be found in specific conditions. When it comes to the practical application of
an ultrasonic sensor with a circuit, it may also be used as an ultrasonic distance sensor circuit.
Touch Sensor:
The switches that are activated by touch may be said to have touch sensors. These sensors are
classified into different types on the basis of their touch-type such as piezo touch switch,
capacitance touch switch, and resistance touch switch.
For the purpose of controlling the load, a touch-sensitive load is designed. The touch-controlled
load switch which is touch sensor principle-based comprises various blocks such as touch sensor
plate, load, relay, and power supply block.
Proximity Sensor:
The proximity sensor is a type of IoT sensor in which the existence and non-existence of the
surrounding objects are identified. After this, the detected signal is converted into a form that the
user understands.
This type of sensor is mainly applied in the retail domain where any movement is found out and
an association is present between the consumer and product. The users are provided with quick
notifications related to exclusive offers and discount updates of the products in which they are
interested.
78
7. ASSESSMENT SCHEDULE
I ASSESSMENT 28.01.25
II ASSESSMENT 10.03.25
MODEL 03.04.25
79
8. Prescribed Text Books & Reference Books
TEXT BOOKS:
1. Marilyn Wolf, ―Computers as Components - Principles of Embedded Computing System
Design‖, Third Edition ―Morgan Kaufmann Publisher (An imprint from Elsevier), 2012.
2. Lyla B.Das, ―Embedded Systems : An Integrated Approach‖ Pearson Education, 2013.
3. Arshdeep Bahga, Vijay Madisetti, ―Internet of Things – A hands-on approach‖,
Universities Press, 2015
REFERENCES:
1. Shibu, K. V., “Introduction to embedded systems”, 1st edition, Tata McGraw-Hill
Education, 2009.
3. Zhu Y., “Embedded Systems with ARM Cortex-M3 Microcontrollers in Assembly Language
4. Wolf W., “FPGA-based system design”, Pearson education, 2004 Jun 15.
5. David Etter, “IoT (Internet of Things Programming: A simple and fast way of Learning
6. Fei H.U., “Security and Privacy in Internet of Things (IoTs): Models, Algorithms, and
7. Colin Walls, Embedded RTOS Design Insights and Implementation. 1st edition. Elsevier,
December 2020.
80
9.Mini Project Suggestions
81
EX.NO: 07 Interfacing LED and switch with Rasperry-Pi / Arduino
Aim:
To interface LED and Switch with Rasperry pi & Arduino UNO.
Apparatus Required:
.
1 Arduino UNO 1
3 USB Cable 1
4 LED 1
5 330Ω Resistor 1
6 Breadboard 1
Theory:
Light Emitting Diode (LED) is a widely used standard source of light
in electrical equipment. It has a wide range of applications ranging from
your mobile phone to large advertising billboards.
Here, an LED is connected to one of Arduino’s digital pins via 330Ω resistor.
Whenever the respective pin is set HIGH, current flows via LED and hence it
glows.
82
Circuit Diagram:
Code:
#define LED 13
void setup()
{
pinMode(LED, OUTPUT);
}
void loop()
{
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
Result:
Hence, a LED is interfaced with Arduino UNO and is
made to blink successfully.
83
EX.NO:08 Interfacing a Light sensor (LDR) with
Rasperry-Pi/ AURDINO
Aim:
To interface a LDR with Arduino UNO/ Raspeery pi and write
program to turn ON the LED based on LDR value.
Apparatus Required:
Sign Name of the Equipment Quantity
Number
1 Arduino UNO 1
3 USB Cable 1
4 LDR 1
5 LED 1
6 Resistor 10 Kohm
7 Breadboard 1
84
Theory : LDR ( light dependent resistor ) also called photoresistors are
responsive to light. Photoresistors are used to indicate the intensity or
the presence or the absence of light. When there is darkness the
resistance of photoresistor increases and when there is sufficient light
is.
decreases.A light-emitting diode (LED) is a semiconductor device that
emits light when an electric current is passed through it. Light is
produced when the particles that carry the current (known as electrons
and holes) combine together within the semiconductor material.
Led has two terminals : positive and negative.
Basically when there is darkness the led will glow and when there is
sufficient light led will stop glowing. This a simple circuit for of
interface Arduino uno with LDR sensor
Circuit Diagram:
85
Code:
// Interfacing Arduino uno with LDR sensor const int ledPin
= 5; // digital pin 5
const int ldrPin = A0; // analog pin 0
void setup() { // The setup() function will only run once,
after each powerup or reset of the Arduino board.
Serial.begin(9600);
pinMode(ledPin, OUTPUT); // Here LED is determined as an
output or an indicator. pinMode(ldrPin, INPUT); // Here
LDR sensor is determined as input.
}
void loop() { // Void loop is ran again and again and
contains main code. int ldrStatus = analogRead(ldrPin);
if (ldrStatus <= 200) {digitalWrite(ledPin, HIGH); // If LDR
senses darkness led pin high that means led will glow.
Serial.print("Darkness over here,turn on the LED :");
Serial.println(ldrStatus);
} else {
digitalWrite(ledPin, LOW); // If LDR senses light led pin low
that means led will stop glowing. Serial.print("There is
sufficient light , turn off the LED : ");
Serial.println(ldrStatus);
}
}
Result:
Hence, LDR is successfully interfaced with Arduino UNO
and LED is turned ON based on LDR value.
86
Thank you
Disclaimer:
This document is confidential and intended solely for the educational purpose of RMK Group of
Educational Institutions. If you have received this document through email in error, please notify the
system manager. This document contains proprietary information and is intended only to the respective
group / learning community as intended. If you are not the addressee you should not disseminate,
distribute or copy through e-mail. Please notify the sender immediately by e-mail if you have received
this document by mistake and delete this document from your system. If you are not the intended
recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the
contents of this information is strictly prohibited.
87