IoT Definition
IoT Definition
Unit 2
Application Sensors & Actuators - Edge Networking (WSN) – Gateways - IoT
Communication Model – WPAN & LPWA, IoT platform for available applications,
Hardware     Devices:     Arduino,    Raspberry   pi   and   Smartwifi,   etc,   Wearable
Development Boards.
1. Application Sensors & Actuators:
 1.   SENSORS AND ACTUATORS
         A transducer is any physical device that converts one form of energy into
 another. So, in the case of a sensor, the transducer converts some physical
 phenomenon into an electrical impulse that can then be interpreted to determine
 a reading. A microphone is a sensor that takes vibration energy (sound waves),
 and converts it to electrical energy in a useful way for other components in the
 system to correlate back to the original sound.
      Another type of transducer that we will encounter in many IoT systems is an
 actuator. In simple terms, an actuator operates in the reverse direction of a
 sensor. It takes an electrical input and turns it into physical action. For instance, an
 electric motor, a hydraulic system, and a pneumatic system are all different types
 of actuators.
         Examples of actuators
                Digital micromirror device
                Electric motor
                Electroactive polymer
                Hydraulic cylinder
                Piezoelectric actuator
                Pneumatic actuator
     Screw jack
     Servomechanism
     Solenoid
     Stepper motor
    In typical IoT systems, a sensor may collect information and route to a
control center where a decision is made and a corresponding command is
sent back to an actuator in response to that sensed input. There are many
different types of sensors. Flow sensors, temperature sensors, voltage
sensors, humidity sensors, and the list goes on. In addition, there are
multiple ways to measure the same thing. For instance, airflow might be
measured by using a small propeller like the one you would see on a
weather station. Alternatively, as in a vehicle measuring the air through
the engine, airflow is measured by heating a small element and measuring
the rate at which the element is cooling.
We live in a World of Sensors. You can find different types of Sensors in our
homes, offices, cars etc. working to make our lives easier by turning on the
lights by detecting our presence, adjusting the room temperature, detect
smoke or fire, make us delicious coffee, open garage doors as soon as our
car is near the door and many other tasks.
The example we are talking about here is the Autopilot System in aircrafts.
Almost all civilian and military aircrafts have the feature of Automatic Flight
Control system or sometimes called as Autopilot. An Automatic Flight
Control System consists of several sensors for various tasks like speed
control, height, position, doors, obstacle, fuel and many more. A Computer
takes data from all these sensors and processes them by comparing them
with pre-designed values. The computer then provides control signal to
different parts like engines, flaps, rudders etc. that help in a smooth flight.
All the parameters i.e. the Sensors (which give inputs to the Computers),
the Computers (the brains of the system) and the mechanics (the outputs of
the system like engines and motors) are equally important in building a
successful automated system. Sensor as an input device which provides an
output (signal) with respect to a specific physical quantity (input). Sensor
means that it is part of a bigger system which provides input to a main
control system (like a Processor or a Microcontroller).
S.No Sensor                Applications                  Technology
1.    Inertial sensors     Industrial                    MEMS                and
                           machinery,                    Gyroscope
                           automotive, human
                           activity
2.    Speed Measuring      Industrial machinery,         Magnetic, light
      Sensor               automotive,           human
                           activity
      Proximity sensor     Industrial                    Capacitive,
3.                         machinery,                    Inductive,
                           automotive, human             Magnetic, Light,
                           activity                      Ultrasound
4.    Occupancy sensor Home/office monitoring            PassiveIR,
                                                         Ultrasound most
                                                         common
5.    Temperature/         Home/office HVAC control, Solid state,
      humid ity            automotive, industrial        thermocouple
      Sensor
      Light sensor         Home/office/industrial        Solid             state,
6.                         lighting control              photocell,
                                                         Photo
                                                         resistor,
                                                         photodiode
                           Home/office/industrial        Coil (Faraday‘s law),
7.    Power                powermonitoring/control       Hall effect
      (current)            Technology
      Sensor
      Air/fluid   pressure Industrial                    Capacitive,
8.    sensor               monitoring/control,           Resistive
                           automotive, agriculture
9.    Acoustic sensor      Industrial                    Diaphragm
                           monitoring/control,           condenser
                           human interface
10.   Strain sensor        Industrial                    Resistive thin films
                                  monitoring/control,
                                  civil infrastructure
In the first classification of the sensors, they are divided in to Active and Passive.
Active Sensors are those which require an external excitation signal or a power
signal. Passive ensors, on the other hand, do not require any external power signal
and directly generates output response. The other type of classification is based on
the means of detection used in the sensor. Some of the means of detection are
Electric, Biological, Chemical, Radioactive etc.
       The next classification is based on conversion phenomenon i.e. the input
and the output. Some of the common conversion phenomena are Photoelectric,
Thermoelectric, Electrochemical, Electromagnetic, Thermo-optic, etc. The final
classification of the sensors are Analog and Digital Sensors. Analog Sensors
produce an analog output i.e. a continuous output signal with respect to the
quantity being measured.
Digital Sensors, in contrast to Analog Sensors, work with discrete or digital data.
The data in digital sensors, which is used for conversion and transmission, is digital
in nature.
       1. IR   LED
       It is also called as IR Transmitter. It is used to emit Infrared rays. The
range of these frequencies are greater than the microwave frequencies
(i.e. >300GHz to few hundreds of THz). The rays generated by an infrared
LED can be sensed by Photodiode explained below. The pair of IR LED and
photodiode is called IR Sensor.Fig 2. LED sensor
2. Photo   Diode (Light Sensor)
It is a semiconductor device which is used to detect the light rays and
mostly used as IR Receiver. Its construction is similar to the normal PN
junction diode but the working principle differs from it. As we know a PN
junction allows small leakage currents when it is reverse biased so, this
photodiode can be used to sense the light rays and maintain the current
through the circuit. Check here the working of Photodiode with IR sensor.
3. Proximity   Sensor
A Proximity Sensor is a non-contact type sensor that detects the presence
of an object. Proximity Sensors can be implemented using different
techniques like Optical (like Infrared or Laser), Ultrasonic, Hall Effect,
Capacitive, etc.
            Fig 4.Proximity sensor
