IoT Module 1
IoT Module 1
UNIVERSITY
DEPARTMENT OF COMPUTER APPLICATIONS
INTERNET OF THINGS(IOT)(23CA2410)
MODULE -1 (INTRODUCTION TO IOT)
INTERNET OF THINGS
The Internet of Things (IoT) is a network of interconnected devices equipped with sensors and
software that enable them to collect, exchange, and utilize data over the internet
CHARACTERISTICS OF IOT
1.Connectivity-
▪ IoT devices are connected to the internet or local networks through various communication protocols such as Wi-Fi,
Bluetooth, Zigbee, LoRa, and cellular networks (4G, 5G).
2.Sensors and Actuators-
▪ sensors collect real-world data (e.g., temperature, motion).
▪ Actuators take actions based on sensor data (e.g., turning on a fan).
3.Data Processing-
▪ IoT systems process sensor data for meaningful insights.
▪ Edge computing reduces latency, while cloud computing enables large-scale analysis.
4.Interoperability-
▪ Devices must communicate using common protocols like MQTT, CoAP, or HTTP.
▪ Ensures seamless integration of different IoT systems.
5.Security-
▪ Protects IoT devices and data from cyber threats.
▪ Includes encryption, authentication, and access control.
6.Scalability-
▪ IoT networks support many devices without performance loss.
▪ Cloud platforms help manage large-scale deployments.
7. Remote Monitoring and Control-
▪ Users can monitor and control devices from anywhere.
▪ Example: Smart home apps controlling lights and security cameras.
8.Real-time Capabilities-
▪ IoT enables immediate data collection and response.
▪ Used in applications like healthcare monitoring and industrial automation.
9.Energy Efficiency-
▪ Low-power IoT devices optimize energy consumption.
▪ Essential for battery-powered sensors in remote locations.
10.Data Analytics and Insights-
▪ AI and machine learning analyze IoT data to improve efficiency.
▪ Example: Predictive maintenance in industrial machinery.
SENSORS
▪ A sensor is a device that detects changes and events in a physical environment.
▪ It may convert physical parameters like humidity, pressure, temperature, heat, motion, etc., into
electrical signals.
FEATURES OF SENSORS
There are various features of Sensors. Some main features of Sensors are as follows:
1. A sensor could be either active or passive. Active sensors necessitate a power source, but passive
doesn't necessitate a power source.
2. It is a device that monitors and measures changes in the environment.
3. It is responsible for converting physical quantities into electrical signals.
4. It is connected to a system's input.
5. It generates an electrical signal as its output.
ACTUATOR
▪ A device that changes electrical signals into mechanical work is known as an actuator. It is used to
cause movement or a change in the surroundings
▪ Actuators are connected to a system's output. It receives an electrical signal as input and produces
mechanical movement as output. It receives input or instruction from a system or a signal
conditioning device and outputs it to the environment
FEATURES OF ACTUATORS
There are various features of Actuators. Some main features of Actuators are as follows:
1. The actuator assists in managing the environment based on sensor readings.
2. A device that converts electrical signals into mechanical movement is known as an actuator.
3. It requires an additional power source to function.
4. It receives an electrical signal as input.
5. It is connected to a system's output.
6. It produces mechanical work.
DIFFERENCE BETWEEN SENSORS
AND ACTUATORS
PHYSICAL DESIGN
1. Connectivity:
1. Devices in IoT need to communicate with each other and external networks.
2. Examples: USB Host, RJ45/Ethernet (for wired communication).
3. Wireless options: Wi-Fi, Bluetooth, Zigbee, and LoRaWAN (not shown in the image).
2. Processor:
1. The CPU (Central Processing Unit) is the brain of an IoT device, handling computations, decision-making, and data processing.
3. Audio/Video Interfaces:
1. Used in IoT applications that require multimedia processing.
2. Examples: HDMI, 3.5mm audio, RCA video for transmitting sound and video data.
4. Memory:
1. Stores firmware, application code, and sensor data.
2. Types: NAND/NOR flash memory (for firmware storage), DDR1/2/3 RAM (for fast data processing).
5. Graphics Processing:
1. Some IoT devices use GPU (Graphics Processing Unit) for handling images, videos, and graphical content.
2. Example: Smart home dashboards or IoT-enabled surveillance cameras.
6. Storage Interfaces:
1. Used to store large amounts of IoT data.
2. Examples: SD cards, MMC, SDIO (commonly used in embedded systems).
7. I/O Interfaces (for Sensors & Actuators):
1. Enable communication between the processor and external components.
2. Examples:
1. UART (Universal Asynchronous Receiver-Transmitter): Serial communication interface.
2. SPI (Serial Peripheral Interface): High-speed data transfer for sensors and storage.
3. I2C (Inter-Integrated Circuit): Used for low-speed communication with multiple devices.
4. CAN (Controller Area Network): Used in automotive IoT systems.
Example of IoT Physical Design: Smart Home Automation System
Scenario: A smart home system controls lighting, temperature, and security using IoT devices.
Physical Components:
1. Sensors:
1. Temperature sensor (DHT11) for monitoring room temperature.
2. Motion sensor (PIR) for detecting movement.
2. Processor:
1. Microcontroller (ESP32, Raspberry Pi, or Arduino) to process sensor data.
3. Connectivity:
1. Wi-Fi module (ESP8266) for cloud communication.
4. Actuators:
1. Relays to turn lights and fans on/off.
2. Motors to automate door locks.
5. Storage & Memory:
1. SD card to log temperature readings.
6. I/O Interfaces:
1. I2C for connecting multiple sensors.
2. UART for debugging and serial communication.
IOT PROTOCOL
Data Link
Layer Network Transport Application
Protocols Layer Layer Layer
Ethernet, Wi-Fi, Protocols Protocols Protocols
WiMAX, IPv4 ,IPv6, TCP HTTP , CoAP,
LR-WPAN,
cellular 6LoWPAN. UDP MQTT , XMPP
technologies.
Data link layer Network Layer
Link-layer protocols are used to send data over the This layer is used to send datagrams from the source
network’s physical layer. it also determines how the network to the destination network. we use IPv4 and
packets are coded and signaled by the devices. IPv6 protocols as host identification that transfers data
in packets.
Ethernet
It is a set of technologies and protocols that are IPv4
used primarily in LANs. it defines the physical This is a protocol address that is a unique and
layer and the medium access control for wired numerical label assigned to each device connected to
ethernet networks. the network. an IP address performs two main
functions host and location addressing. IPv4 is an IP
address that is 32-bit long.
Wi-Fi
It is a set of LAN protocols and specifies the set of
media access control and physical layer protocols IPv6
for implementing wireless local area networks. It is a successor of IPv4 that uses 128 bits for an IP
address. it is developed by the IETF task force to deal
with long-anticipated problems.
Transport Layer protocol Application Layer protocol
This layer is used to control the flow of data In this layer, protocols define how the data can be
segments and handle error control. also, these layer sent over the network with the lower layer protocols
protocols provide end-to-end message transfer using the application interface. these protocols
capability independent of the underlying network. include HTTP, WebSocket, XMPP, MQTT, DDS,
and AMQP protocols.
HTTP
TCP
Hypertext transfer protocol is a protocol that presents
The transmission control protocol is a protocol that an application layer for transmitting media
defines how to establish and maintain a network documents. it is used to communicate between web
that can exchange data in a proper manner using the browsers and servers. it makes a request to a server
internet protocol. and then waits till it receives a response and in
between the request server does not keep any data
UDP between the two requests.
a user datagram protocol is part of an internet WebSocket
protocol called the connectionless protocol. this
protocol is not required to establish the connection This protocol enables two-way communication
to transfer data between a client and a host that can be run on an
untrusted code in a controlled environment. This
protocol is commonly used by web browsers.
MQTT
It is a machine-to-machine connectivity protocol that was
designed as a publish/subscribe messaging transport. and it
is used for remote locations where a small code footprint is
required
COMMUNICATION MODELS
1. Client server model
1. HTTP Client :
This is the entity (could be a web browser, a mobile app, another service, or an IoT device) that initiates communication with the server.
"REST-Aware HTTP Client" indicates that this client is designed to interact with RESTful web services, meaning it understands and utilizes the
principles of REST architecture (like using specific HTTP methods).
2. HTTP Packet :
This represents the data package sent by the client to the server. It contains:
▪ HTTP Command: This specifies the action the client wants to perform on a resource. The image lists the common HTTP methods:
REST Payload: This is the actual data being sent along with the HTTP command. It's often formatted in:
❑ JSON (JavaScript Object Notation): A lightweight, human-readable format for data exchange.
❑ XML (Extensible Markup Language): Another format for structured data, often used in more complex scenarios.
3. HTTP Server :
∙ This is the entity that hosts the resources and responds to the client's requests.
∙ "Authorization" indicates that the server might require authentication and authorization to ensure only
legitimate clients can access or modify resources.
∙ "REST-ful Web Service" indicates that the server is designed to provide access to resources following the
principles of REST.
4. Resources :
∙ This section represents the core of the RESTful architecture: the resources being accessed and manipulated.
∙ URI (Uniform Resource Identifier): This is like the address of the resource. Each resource has a unique URI,
allowing the client to identify it specifically.
∙ Representations: Resources can have different representations (e.g., different formats like JSON or XML, or
different versions). The server can provide the representation that best suits the client's needs.