Chapter 01
Chapter 01
Evolution of IoT
IoT devices are the building blocks of IoT ecosystems. These devices
gather, process, and exchange data. Common types include:
1. Sensors
o Temperature, humidity, motion, and pressure sensors.
2. Actuators
o Devices that take action based on sensor data, like motors
and relays.
3. Wearables
o Fitness trackers and smart watches.
4. Smart Appliances
o Smart refrigerators, thermostats, and lighting systems.
5. Industrial IoT Devices
o Robotics, condition monitoring systems, and predictive
maintenance sensors.
6. Edge Devices
o Devices that process data locally before transmitting it to
the cloud, reducing latency.
1. Healthcare
o Remote monitoring, wearable health devices, and smart
hospital systems.
2. Agriculture
o Precision farming, smart irrigation, and environmental
monitoring.
3. Manufacturing
o Industrial IoT (IIoT) for predictive maintenance and
supply chain optimization.
4. Retail
o Smart shelves, inventory tracking, and personalized
customer experiences.
5. Smart Cities
o Traffic management, smart utilities, and waste
management systems.
6. Logistics
o Real-time tracking, fleet management, and predictive
analytics.
7. Energy Sector
o Smart grids and renewable energy management.
IoT's transformative impact is evident across industries, driving
innovation, efficiency, and data-driven decision-making. Its adoption
continues to grow as technology advances.
Example:
1. Microcontrollers/Microprocessors:
o Control and process data. Examples: Arduino, Raspberry Pi.
2. Sensors:
o Collect environmental data (temperature, motion, etc.).
3. Actuators:
o Perform actions based on commands (e.g., opening a door).
4. Connectivity Modules:
o Enable communication (Wi-Fi, Bluetooth, Zigbee).
5. Software:
o Firmware manages device functionality.
Example:
2. Network Layer
o Purpose: Transmit data from devices to other layers.
o Components:
Communication protocols (Wi-Fi, Bluetooth, Zigbee,
LoRa).
Gateways and routers.
o Examples: IoT gateways, edge devices.
3. Edge Layer
o Purpose: Preprocess data locally to reduce latency and
bandwidth usage.
o Components:
Edge computing devices (Raspberry Pi, NVIDIA
Jetson).
Local storage and analytics tools.
o Examples: Smart cameras with onboard processing.
4. Data Processing Layer (Middleware Layer)
o Purpose: Manage, store, and process data from IoT
devices.
o Components:
Cloud platforms (AWS IoT, Microsoft Azure IoT).
Middleware for device communication and data
integration.
o Examples: Cloud servers, databases.
5. Application Layer
o Purpose: Provide user interfaces and enable actionable
insights.
o Components:
Each node device can perform tasks such as remote sensing, actuating,
monitoring, etc., by relying on physically connected devices. It may also
be capable of transmitting information through different types of
wireless or wired connections.
Building connections
Data processing
Providing storage
Providing interfaces
Providing graphical interfaces
The devices generate data, and the data is used to perform analysis
and do operations for improving the system. For instance, a moisture
sensor is used to obtain the moisture data from a location, and the
system analyses it to give an output.
Things/Devices
Processor: A processor like a CPU and other units are used to process
the data. these data are further used to improve the decision quality
of an IoT system.
Storage Interfaces: Things like SD, MMC, and SDIO are used to store
the data generated from an IoT device.
Other things like DDR and GPU are used to control the activity of an
IoT system.
IoT Protocols
In this layer, protocols define how the data can be sent over the
network with the lower layer protocols using the application interface.
these protocols include HTTP, WebSocket, XMPP, MQTT, DDS, and
AMQP protocols.
HTTP
MQTT
Transport Layer
This layer is used to control the flow of data segments and handle
error control. also, these layer protocols provide end-to-end message
transfer capability independent of the underlying network.
TCP
Network Layer
This layer is used to send datagrams from the source network to the
destination network. we use IPv4 and IPv6 protocols as host
identification that transfers data in packets.
IPv4
IPv6
Link-layer protocols are used to send data over the network’s physical
layer. it also determines how the packets are coded and signaled by the
devices.
Ethernet
WiFi
A logical design for an IoT system is the actual design of how its
components (computers, sensors, and actuators) should be arranged to
complete a particular function. It doesn’t go into the depth of
describing how each component will be built with low-level programming
specifics.
1. Device:
o These are the sensors and actuators that collect data (like
temperature or motion) and perform actions (like turning
on a light).
o They are the "hands and eyes" of the IoT system.
2. Communication:
o This part helps devices and servers talk to each other.
o It ensures data flows smoothly within the IoT system.
3. Services:
o Offers tools for monitoring devices, controlling them,
sharing data, and finding new devices in the network.
4. Management:
o Makes sure the IoT system runs efficiently.
o Handles tasks like updating devices and organizing how
they work.
5. Security:
o Keeps the system safe by controlling who can access it,
protecting messages, and ensuring data is secure.
6. Application:
o This is what users see and use to interact with the
system.
o It lets users check the system’s status, analyze data, and
control devices.
In IoT, devices like sensors or smart appliances may also use the
request-response model to interact with servers, sending requests and
receiving data to perform tasks or gather information.
Publisher-Subscriber Model in IoT
1. Publisher:
o This is the source of data.
o Publishers send data (messages) to a specific topic.
o They don’t know who will receive the data. They just send
it to the broker.
2. Broker:
o The broker acts as a middleman.
o It accepts data from the publishers and forwards it to
the appropriate consumers who are subscribed to the
relevant topic.
o The broker knows which consumers are interested in a
specific topic, but the publisher does not know anything
about the consumers.
o
3. Consumer:
o Consumers are the entities that receive the data.
o They subscribe to certain topics that interest them.
o Once subscribed, they automatically receive the data sent
by publishers to those topics via the broker.
How it Works:
Example:
Types of Sensors
1. Temperature Sensors:
o Measure temperature in industrial settings, ensuring
systems operate within safe limits. For example, in
manufacturing plants, they prevent overheating or
freezing of equipment.
2. Pressure Sensors:
o Measure pressure levels in fluids and gases. Used in systems
like pipelines to maintain safety and efficiency by detecting
leaks or pressure changes.
3. Proximity Sensors:
o Detect the presence or absence of objects. For instance, in
robotic systems, they help ensure correct placement of
components.
4. Motion Sensors:
o Detect movement or position changes. Used in surveillance,
automation, or smart lighting systems to adjust based on
detected movement.
Types of Actuators
1. Electric Actuators:
o Use electric power to move or adjust systems with high
precision and repeatability, commonly used in various
industrial automation applications.
2. Pneumatic Actuators:
o Use compressed air to generate motion. They’re often
found in systems requiring quick, powerful movements, like
in assembly lines or robotic arms.
3. Hydraulic Actuators:
o Use pressurized fluids to generate powerful movements.
Common in heavy-duty applications like construction and
automotive manufacturing.
4. Specialized Actuators:
o Piezoelectric Actuators and Magnetostrictive Actuators
are used for high-precision tasks like medical equipment or
precision manufacturing.
M2M (Machine-to-Machine)
M2M was the first step, where machines communicated with each
other. IoT takes this further by connecting devices to the internet,
allowing them to share data and work together in smarter ways.
Edge Networking
Key Points:
Power
Protocol Range Speed Best For
Consumption
Long Web-based
HTTP High Moderate
(Internet) communication
Real-time,
Short to Low (for
MQTT Low lightweight
Medium small data)
messaging
Low-power devices
CoAP Short Low Very Low with limited
resources
Home automation,
Zigbee Short Moderate Low
smart devices
Remote sensing,
LoRaWAN Long Low Very Low
smart cities
Short-range device
BLE Short Low Very Low
communication
1. Raspberry Pi:
o What it is: Raspberry Pi is a small, affordable computer
often used for learning, prototyping, and developing IoT
projects.
o Features:
Computational Power: Can run Linux and various
programming languages (like Python), making it
versatile for a wide range of applications.
GPIO Pins: General-purpose input/output pins to
connect sensors, LEDs, motors, and other hardware.
o Use Cases: Can be used in smart home systems (e.g.,
controlling lights), robotics, or even as a personal server.
2. ARM Cortex Processors:
o What it is: ARM Cortex is a family of microprocessor cores
used in many IoT devices for their high performance and
low power consumption.
o Features:
High performance: Provides powerful computing
resources while maintaining low energy use.
Scalability: Can be used in a wide range of devices,
from simple sensors to complex industrial systems.
o Use Cases: Found in industrial equipment, smart cars, and
other embedded systems that need reliable and powerful
processing.
3. Arduino:
o What it is: Arduino is a simple and widely used
microcontroller platform, perfect for beginners and
prototyping IoT projects.
o Features:
User-friendly: Open-source platform with easy-to-use
software and hardware.
Cheap and versatile: Ideal for small-scale projects like
controlling motors, lights, or sensors.
o Use Cases: DIY IoT projects like home automation,
creating simple sensors, or automation systems.
4. Intel Galileo Boards:
o What it is: Intel Galileo is a microcontroller development
board with a more powerful x86 architecture, providing
more performance than typical microcontrollers like Arduino.
o Features:
More power: Suitable for more advanced applications
where higher processing power is required.
Supports Linux: Allows for more complex software to
be run on it.
o Use Cases: Industrial IoT, robotics, and systems that
require higher computing power and more complex software
than what microcontrollers can handle.
5. Wearable Development Boards:
o What it is: These are specialized boards used for creating
wearable devices like fitness trackers or health monitoring
devices.
o Features:
Compact and low power: Designed to fit into small
wearable devices with minimal battery use.
Includes sensors: Often have built-in sensors like
heart rate monitors, accelerometers, and gyroscopes.
o Use Cases: Health tracking devices, wearable fitness
gadgets, and smartwatches.