Some of the applications of Proximity Sensors are Mobile Phones, Cars
(Parking Sensors), industries (object alignment), Ground Proximity in
Aircrafts, etc. Proximity Sensor in Reverse Parking is implemented
in     this        Project:     Reverse      Parking     Sensor       Circuit.
        the resistance decreases. So, the thermistor‘s resistance can be varied with the
        rise in temperature which causes more current flow through it. This change in
        current flow can be used to determine the amount of change in temperature. An
        application for thermistor is, it is used to detect the rise in temperature and
        control the leakage current in a transistor circuit which helps in maintaining its
        stability. Here is one simple application for Thermistor to control the DC fan
        automatically.Fig 6.Thermistor
        1. Potentiometer
     Ultrasonic means nothing but the range of the frequencies. Its range is
greater than audible range (>20 kHz) so even it is switched on we can‘t sense
these sound signals. Only specific speakers and receivers can sense those
ultrasonic waves. This ultrasonic sensor is used to calculate the distance between
the ultrasonic transmitter and the target and also used to measure the velocity of
the target.
      Ultrasonic sensor HC-SR04 can be used to measure distance in the range
of 2cm-400cm with an accuracy of 3mm. Let‘s see how this module works. The
HCSR04 module generates a sound vibration in ultrasonic range when we make the
‗Trigger‘ pin high for about 10us which will send an 8 cycle sonic burst at the speed
of sound and after striking the object, it will be received by the Echo pin.
Depending on the time taken by sound vibration to get back, it provides the
appropriate pulse output. We can calculate the distance of the object based on the
time taken by the ultrasonic wave to return back to the sensor.
current through it also alters which finally can detect the gas.
Actuators in IoT
        An IoT device is made up of a Physical object (“thing”) + Controller (“brain”)
+ Sensors + Actuators + Networks (Internet). An actuator is a machine component or
system that moves or controls the mechanism of the system. Sensors in the device
sense the environment, then control signals are generated for the actuators according
to the actions needed to perform.
        A servo motor is an example of an actuator. They are linear or rotatory actuators,
can move to a given specified angular or linear position. We can use servo motors for
IoT applications and make the motor rotate to 90 degrees, 180 degrees, etc., as per our
need.
The following diagram shows what actuators do, the controller directs the actuator
based on the sensor data to do the work.
The control system acts upon an environment through the actuator. It requires a source
of energy and a control signal. When it receives a control signal, it converts the source
of energy to a mechanical operation. On this basis, on which form of energy it uses, it
has different types given below.
Types of Actuators :
1. Hydraulic Actuators –
A hydraulic actuator uses hydraulic power to perform a mechanical operation. They are
actuated by a cylinder or fluid motor. The mechanical motion is converted to rotary,
linear, or oscillatory motion, according to the need of the IoT device. Ex- construction
equipment uses hydraulic actuators because hydraulic actuators can generate a large
amount of force.
Advantages :
   Hydraulic actuators can produce a large magnitude of force and high speed.
   Used in welding, clamping, etc.
   Used for lowering or raising the vehicles in car transport carriers.
Disadvantages :
   Hydraulic fluid leaks can cause efficiency loss and issues of cleaning.
   It is expensive.
   It requires noise reduction equipment, heat exchangers, and high maintenance
    systems.
2. Pneumatic Actuators –
A pneumatic actuator uses energy formed by vacuum or compressed air at high
pressure to convert into either linear or rotary motion. Example- Used in robotics, use
sensors that work like human fingers by using compressed air.
Advantages :
   They are a low-cost option and are used at extreme temperatures where using air is
    a safer option than chemicals.
   They need low maintenance, are durable, and have a long operational life.
   It is very quick in starting and stopping the motion.
Disadvantages :
   Loss of pressure can make it less efficient.
   The air compressor should be running continuously.
   Air can be polluted, and it needs maintenance.
3. Electrical Actuators –
An electric actuator uses electrical energy, is usually actuated by a motor that converts
electrical energy into mechanical torque. An example of an electric actuator is a
solenoid based electric bell.
Advantages :
   It has many applications in various industries as it can automate industrial valves.
   It produces less noise and is safe to use since there are no fluid leakages.
   It can be re-programmed and it provides the highest control precision positioning.
Disadvantages :
   It is expensive.
   It depends a lot on environmental conditions.
Other actuators are –
   Thermal/Magnetic Actuators –These are actuated by thermal or mechanical
    energy. Shape Memory Alloys (SMAs) or Magnetic Shape‐Memory Alloys (MSMAs) are
    used by these actuators. An example of a thermal/magnetic actuator can be a piezo
    motor using SMA.
   Mechanical Actuators – A mechanical actuator executes movement by converting
    rotary motion into linear motion. It involves pulleys, chains, gears, rails, and other
    devices to operate. Example – A crankshaft.
   Soft Actuators
   Shape Memory Polymers
   Light Activated Polymers
   With the expanding world of IoT, sensors and actuators will find more usage in
    commercial and domestic applications along with the pre-existing use in industry.
2. Edge   Networking:
What is edge networking?
       Edge networking is a cloud-based networking architecture that locates computing
resources and data storage close to where they’re needed – near end-user devices at the
‘edge’ of a network. This differs from traditional cloud computing, where data is
processed in centralised data centres.
In edge networks, devices such as sensors, routers, and IoT devices handle a significant
amount of data processing locally. This helps to reduce latency and bandwidth usage,
enabling real-time data processing for applications like AI, IoT (Internet of Things) and
5G.
For example, in 5G networks, edge networking enables ultra-low latency, high speed
communications, essential for applications like autonomous vehicles, real-time gaming
and augmented reality (AR).
How does edge networking work?
Edge networking works by processing and storing data at or close to the devices that
generate the data.
For example, autonomous vehicles like self-driving cars generate vast amounts of data
from sensors, cameras and other devices. Instead of transmitting it to a distant cloud
server, data is processed in or near the vehicle in real time, enabling split-second
decisions about steering, braking, speed and navigation.
Autonomous vehicle edge network
From cameras in self-driving cars to sensors in smart factories or your mobile phone,
edge networks rely on edge devices to compute data at the edge.
      Let‘s take a factory as a typical case for an IoT system. A factory would need a
large number of connected sensors and actuators scattered over a wide area, and a
wireless technology would be the best fit.
                        Fig 24.Wireless Sensor Network Architecture
A wireless sensor network (WSN) is a collection of distributed sensors that monitor
physical or environmental conditions, such as temperature, sound, and pressure.
Data from each sensor passes through the network node-to-node.
WSN Nodes
      WSN nodes are low cost devices, so they can be deployed in high volume.
