Unit - 2 Notes
Unit - 2 Notes
SCHOOL OF COMPUTING
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Application Sensors & Actuators - Edge Networking (WSN) Gateways - IoT Communication Model
WPAN & LPWA, Overview of IoT supported Hardware platforms such as: Raspberry pi, ARM Cortex
Processors, Arduino and Intel Galileo boards, Wearable Development Boards
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 is 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
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 that would be used to 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. There are 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 discussed is 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,
34
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 (thebrains 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). Sensormeans that it is part of a bigger system which provides
input to a main control system (like aProcessor or a Microcontroller).
S.No Sensor Applications Technology
Industrial machinery, automotive,
1. Inertial sensors human activity MEMS and Gyroscope
Industrial monitoring/control,
Air/fluid pressure
8. automotive, agriculture Capacitive, Resistive
sensor
Industrial monitoring/control,
9. Acoustic sensor Diaphragm condenser
human interface
Industrial monitoring/control, civil Resistive thin films
10. Strain sensor
infrastructure
In the first classification of the sensors, they are divided in to Active and Passive. Active Sensors are those
35
which require an external excitation signal or a power signal. Passive Sensors, 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 datain 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.
36
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 it is
known, a PN junction allows small leakage currents when itis reverse biased so, this property is used to
detect the light rays. A photodiode is constructed such that light rays should fall on the PN junction which
makes the leakage current increase based on the intensity of the light that have applied. So, in this way,
a
Fig 2.3.Photo diode
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 Infraredor Laser), Ultrasonic, Hall Effect,
Capacitive, etc.
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.
As the name itself specifies that the resistor that depends upon the light intensity. It works on the principle
of photoconductivity which means the conduction due to the light. It is generally made up of Cadmium
sulfide. When light falls on the LDR, its resistancedecreases and acts similar to a conductor and when no
light falls on it, its resistance is a . One note
should be surface.
37
Fig 2.5.LDR
With a proper circuitry using a transistor it can be used to detect the availability of light. A voltage divider
biased transistor with R2 (resistor between base and emitter) replaced with an LDR can work as a light
detector.
5. Thermistor (Temperature Sensor)
Fig 2.6.Thermistor
Another component that can detect the variation in temperature is a thermocouple. In its construction, two
different metals are joined together to form a junction. Its main principle is when the junction of two
different metals are heated or exposed to high temperatures a potential across their terminals varies. So,
the varying potential can be further used to measure the amount of change in temperature.
A strain gauge is used to detect pressure when a load is applied. It works on the principleof resistance,
the resistance is directly proportional to the length of the wire and is inversely proportional to its cross-
used here to measure the load. On a flexible board, a
wire is arranged in a zig-zag manner as shown in the figure below. So, when the pressure is applied to that
particular board, it bends in a direction causing the change in overall length and cross- sectional area of
the wire. This leads to change in resistance of the wire. The resistance thus obtained is very minute (few
ohms) which can be determined with the help of the Wheatstone bridge. The strain gauge is placed in one
of the four arms in a bridge with the remaining values unchanged. Therefore, when the pressure is applied
to it as the resistance changes the current passing through the bridge varies and pressure can be calculated.
Strain gauges are majorly used to calculate the amount of pressure that an airplane wing can withstand and
it is also used to measure the number of vehicles allowable on a particular road etc.
9. Potentiometer
A potentiometer is used to detect the position. It generally has various ranges of resistors connected to
different poles of the switch. A potentiometer can be either rotary or linear type.In rotary type, a wiper is
connected to a long shaft which can be rotated. When the shaft has rotated the position of the wiper alters
such that the resultant resistance varies causing the change in the output voltage. Thus the output can be
calibrated to detect the change its position.
Fig 2.10.Potentiometer
10. Encoder
To detect the change in the position an encoder can also be used. It has a circular rotatable disk-like
structure with specific openings in between such that when the IR rays or light rays pass through it only a
few light rays get detected. Further, these rays are encoded into
a digital data (in terms of binary) which represents the specific position.
Fig 2.11.Encoder
11 Hall Sensor
The name itself states that it is the sensor which works on the Hall Effect. It can be definedas when a
magnetic field is brought close to the current carrying conductor (perpendicular to the direction of the
electric field) then a potential difference is developed across the given conductor. Using this property
a Hall sensor is used to detect the magnetic field and gives output in terms of voltage. Care should be taken
that the Hall sensor can detect only one pole of the magnet.
40
Fig 2.12.Hall sensor
The hall sensor is used in few smartphones which are helpful in turning off the screenwhen the flap
cover (which has a magnet in it) is closed onto the screen. Here is one practical application of Hall Effect
sensor in Door Alarm.
Microphone can be seen on all the smartphones or mobiles. It can detect the audio signal and convert them
into small voltage (mV) electrical signals. A microphone can be of manytypes like condenser microphone,
crystal microphone, carbon microphone etc. each type of microphone work on the properties like
capacitance, piezoelectric effect, resistance respectively. Let us see the operation of a crystal microphone
which works on the piezoelectric effect. A bimorph crystal is used which under pressure or vibrations
producesproportional alternating voltage. A diaphragm is connected to the crystal through a drive pin such
that when the sound signal hits the diaphragm it moves to and fro, this movement changes the position of
the drive pin which causes vibrations in the crystal thus an alternating voltage is generated with respect to
the applied sound signal. The obtained voltage is fed to an amplifier in order to increase the overall strength
of the signal.
Fig 2.14.Microphone
41
14.Ultrasonic sensor
Ultrasonic means nothing but the range of the frequencies. Its range is greater than audible range (>20
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. see how this module works. The HCSR04 module generates a sound vibration in ultrasonic
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. Calculate thedistance of the object
based on the time taken by the ultrasonic wave to return back to the sensor.
15.Touch Sensor
In this generation, almost all are using smartphones which have widescreenthat too a screen which can
sense user touch Basically, there are two types of touch sensors
resistive based and a capacitive based touch screens. know about working of these sensors briefly.
The resistive touch screen has a resistive sheet at the base and a conductive sheet under thescreen both of
these are separated by an air gap with a small voltage applied to the sheets. When human press or touch
the screen the conductive sheet touches the resistive sheet at that point causing current flow at that
particular point, the software senses the location and relevant action is performed.
42
16.PIR sensor
PIR sensor stands for Passive Infrared sensor. These are used to detect the motion of humans, animals
or things. Infrared rays have a property of reflection. When an infrared ray hits an object, depending upon
the temperature of the target the infrared rayproperties changes, this received signal determines the motion
of the objects or the living beings. Even if the shape of the object alters, the properties of the reflected
infrared rays can differentiate the objects precisely. Here is the complete working or PIR sensor.
An accelerometer sensor can sense the tilt or movement of it in a particular direction. It works based on
parts of it are such sensitive that
those will react to a small external change in position. It has a piezoelectric crystal when tilted causes
disturbance in the crystal and generates potential which determines the exact position with respect to
X, Y and Z axis.
.
Fig 2.18.Accelerometer
These are commonly seen in mobiles and laptops in order to avoid breakage of processors leads. When the
device falls the accelerometer detects the falling condition and does respective action based on the
software.
18.Gas sensor
In industrial applications gas sensors plays a major role in detecting the gas leakage. If nosuch device is
installed in such areas it ultimately leads to an unbelievable disaster. These gas sensors are classified into
various types based on the type of gas that to be detected. works. Underneath a
metal sheet there exists a sensing element which is connected to the terminals where a current is applied
to it. When the gas particles hit the sensing element, it leads to a chemical reaction such that the resistance
of the elements varies and current through it also alters which finally can detect the gas.
43
Fig 2.19.Gas Sensor
So finally, it is concluded that sensors are not only used to make the work simple to measure the physical
quantities, making the devices automated but also used to help living beings with disasters.
44
21.Switch Sensors
Switch sensors are composed of a set of contacts that open when close to a magnet. A reed switch is a
common example of a switch sensor and is most commonly used as a speed or position sensor. As a speed
sensor, a magnet is attached to the speedometer cable and spinsalong with it. Each time one of the magnet's
poles passes the reed switch, it opens and then closes. How fast the magnet passes allows the sensor to
read the vehicle's speed.
2.Edge Networking
Embedded systems are already playing a crucial role in the development of the IoT. In broad
strokes, there are four main components of an IoT system:
So to better understand how to build IoT devices, first need to figure out how theywill communicate with
the rest of the world.
Local Network
requirements and costs. IoT
devices are deployed in so many different ways in clothing, houses, buildings, campuses, factories, and
even in human body that no single networking technology can fitall bills.
umberof connected
sensors and actuators scattered over a wide area, and a wireless technology would be the best fit.
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 alsooperate at
low power so that they can run on battery, or even use energy harvesting. A WSNnode 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.
46
Fig 2.25.WSN Edge
WSN Technologies
The battle over the preferred networking protocol is far from over. There are multiplecandidates.
Wi-Fi
The first obvious networking technology candidate for an IoT device is Wi-Fi, because it is so ubiquitous.
Certainly, Wi-Fi can be a good solution for many applications. Almost every house that has an Internet
connection has a Wi-Fi router. However, Wi-Fi needs a fair amount of power. There are myriad devices
that c operated devices, for example, or sensors positioned in
locations that are difficult to power from the grid.
New application protocols and data formats that enable autonomous operation For example,EnOceanhas
patented an energy-harvesting wireless technology to meet the power
wireless transmitters work in the frequencies of 868 MHz for Europe and 315 MHz for North America.
The transmission range is up to 30meters in buildings and up to 300 meters outdoors.
EnOcean wireless technology uses a combination of energy harvesting and very low power wireless
communications to enable virtually indefinite communications to be maintained without the need for
recharging. The EnOcean technology is used for wireless sensors, controllers and gateways.
One of the key issues with small machines is the need for ensuring that batteries are maintained charged.
In traditional systems, either mains power was required, or batteries needed to be replaced, even if only
infrequently. The use of EnOcean removes the need for power to be directly applied thereby reducing the
cost of the system operation.
One of the major IoT enablers is the IEEE 802.15.4 radio standard, released in 2003.Commercial radios
meeting this standard provide the basis for low-power systems. This IEEE standard was extended and
improved in 2006 and 2011 with the 15.4e and 15.4g amendments. Power consumption of commercial RF
devices is now cut in half compared to only a few years ago, and it is expected another 50% reduction with
the next generation of devices.
6LoWPAN
Devices that take advantage of energy-harvesting must perform their tasks in the shortest time possible,
which means that their transmitted messages must be as small as possible. This requirement has
47
implications for protocol design.
3. Internet of Things Communications Models
From an operational perspective, it is useful to think about how IoT devicesconnect and communicate
in terms of their technical communication models. In March 2015, the Internet Architecture Board
(IAB) released a guiding architecturaldocument for networking of smart objects which outlines a
framework of four common communication models used by IoT devices. The discussion below
presents this framework and explains key characteristics of each model in the framework.
Device-to-Device Communications
The device-to-device communication model represents two or more devices that directly connect and
communicate between one another, rather than through an intermediary application server. These
devices communicate over many types of networks, including IP networks or the Internet. Often,
however these devices use protocols like Bluetooth, Z-Wave, or ZigBee to establish direct device-to-
device communications, as shown in Figure 26.
Light
These device-to-device networks allow devices that adhere to a particular communication protocol to
communicate and exchange messages to achieve their function. This communication model is commonly
used in applications like home automation systems, which typically use small data packets of information
to communicate between devices with relatively low data rate requirements. Residential IoT devices like
light bulbs, light switches, thermostats, and door locks normally send small amounts of information to
each other (e.g. a door lock status message or turn on light command) in a home automation scenario.
From the point of view, this often means that underlying device-to-device communication2
protocols are not compatible, forcing the user to select a family of devices that employ a common protocol.
For example, the family of devices using the Z-Wave protocol is not natively compatible with the ZigBee
family of devices. While these incompatibilities limit user choice to devices within a particular protocol
family, the user benefits from knowing that products within a particular family tend to communicate well.
Device-to-Cloud Communications
In a device-to-cloud communication model, the IoT device connects directly to an Internet cloud
service like an application service provider to exchange data and control message traffic. This
approach frequently takes advantage of existing communications mechanisms like traditional wired
Ethernet or Wi-Fi connectionsto establish a connection between the device and the IP network, which
ultimately connects to the cloud service. This is shown in Figure 27.
48
TLS Provider
TCP UDP
IP IP
Devicewith
Devicewith Carbon
Temperature
TLS
Stack TCP UDP
IPv6
smartphone or Web interface, and it also supports software updatesto the thermostat. Similarly, with
the Samsung SmartTVtechnology, the television uses an Internet connection to transmit user viewing
information to Samsung for analysis and to enable the interactive voice recognition features of the
TV. In these cases, the device-to-cloud model adds value to the end user by extending thecapabilities
of the device beyond its native features.
However, interoperability challenges can arise when attempting to integrate devicesmade by different
manufacturers. Frequently, the device and cloud service are from the same vendor. If proprietary data
protocols are used between the device and the cloud service, the device owner or user may be tied to
a specific cloud service, limiting or preventing the use of alternative service providers. This is
commonly referred to as vendor lock-in , a term that encompasses other facets of the
49
relationship with the provider such as ownership of and access to the data. At the same time, users
can generally have confidence that devices designed for the specific platform can be integrated.
Device-to-Gateway Model
In the device-to-gateway model, or more typically, the device-to-application-layer gateway (ALG)
model, the IoT device connects through an ALG service as aconduit to reach a cloud service.
In simpler terms, this means that there is application software operating on a local gateway device,
which acts as an intermediary between the device and the cloud service and provides security and
other functionality such as data or protocol translation.
Several forms of this model are found in consumer devices. In many cases, the local gateway device
is a Smartphone running an app to communicate with a device and relay data to a cloud service. model
employed with popular consumer items like personal fitness trackers. These devices do not have the
native ability to connect directly to a cloud service, so they frequently rely on Smartphone app
software to serve as an intermediary gateway to connect the fitness device to the cloud.
The other form of this device-to-gateway model is the emergence of hub devices in home
automation applications. These are devices that serve as a local gateway between individual IoT
devices and a cloud service, but they can also bridge the interoperability gap between devices
themselves. For example, the Smart Things hub is a stand-alone gateway device that has Z-Wave and
Zigbee transceivers installed to communicate with both families of devices. It then connects to the
Smart Things cloud service, allowing the user to gain access to the devices using a Smartphone app
and an Internet connection. The evolution of systems using the device-to-gateway communication
model and its larger role in addressing interoperability challenges among IoT devices is still
unfolding.
Back-End Data-Sharing Model
The back-end data-sharing model refers to a communication architecture that enables users to export
and analyze smart object data from a cloud service in combination with data from other sources.
This architecture supports the [user s] desire for granting access to the uploaded sensor data to
third parties. This approach is an extension of the single device-to-cloud communication model,
which can lead to data silos where IoT devices upload data only to a single application service
-end sharing architecture allows the data collected from single IoT device data
streams to be aggregated and analyzed.
For example, a corporate user in charge of an office complex would be interested in consolidating and
analyzing the energy consumption and utilities data produced by all the IoT sensors and Internet-
enabled utility systems on the premises. Often inthe single device-to-cloud model, the data each
IoT sensor or system produces sits in a stand-alone data silo. An effective back-end data sharing
architecture would allow the company to easily access and analyze the data in the cloud produced by
the whole spectrum of devices in the building. Also, this kind of architecturefacilitates data portability
needs. Effective back-end data- sharing architecturesallow users to move their data when they switch
between IoT services, breaking down traditional data silo barriers.
The back-end data-sharing model suggests a federated cloud services approach or cloud applications
programmer interfaces (APIs) are needed to achieve interoperability of smart device data hosted in
the cloud. A graphical representation of this design is shown in Fig 29.
50
Fig 2.29.Back-end data sharing model
Low Power Wide Area (LPWA) networks represent a novel communication paradigm, which will
complement traditional cellular and short range wireless technologies in addressing diverse requirements
of IoT applications. LPWA technologies offer unique sets of features including wide- area connectivity
for low power and low data rate devices, not provided by legacy wireless technologies.
LPWA networks are unique because they make different tradeoffs than the traditional technologies
prevalent in IoT landscape such as short-range wireless networks e.g., Zig- Bee, Bluetooth, Z-Wave,
legacy wireless local area networks (WLANs) e.g., Wi-Fi, and cellular networks e.g. Global Sys- tem for
Mobile Communications (GSM), Long-Term Evolution (LTE) etc. The legacy non-cellular wireless
technologies are not ideal to connect low power devices distributed over large geographical areas. The
range of these technologies is limited to a few hundred meters at best. The devices, therefore, cannot be
51
arbitrarily deployed or moved anywhere, a requirement for many applications for smart city, logistics and
personal health The range of these technologies is extended using a dense deployment of devices and
gateways connected using multihop mesh networking. Large deployments are thus prohibitively
expensive. Legacy WLANs, on the other hand, arecharacterized by shorter coverage areas and higher
power consumption for machine- type communication (MTC).
A wide area coverage is provided by cellular networks, a reason of a wide adoption ofsecond generation
(2G) and third generation (3G) technologies for M2M communication. How- ever, an impending
decommissioning of these technologies[5],as announced by some mobile network operators (MNOs),will
broaden the technology gap in connecting low-power devices. In general, traditional cellular technologies
do not achieve energy efficiency high enough to offer ten years of battery lifetime. The complexity and
cost of cellular devices is high due to their ability to deal with complex waveforms, optimized for voice,
high speed data services, and text. For low-power MTC, there is a clear need to strip complexity to reduce
cost. Efforts in this direction are underway for cellular networks by the Third Generation Partnership
Project
A. Long range
LPWA technologies are designed for a wide area coverage and an excellent signal propagation to hard-to-
reach indoor places such as basements. The physical layer compromises on high data rate and slows downs
the modulation rate to put more energy in each transmitted bit (or symbol). Due to this reason, the receivers
can decode severely attenuated signals correctly. Typical sensitivity of state of the art LPWA receivers
reaches as low as -130 dBm.
D. Duty Cycling: Low power operation is achieved by opportunistically turning off power hungry
components of M2M/IoT devices e.g., data transceiver. Radio duty cycling allows LPWA end devices to
turn off their transceivers, when not required. Onlywhen the data is to be transmitted or received, the
transceiver is turned on.
E. Lightweight Medium Access Control: Most-widely used Medium Access Control (MAC)
rotocols for cellular net- works or short range wireless networks are too complexfor LPWA technologies.
For example, cellular networks synchro- nize the base stations and the user equipment (UE) accurately to
benefit from complex MAC schemes that exploit frequency.
On the business side, the proprietary solution providers are in a rush to bring their services to the market
and capture their share across multiple verticals. In this race,it is easy but counter- productive to overlook
important challenges faced by LPWA technologies. The challenges are highlighted and analyzed some
research directions to overcome them and improve performance in long-term.
Applications
54
High QoS, high data rate (IEEE 802.15.3)
Industrial sensor applications
Low speed, low battery, low cost sensor networks (IEEE 802.15.4)
Common goals
Getting rid of cable connections
Little or no infrastructure
Device interoperability
WPAN Topologies:
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. AnyBluetooth 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
55
Bluetooth ProtocolStack 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.
RFCOMM
Applications may access L2CAP through different support protocols Service DiscoveryProtocol
(SDP) RFCOMM Telephony Control Protocol Specification (TCS) TCP/IP basedapplications, for
instance information transfer using the Wireless Application Protocol(WAP), can be extended to Bluetooth
devices by using the Point-to-Point Protocol (PPP) ontop 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
56
The telephony control specification - binary (TCS BIN) protocol defines the call-controlsignaling for the
establishment of speech and data calls between Bluetooth devices In addition, it defines mobility
management procedures for handling groups of Bluetooth devices.
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.
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.
7. IoT platform
The purpose of any IoT device is to connect with other IoT devices and applications (cloud-based
mostly) to relay information using internet transfer protocols.
The gap between the device sensors and data networks is filled by an IoT Platform. Such a platform
connects the data network to the sensor arrangement and provides insights using backend applications to
make sense of plethora of data generated by hundreds of sensors.
While there are hundreds of companies and a few startups venturing into IoT platform development,
players like Amazon and Microsoft are way ahead of others in the competition. Read on to know about top
10 IoT platforms that can be used for the applications.
IoT platform: Amazon Web Services (AWS) IoT
Last year Amazon announced the AWS IoT platform at it s Re:Invent conference.
Main features of AWS IoT platform are:
Microsoft is very much interested in bringing up products for internet of things. For the initiative
the Microsoft Azure cloud services compatible IoT platform, the Azure IoT suite is on the offer.
Features included in this platform are:
57
Raspberry pi
The Raspberry pi is a single computer board with credit card size, that can be
used for many tasks that your computer does, like games, word processing,
spreadsheets and also to play HD video. It was established by the Raspberry pi
foundation from the UK. It has been ready for public consumption since 2012
with the idea of making a low-cost educational microcomputer for students and
children. The main purpose of designing the raspberry pi board is, to encourage
learning, experimentation and innovation for school level students. The raspberry
pi board is a portable and low cost. Maximum of the raspberry pi computers is
used in mobile phones. In the 20th century, the growth of mobile computing
technologies is very high, a huge segment of this being driven by the mobile
industries. The 98% of the mobile phones were using ARM technology.
Raspberry Pi Technology
The raspberry pi comes in two models, they are model A and model B. The main
difference between model A and model B is USB port. Model A board will
consume less power and that does not include an Ethernet port. But, the model B
board includes an Ethernet port and designed in china. The raspberry pi comes
with a set of open source technologies, i.e. communication and multimedia web
technologies. In the year 2014, the foundation of the raspberry pi board launched
the computer module, that packages a model B raspberry pi board into module
for use as a part of embedded systems, to encourage their use.
Memory
The raspberry pi model Aboard is designed with 256MB of SDRAM and model
B is designed with 51MB.Raspberry pi is a small size PC compare with other
PCs. The normal PCs RAM memory is available in gigabytes. But in raspberry
pi board, the RAM memory is available more than 256MB or 512MB
The Central processing unit is the brain of the raspberry pi board and that is
responsible for carrying out the instructions of the computer through logical and
mathematical operations. The raspberry pi uses ARM11 series processor, which
has joined the ranks of the Samsung galaxy phone.
Ethernet Port
The Ethernet port of the raspberry pi is the main gateway for communicating with
additional devices. The raspberry pi Ethernet port is used to plug your home
router to access the internet.
GPIO Pins
The general purpose input & output pins are used in the raspberry pi to associate
with the other electronic boards. These pins can accept input & output commands
based on programming raspberry pi. The raspberry pi affords digital GPIO pins.
These pins are used to connect other electronic components. For example, you
can connect it to the temperature sensor to transmit digital data.
XBee Socket
The XBee socket is used in raspberry pi board for the wireless communication
purpose.
The power source cable is a small switch, which is placed on side of the shield.
The main purpose of the power source connector is to enable an external power
source.
UART
Display
The connection options of the raspberry pi board are two types such as HDMI
and Composite.Many LCD and HD TV monitors can be attached using an HDMI
male cable and with a low-cost adaptor. The versions of HDMI are 1.3 and 1.4
are supported and 1.4 version cable is recommended. The O/Ps of the Raspberry
Pi audio and video through HMDI, but does not support HDMI I/p. Older TVs
can be connected using composite video. When using a composite video
connection, audio is available from the 3.5mm jack socket and can be sent to your
TV. To send audio to your TV, you need a cable which adjusts from 3.5mm to
double RCA connectors.
The raspberry pi boards are used in many applications like Media streamer,
Arcade machine, Tablet computer, Home automation, Carputer, Internet radio,
Controlling robots, Cosmic Computer, Hunting for meteorites, Coffee and also in
raspberry pi based projects.
The main intention of this project is to control the speed of a DC Motor using
Raspberry Pi.
This project uses a Raspberry Pi board to control the DC motor speed. The speed
of a DC motor is directly proportional to the voltage applied across its terminals,
When the voltage across the motor terminal is varied, then the speed also gets
varied accordingly. So this is the main principle of this project. A keyboard is
connected to the Raspberry pi board to run the motor at different speeds by
pressing the key.
According to the program, the PWM (pulse width modulation) is caused at the
output, and it can be programmed by using PHP/wiring pi. Depending on the duty
cycle, the average current and voltage change, so the speed of the DC motor will
also change. A motor driver IC is interfaced to the board for receiving PWM
signals and sending desired O/P to the DC motor.
ARM
The ARM microcontroller stands for Advance RISC Machine; it is one of the
extensive and most licensed processor cores in the world. The first ARM
processor was developed in the year 1978 by Cambridge University, and the first
ARM RISC processor was produced by the Acorn Group of Computers in the
year 1985. These processors are specifically used in portable devices like digital
cameras, mobile phones, home networking modules and wireless communication
technologies and other embedded systems due to the benefits, such as low power
consumption, reasonable performance, etc. This article gives an overview of
ARM architecture with each module’s principle of working.
ARM Architecture
The ARM cortex is a complicated microcontroller within the ARM family that
has ARMv7 design. There are 3 subfamilies within the ARM cortex family :
The ARM processor conjointly has other components like the Program status
register, which contains the processor flags (Z, S, V and C). The modes bits
conjointly exist within the program standing register, in addition to the interrupt
and quick interrupt disable bits; Some special registers: Some registers
are used like the instruction, memory data read and write registers and memory
address register.
Priority encoder: The encoder is used in the multiple load and store
instruction to point which register within the register file to be loaded or kept .
The ALU has two 32-bits inputs. The primary comes from the register file,
whereas the other comes from the shifter. Status registers flags modified by the
ALU outputs. The V-bit output goes to the V flag as well as the Count goes to the
C flag. Whereas the foremost significant bit really represents the
S flag, the ALU output operation is done by NORed to get the Z flag. The
ALU has a 4-bit function bus that permits up to 16 opcode to be implemented.
The multiplier factor has 3 32-bit inputs and the inputs return from the register
file. The multiplier output is barely 32-Least Significant Bits of the merchandise.
The entity representation of the multiplier factor is shown in the above block
diagram. The multiplication starts whenever the beginning 04 input goes active.
Fin of the output goes high when finishing.
Booth Algorithm
Barrel Shifter
The barrel shifter features a 32-bit input to be shifted. This input is coming back
from the register file or it might be immediate data. The shifter has different
control inputs coming back from the instruction register. The Shift field within
the instruction controls the operation of the barrel shifter. This field indicates
the kind of shift to be performed (logical left or right, arithmetic right or
rotate right). The quantity by which the register ought to be shifted is contained
in an immediate field within the instruction or it might be the lower 6 bits of a
register within the register file.
The shift_val input bus is 6-bits, permitting up to 32 bit shift. The shifttype
indicates the needed shift sort of 00, 01, 10, 11 are corresponding to shift left,
shift right, an arithmetic shift right and rotate right, respectively. The barrel shifter
is especially created with multiplexers.
Control Unit
For any microprocessor, control unit is the heart of the whole process and it is
responsible for the system operation,so the control unit design is the most
important part within the whole design. The control unit is sometimes a pure
combinational circuit design. Here, the control unit is implemented by easy state
machine. The processor timing is additionally included within the control unit.
Signals from the control unit are connected to each component within the
processor to supervise its operation.
The final thing that must be explained is how the ARM will be used and the way
in which the chip appear. The various signals that interface with the processor are
input, output or supervisory signals which will be used to control the ARM
operation.
ARM Functional Diagram
• USER Mode
• FIQ Mode
• IRQ Mode
• SVC Mode
• UNDEFINED Mode
• ABORT Mode
• Monitor Mode
ARM Microcontroller Register Modes
USER Mode: The user mode is a normal mode, which has the least number of
registers. It doesn’t have SPSR and has limited access to the CPSR.
FIQ and IRQ: The FIQ and IRQ are the two interrupt caused modes of the CPU.
The FIQ is processing interrupt and IRQ is standard interrupt. The FIQ mode has
additional five banked registers to provide more flexibility and high performance
when critical interrupts are handled.
SVC Mode: The Supervisor mode is the software interrupt mode of the processor
to start up or reset.
Undefined Mode: The Undefined mode traps when illegal instructions are
executed. The ARM core consists of 32-bit data bus and faster data flow.
THUMB Mode: In THUMB mode 32-bit data is divided into 16-bits and
increases the processing speed.
Some of the registers are reserved in each mode for the specific use of the core.
The reserved registers are
Present days, solar technology has been progressing in many applications like
homes, industries, etc. The main goal of this project is to conserve the electrical
energy:here an Arm-Cortex- based solar street light is implemented that works
on solar energy. Generally, solar street lights are used where electricity is not
available.
Hardware Components
Software
• Keil compiler
• Embedded C Language
This project utilizes an ARM-Cortex processor of the STM32 family and a battery
for power supply. This project uses a solar panel to charge the battery where
charge controller circuit controls the battery charging. ARM-Cortex processor is
interfaced to a set of LEDs with the help of the MOSFET Switch.
The intensity control of the LED lights is possible by varying the duty cycle from
a DC source. A programmed ARM-Cortex microcontroller unit is engaged to
afford different intensities at different times of night by using the Pulse Width
Modulation technique. The charge controller circuit is used to protect the battery
from the deep discharge and overload conditions.
Arduino Technology Architecture and Its
Advantages
An Arduino board is a one type of microcontroller based kit. The first Arduino
technology was developed in the year 2005 by David Cuartielles and Massimo
Banzi. The designers thought to provide easy and low cost board for students,
hobbyists and professionals to build devices. Arduino board can be purchased
from the seller or directly we can make at home using various basic components.
The best examples of Arduino for beginners and hobbyists includes motor
detectors and thermostats, and simple robots. In the year 2011, Adafruit
industries expected that over 3lakhs Arduino boards had been produced. But,
7lakhs boards were in user’s hands in the year 2013. Arduino technology is used
in many operating devices like communication or controlling.
Arduino Technology
The pin configuration of the Arduino Uno board is shown in the above.
It consists of 14-digital i/o pins. Wherein 6 pins are used as pulse width
modulation o/ps and 6 analog i/ps, a USB connection, a power jack, a 16MHz
crystal oscillator, a reset button, and an ICSP header. Arduino board can be
powered either from the personal computer through a USB or external source like
a battery or an adaptor. This board can operate with an external supply of 7-12V
by giving voltage reference through the IORef pin or through the pin Vin.
Digital I/Ps
It comprises of 14-digital I/O pins, each pin take up and provides 40mA current.
Some of the pins have special functions like pins 0 & 1, which acts as a transmitter
and receiver respectively. For serial communication, pins-2 & 3 are external
interrupts, 3,5,6,9,11 pins delivers PWM o/p and pin-13 is used to connect LED.
Analog i/ps: It has 6-analog I/O pins, each pin provide a 10 bits resolution.
Arduino Architecture
Basically, the processor of the Arduino board uses the Harvard architecture where
the program code and program data have separate memory. It consists of two
memories such as program memory and data memory. Wherein the data is stored
in data memory and the code is stored in the flash program memory. The
Atmega328 microcontroller has 32kb of flash memory, 2kb of SRAM 1kb of
EPROM and operates with a 16MHz clock speed.
Arduino Architecture
The main advantage of the Arduino technology is, you can directly load the
programs into the device without the need of a hardware programmer to burn the
program. This is done because of the presence of the 0.5KB of boot loader, that
allows the program to be dumped into the circuit. The Arduino tool window
contains a toolbar with a various buttons like new, open, verify, upload and serial
monitor. And additionally it comprises of a text editor (employed to write the
code), a message space (displays the feedback) like showing the errors, the text
console, that displays the o/p & a series of menus just like the file, tool menu &
edit.
Arduino Program
• Digital read pin reads the digital value of the given pin.
• Digital write pin is used to write the digital value of the given pin.
• Pin mode pin is used to set the pin to I/O mode.
• Analog read pin reads and returns the value.
• Analog write pin writes the value of the pin.
• Serial. Begins pin sets the beginning of serial communication by setting
the rate of bit.
The main goal of this project is to design a home automation system using an
Arduino board with Bluetooth being controlled remotely by any Android OS
based smart phone. This home automation system provides a modern solution
with smart phones.In order to achieve this, a Bluetooth device is attached to the
Arduino board at the receiver side and while on the transmitter side, a GUI
application on the smart phone sends ON/OFF commands to the receiver where
loads are connected. By touching the particular location on the graphical user
interface (GUI), the different loads can be remotely turned ON/OFF via this
technology. When we touch the exact location on the GUI, then the loads can be
turned ON/OFF remotely. The loads works with an Arduino board through
Thyristors and Opto-Isolators using triacs.
Intel Galileo
Intel Galileo is the first in a line of Arduino-certified development boards based
on Intel x86 architecture and is designed for the maker and education
communities. Intel released two versions of Galileo, referred to as Gen 1 and Gen
2. These development boards are sometimes called "Breakout boards".
The Arduino Intel Galileo board is a microcontroller board based on the Intel®
Quark SoC X1000, a 32-bit Intel Pentium®-class system on a chip (SoC). It is
the first board based on Intel® architecture designed to be fully pin-compatible
with shields designed for the Arduino Uno R3. Digital pins 0 to 13 (and the
adjacent AREF and GND pins), Analog inputs 0 to 5, the power header, ICSP
header, and the UART port pins (0 and 1), are all in the same locations as on the
Arduino Uno R3. This is also known as the Arduino 1.0 pinout.
The Arduino Intel Galileo board has been designed to support shields that operate
at either 3.3V or 5V. The core operating voltage of Galileo is 3.3V. However, a
jumper on the board enables voltage translation to 5V at the I/O pins. This
provides support for 5V Uno shields and is the default behavior. By switching the
jumper position, the voltage translation can be disabled to provide 3.3V operation
at the I/O pins.
In the following schematics you can see the locations of the key components for
the Arduino Intel Galileo board.
• Arduino
• The Intel Galileo Board is the first Arduino board based on Intel
architecture. The headers (what you connect jumper cables to on the board)
are based off the Arduino 1.0 pinout model that's found on the Arduino
Uno R3 boards. This provides the ability to use compatible shields
(modules that you can plug into headers), allowing you to extend the
functionality of the board. Like the Uno, it has 14 digital I/O pins, 6 analog
inputs, a serial port, and an ICSP header for serial programming.
• Quark
• The board features an Intel® Quark SoC X1000 Application Processor,
designed for the Internet of Things. It's smaller and more power efficient
than the Intel Atom® Processor, making it great for small, low-powered
projects.
• Ethernet
• On the top portion of the board, right next to what looks like an audio jack
labeled UART, there is a 100 Mb Ethernet port that allows the Intel Galileo
to connect to wired networks. Once your board is connected to the Internet,
anything is possible.
• Mini-PCIe
• The Intel Galileo is the first Arduino Certified board that provides a mini
PCI Express (mPCIe) slot. This allows you to connect standard mPCIe
modules like Wi-Fi, Bluetooth, and SIM card adapters for cell phones.
• Real Time Clock (RTC): Synchronize data between modules using the
boards-integrated Real Time Clock. Using the Arduino Time Library, you
can add timekeeping functionality to your program. Wireless projects can
synchronize in real time using the Network Time Protocol (NTP) and
Global Positioning System (GPS) time data.
To preserve time between system resets, add a coin cell battery to your
Intel Galileo Board.
• micro SD
• Use the optional onboard micro SD card reader that is accessible through
the Secure Digital (SD) Library. Unlike other Arduinos, the Intel Galileo
does not save sketches (programs) between power on/off states of the board
without an SD card. Using a micro SD card, you can store up to 32 GB of
data!
• Linux*
• Using the Linux image for the Intel Galileo, you can access serial ports,
Wi-Fi, and board pins using programming languages like Advanced Linux
Sound Architecture (ALSA), Video4Linux (V4L2), Python, Secure Shell
(SSH), Node.js, and OpenCV. Using these extra features provided by
Linux requires a micro SD card. Take advantage of the Intel Quark
processing power and create something amazing.