UNIT 5: INTRODUCTION TO IOT
1.0 FUNDAMENTALS OF IOT
1.1 Defining IoT & Its Core Characteristics
Internet of Things (IoT) is a system of interrelated computing devices, mechanical and digital machines, objects, animals, or people that are provided with unique identifiers and the ability to transfer data over a network without requiring human-to-human or human-to-computer interaction.
Core Characteristics:
-
Connectivity: Seamless connection between devices, networks, and the cloud.
-
Sensing: Ability to collect data from the physical environment via sensors.
-
Intelligence: Data processing and analytics to derive meaningful information.
-
Scalability: Ability to handle a massive number of connected devices.
-
Adaptability: Devices can operate in diverse and dynamic environments.
-
Heterogeneity: Support for diverse hardware platforms and operating systems.
-
Architecture: Often follows a layered architecture (perception, network, application).
[!TIP] Exam Focus: Be prepared to list and briefly explain at least 5-6 core characteristics. Connectivity and Sensing are the most fundamental.
1.2 Machine-to-Machine (M2M) Communication
Definition: M2M refers to direct communication between devices using any communications channel (wired or wireless). It is a precursor to IoT, often point-to-point and without internet connectivity.
M2M Communication Architecture:
Typically a three-layer model:
-
Device Layer: Sensors/actuators and M2M modules (with embedded SIMs).
-
Network Layer: Communication infrastructure (cellular, satellite, fixed lines) that transports data.
-
Application Layer: Software that interprets the data and triggers actions (often at a central server).
[!TIP] Common Pitfall: Distinguish M2M (often isolated, point-to-point, vertical integration) from IoT (IP-based, internet-connected, horizontal integration, cloud-centric).
2.0 IOT SYSTEM DESIGN & ARCHITECTURE
2.1 Logical Design in IoT Systems
Purpose: To define the functional components and their interactions without committing to specific physical technologies. It answers "what the system does" before deciding "how it does it."
Key Components in Logical Design:
-
Things/Devices: Physical objects with sensing/actuation capabilities.
-
Connectivity/Communication: Protocols and networks for data transfer.
-
Data Processing & Storage: Edge or cloud-based analytics and databases.
-
Application Layer: User interfaces and business logic.
-
Management & Security: Components for device management, authentication, and access control.
2.2 Components of IoT Ecosystems
An IoT ecosystem encompasses all stakeholders and components:
-
Things: Sensors, actuators, embedded devices.
-
Connectivity: Networks (LPWAN, WSN, cellular), gateways.
-
Data Processing: Edge computing, cloud platforms, analytics engines.
-
Applications: Vertical-specific apps (smart home, industrial, health).
-
Stakeholders: Device manufacturers, network providers, platform developers, application developers, end-users, regulators.
3.0 HARDWARE: SENSORS & ACTUATORS
3.1 Sensors in IoT
3.1.1 Challenges of a Sensor Node:
-
Power Consumption: Often battery-powered; needs energy harvesting or low-power design.
-
Size & Cost: Must be small and inexpensive for mass deployment.
-
Reliability & Accuracy: Must function in harsh environments with minimal drift.
-
Scalability: Management of thousands/millions of nodes.
-
Security: Vulnerability to physical tampering.
3.1.2 Fundamental Types:
-
Scalar Sensors: Measure a single physical quantity (magnitude only).
Example: Temperature sensor, pressure sensor.
-
Vector Sensors: Measure both magnitude and direction.
Example: Accelerometer, magnetometer, gyroscope.
3.1.3 General Classification:
-
By Input: Analog (continuous) vs. Digital (discrete).
-
By Power: Active (require external power) vs. Passive (derive power from the signal).
-
By Function: Environmental (temp, humidity), Position (GPS), Motion (PIR), Image (camera).
3.2 Actuators in IoT
3.2.1 Types:
-
Electrical Actuators: Convert electrical energy into motion (e.g., motors, relays, solenoids, heaters). Generally faster, more precise, and easier to control digitally.
-
Mechanical Actuators: Use mechanical means (gears, levers, springs) often driven by an electrical source. Can be simpler but may have wear and tear.
Comparison:
| Feature | Electrical Actuators | Mechanical Actuators |
|---|---|---|
| Energy Efficiency | Generally higher (precise control) | Can be lower (friction, inertia) |
| Control Flexibility | Very high (easy integration with digital controllers) | Moderate (may require more complex interfacing) |
| Typical Use | Robotic arms, valve control, precise positioning | Locks, simple switches, physical movements |
4.0 IDENTIFICATION & NETWORKING TECHNOLOGIES
4.1 Radio-Frequency Identification (RFID)
Basic Working Principle: Uses electromagnetic fields to automatically identify and track tags attached to objects.
-
Tag: Contains a microchip (stores ID/data) and antenna.
-
Reader: Emits radio waves and receives signals back from the tag.
-
Process: Reader's signal powers the tag (passive) or triggers it (active), tag modulates the signal and sends back its stored data.
Wireless Data Transfer: Enables non-line-of-sight, short-range (cm to m) communication for identification, tracking, and data retrieval without physical contact.
4.2 Wireless Sensor Networks (WSN)
Role as Enabling Tech: WSNs provide the foundational infrastructure for large-scale, distributed sensing—a core IoT function. They demonstrate key IoT principles like self-organization, multi-hop routing, and resource constraints.
Key Features & Architecture:
-
Nodes: Many small, low-power sensor nodes.
-
Self-Organization: Nodes form ad-hoc, multi-hop networks.
-
Sink/Base Station: Collects data from the network and connects to the external world.
-
Topology: Often star, tree, or mesh.
-
Challenges: Limited power, bandwidth, and processing; need for efficient routing protocols (e.g., LEACH, AODV).
4.3 Short-Range Wireless Communication
4.3.1 Near Field Communication (NFC)
-
Definition: A set of short-range wireless technologies (typically ≤ 10 cm) operating at 13.56 MHz. Enables two-way communication between devices.
-
Basic Operation: One device (initiator) generates a magnetic field that powers and communicates with a passive target (tag or another device). Used for contactless payments, access control, and simple data exchange.
4.3.2 Comparison: NFC vs. Bluetooth vs. Wi-Fi
| Feature | NFC | Bluetooth (BLE) | Wi-Fi (e.g., 802.11n) |
|---|---|---|---|
| Range | Very Short (≤ 10 cm) | Short (10-100 m) | Medium (30-100 m indoor) |
| Speed | Low (106-424 kbps) | Medium (1-2 Mbps) | High (150+ Mbps) |
| Power Consumption | Very Low | Low | High |
| Primary Use-Case | Identification, pairing, payment | Device-to-device, periodic data | High-throughput internet access |
| Setup Complexity | Very Simple (tap) | Simple (pairing) | Moderate (network config) |
[!TIP] Exam Tip: Remember the "tap" nature of NFC vs. the "pair" of Bluetooth and "connect" of Wi-Fi. NFC's security comes from its extremely short range.
5.0 IOT COMMUNICATION PROTOCOLS
5.1 Message Queue Telemetry Transport (MQTT)
-
Primary Components:
-
Publisher: Sends messages to a topic on the broker.
-
Broker: Central server that receives messages and filters/distributes them to subscribers.
-
Subscriber: Receives messages from topics it has subscribed to.
-
-
Publish/Subscribe Model: Decouples the sender (publisher) from the receiver (subscriber). The broker manages all routing. Topics are hierarchical strings (e.g.,
home/livingroom/temp).
5.2 Constrained Application Protocol (CoAP)
Designed for constrained devices (low power, low memory).
- Role of ACK (Acknowledgement): Sent by the receiver to confirm successful receipt of a confirmable message (CON). Ensures reliable delivery.