Introduction To Internet of Things
Introduction To Internet of Things
INTERNET OF THINGS
A DEFINITE GUIDE TO LEARN IOT -
ENABLING TECHNOLOGIES,
CONNECTIVITY, PROTOCOLS AND
CLOUD
Contents
Applications of IoT
IoT Sensors
IoT Connectivity
IoT Cloud
www.iot4beginners.com
INTRODUCTION TO INTERNET OF IOTEDU
THINGS
Chapter 1
WHAT IS INTERNET OF
THINGS?
www.iot4beginners.com
CHAPTER 1
WHAT IS INTERNET OF THINGS?
Just imagine, you are in the 1950s, and you had to wash your clothes with
your hand. We didn't have a telephone until 1875. Alexander Graham Bell
invented the first telephone when his assistant was trying to reactivate a
telegraph transmitter. In 1886, Karl Benz patented the first three-wheeled
motorcar known as "Motorwagen." Edison invented the incandescent light
bulb. There are so many inventions which made our lives easier and more
manageable. The world is moving fast; accordingly, we have to adapt to the
speed of the movement. All these devices and appliances have a specific
role that made millions of lives simpler. The accessibility of these devices is
getting closer to many people despite their financial backgrounds. The
usage of cell phones in the year 2000 is way more inferior when compared
to the current year. The scope of the usage became an obligation. Currently,
we are in the generation of making these devices communicate with us. We
will look through the devices which are enabled with IoT in the later
chapters.
Chapter 2
www.iot4beginners.com
CHAPTER 2
IOT ENABLED Vs. NON-IOT ENABLED DEVICES
Gartner estimates that about 8.4 billion IoT devices were in use in 2017, up
31% from the previous year, and it will hit 20.4 billion by 2020. The whole
world spending on IoT hit about $2 trillion in 2017. Take this estimation on
the one hand, and on the other hand, let us think about our lives without
appliances or devices with IoT enabled. So, we will use an appliance that is
now IoT enabled and not before and compare their results and
effectiveness.
Washing Machine
Non- IoT enabled: Example WW9000 Washing Machine with eco
bubble, 10 kg
The washing machine is primarily used for washing and drying clothes. It
comes with two steel tubs: an inner tub and the outer tub, whose role is to
prevent water spillage to other parts of the machine. There are so many
control knobs such as selecting the load, selecting the water inlet such as
hot or cold water, selecting the mode such as save mode or normal mode,
and finally a program to select which comes to heavy, normal, light or
delicates. In our modern-day non-IoT washing machine appliances, the
selectivity of the programs varies.
Operation
Fill, Agitate, Drain and spin are the main functions of a washing machine. It
comes with an embedded system where a microcontroller does all the
functions. All the operations are connected to the microcontroller; when the
machine is ON and the program is selected, the microcontroller is triggered,
and it functions.
About WW9000 Washing Machine with eco bubble, 10 kg:
Four sensing technologies detect the load size, the amount of water
needed and the degree of soil to select the best wash programme. It
even adds the right amount of detergent for you.
Comes with a Digital Inverter Motor and a spin speed of 1600 rpm.
IoT enabled: Example: SAMSUNG WW7800M
The new WW7800M with QuickDrive technology is Samsung’s latest
washing machine slated for release in 2019.
It has an AI-powered laundry assistant called Q-rator.
Three key smart features;
Laundry Planner
Laundry Recipe
HomeCare Wizard.
Laundry Planner:
It comes with a customized timing and a proper schedule for the time
period of each wash. It allows the users to manage the laundry schedule.
Laundry Recipe:
It provides automatic recommendations for optimal wash cycles based on
information such as colour, fabric type, and degree of soiling provided by
the user.
HomeCare Wizard:
Onboard support structures for alerts of any problems and to provide
troubleshooting support if needed. It also allows the users to monitor the
washing machine using a remote, i.e., from anywhere in the world.
Chapter 3
APPLICATIONS OF IOT
www.iot4beginners.com
CHAPTER 3
APPLICATIONS OF IOT
As we all know, IoT (Internet of Things) in today's world is one of the most
renowned topics and is applied to make life easier. There are so many
applications of IoT in the market which is growing day by day. The devices of
IoT that connects our data to the devices are on demand. These devices are
called real-time devices or smart devices that reduce human efforts. In this
chapter, the real-time IoT applications are briefly described. So, now we are
going to discuss real-time IoT devices. The following is the applications.
SMART HOME
The smart home is one of the most valuable features of IoT devices on
demand. People are very much fond of it. So, it is nothing but an automatic
control of home appliances to make human life more straightforward, just
like it acts as a human-robot. It adds a wing to the real-time IoT after this
innovation.
Now, coming to the point, what makes the craze on smart home devices? It
is nothing but the savings of money, energy, efforts of the human being.
While sitting on the bed, we can switch off the light, fan, close the door,
make dinner, wash clothes, clean the floor and many more. Now think about
it, isn't this cool?
Now, so many companies have been developed by making smart home
devices. They are getting a huge profit every day by selling their products as
home automation become their building block. Some of the examples of
smart home devices are:
Amazon Alexa: It can play music, make a phone call, make a reminder,
tell about the news, find the nearby restaurants, get answers to your
question, turn on and off the light, lock the door and many more.
Google Assistant: It is a voice control device. It has google cast plus voice
assistant with Bluetooth and USB charging, clock system, multiple alarm,
play music, control smartphones and tablet.
Amazon Echo: It can play music, make a phone call, make a reminder,
tell about the news, find the nearby restaurants, get answers to your
question, turn on and off the light, lock the door and many more.
Philips Hue lightbulbs: Gives a pre-set light need as required, stay
connected, gives many shades of white light.
Wink Hub 2: Add voice control by combing with Alexa devices.
Samsung SmartThings Hub: Connects the smartphones and make them
work together. It has a light, speaker, thermostat, sensor and more.
SMART CITY
IoT is exploring its area. Earlier, the smart home or home automation where
it operates a home. Now, it is managing a city. Just imagine how life has
become easier and simpler.
So, what are the features of a smart city?
It helps people overcome severe problems like pollution, traffic congestion,
shortage of energy supply, drainage system, municipal services, etc. People
can find the parking slots easily, the map by installing the application on
their smartphones. The Internet of Things connected devices connects
them.
IoT has explored its area in well being of people. IoT technology impacts
great potential in connected healthcare services. It gives special care to
patients. It detects the health of the patients, consult the proper doctor and
also the proper treatments, location of the hospitals and store of medicines.
Therefore, collecting data helps in personalized analysis. In conclusion,
everyone is appreciating this new revolutionary invention of IoT dedicated
to peoples’ care. There are such companies and applications which helps
people in connected healthcare.
SMART AGRICULTURE
Due to the increase in population, the demand for food supply is increasing
day by day. In these conditions, the farmers need to apply some technical
support to produce more food. The countries are providing technical
support to the farmers. So that they can examine soil, control water usage,
keep in proper sunlight, moisture, fertilizer. Similarly, they can grow foods
sufficiently and are also supplying to the whole world. Smart agriculture
makes a productive infrastructure that connects our data to IoT devices
using sensors and installed apps. It is the key to the future agricultural
industry.
INDUSTRIAL AUTOMATION
Chapter 4
www.iot4beginners.com
CHAPTER 4
HOW DOES THE IOT SYSTEM WORK?
SENSORS
GATEWAYS
NETWORK
Chapter 5
IOT SENSORS
www.iot4beginners.com
CHAPTER 5
IOT SENSORS
In many cases, sensors are helpful and very important for the devices to
fetch the data. The data can be real-time, which includes the current
temperature, pressure or humidity. It can also sense the objects and
calculate the distance between them. For each purpose, there are sensors
available in the market. This article shall discuss various sensors and their
applications, which can be used in your DIY IoT projects.
Here is the list of Sensors most commonly used in the IoT devices,
TEMPERATURE SENSOR
PRESSURE SENSOR
A pressure sensor senses the pressure applied, i.e., force per unit area,
and it converts into an electrical signal.
It has high importance in weather forecasting. There are various
Pressure sensors available in the market for many purposes.
For example, if there are any water leaks in the residential or
commercial areas, a pressure sensor needs to be installed to check if
there are any leaks and measures the pressure.
Another example, all smartphones, wearables have these barometric
pressure sensors integrated into them.
PROXIMITY SENSOR
SMOKE SENSOR
Chapter 6
www.iot4beginners.com
CHAPTER 6
IOT DEVELOPMENT BOARDS AND GATEWAY
Hardware platforms are the foremost part of your IoT project where your
components are connected with that. In this chapter, some of the primary
and commonly used hardware platforms for your IoT projects are
discussed. You can compare the hardware with the feature, size, cost,
power supply, etc. Most of the hardware development boards are
microcontrollers and microprocessors, and some of them have inbuilt
sensors, come with a very small size, say a coin size.
Some boards have a high bandwidth WiFi radio and Bluetooth, also have
USB embedded within the board. So there is plenty of development kits out
there in the market with various features integrated within them. At the end
of this chapter, you can be confident to choose the kind of hardware
platform you will be working on your projects.
The Raspberry Pi, also known as RPi, is a small, “Single Board Computer”
(SBC) developed in the United Kingdom by Raspberry Pi Foundation. Their
main aim is to educate basic computer science in developing countries.
They had released several generations of Raspberry Pi.
The Keyboard and mouse can be connected with the USB, and other
components such as sensors can be connected with the GPIO pins. The RPi
has no built-in real-time clock, so it cannot track the time of the day. It
comes with lots of accessories like a Camera, SenseHat (which has lots of
built-in sensors), Gertboard, Official Display, etc.
ARDUINO
ESP8266
The ESP8266 is a coin-size, low-cost WiFi microchip with a TCP/IP stack and
a 32-bit microcontroller developed by a Chinese manufacturer called
Espressif Systems. A third-party company, Ai- Thinker, manufactured a
module called ESP-01, which allows the microcontroller to connect with the
WiFi connections and make simple TCP/IP connections. It has 16 GPIO pins
for inputs and outputs for Voltage, ground, receiver and transmitter data,
reset, chip power-down.
The VCC is +3.3 volt, and it can handle up to 3.6 voltage. It also has a Serial
Peripheral Interface (SPI), 32 KiB instruction RAM and an 80 KiB user-data
RAM. It has a Software Development Kit (SDK) in which there is no need for
a microcontroller and can be directly programmed. It has two versions, one
is from FreeRTOS, and another one is a callback. Also, there are many open-
source SDKs, which includes NodeMCU, Arduino, Sming and so on.
NODEMCU
If you are thinking about integrating an IoT gateway into your project, there
are a few factors you need to take into consideration. This will help evaluate
which will work best for the main objective and functionality that you.
Security
Most gateways now come with built-in security measures. But, depending
on the need, encryption standards, password protection, and tamper
detection are features not all gateway offers but some users might require.
Chapter 7
IOT COMMUNICATION
PROTOCOLS
www.iot4beginners.com
CHAPTER 7
IOT COMMUNICATION PROTOCOLS
Physical range: Typically less than 10 m (33 ft), up to 100 m (330 ft);
Bluetooth 5.0: 40–400 m (100–1,000 ft).
Applications
Audio Signal Transmission (Bluetooth Earphone, Bluetooth speaker),
Industrial ( Replacing the cable The original thought of Bluetooth, SPP
(Serial Port Profile), Multi UART Port, Makes it easy to transfer data
wirelessly to smartphones / PC, Makes it possible to upgrade
parameter/program wirelessly),
Smart Home ( Remote Control for A.C, TV, … Door Bell /Lock,
Illumination, Music /Audio, Security, Valve for Water/Gas,
Windows/Curtain, Power Socket )
Wearable Devices (Smartwatch, Smartpen, Smart shoes, etc)
BLE Broadcast
Short Range Real-time communications
Wi-Fi (Wireless Fidelity)
The security standard, Wi-Fi Protected Setup, allows embedded devices with
a limited graphical user interface to connect to the Internet with ease. Wi-Fi
Protected Setup has 2 configurations: The Push Button configuration and
the PIN configuration. These embedded devices are also called The Internet
of Things and are low-power, battery-operated embedded systems. A
number of Wi-Fi manufacturers design chips and modules for embedded
Wi-Fi, such as GainSpan.
Applications
Office IoT
Smart Home IoT
Smart city (Public Wi-fi)
Zigbee
Applications:
Home automation
Monitoring Sensor data
Industrial device sensing and controlling
Application
Smart City
Energy Management
Supply Chain Management
INTRODUCTION TO INTERNET OF IOTEDU
THINGS
Chapter 8
IOT CLOUD
www.iot4beginners.com
CHAPTER 8
IOT CLOUD
Say for example, if you are connecting an LED to a Raspberry Pi and you
need that to blink whenever you get a notification from your Twitter
account. The platform for connecting the LED to the RPi is called the
Hardware platform. Besides, the platform for connecting your Twitter
account to your Raspberry Pi you need a Cloud platform obviously. There
are a billion things connected to the internet and for that, it is harder to
maintain the data. Also, sending the data, store, and process all your data is
not possible in your home and it's not practical. So there are great cloud
services available to upgrade, maintain and secure your data.
Amazon Web Services (AWS) is one of the best cloud services for its trusted
security of data. It offers computing power, database storage, content
delivery, and other functionality to help businesses scale and grow.
Companies like Netflix, Kelloggs, Philips, GE, Dropbox, Foursquare, etc rely
on the services of Amazon Web Services. In 2017, the famous Gartner
ranked AWS as the leading international provider of Cloud Computing. The
AWS cloud spans around 60 availability zones, 20 Geographic Regions and 1
Local region around the world (as of 2019).
The well-known services of AWS are EC2 and S3. The EC2 ( Elastic Compute
Cloud), the operation of non-persistent virtual servers with Windows or
Linux. The S3(Simple Storage Service) is a service for file hosting via
HTTP/HTTPS. AWS is not only for top companies like Netflix or Reddit, even
we can host servers on AWS. It is not a fixed contract, as it is billed monthly
or even hourly. The AWS provides certifications on various levels and
different domains.
From the core point of view, Microsoft Azure is a public cloud computing
platform developed by Microsoft. Its initial release was in the year 2010 as
"Windows Azure" before that it had a name called "Project Red Dog". On
March 25, 2014, it was renamed "Microsoft Azure".
Cloud IoT Core is a fully managed service that allows you to easily and
securely connect, manage, and ingest data from millions of globally
dispersed devices. In combination with other services on Google Cloud
Platform, provides a complete solution for collecting, processing, analyzing,
and visualizing IoT data in real-time to support improved operational
efficiency. Cloud IoT Core - Secure device connection and management
service for the Internet of Things. cloud IoT Edge brings AI to the Edge
computing layer. Google Cloud Platform is available in 17 regions and 52
zones. They have different pricing methods.
The Bosch IoT Suite is a cloud-ready software package for the development
of Internet of Things (IoT) services and applications. It is part of the Bosch
IoT Cloud and provides an open IoT platform for a variety of applications.
With its IoT Suite, the Bosch company offers a software package on the
basis of which applications and services of the Internet of Things (IoT) can
be developed and implemented. The Bosch IoT Suite is cloud-enabled and
integrated in the Bosch IoT Cloud. It is an open IoT platform that can be
classified as a platform-as-a-service (PaaS) in the cloud computing model.
Cisco IoT
Oracle IoT is more into logistics operations and supply chain management
derived data from the connected devices. It is secure and scalable with real-
time insights. It supports industrial protocols, backhaul WAN technologies,
and transport protocols like RESTful and MQTT.
Salesforce
Chapter 9
www.iot4beginners.com
CHAPTER 9
IOT MESSAGING PROTOCOLS
The IoT devices use these messaging protocols at various levels for
communication. There is a wide variety of protocols to choose from, in this
chapter, we will look at four of the most used protocols in today’s world
namely MQTT, DDS, XMPP and HTTP. The choice of messaging protocols
depends mainly on your use case. Here we will compare the protocols on
the basis of a few key parameters relevant to IoT.
HTTP
HTTP stands for Hyper Text Transfer Protocol. It has been extensively used
to maintain connections between a client and a web server. It sends data
over in the ASCII format and hence the message sizes are comparatively
bigger. HTTP is also a document-centric transfer protocol.
XMPP
XMPP itself is very robust and powerful, owing mostly to its standardized
and decentralized nature. It stands for Extensible Messaging and Presence
Protocol. This messaging protocol is based on the Extensible Markup
Language (XML). XMPP is a Message Centric protocol. It also has no
provision for Quality of Service (QoS). XMPP is also extendable and
adaptable, allowing for the creation of bots in the lines of IRC bots.
DDS
Another frequently used messaging protocol is DDS. DDS stands for Data
Distribution Service. It enables scalable, real-time, reliable, high
performance and interoperable data exchanges between publishers and
subscribers. DDS is also a data-centric protocol. DDS is also one of the only
protocols that are both data-centric and provides extensive support for QoS
(Quality of Service).
Factors of Comparison
Centricity
The centricity of a protocol defines the broad purpose and use case of that
protocol. It is mainly of three types – Data-Centric, Message Centric and
Document Centric.
Data-Centric
In a data-centric system, the focus is mainly on the data defined by the user.
The unit of exchange in this type of system is the data.
Message Centric
A message centric system requires the users to share data through the
exchange of messages. This makes message centric systems a little harder
to maintain as it requires the user to spend time writing message handling
logic.
Document Centric
A document-centric system is that system in which the major data type that
gets transferred is documents. HTTP has for long been used to transfer
HTML documents around the web. Essentially HTTP was built keeping in
mind the transfer of documents rather than messages or data (which is
important for IoT).
Transport
Software at the transport layer is responsible for establishing temporary
communication sessions between two application programs and delivering
data as requested by those applications.