They also operate at low power so that they can run on battery, or even use energy
harvesting. A WSN node is an embedded system that typically performs a single
function (such as measuring temperature or pressure, or turning on a light or a
motor).
      Energy harvesting is a new technology that derives energy from external
sources (for example, solar power, thermal energy, wind energy, electromagnetic
radiation, kinetic energy, and more). The energy is captured and stored for use by
small, low-power wireless autonomous devices, like the nodes on a WSN.
WSN Edge Nodes
     A WSN edge node is a WSN node that includes Internet Protocol connectivity. It
acts as a gateway between the WSN and the IP network. It can also perform local
processing, provide local storage, and can have a user interface.
     Fig 25.WSN Edge
                              Fig 25.Edge
What are edge devices?
     An edge device is a device at the edge of a network that connects to another
network. Put simply, it’s a bridge between two networks.
In addition, edge devices may filter, aggregate and process data without transmitting it
to central cloud servers. Here are some common edge devices and the role they play.
Common edge devices
Device Function
Industrial             Collect and analyse production line data in real time. This
controllers            allows them to optimise efficiency and reduce downtime.
System):
As IoT devices work with low power consumption(Battery power) in other words they
are energy constrained so if they will directly communicate to cloud/internet it won’t be
effective in terms of power. So they communicate with Gateway first using short range
wireless transmission modes/network like ZigBee, Bluetooth, etc as they consume less
power or they can also be connected using long range like Cellular and WiFi etc.
       Then Gateway links them to Internet/ cloud by converting data into a standard
protocol like MQTT. using ethernet, WiFi/cellular or satellite connection. And in mostly
Gateway is Mains powered unlike sensor nodes which are battery powered. In practice
there are multiple Gateway devices. Let’s think about a simple IoT gateway, then our
smartphone comes into picture as it can also work as a basic IoT gateway when we use
multiple radio technologies like WiFi, Bluetooth, Cellular network of smart phone to
work on any IoT project in sending and receiving data at that time this also acts as a
basic IoT Gateway.
Key functionalities of IoT Gateway :
   Establishing communication bridge
   Provides additional security.
   Performs data aggregation.
   Pre processing and filtering of data.
   Provides local storage as a cache/ buffer.
   Data computing at edge level.
   Ability to manage entire device.
   Device diagnostics.
   Adding more functional capability.
   Verifying protocols.
Working of IoT Gateway :
1. Receives data from sensor network.
2. Performs Pre processing, filtering and cleaning on unfiltered data.
3. Transports into standard protocols for communication.
4. Sends data to cloud.
IoT Gateways are key element of IoT infrastructure as Gateways establish connection
for communication and also performs other task as described above. So IoT Gateway is
one of most essential thing when we start think about an IoT ecosystem.
Advantages of Gateway:
There are several advantages of using a gateway in the Internet of Things (IoT),
including:
   Protocol translation: IoT devices typically use different communication protocols,
    and a gateway can translate between these protocols to enable communication
    between different types of devices.
   Data aggregation: A gateway can collect data from multiple IoT devices and
    aggregate it into a single stream for easier analysis and management.
   Edge computing: Gateways can perform edge computing tasks such as data
    processing, analytics, and machine learning, enabling faster and more efficient
    decision-making.
   Security: Gateways can act as a secure access point for IoT devices, providing a
    layer of protection against cyber threats.
   Scalability: Gateways can support a large number of IoT devices and can be easily
    scaled up or down to meet changing needs.
   Improved reliability: Gateways can help to improve the reliability of IoT devices
    by managing network connectivity and providing a backup mechanism in case of
    network failure.
   Cost-effective: Gateways can be a cost-effective way to manage and control a
    large number of IoT devices, reducing the need for expensive infrastructure and IT
    resources.
5. IoT Communication Model:
    IoT devices are found everywhere and will enable circulatory intelligence in the
future. For operational perception, it is important and useful to understand how various
IoT devices communicate with each other. Communication models used in IoT have
great value. The IoTs allow people and things to be connected any time, any space,
with anything and anyone, using any network and any service.
Types of Communication Model :
1.Request & Response Model –
       This model follows a client-server architecture.
   The client, when required, requests the information from the server. This request is
    usually in the encoded format.
   This model is stateless since the data between the requests is not retained and each
    request is independently handled.
   The server Categories the request, and fetches the data from the database and its
    resource representation. This data is converted to response and is transferred in an
    encoded format to the client. The client, in turn, receives the response.
   On the other hand — In Request-Response communication model client sends a
    request to the server and the server responds to the request. When the server
    receives the request it decides how to respond, fetches the data retrieves resources,
    and prepares the response, and sends it to the client.
2. Publisher-Subscriber Model –
This model comprises three entities: Publishers, Brokers, and Consumers.
   Publishers are the source of data. It sends the data to the topic which are managed
    by the broker. They are not aware of consumers.
   Consumers subscribe to the topics which are managed by the broker.
   Hence, Brokers responsibility is to accept data from publishers and send it to the
    appropriate consumers. The broker only has the information regarding the consumer
    to which a particular topic belongs to which the publisher is unaware of.
4. Exclusive Pair –
   Exclusive Pair is the bi-directional model, including full-duplex communication
    among client and server. The connection is constant and remains open till the client
    sends a request to close the connection.
   The Server has the record of all the connections which has been opened.
   This is a state-full connection model and the server is aware of all open connections.
   WebSocket based communication API is fully based on this model.
                                Fig 31 WPAN
Topologies IEEE 802.15 WPAN Standards:
1. IEEE 802.15.2- Co existence of Bluetooth and 802.11b
2. IEEE 802.15.3- High Rate WPAN
   Low power and low cost applications for digital imaging and multimedia applications.
3. IEEE 802.15.4- Low Rate WPAN
   Industrial ,Medical and agriculture applications.
Bluetooth ≈ IEEE 802.15.1
A widely used WPAN technology is known as Bluetooth (version 1.2 or version 2.0).
The IEEE standard specifies the architecture and operation of Bluetooth devices, but
only as far as physical layer and medium access control (MAC) layer operation is
concerned (the core system architecture). Higher protocol layers and applications
defined in usage profiles are standardized by the Bluetooth SIG. Bluetooth is the base for
IEEE Std 802.15.1-2002 (rev. 2005).Data rate of 1 Mbps (2 or 3 Mbps with enhanced data
rate).
Piconets
◻ Bluetooth enabled electronic devices connect and communicate wirelessly
   through short-range, ad hoc networks known as piconets. Piconets are
   established dynamically and automatically as Bluetooth enabled devices enter
   and leave radio proximity. Up to 8 devices in one piconet (1 master and up to 7
   slave devices)
