Module 1 IoT
Module 1 IoT
• One-to-one communication
• Uni-Directional
• Synchronous request-response
• Scalability
• request-response based
communication
• High Power Consumption
What is URL?
• Uniform Resource Locator and is used to specify addresses on the World
Wide Web.
• A URL is the fundamental network identification for any resource
connected to the web
• A URL will have the following format −
protocol://hostname/other_information
• The protocol specifies how information is transferred from a link.
• The domain name is the computer on which the resource is located.
• Links to particular files or subdirectories may be further specified after
the domain name.
• The directory names are separated by single forward slashes.
What is HTML?
• HTML (HyperText Markup Language) is the most basic building block of
the Web. It defines the meaning and structure of web content.
• Other technologies besides HTML are generally used to describe a web
page's appearance/presentation (CSS) or functionality/behavior
(JavaScript).
• "Hypertext" refers to links that connect web pages to one another, either
within a single website or between websites.
• What is Web Server?
• Every Website sits on a computer known as a Web server
• This server is always connected to the internet.
• Every Web server that is connected to the Internet is given a unique address
For example, 68.178.157.132 or 68.122.35.127.
• When you register a Web address, also known as a domain name, such as
example.com you have to specify the IP address of the Web server that will host the
site.
223 1 1 1
• IP address:
• network part/prefix (high 223.1.1.1
order bits) 223.1.2.1
• host part (low order bits) 223.1.1.2
223.1.1.4 223.1.2.9
• Additional hosts to 223.1.1
network would have
223.1.2.2
address of 223.1.1.xxx 223.1.1.3 223.1.3.27
• What’s a network ? (from IP
address perspective) LAN
• device interfaces with 223.1.3.1 223.1.3.2
same network part of IP
address
• can physically reach each
other without intervening network consisting of 3 IP networks
router (for IP addresses starting with 223,
first 24 bits are network address)
“class-full” addressing: 4 shown, 5th was for future use beginning with 11110
class
1.0.0.0 to
A 0 network host 127.255.255.255
B network 128.0.0.0 to
10 host
191.255.255.255
192.0.0.0 to
C 110 network host
223.255.255.255
224.0.0.0 to
D 1110 multicast address
239.255.255.255
32 bits
IP Addresses (Class A, B, C. D later)
1.0.0.0 to
A 0 network host 127.255.255.255
B network 128.0.0.0 to
10 host
191.255.255.255
2^(14) networks (first 2 bits are 10)
2^(16) interfaces
192.0.0.0 to
C 110 network host
223.255.255.255
network host
part part
11001000 00010111 00010000 00000000
200.23.16.0/21
IP addresses: how to get one?
How does host get IP address?
• Self Configuring : Ex. Fetching latest s/w updates without manual intervention.
• For example:
• a streetlights network constantly connected to a central controlling station/server
IoTs Vision
• The first thermostat was introduced in the late 1880s and infrared sensors have
been around since the late 1940s.
• Inputs can come from a variety of sources such as light, temperature, motion and
pressure.
• Sensors output valuable information and if they are connected to a network, they
can share data with other connected devices and management systems.
Importance of Sensor in IoT
• The sensor and network connectivity in the
IoT mainly located in the bottom layer.
• The main purpose of sensors is to collect data
from the surrounding environment. Sensors,
or ‘things’ of the IoT system, form the front
end.
• These are connected directly or indirectly to
IoT networks after signal conversion and
processing. But all sensors are not the same
and different IoT applications require
different types of sensors.
• Generally speaking, a sensor is a device that is able to detect changes in an
environment. By itself, a sensor is useless, but when we use it in an electronic
system, it plays a key role.
A sensor can be described using several properties, the most important being:
• Range: The maximum and minimum values of the phenomenon that the sensor
can measure.
• Resolution: The minimum change in the phenomenon that the sensor can detect.
Ultrasonic Sensor
• Ultrasonic sensors are devices that use ultrasonic waves for
various applications, including distance measurement, object
detection, and proximity sensing.
Working Principle:
• Ultrasonic sensors have a transducer that generates ultrasonic waves (sound
waves with a frequency above the audible range of human hearing, typically
above 20 kHz).
• The sensor emits a burst of ultrasonic waves in a specific direction. These
waves travel through the air until they encounter an object.
• When the ultrasonic waves hit an object, they reflect off the object's
surface. The sensor's transducer then detects the reflected waves.
• The sensor measures the time it takes for the ultrasonic waves to travel to
the object and back. This time of flight is used to calculate the distance
between the sensor and the object.
• The distance (D) can be calculated using the formula: D = (Speed of Sound ×
Time of Flight) / 2.
• Applications: Distance Measurement, Object Detection, Liquid Level
Measurement, Intruder Detection
Smoke Sensor
• Smoke sensors, also known as smoke detectors
or smoke alarms, are devices designed to
detect the presence of smoke in the air.
• Working Principles:
• Smoke sensors operate based on the detection of
smoke particles in the air. When a fire produces
smoke, small particles are released into the
surrounding environment.
• Photoelectric sensors use a light source and a
photosensitive receiver. When smoke enters the
chamber, it scatters light, causing a reduction in the
light reaching the receiver and triggering the alarm
• Applications: Residential Use, Industrial
Facilities, Aircraft and Vehicles, Fire Alarm
Systems
Motion Sensor
• A PIR (Passive Infrared) sensor is a type of motion sensor
that detects changes in infrared radiation in its field of
view.
• All objects with a temperature above absolute zero emit
infrared radiation. PIR sensors detect changes in the
infrared radiation patterns caused by the movement of
warm objects, such as humans or animals, within their
detection range.
• PIR sensors often include adjustments for time delay and
sensitivity. Time delay settings control how long the
sensor remains activated after detecting motion, and
sensitivity settings determine the range and size of the
objects that trigger the sensor.
• Applications: Lightning Control, Security, Automatic Door
opener
Humidity Sensors
• A humidity sensor, also known as a hygrometer or
humidity transducer, is a device designed to measure
the moisture content or relative humidity in the air.
• Working Principle:
• Capacitive humidity sensors are based on the principle that
the capacitance of a material changes with variations in
humidity. These sensors typically consist of a hygroscopic
material that absorbs or releases water vapor, causing
changes in capacitance.
• Applications: Weather Stations, Industrial Processes,
Medical Devices
Gas sensors
• Gas sensors are mainly used for detecting toxic gases.
• Working Principle:
• Gas sensors operate based on chemical detection mechanisms.
They contain a sensing element or material that reacts with the
target gas, leading to a measurable change in electrical properties
or other physical characteristics.
• The sensing element is connected to a transducer, which converts
the detected change into an electrical signal.
• The output signal from the transducer is then processed and
measured by the sensor's electronics. The signal strength
correlates with the concentration of the target gas.
• Applications: Industrial Safety, Environmental Monitoring,
Medical Applications
Soil Moisture Sensor
• A soil moisture sensor is a device designed to measure
the moisture content in the soil.
• Working Principle:
• Capacitive soil moisture sensors operate based on the
capacitance changes in the soil. The sensor has electrodes
that measure the dielectric constant of the soil, which varies
with moisture content. Higher moisture levels increase the
capacitance.
• Applications: Agriculture, Gardening, Environmental
Monitoring, Construction and Civil Engineering
LDR Sensor
• An LDR (Light Dependent Resistor), also known as a photoresistor, is a type
of resistor whose resistance varies with the amount of light falling on it.
• Working Principle:
• LDRs are typically made of semiconductor materials.
• The resistance of an LDR decreases with an increase in the intensity of
light falling on it. This is known as photoconductivity. When exposed to
light, photons are absorbed by the semiconductor material, generating
electron-hole pairs and reducing the resistance.
• In the absence of light, an LDR has a high resistance, referred to as dark
resistance. As the intensity of light increases, the resistance decreases.
• Application: Light Sensing, Brightness Control, Automotive
Lighting
Proximity sensors
• It takes the electrical signal and converts it into certain physical actions
• difference between sensors and actuators in IoT is sensor track the output
from the environment whereas the actuator track the output from the control
center.
What Connects Sensors and Actuators in IoT
Device
• In a smart IoT system, The sensor collects data and sends it to
the control center.
• The control center processes the data depending on what they are
programmed to do and then it commands the actuators to perform
certain tasks.
• Basically, if the sensor is the brain and the actuator is the limb that
performs the tasks it’s the main difference between sensors and
actuators in IoT.
Types of Actuators
Hydraulic Actuators
• This Actuator operates by converting hydraulic power to do the mechanical
tasks. Here the mechanical power is converted into rotary, leaner, and
oscillatory motion. The actuator here captures output from motors and uses
liquid as the pressure generator.
Pneumatic Actuators
• This actuator works similar to the hydraulic actuator but it uses vacuum or
compressed air to convert it into mechanical power they are weaker
compared to hydraulic actuators.
Electrical Actuators
• Similarly, electrical actuators use electrical energy to turn it into mechanical
torque. The mechanical actuators are used in industrial places
Thermal Actuators
• This can be called an electric less motor. It’s equipped with thermal-
sensitive material that’s capable of producing linear motion in
response to temperature changes. Opposite to another actuator, it does
not need an external power source. It is used to release latches, operate
switches, and open or close valves.
Magnetic Actuators
• This kind of actuator changes electronic magnetic current to
mechanical output They operate in either a rotary or linear direction
and can have continuous or limited motion. Magnetic actuators are
used within the aerospace, automotive industry, healthcare, computers,
and many other industries
Actuators
Physical Design of IoT
• Things in IoT
• IoT Protocols
Components of IOT
• IoT is an ecosystem of connected physical objects that are accessible
through the Internet
IoT Device
4 802.3.ae Fiber…..10Gbits/s
3 4G LTE
control
IoT Protocols…TCP
1.Reduced Latency: Subscribers can receive updates in near real-time as publishers actively push
information.
2.Efficient Resource Usage: Subscribers have more control over when and how frequently they
retrieve information, reducing unnecessary communication.
3.Flexibility: Subscribers can pull information based on their own requirements, making the model
more flexible and adaptive.
Exclusive Pair Communication Model
• Exclusive Pair is a bidirectional, fully duplex
communication model that uses a persistent
connection between the client and the server.
• Once the connection is set up it, remains open
until the client sends a request to close the
connection.
• Client and server can send messages to each other
after connection setup.
IoT Communication APIs
REST-based Communication APIs
• Representational State Transfer (REST) is a set
of architectural principles by which you can
design web services and web APIs that focus
on a system’s resources and how resource states
are addressed and transferred.
• REST APIs follow the request–response
communication model.
• There are several constraints that define the
principles and characteristics of a RESTful
system.
• REST architectural constraints apply to the
components, connectors and data elements
within a distributed hypermedia system.
REST-based Communication APIs Constraints
Client Server
• Code on demand
WebSocket-based Communication APIs
• WebSocket APIs allow bi-directional, real-
time communication between clients and
servers.
• WebSocket APIs follow the exclusive pair
communication model.
Key Components
TCP Connections Each HTTP request involves setting up a new Involves a single TCP Connection for
TCP Connection all requests
Header Overhead Each request carries HTTP Headers, hence not Does not involve overhead of headers.
suitable for real-time
• Cloud Computing
• Database: Database can be either local or in the cloud and stores the data
generated by the IoT device.
• Web Service: Web services serve as a link between the IoT device,
application, database and analysis components. Web service can be either
implemented using HTTP and REST principles (REST service) or using
WebSocket protocol (WebSocket service).
• Analysis Component: The Analysis Component is responsible for analyzing
the IoT data and generate results in a form which are easy for the user to
understand.
• Application: IoT applications provide an interface that the users can use to
control and monitor various aspects of the IoT system. Applications also
allow users to view the system status and view the processed data.
IoT Level-1
• A level-1 IoT system has a
single node/device that
performs sensing and/or
actuation, stores data,
performs analysis and hosts
the application
• Level-1 IoT systems are
suitable for modeling low-
cost and low-complexity
solutions where the data
involved is not big and the
analysis requirements are
not computationally
intensive.