IIOT Module 4
IIOT Module 4
By
Kshama Shukla
AP, MME
Contents
• Sensors and Actuators for Industrial Processes
• Sensor networks
• Process automation and Data Acquisitions on IoT Platform
• Microcontrollers and Embedded PC roles in IIoT
• Wireless Sensor nodes
• Bluetooth
• WiFi
• LoRa Protocols
• IoT Hub systems.
Sensors and Actuators for Industrial Processes
• All IoT applications need to have one or more sensors to collect data
from the environment.
• Sensors are essential components of smart objects.
• One of the most important aspects of the Internet of Things is context
awareness, which is not possible without sensor technology.
• IoT sensors are mostly small in size, have low cost, and consume less
power.
• They are constrained by factors such as battery capacity and ease of
deployment.
Mobile Phone Based Sensors
• First of all, let us look at the mobile phone, which is ubiquitous and
has many types of sensors embedded in it.
• In specific, the smartphone is a very handy and user friendly device
that has a host of built in communication and data processing
features.
• With the increasing popularity of smartphones among people,
researchers are showing interest in building smart IoT solutions using
smartphones because of the embedded sensors.
• Some additional sensors can also be used depending upon the
requirements.
Accelerometer
• The accelerometer senses the motion and acceleration of a mobile phone.
• It typically measures changes in velocity of the smartphone in three dimensions.
• There are many types of accelerometers.
• In a mechanical accelerometer, we have a seismic mass in a housing, which is tied to the
housing with a spring.
• The mass takes time to move and is left behind as the housing moves, so the force in the spring
can be correlated with the acceleration.
• In a capacitive accelerometer, capacitive plates are used with the same setup.
• With a change in velocity, the mass pushes the capacitive plates together, thus changing the
capacitance.
• The rate of change of capacitance is then converted into acceleration.
• In a piezoelectric accelerometer, piezoelectric crystals are used, which when squeezed generate
an electric voltage.
• The changes in voltage can be translated into acceleration.
• The data patterns captured by the accelerometer can be used to detect physical activities of the
user such as running, walking, and bicycling
Gyroscope
• The gyroscope detects the orientation of the phone very precisely.
• Orientation is measured using capacitive changes when a seismic
mass moves in a particular direction.
• The magnetometer detects magnetic fields.
• This can be used as a digital compass and in applications to detect the
presence of metals.
Camera and Microphone
• The camera and microphone are very powerful sensors since they
capture visual and audio information, which can then be analyzed and
processed to detect various types of contextual information.
• For example, we can infer a user’s current environment and
the interactions that she is having.
• To make sense of the audio data, technologies such as voice
recognition and acoustic features can be used.
GPS (Global Positioning System)
• The GPS (Global Positioning System) detects the location of the phone, which is one of the
most important pieces of contextual information for smart applications.
• The location is detected using the principle of trilateration.
• The distance is measured from three or more satellites (or mobile phone towers in the case of A-
GPS) and coordinates are computed.
Light Sensor
• The light sensor detects the intensity of ambient light.
• It can be used for setting the brightness of the screen and other applications in which some
action is to be taken depending on the intensity of ambient light.
• For example, we can control the lights in a room.
Proximity Sensor
• The proximity sensor uses an infrared (IR) LED, which emits IR rays. These rays bounce back
when they strike some object.
• Based on the difference in time, we can calculate the distance.
• In this way, the distance to different objects from the phone can be measured.
• For example, we can use it to determine when the phone is close to the face while talking.
• It can also be used in applications in which we have to trigger some event when an object
approaches the phone.
• Some smartphones such as Samsung’s Galaxy S4 also have a thermometer, barometer, and
humidity sensor to measure the temperature, atmospheric pressure, and humidity, respectively.
Medical Sensors
• The Internet of Things can be really beneficial for health care applications.
• We can use sensors, which can measure and monitor various medical parameters in the human
body.
• These applications can aim at monitoring a patient’s health when they are not in hospital or when
they are alone.
• Subsequently, they can provide real time feedback to the doctor, relatives, or the patient.
• McGrath and Scanaill have described in detail the different sensors that can be worn on the body
for monitoring a person’s health.
Medical Sensors Contd..
• There are many wearable sensing devices available in the market.
• They are equipped with medical sensors that are capable of measuring different parameters such
as the heart rate, pulse, blood pressure, body temperature, respiration rate, and blood glucose
levels.
• These wearables include smart watches, wristbands, monitoring patches, and smart textiles.
• Moreover, smart watches and fitness trackers are becoming fairly popular in the market as
companies such as Apple, Samsung, and Sony are coming up with very innovative features.
• For example, a smart watch includes features such as connectivity with a smartphone, sensors
such as an accelerometer, and a heart rate monitor
Monitoring Patches
• Another novel IoT device, which has a lot of promise
are monitoring patches that are pasted on the skin.
• Monitoring patches are like tattoos.
• They are stretchable and disposable and are very cheap.
These patches are supposed to be worn by the patient for
a few days to monitor a vital health
• parameter continuously.
• All the electronic components are embedded in these
rubbery structures.
• They can even transmit the sensed data wirelessly. Just
like a tattoo, these
• patches can be applied on the skin as shown in Figure 5.
• One of the most common applications of such patches is
to monitor blood pressure.
Neural Sensors
• Today, it is possible to understand neural signals in the brain,
infer the state of the brain, and train it for better attention and
focus. This is known as neurofeedback.
• The technology used for reading brain signals is called EEG
(Electroencephalography) or a brain computer interface.
• The neurons inside the brain communicate electronically and
create an electric field, which
• can be measured from outside in terms of frequencies.
• Brain waves can be categorized into alpha, beta, gamma, theta,
and delta waves depending upon the frequency.
• Based on the type of wave, it can be inferred whether the brain
is calm or wandering in thoughts.
• This type of neurofeedback can be obtained in real time and
can be used to train the brain to focus, pay better attention
towards things, manage stress, and have better mental well-
being.
Environmental and Chemical Sensors.
o Environmental sensors are used to sense parameters in the physical environment such as
temperature, humidity, pressure, water pollution, and air pollution.
o Parameters such as the temperature and pressure can be measured with a thermometer
and barometer.
o Air quality can be measured with sensors, which sense the presence of gases and other
particulate matter in the air.
o Chemical sensors are used to detect chemical and biochemical substances.
o These sensors consist of a recognition element and a transducer.
o The electronic nose (e-nose) and electronic tongue (e-tongue) are technologies that can be
used to sense chemicals on the basis of odor and taste, respectively.
o The e-nose and e-tongue consist of an array of chemical sensors coupled with advance
pattern recognition software.
o The sensors inside the e-nose and e-tongue produce software.
o The sensors inside the e-nose and e-tongue produce complex data, which is then analyze
through pattern recognition to identify the stimulus.
Sensors
• Power of sensors and IoT is in the area of precision agriculture
(sometimes referred to as smart farming),
• GPS and satellite aerial imagery for determining field viability; robots
for high-precision planting, harvesting, irrigation real-time analytics
and artificial intelligence to predict optimal crop yield, weather
impacts, and soil quality.
Actuators
• Actuators are natural complements to sensors.
• Actuators will receive some type of control signal (commonly an electric signal or
digital command) that triggers a physical effect, usually some type of motion,
force, and so on.
• An actuator is a device, which can effect a change in the environment by
converting electrical energy into some form of useful energy.
• Some examples are heating or cooling elements, speakers, lights, displays, and
motors.
• The actuators, which induce motion, can be classified into three categories,
namely, electrical, hydraulic, and pneumatic actuators depending on their
operation.
• Hydraulic actuators facilitate mechanical motion using fluid or hydraulic power.
• Pneumatic actuators use the pressure of compressed air and electrical ones use
electrical energy.
Actuators
https://www.databricks.com/blog/2022/01/05/how-to-build-scalable-data-and-ai-industrial-iot-solutions-in-manufacturing.html
Microcontrollers and Embedded PC roles in IIoT
• Most IoT devices have to be small and work based on relatively low
energy consumption.
• This is particularly true for resource-constrained devices, which
might operate far from a central system and use low-powered
batteries to function.
• Such IoT devices need something less heavy duty than the type of
processor found in a typical personal computer. For this, they use
microcontrollers.
• When trying to understand the place microcontrollers occupy in IoT,
we’re going to look at an IoT technology stack for an embedded
device and how the MCU interacts within it.
Microcontrollers Selection
• Embedded microprocessor systems are nothing but computer chips that are
integral part of lighting system, home appliances, industrial equipments, etc.
• Generally, microprocessors are used in signal processing, general computing and
real-time computing data.
• As a signal processor, microprocessors’ uses in digital televisions include
decoding of the digital and radio signals.
• In real-time systems, microprocessors are embedded in security devices like anti-
lock breaking system; these systems are widely used in automobiles.
• Its importance includes:
1. Handling many functions like calculations and word processing at higher speeds
2. Performing operations for the repetitive, continuous, progressive and sequential
functions without human labor
3. Communicating with the internet, telephones and other interfacing devices
Block diagram of an Embedded
Microprocessor
Embedded Microprocessor
• They collect data about the environment and communicate it to gateway devices
that relay the information to the cloud over the Internet.
• The communication between nodes in a WSN may be direct or multihop.
• The sensor nodes are of a constrained nature, but gateway nodes have sufficient
power and processing resources.
• The popular network topologies used in a WSN are a star, a mesh, and a hybrid
network.
• Most of the communication in WSN is based on the IEEE 802.15.4 standard.
• There are clearly a lot of protocols that can be used in IoT scenarios.
Applications of WSN
• Military applications: Wireless sensor networks be likely an integral part of
military command, control, communications, computing, intelligence, battlefield
surveillance, reconnaissance and targeting systems.
• Area monitoring: In area monitoring, the sensor nodes are deployed over a
region where some phenomenon is to be monitored. When the sensors detect
the event being monitored (heat, pressure etc.), the event is reported to one of
the base stations, which then takes appropriate action.
• Transportation: Real-time traffic information is being collected by WSNs to later
feed transportation models and alert drivers of congestion and traffic problems.
• Health applications: Some of the health applications for sensor networks are
supporting interfaces for the disabled, integrated patient monitoring, diagnostics,
and drug administration in hospitals, tele-monitoring of human physiological
data, and tracking & monitoring doctors or patients inside a hospital.
Applications of WSN
• Environmental sensing: The term Environmental Sensor Networks has developed to cover many
applications of WSNs to earth science research. This includes sensing volcanoes, oceans, glaciers,
forests etc. Some other major areas are listed below:
• Air pollution monitoring
• Forest fires detection
• Greenhouse monitoring
• Landslide detection
• Structural monitoring: Wireless sensors can be utilized to monitor the movement within buildings
and infrastructure such as bridges, flyovers, embankments, tunnels etc. enabling Engineering
practices to monitor assets remotely without the need for costly site visits.
• Industrial monitoring: Wireless sensor networks have been developed for machinery condition-
based maintenance (CBM) as they offer significant cost savings and enable new functionalities. In
wired systems, the installation of enough sensors is often limited by the cost of wiring.
• Agricultural sector: using a wireless network frees the farmer from the maintenance of wiring in a
difficult environment. Irrigation automation enables more efficient water use and reduces waste.
Structure of a wireless sensor network
• IPv6 is considered the best protocol for communication in the IoT domain
because of its scalability and stability.
• Such bulky IP protocols were initially not thought to be suitable for
communication in scenarios with low power wireless links such as IEEE 802.15.4.
• 6LoWPAN, an acronym for IPv6 over low power wireless personal area networks,
is a very popular standard for wireless communication.
• It enables communication using IPv6 over the IEEE 802.15.4 protocol.
• This standard defines an adaptation layer between the 802.15.4 link layer and the
transport layer.
• 6LoWPAN devices can communicate with all other IP based devices on the
Internet.
6LoWPAN
• The choice of IPv6 is because of the large addressing space available in IPv6.
6LoWPAN networks connect to the Internet via a gateway (WiFi or Ethernet),
which also has protocol support for conversion between IPv4 and IPv6 as
today’s deployed
• Internet is mostly IPv4. IPv6 headers are not small enough to fit within the
small 127 byte MTU of the 802.15.4 standard.
• Hence, squeezing and fragmenting the packets to carry only the essential
information is an optimization that the adaptation layer performs.
6LoWPAN
(i) Header compression 6loWPAN defines header compression of IPv6 packets for
decreasing the overhead of IPv6.
• Some of the fields are deleted because they can be derived from link level
information or can be shared across packets.
(ii) Fragmentation: the minimum MTU size (maximum transmission unit) of IPv6 is
1280 bytes.
• On the other hand, the maximum size of a frame in IEEE 802.15.4 is 127 bytes.
• Therefore, we need to fragment the IPv6 packet.
• This is done by the adaptation layer.
(iii) Link layer forwarding 6LoWPAN also supports mesh under routing, which is
done at the link layer using link level short addresses instead of in the network
layer.
• This feature can be used to communicate within a 6LoWPAN network.
Bluetooth Low Energy (BLE)
• Bluetooth Low Energy, also known as “Bluetooth Smart,” was developed by the
Bluetooth Special Interest Group.
• It has a relatively shorter range and consumes lower energy as compared to
competing protocols.
• The BLE protocol stack is similar to the stack used in classic Bluetooth technology.
• It has two parts: controller and host.
• The physical and link layer are implemented in the controller.
• The controller is typically a SOC (System on Chip) with a radio.
• The functionalities of upper layers are included in the host.
• BLE is not compatible with classic Bluetooth.
• Let us look at the differences between classic Bluetooth and BLE
Bluetooth Low Energy (BLE)
• The main difference is that BLE does not support data streaming.
• Instead, it supports quick transfer of small packets of data (packet size is
small) with a data rate of 1 Mbps.
• There are two types of devices in BLE: master and slave.
• The master acts as a central device that can connect to various slaves.
• Let us consider an IoT scenario where a phone or PC serve as the master
and mobile devices such as a thermostat, fitness tracker, smart watch, or
any monitoring device act as slaves.
• In such cases, slaves must be very power efficient.
• Therefore, to save energy, slaves are by default in sleep mode and wake up
periodically to receive packets from the master.
Difference between Bluetooth and BLE
• In classic Bluetooth, the connection is on all the time even if no data
transfer is going on.
• Additionally, it supports 79 data channels (1 MHz channel bandwidth) and
a data rate of 1 million symbols/s, whereas, BLE supports 40 channels with
2 MHz channel bandwidth (double of classic Bluetooth) and 1 million
symbols/s data rate.
• BLE supports low duty cycle requirements as its packet size is small and the
time taken to transmit the smallest packet is as small as 80 μs.
• The BLE protocol stack supports IP based communication also.
• An experiment conducted by Siekkinen et al. recorded the number of bytes
transferred per Joule to show that BLE consumes far less energy as
compared to competing protocols such as Zigbee.
• The energy efficiency of BLE is 2.5 times better than Zigbee.
Why Bluetooth in IoT?
• Bluetooth Low Energy in IoT can help IoT devices conserve energy by keeping the
devices in sleep mode when they are not in use, then let users exit the mode
when connected or reconnected.
• Bluetooth Low Energy in IoT is ideal for IoT applications because, contrary to the
classic Bluetooth applications, which reconnect to devices at a time of six seconds
or more, IoT BLE applications can quickly pair and reconnect with devices in six
milliseconds instead.
• In IoT BLE, a device can function in three stages; the Advertising stage, Scanning
stage, and Connected stage.
• In a scenario where you want to integrate two BLE devices with each other, one
device has to advertise.
• In contrast, the other has to scan for the device advertising before subsequently
initiating a connection. Advertising basically involves broadcasting packets that
allow another scanning device to find them.
Bluetooth IoT Devices
• Advertising is deployed in all Bluetooth IoT devices, but
one prominent application that exclusively functions in
this state is the Beacon technology.
• Beacon devices, like the MOKOBlue M1 Ultra-thin
Beacon, stay in the Advertising mode while
broadcasting data to other devices that they can
explore and read such data from.
• Since advertising data capacity is increased in
Bluetooth 5.0, Beacons can unlock new IoT applications
and use cases by transmitting more data.
• Properties of Bluetooth network
• Standard: Bluetooth 4.2
• Frequency: 2.4GHz
• Range: 50-150m
• Data transfer rates: 3Mbps
• Advantages of Bluetooth network
• • It is wireless.
• • It is cheap.
• • It is easy to install.
• • It is free to use if the device is installed with it.
• Disadvantages of Bluetooth network
• • It is a short-range communication network.
• • It connects only two devices at a time.
Zigbee
• It is based on the IEEE 802.15.4 communication protocol standard
and is used for personal area networks or PANs
• The IEEE 802.15.4 standard has low power
• Zigbee was developed by the Zigbee alliance, which works for reliable,
low energy, and cheap communication solutions.
• The range of Zigbee device communication is very small (10–100
meters).
• The details of the network and application layers are also specified by
the Zigbee standard.
• Unlike BLE, the network layer here provides for multihop routing.
Zigbee
• ZigBee is a Personal Area Network task group with low rate task group 4.
• It is a technology of home networking. ZigBee is a technological standard
created for controlling and sensor the network.
• ZigBee is a standard that addresses the need of very low-cost
implementation of Low power devices with Low data rate for short-range
wireless communications.
• Types of ZigBee Devices:
• Zigbee Coordinator Device – It communicates with routers. This device is
used for connecting the devices.
• Zigbee Router – It is used for passing the data between devices.
• Zigbee End Device – It is the device that is going to be controlled
Zigbee
General Characteristics of Zigbee Standard:
• Low Power Consumption
• Low Data Rate (20- 250 kbps)
• Short-Range (75-100 meters)
• Network Join Time (~ 30 msec)
• Support Small and Large Networks (up to 65000 devices (Theory); 240 devices (Practically))
• Low Cost of Products and Cheap Implementation (Open Source Protocol)
Operating Frequency Bands (Only one channel will be selected for use in a network):
1. Channel 0: 868 MHz (Europe)
2. Channel 1-10: 915 MHz (US and Australia)
3. Channel 11-26: 2.4 GHz (Across the World
Zigbee Architecture
• Architecture of Zigbee: Zigbee
architecture is a combination of 6 layers.
1. Application Layer
2. Application Interface Layer
3. Security Layer
4. Network Layer
5. Medium Access Control Layer
6. Physical Layer
Zigbee Architecture
• The Application layer is present at the user level.
• The Application Interface Layer, Security Layer, and Network Layer are
the Zigbee Alliance and they are used to store data and they use the
stack.
• Medium Access control and the Physical layer are the IEEE 802.15.4
and they are hardware which are digital means they accept only 0 and
1.
Features of ZigBee for Home Automation
• Some of the features of ZigBee for Home Automation include:
• Simplified setup and maintenance
• Ideal for new construction and remodelling
• ZigBee gives access to devices anywhere from the world just from your
smartphone
• Monitors power use and allows you to turn on/off devices from remote locations
• Built in security with interference avoidance techniques ensures better/enhanced
security and worry-free operations.
• Help you customise lighting scenes based on daily schedules, events and
activities.
• Due to low-power consumption of the ZigBee protocol, your security sensors can
work for a period of 7 years.
LoRaWAN
• LoRa stands for long-range radio, which is a low-power WAN wireless standard
adopted and promoted by American Semtech Company. Based on spread
spectrum technology, it is one of the wireless communication technologies of
LPWAN, performing well in terms of transmission distance and power
consumption.
• LoRa has longer distances than other wireless technologies for the same power
consumption, providing a simple system with long distances, long battery life, and
high capacity to scale sensor networks. The coverage of the Lora connection is 3-5
times that of traditional radio frequency communication. At present, LoRa has
been popularized all over the world and gradually applied to the Internet of
Things.
LORA ZIGBEE