◻ Max range is 10 m. The piconet master is a device in a piconet whose clock
   and   device     address   are   used   to   define   the   piconet   physical   channel
   characteristics. All other devices in the piconet are called piconet slaves.All
   devices have the same timing and frequency hopping sequence. At any given
   time, data can be transferred between the master and one slave.
◻ The master switches rapidly from slave to slave in a round-robin fashion. Any
   Bluetooth device can be either a master or a slave. Any device may switch the
   master/slave role at any time.
Scatternet
Any Bluetooth device can be a master of one piconet and a slave of another piconet
at the same time (scatternet). Scatternet is formed by two ormore Piconets. Master
of one piconet can participate as a slave in another connected piconet. No time or
frequency synchronization between piconets
Bluetooth Protocol Stack Radio Layer
The radio layer specifies details of the air interface, including the usage of the
frequency hopping sequence, modulation scheme, and transmit power. The radio
layer FHSS operation and radio parameters
Baseband Layer
The baseband layer specifies the lower level operations at the bit and packet
levels. It supports Forward Error Correction (FEC) operations and Encryption,
Cyclic Redundancy Check (CRC) calculations. Retransmissions using the
Automatic Repeat Request (ARQ) Protocol.
                         Fig 32 Bluetooth Protocol Stack
Link Manager layer
The link manager layer specifies the establishment and release links, authentication,
traffic scheduling, link supervision, and power management tasks. Responsible for all
the physical link resources in the system. Handles the control and negotiation of
packet sizes used when transmitting data.Sets up, terminates, and manages
baseband connections between devices. L2CAP layer
The   Logical   Link   Control   and   Adaptation    Protocol    (L2CAP)    layer   handles   the
multiplexing of higher layer protocols and the segmentation and reassembly (SAR) of
large packets The L2CAP layer provides both connectionless and connection-oriented
services
L2CAP performs 4 major functions
Managing the creation and termination of logical links for each connection through
channel structures. Adapting Data, for each connection, between application
(APIs) and Bluetooth Baseband formats through Segmentation and Reassembly
(SAR). Performing Multiplexing to support multiple concurrent connections over a
single common radio interface (multiple apps. using link between two devices
simultaneously).   L2CAP      segments    large     packets     into   smaller   baseband
manageable packets. Smaller received baseband packets are reassembled coming
back up the protocol stack.
RFCOMM
Applications may access L2CAP through different support protocols Service Discovery
Protocol (SDP) RFCOMM Telephony Control Protocol Specification (TCS) TCP/IP based
applications, for instance information transfer using the Wireless Application Protocol
(WAP), can be extended to Bluetooth devices by using the Point-to-Point Protocol (PPP)
on top of RFCOMM.
OBEX Protocol
The Object Exchange Protocol (OBEX) is a sessionlevel protocol for the exchange of
objects This protocol can be used for example for phonebook, calendar or
messaging synchronization, or for file transfer between connected devices.
TCSBIN Protocol
The telephony control specification - binary (TCS BIN) protocol defines the call-
control signaling for the establishment of speech and data calls between
Bluetooth devices In addition, it defines mobility management procedures for
handling groups of Bluetooth devices.
Service Discovery Protocol
The Service Discovery Protocol (SDP) can be used to access a specific device (such
as a digital camera) and retrieve its capabilities, or to access a specific application
(such as a print job) and find devices that support this application.
2. Smart Wi-Fi module
          Smart Wi-Fi is an IoT-enabler tool. The applications it can cater to are only
      limited by the imagination of makers. The very basic applications could be for
      smart homes or smart offices. This module can be used for data logging, data
      monitoring   and   more,   and    provides   very   good   support   for   product
      development. It also has all features to act as a full-fledged product. Platforms
      such as ThingSpeak add to the benefits and provide support for testing and
      development of an IoT product. Smart Wi-Fi enables making a product quickly
      and reliably. With open software resources and hardware data, moving to the
      final product after the proof of concept is also easy.
IoT Platform Supported:
Internet of Things is no longer a newer concept. Undoubtedly, businesses and
industries are widely accepting the Internet of Things systems. Thus, the practice of
these high-tech IoT platforms is rapidly increasing. You should have a keen knowledge
of the IoT Development Platforms. It will help you to accomplish the Internet of Things
product expansion.
1. Google Cloud IoT Platform
The giant Techno company has used the IoT platforms for efficiency. According to
Google, the Cloud Platform is the top part for encouraging IoT technology. Moreover,
with the utmost security system, Google Cloud offers complete functioning effectively.
Standing as one of the top Internet of Things Platforms, it offers various fascinating
features. For example, robust A.I. aptitudes, Fast business procedures, Machine
learning with vast capacity. Not only these, but the Google Cloud IoT also increases the
work rate of the devices. This platform uses cloud amenities to lessen the cost and
inspires location intelligence as well. They mainly focus on effective, fast, and efficient
ways to run your business. In addition, the Google Cloud platform offers real-time
understandings of devices used worldwide. This Google platform makes files
maintenance and sharing easy. You can operate this IoT platform within any operating
system without any problems.
2. Amazon Web Services Platform for IoT
Another best Internet of Things Platform that is easily available currently. Amazon was
the first and foremost company that uses the cloud as an IoT platform in the year 2004.
Since that time, Amazon has put a lot of energy into building Amazon web services as
the best IoT platform. This platform offers the most innovative and captivating features
for its users. Also, they provide the most wide-ranging set of tools in the market. As it is
easy and has a uniqueness in its properties, several companies use it throughout the
world. Moreover, because of IoT device management, you can easily connect and
extend your devices. Amazon authorities have examined its versatility and adaptability
properly. Therefore, they assure that this platform is safe and secure for the users.
3. 2Smart Cloud
This IoT device development platform is known as a product suitable for any audience
passionate about the Internet of Things, with many unique features and flexible pricing.
Enthusiasts utilize here low-code device programming using ESPHome’s simple syntax
and enjoy the free connection of up to 20 devices.
Startups are attracted to the platform because it provides a ready-made mobile
application, which is configured using a no-code builder with an extensive library of
ready-made widgets.
Enterprises use the 2Smart Business Platform to manage their fleets of IoT devices with
the ability to brand the platform and mobile app using a white-label model. The
Business Platform provides flexible tools for managing companies and users, restricting
access levels for administrators, as well as advanced device monitoring and
maintenance.
The 2Smart team keeps up with trends and offers the best user experience to end
users. A modern mobile application with a fast-reactive interface allows one to use a
wide range of control options, particularly voice commands for Siri and Google Home,
instant messengers bots, phone calls, and many IFTTT integrations. Users can also
utilize several options to share their devices with others easily.
2Smart Cloud is an excellent example of how an IT product, developed not by one of
the long-term market leaders, is ready to compete with majors and can meet the needs
of the broadest possible audience.
4. ThingWorx
The ThingWorx IoT platform is created with low development cost and taken less time
for building. In addition, this platform offers a flexible solution that allocates fine run
time, complete app design, and an intellectual environment. The ThingWorx helps the
users to overcome the challenges in their businesses and increases their overall
performances. Also, it allows you to connect effortlessly with more devices to diverse
platforms. Furthermore, it provides scalability and elasticity to the technological world.
The inclusion of a machine learning system helps the users to integrate with their
devices. Moreover, it offers real-time intuitions from the industrial Internet of things.
This enables the users to improve the business processes effectively.
5. Microsoft Azure IoT Platform
The Microsoft open-source Internet of Things platform allows you to build safe and
mountable edge-to-cloud results rapidly. As per the companies’ desires, you can use
this platform for developing your apps flexibly. It consists of the boosted Artificial
Intelligence solutions. The Microsoft Azure IoT Platform offers ready-to-use tools,
facilities, and models to develop the apps accordingly. Undoubtedly, this platform
protects the data and files from the cloud. The Azure platform completely manages the
databases safely. The best feature of this IoT development Platform is the Azure IoT
Edge. It has the ability to function the apps even if you are offline. Moreover, this IoT is
designed in such a way that different industrial sectors can easily use it. No matter, it is
a manufacturing industry or transportation one.
6. IRI Voracity
Undoubtedly, the IRI Voracity is an all-rounder data management platform that allows
IoT data control at every business process level. From data detection to data analytics,
IRI Voracity can handle every single thing smoothly and easily. Mainly, this platform
uses two engines, namely, Hadoop and IRI CoSort, that helps in processing large data.
IRI can discover, integrate, govern and transform data from several sources in various
forms. For example, Windows file, Linux, ISAM, HIVE, Unix, etc., and many others.
Moreover, IRI helps in sub-setting, drifting, imitating, and leveraging the IoT data for
playbooks, data lakes, and analytics.
7. Oracle IoT
Another notable and important Internet of Things Platform is Oracle. It is worldwide
popular because of its stimulated planning for computing clouds and handling
databases. The Oracle IoT platform connects the devices to the cloud without having
any issues. Basically, the oracle permits the creation of IoT apps. Thereafter, it helps
the devices to connect with JavaScript, Java, Android, iOS, etc. Furthermore, it
enhances operational growth and improves work productivity. As Oracle is popular for
its database handling services, it wires to produce a large amount of data. Due to the
adaptable feature that develops business apps, several businesses opt for oracle. In
addition, it offers exclusive digital individualities to devices that are connected. This
enhances the faith between the apps and the devices.
8. IBM Watson IoT
Last but not least, IBM Watson IoT offers various features related to IoT solutions. This
offers a completely accomplished cloud service for device management. Also, it
provides utmost scalability and flexibility to connected devices. The IBM Watson IoT
platform helps you to collect data from several sources like assets, buildings,
automobiles, and others things. Moreover, it possesses direct access to the newest
data in the Cloudant NoSQL DB solution. IBM has other fine features like collecting raw
data and understanding its patterns. This helps in taking out the treasured insights of
the unstructured data. Also, IBM supports the easy transfer of data workload to the
clouds. Moreover, this platform assists you to optimize the data and resources for your
profit.
Conclusion: In this digital world, everything is concerned with the internet that
generates data. We can use IoT platforms to use this data for enhancing business
growth. Also, IoT apps can benefit us in competitive purposes. Every project needs
different scalability, security, and space. You can select the best IoT development
platforms based on these parameters according to your requirements and desires!
Raspberry Pi in IOT
What is a Raspberry Pi? Raspberry pi is the name of the “credit card-sized computer
board” developed by the Raspberry pi foundation, based in the U.K. It gets plugged in a
TV or monitor and provides a fully functional computer capability. It is aimed at
imparting knowledge about computing to even younger students at the cheapest
possible price. Although it is aimed at teaching computing to kids, but can be used by
everyone willing to learn programming, the basics of computing, and building different
projects by utilizing its versatility.
Raspberry Pi is developed by Raspberry Pi Foundation in the United Kingdom. The
Raspberry Pi is a series of powerful, small single-board computers.
Raspberry Pi is launched in 2012 and there have been several iterations and variations
released since then.
Various versions of Raspberry Pi have been out till date. All versions consist of a
Broadcom system on a chip (SoC) with an integrated ARM-compatible CPU and on-chip
graphics processing unit (GPU).
The original device had a single-core Processor speed of device ranges from 700 MHz
to 1.2 GHz and a memory range from 256 MB to 1 GB RAM.
To store the operating system and program memory Secure Digital (SD) cards are
used. Raspbian OS which is a Linux operating system is recommended OS by Raspberry
Pi Foundation. Some other third party operating systems like RISC OS Pi. Diet Pi, Kali,
Linux can also be run on Raspberry Pi.
Used:
It also provides a set of general purpose input/output pins allowing you to control
electronic components for physical computing and explore the Internet of Things (IOT).
Raspberry pi Diagram :
Raspberry Pi model –
There have been many generations of raspberry Pi from Pi 1 to Pi 4.There is generally a
model A and model B. Model A is a less expensive variant and it trends to have reduce
RAM and dual cores such as USB and Ethernet.
List of Raspberry pi models and releases year:
1. pi 1 model B – 2012
2. pi 1 model A – 2013
3. pi 1 model B+ -2014
4. pi 1 model A+ – 2014
5. Pi 2 Model B – 2015
6. Pi 3 Model B- 2016
7. Pi 3 Model B+ -2018
8. Pi 3 Model A+ -2019
9. Pi 4 Model A – 2019
10.   Pi Model B – 2020
Older and discontinued models include: ESP-01, ESP-02, ESP-03, ESP-04, ESP-05, ESP-06,
ESP-7, ESP-08, ESP-09, ESP-10, ESP-11, ESP-12, ESP-12E, and ESP-13 and ESP-14.
ESP8266 Development Boards/Dev Kits
●      ESP8266 Opensource Community
WeMos
Current WeMos boards are the following:
SDKs
There is now a wide range of software development kits (SDKs) available, enabling
developers to program the chip directly without using a separate MCU.
Espressif provides two official SDKs for use with ESP8266, which are:
        A FreeRTOS based SDK
        A Non-OS SDK
Aside from the Espressif options, there are plenty of commercial and open-source SDKs
on the market, including:
        ESP Arduino Core – C++ based firmware
        ESP8266 BASIC – Open-source BASIC-like environment for IoT
        ESP-Open-RTOS – FreeRTOS open-source framework for ESP8266
        ESP-Open-SDK – Open integrated SDK for ESP8266
        Espruino – Javascript SDK and firmware
        Micropython – Python for embedded devices
        Moddable SDK – Javascript SDK
        Mongoose OS – C or Javascript open-source OS
        NodeMCU – Open-source Lua based firmware, similar to Node.js
        Sming – Asynchronous C/C++ framework
        uLisp – Lisp-based framework
        ZBasic – Visual Basic 6 adapted for ESP8266
        Zerynth – Python framework for IoT
Which is the best ESP8266 Module or Development Board for IoT?
As the above comparisons show, there are many options available with ESP8266 IoT
boards and modules. To help you with your decision making, we’ve summarized some of
the most popular below.
Popular ESP8266 Modules
Ai-Thinker ESP-01
The ESP-01 is one of the biggest selling IoT Wi-Fi modules on the market. It’s widely used
in smart home and networking projects.
The default AT firmware enables it to be used in combination with an Arduino. However,
you can easily update the firmware with a USB-to-ESP-01 adaptor module.
A common complaint with this board is that the pin posts make it difficult to plug it
directly into a breadboard, but this can be easily overcome by building or buying an
adaptor module.
There are two versions available, one with 500kb of flash and the other with 1Mbit of
flash.
Ai-Thinker ESP-05
This module was developed to provide Wi-Fi connectivity for MCUs such as Raspberry Pi
and PIC and other Wi-Fi projects. It, t             herefore, does not have GPIOS.
It fits into a breadboard without any problems, but there are some complaints about
being stuck with the factory set firmware unless you’re prepared to do some serious
modifications.
Ai-Thinker ESP-12
This is a more fully featured module with 11 GPIO pins, an ADC, 4Mbits of flash, and 10-
bit resolution. However, the module is not breadboard friendly, meaning you’ll need to
use an adaptor.
There are two versions available, ESP-12F, which has 20 GPIOS and ESP-12S, which has
14.
Popular ESP8266 Boards
void setup() {
// Any necessary setup can be done here
}
void loop() {
// Record the current time since the program started
unsigned long currentTime = millis();
// Check if it's time for the first event
if (currentTime - firstEventTime >= firstEventInterval) {
// Update the time of the first event
firstEventTime = millis();
// Execute code for the first event every 5 seconds
}
void loop() {
sensorValue = analogRead(sensorPin);
Serial.print("Sensor value is: "); //print a message
Serial.println(sensorValue); //print the value to the serial monitor
//conditional statements
if(sensorValue < 100) {
digitalWrite(ledPin, HIGH); //turn on the LED on pin 5.
}
else{
digitalWrite(ledPin, LOW);
}
}
Why choose Arduino?
We need to know the reason for selecting Arduino over other devices so let us study
some advantages of Arduino.
   Arduino is the best choice for starting your programming journey in electronics. Its
    easy-to-use interface allows users to build simple projects on their own.
   There is no need for experience or hands-on experience in electronics before
    starting work on Arduino. Anyone with a genuine interest in Arduino can begin
    learning through simple tutorials and some guidance. These tutorials are available
    free of cost for creating some beginner-level and advanced projects.
   Arduinos offer a wide range of options. You can use Arduino alone to create some
    projects or you can add some extra features by integrating it with other devices like
    Raspberry Pie.
   Arduino is an open-source tool that can be accessed from different locations and
    platforms. Due to the inexpensive nature of Arduinos, they can be used on different
    microcontrollers like Atmel's ATMEGA 16U2 microcontrollers.
   Depending on the need of your project, you can avail of any Arduino that satisfies
    the needs. These Arduino are available in different designs that offer different size
    ranges, power, and specifications.
What Can You Do With an Arduino?
Arduino finds its applications in various fields due to their ability to perform different
things. Let us see some of its applications:
   Arduinos are used in 3D printing where they perform the task of selecting how the
    printing will be performed.
   Arduinos are used for creating basic designs by makers, designers, hackers, and
    creators across the globe to create some great projects. Some of the projects are
    Laser Turret Midi Controller, Retro Gaming With an OLED Display, and Traffic Light
    Controller.
   Arduinos      are   used   by   college    students   to   understand programmable
    electronics and to explore their interest in programming.
   Arduinos are used in the field of robotics for programming robots and adding basic
    features like sensing and responding to environmental conditions.
   Arduino is used in IoT(Internet of Things) since it can collect information using
    sensors. The collected data is then processed and transmitted for developing various
    smart devices.
Structure of Arduino
Different Arduino are designed to serve different purposes but some basic components
are needed in every Arduino. Note that Arduino Uno is the most used board and is the
most common choice for different users. Let us study the internal structure of the
Arduino Uno model.
   Processor: 16 Mhz ATmega16U2
   Flash memory: 32KB
   Ram: 2KB
   Voltage Needed: 5V
   Input Voltage: 7-12V
   Analog input pins: 6
   Number of digital I/O: 14 with 6 of them being PWM pins
Components of Arduino
Let's study the basic components of Arduino:
Breadboard: Breadboards are used to provide a base for setting up the connecting
components together. If you look at a breadboard, is a plastic block made up of holes
that are left for making connections using wires. The internal of the breadboard
consists of different connections that are hidden. They are generally used for smaller
circuits
LEDs(Light Emitting Diode): LEDs are small devices that illuminate when a small
voltage is supplied to them. These LEDs come in a variety of colors ranging from red to
green. These LEDs can be used for testing minimum voltages since they don't burn for
a long period.
Photo Resistor: Many Arduinos contain a photoresistor that is used for measuring
changes in light using Arduino.
Tactile Switch: This switch resembles a button that is used to open or close a circuit
like any other switch. When the button is turned on, the voltage of Arduino increases
from 0V to +5V. This voltage change acts as a trigger for the Arduino and an Arduino
detects this change momentarily since the switch is then turned off when the button is
released.
Microcontroller: An Arduino consists of a microcontroller that controls the whole
functioning of the Arduino by generating an apt output corresponding to the input code.
Depending on the type of Arduino board you are using, you can select a microcontroller
that fits well.
Resistors: Resistors are used to resist the flowing electricity. Resistors are often
bought to set a limit to the current flowing in the circuit thereby protecting the
components of the circuit from getting burnt due to excessive current.
Jumper Wires: Jumper wires are thin wires covered with a plastic covering for
insulation. These wires are used for connecting different components in the
breadboard.
Setting Up Your Arduino
This is an essential step since it allows your computer to communicate with Arduino.
Make sure you have a tested and working Arduino board before connecting it to your
computer. Any duplicate Arduino will need some modifications in the installation
process. Let us see how to connect the Arduino to the computer for the execution of
the code.
Installing the Arduino Software Package
To install the Arduino software, you need to visit the official website and download the
latest version that is valid for your computer. Here is a list of steps to be followed for
installing Arduino Integrated Development Environment (IDE).
Windows Setup
   Plug in your board to the computer and you will see a driver installation setup box
    on the screen. You can grant access to connect the Arduino to the computer and
    case it fails :
    o   Go to the Start Menu and select Control Panel.
    o   Go to System and Security > System. After this open up the device manager.
    o   If you carefully observe the ports, there will be an open port associated with the
        connected Arduino named Arduino UNO (COMxx).
    o   Right-click on the name (Arduino UNO (COMxx) in this case) and select Update
        Driver Software.
    o   Search for Driver software by selecting Browse my computer.
       Search for the Uno's driver file, which will be named ArduinoUNO.inf, located in
        the Drivers folder of the Arduino Software download.
Mac OS
   Use a zipping software to extract the contents of the .zip file associated with the
    installed Arduino software
   Open the Arduino software by clicking on the extracted application.
   You don't need to install any additional drivers for the Arduino UNO in MAC OS and it
    will run fine.
Installing the Arduino Software on Package Ubuntu/Linux
Installation on Ubuntu/Linux is a bit different since it involves dealing with some
commands. Here are the steps.
   Install gcc-avr and avr-libc using this command:
sudo apt-get install gcc-avr avr-libc
   Install and configure openjdk-6-jre, you can skip this step if it is already present :
sudo apt-get install OpenJDK-6-jre
sudo update-alternatives --config java
   Select the correct JRE corresponding to the Arduino.
   Visit the official website and download the Arduino Software suitable for Linux. You
    can use these commands.
tar xzvf arduino-x.x.x-linux64.tgz
cd arduino-1.0.1
./arduino
Running the Arduino Software
Since our software has been installed, it is our time to check whether the setup is
correct and that our Arduino is working well. To do this, we will use the "Blink" sample
application
Once the Arduino application has been installed on your device, open the software for
the associated Arduino. Then follow these steps:
   Connect your Arduino board to your computer using some connecting cable.
   The software icon will appear at the location where you have installed the Arduino
    application. Double-click it to open the interface.
   Follow the order File > Examples > Basics > Blink
   When you open the application, the screen will show the code written for your
    Arduino. Now you have to get this code on the Arduino
   To upload code on Arduino select Tools-> Board and then choose the required
    Arduino model like Arduino Uno.
   After this, you need to specify the serial port from which the board will take data. Go
    to Tools-> Serial Port and then select the port. Windows users can select port COM3
    or similar, and Mac or Linux users can select /dev/tty.usbmodem.
   Carefully look at the left portion of the screen and you will see the Upload button,
    click on it.
   After a brief period you will observe receiving(RX) and transmitting(RX) LEDs on the
    Arduino illuminating with a "Done uploading" message on the screen.
   If this doesn't appear, there must be some error so follow the steps carefully again.
Conclusion
We have seen how Arduino is a very useful and budget-friendly device that can be used
for making basic projects. The ability of Arduino to provide a programming interface
and allow features like the detection of data from the environment makes it a great
choice for designers, and artists. Despite the versatilities offered, there are certain
restrictions associated with Arduino, and developments are being made in the Arduino
design. Readers are advised to try some basic projects to enhance their understanding
of the subject.
Input Voltage 5V
Communication
Intel Galileo has a number of facilities for communicating with
   o   a computer
   o   Arduino
   o   Other microcontrollers.
   o   Galileo provides UART TTL (5V/3.3V) serial communication, which is available on
       digital pin 0 (RX) and 1 (TX).
   o   In addition, a second UART provides RS-232 support and is connected via a 3.5mm
       jack.
Wearables development in an IoT world
        Wearables, IoT sensor trends
MCU innovations are quietly packing more intelligence in smaller form factors. These
advancements are enabling OSs to be utilized in small form factor sensor devices such
as wearables.
Microcontroller (MCU) innovations are quietly packing more intelligence in smaller form
factors. These advancements are enabling operating systems (OSs) to be utilized in
small form factor sensor devices, such as wearables.
        Wearables, IoT sensor trends
Intelligence is increasing in smaller form factor wearables and sensor devices. Today’s
MCUs are now small and cost-effective enough to be used in a wide variety of sensor
applications where price and size requirements previously excluded them. As MCUs
proliferate in these applications, so too have the OSs that run on them.
Adding an OS to a wearable opens new doors in terms of features, functions, and time to
market benefits. The question becomes whether it is enough to just use any OS that
targets the MCU, or if the OS must be tuned for these devices?
RoweBots recently announced availability of a “WearableOS” at the Wearables
Technology Conference that is specifically tuned for wearable and Internet of Things-
enabled (IoT-enabled) devices.
        Emergence of the “WearableOS”
RoweBots’ history includes the Unison RTOS used in military systems where security and
reliability are critical. This history includes traditional embedded system practices
involving porting and running the OS on a specific processor architecture, adding drivers
for board support packages (BSPs), and providing APIs for embedded application
development.
Over the last 10 years RoweBots has been working in the IoT space as well. “Our OS
products target MCUs and small microprocessors with a goal of creating an efficient
design," says Kim Rowe, CEO of RoweBots. "Real-time requirements have diminished
over time. Flash and RAM sizes have become a critical cost factor for embedded and IoT
designs.”
Rowe mentions two key areas of focus for their WearableOS:
  1. Being able to do more in a small package. Support for lean product development
     (LPD) is a cornerstone of RoweBots' IoT OSs (Figure 1).
  2. Open APIs based on embedded Linux allow RoweBots OS products to integrate
     libraries that match the functions needed and available resources on the platform.
Figure 1. Lean product development (LPD) is a development methodology for reducing
product engineering cycles and cost that is central to RoweBots' WearableOS.
“We took a more packaged approach to delivering a real-time operating system (RTOS)
when developing the WearableOS," Rowe explains. "We didn’t stop at a chip support
package for a controller. We added packages that deal with specific vertical markets.
Wearables is one of these targets. The three key pillars for this effort were hardware
support for wearable products, optimized software design, and enabling faster time to
market.”
The world of wearables needs a complete package of OS/processor support, connectivity,
storage, and cloud connectivity. In addition, security requirements are important, and
RoweBots’ history with the Unison RTOS in the military industry gave them a leg up in
understanding security considerations. Much of this has also been incorporated in to the
WearableOS.
Rowe mentions the importance of not stopping development at an MCU OS and driver
support for the sensors that a manufacturer provides. “Sensor support needs to be
general," he says. "It’s important to allow the developer to utilize any number of
temperature sensors, accelerometers, or whatever peripherals are required to allow
choice and maintain hardware independence and abstraction.”
        Power management
Power management is another critical component. Some MCUs are simply designed as
very low power with little to no power modes. Therefore, power management of most
MCUs is simple when compared to the capabilities of an ARM processor, for example.
“MCU manufacturers typically try to maximize all-around power efficiency," Rowe says.
"However, in some of the more advanced processors, power management has taken a
leap. There are a lot more options in terms of what you can do to go to sleep and wake
up again.”
Some of the options Rowe alludes to involve integrated power modes in hardware that
can be updated, as well as certain silicon events that are capable of waking up software.
        Wearable connectivity
Wireless connectivity is another important feature of the WearableOS. Kim mentioned
some interesting applications in the sports industry where different radio types are
needed. “Our OS needs to support three different types of radios depending on the
sport," Row says. "One is for individual operation like bike racing. Wearables are used to
provide metrics on speed, vitals, and crash information. These kinds of things use
Bluetooth Low Energy (BLE). Another extension is road races or marathons where you
don’t want to be carrying around a phone. These applications need Long Range (LoRa)
radios. Football or basketball applications are a third example. These applications use
802.14, which allows group communication capabilities among teammates”.
Rowe adds that RoweBots has provided LTE and Wi-Fi solutions to the traditional
embedded markets for a while. In the past they have used proprietary connectivity as
well, like satellite phones. An example application is the Caterpillar low cost tracker.
        Wearable security
Two key aspects for wearables are communications/information security and software
update security and authentication. The Unison RTOS has shipped with complete over-
the-air (OTA) update capabilities for the past six years, with security a focus throughout.
These features were adopted in their WearableOS environment.
“Everyone wants to talk about security, no one wants to pay for it yet," says Rowe. "We
decided about 5 years ago that it was unacceptable to have fielded systems with our OS
that weren’t secure. So we bundled in the important security features at no cost.
"For example, transport layer security (TLS) communications comes standard, along with
secure SFTP for file transfer and SSH for remote control (login and command execution),"
he adds.
Secure boot is another critical aspect for wearables. This is important to ensure OTA
update security. Depending on the processor features, it can be incorporated in
hardware or emulated in software.
For example, i.MX6 (NXP/Freescale) and RZ (Renesas) secure boot technology and other
similar mechanisms embed keys in hardware and to provides embedded encryption
unique to that silicon, which is used to sign and encrypt software images. This allows
platforms with secure boot technology to authenticate the source of the image and know
that the image itself has not been corrupted, and also provides a mechanism to roll back
to the previous release if the update doesn’t happen successfully or if there are errors in
operation. All this results in a more reliable, secure system.
Rowe further acknowledges that the company continues to work towards enhancing the
security of its products, including the recent completion of a Microsoft Azure package
that includes secure communications over the HTTP, MQTT, and AMQP protocols, as well
as for the cloud platform itself.
        Graphics and user interfaces
Perhaps the most interesting challenges relating to wearables and smart sensors are the
unique graphics and user interfaces (UIs). On larger systems there are lots of capabilities
and screen area for fancy graphics and user interaction. These systems also tend to be
very power hungry.
On the smaller end, for watch and wrist wearables, Rowe notes that the WearableOS
typically uses vendor-recommended packages or a third-party vendor for ultra-low-power
graphics and UI components. Not surprisingly, programming wearables is a lot like
traditional embedded system programming using application libraries and the C/C++
programming language with an Eclipse variant or embedded Integrated Development
Environment (IDE).
BSD sockets network, file I/O, and embedded Linux and POSIX-compliant APIs speed
development in these builds. Kim mentioned cites an embedded Linux application
example that was been ported, run, and tested on the OS in 2 days using these tools.
Upon porting, benchmarking showed that the same application running on their OS had a
50 percent increase in frame rate due to the significantly lower overhead of the
WearableOS versus embedded Linux.
Another exciting example of miniaturizing wearables with similar capabilities involves an
eSight technologies product. These are glasses that help people with specific types of
peripheral or myopic blindness conditions see normally. eSight puts a camera on the
bridge of your nose to do auto exposure and compensation for your specific sight
deficiency. On your hip you have zoom and pan controls. The wearable puts the image
up on a tiny screen in front of your eye. This technology allows people with sight
problems to see normally and has literally changed lives.
Summary
Wearable and IoT sensor and device development requires a combination of hardware,
software, and the ability to reuse them in order to decrease time to market while not
sacrificing performance and reliability. Whether you’re developing a medical, factory
floor, or wearable device that must be integrated into a larger IoT environment, building
with a vertical OS environment can improve reliability and security with more finished,
tested code, while also decreasing time to market and maintaining flexibility for
component and hardware vendors.