IoT-Chapter 3 First Draft
IoT-Chapter 3 First Draft
IoT-Chapter 3 First Draft
USB is a serial bus. It uses 4 shielded wires: two for power (+5v & GND) and two for differential data
signals (labelled as D+ and D- in pinout).
In a USB data cable Data+ and Data- signals are transmitted on a twisted pair with no termination needed.
Half-duplex differential signalling is used to reduce the effects of electromagnetic noise on longer lines. D+
and D- operate together; they are not separate simplex connections.
USB supports four data rates:
Low Speed (1.5 Mbit per second) that is mostly used for Human Input Devices (HID) such as keyboards,
mice, joysticks and often the buttons on higher speed devices such as printers or scanners;
Full Speed (12 Mbit per second) which is widely supported by USB hubs.
Hi-Speed (480 Mbit per second) was added in USB 2.0 specification. Not all USB 2.0 devices are Hi-Speed.
SuperSpeed (USB 3.0) rate of 4800 Mbit/s (~572 MB/s).
Cable
Pin Name Description
A USB device must indicate its speed by pulling either the D+ or D- line high to 3.3 volts. These pull up color
resistors at the device end will also be used by the host or hub to detect the presence of a device 1 VCC Red +5 VDC
connected to its port. Without a pull up resistor, USB assumes there is nothing connected to the bus.
2 D- White Data -
Pinout for the various connectors are shown below 3 D+ Green Data +
4 ID n/a USB OTG ID
5 GND Black Ground
WIRED TECHNOLOGY
• ETHERNET
Universal Asynchronous Receiver/Transmitter (UART) refers to the
hardware that converts parallel to serial communications, and is
often simply called serial, rather confusingly; it is actually the
communication standards over UART to which people are
generally referring; the most common are RS-232 and RS-485.
RS-232 connectors are no longer commonplace on computers but
are easily added using a USB-Serial chip from manufacturers such
as FTDI. Speeds of up to 1 Mbit/s are achievable, but this is often
limited by the slave device. Cable lengths are limited to 15 m at
19.6 kbit/s, depending on the quality of the cable. There are two
variants, a 3-wire and a 5-wire, with the 5-wire variant providing
hardware flow-control for improved speed.
RS-485 is well suited to longer distances, and enables data
transmissions of 35 Mbit/s up to 10 m, but can be used for
distances in excess of 1 km at lower speeds. It is commonplace in
building automation and for protocols such as MODBUS. It also
permits up to 256 devices on a single connection.
WIRELESS TECHNOLOGY
• BLUETOOTH
Universal Asynchronous Receiver/Transmitter (UART) refers to the
hardware that converts parallel to serial communications, and is
often simply called serial, rather confusingly; it is actually the
communication standards over UART to which people are
generally referring; the most common are RS-232 and RS-485.
RS-232 connectors are no longer commonplace on computers but
are easily added using a USB-Serial chip from manufacturers such
as FTDI. Speeds of up to 1 Mbit/s are achievable, but this is often
limited by the slave device. Cable lengths are limited to 15 m at
19.6 kbit/s, depending on the quality of the cable. There are two
variants, a 3-wire and a 5-wire, with the 5-wire variant providing
hardware flow-control for improved speed.
RS-485 is well suited to longer distances, and enables data
transmissions of 35 Mbit/s up to 10 m, but can be used for
distances in excess of 1 km at lower speeds. It is commonplace in
building automation and for protocols such as MODBUS. It also
permits up to 256 devices on a single connection.
WIRELESS TECHNOLOGY
• ZIGBEE
ZigBee is a wireless-based open, global standard
used for personal-area networks targeted at low-
power applications with infrequent data
transmission needs. It operates on the 802.15.4
standard and enables wireless mesh networks
with low-cost and low-power solutions. It can
transmit 250 kbit/s over distances of up to 100
m, and supports up to 65,000 nodes per
network.
It has many applications, for example, in lighting
control, healthcare devices, and electrical
meters.
WIRELESS TECHNOLOGY
• LORA
• RF
Radio frequency (RF) is the oscillation rate of an alternating electric current or voltage or of a
magnetic, electric or electromagnetic field or mechanical system in the frequency range from
around twenty thousand times per second (20 kHz) to around three hundred billion times per
second (300 GHz). This is roughly between the upper limit of audio frequencies and the lower
limit of infrared frequencies; these are the frequencies at which energy from an oscillating
current can radiate off a conductor into space as radio waves. Different sources specify
different upper and lower bounds for the frequency range.
WIRELESS TECHNOLOGY
• GSM
GSM digitizes and compresses data, then sends it down a channel with two
other streams of user data, each in its own time slot. It operates at either the
900 megahertz (MHz) or 1,800 MHz frequency band
WIRELESS TECHNOLOGY
• WIFI
Wi-Fi is a family of radio technologies that is commonly used for the wireless
local area networking (WLAN) of devices which is based around the IEEE
802.11 family of standards. Wi-Fi is a trademark of the Wi-Fi Alliance, which
restricts the use of the term Wi-Fi Certified to products that successfully
complete interoperability certification testing.[2][better source needed] Wi-Fi
uses multiple parts of the IEEE 802 protocol family and is designed to
seamlessly interwork with its wired sister protocol Ethernet.
The different versions of Wi-Fi are specified by various IEEE 802.11 protocol
standards, with the different radio technologies determining the ranges,
radio bands, and speeds that may be achieved. Wi-Fi most commonly uses
the 2.4 gigahertz (12 cm) UHF and 5 gigahertz (6 cm) SHF ISM radio bands;
these bands are subdivided into multiple channels. Each channel can be time-
shared by multiple networks. These wavelengths work best for line-of-sight.
Many common materials absorb or reflect them, which further restricts
range, but can tend to help minimise interference between different
networks in crowded environments. At close range, some versions of Wi-Fi,
running on suitable hardware, can achieve speeds of over 1 Gbit/s.
WIRELESS SENSOR NETWORK
BACKGROUND
Wireless sensor network (WSN) refers to a group of
spatially dispersed and dedicated sensors for monitoring
and recording the physical conditions of the environment
and organizing the collected data at a central location.
WSNs measure environmental conditions like temperature,
sound, pollution levels, humidity, wind, and so on.
WIRELESS SENSOR NETWORK
SENSOR AND ACTUATOR
WSNs are spatially distributed autonomous sensors to monitor physical or environmental
conditions, such as temperature, sound, pressure, etc. and to cooperatively pass their data
through the network to a main location. The more modern networks are bi-directional, also
enabling control of sensor activity. The development of wireless sensor networks was
motivated by military applications such as battlefield surveillance; today such networks are
used in many industrial and consumer applications, such as industrial process monitoring and
control, machine health monitoring, and so on.
The WSN is built of "nodes" – from a few to several hundreds or even thousands, where each
node is connected to one (or sometimes several) sensors. Each such sensor network node has
typically The cost of sensor nodes is similarly variable, ranging from a few to hundreds of
dollars, depending on the complexity of the individual sensor nodes.
Size and cost constraints on sensor nodes result in corresponding constraints on resources
such as energy, memory, computational speed and communications bandwidth
WIRELESS SENSOR NETWORK
GATEAWAY
The topology of the WSNs can vary from a simple star network to an advanced multi-hop wireless
mesh network. The propagation technique between the hops of the network can be routing or
flooding.
Adding a single Wi-Fi or wired Ethernet Internet connection to a gateway which communicates to
a group of sensors or actuators is more cost-effective. The Internet connection can then be shared by
using either local wired or wireless connections between the gateway and local devices.
The aim of this chapter is to design, build, and test an environmental-sensing IoT architecture for
weather monitoring. The architecture must use commodity hardware and software to produce a
system that is secure, reliable, and low cost.
WIRELESS SENSOR NETWORK
BACKEND SERVICES
The weather station will reside
outdoors in a suitably exposed
location and will need to record
values
from various sensors at regular
time-intervals, mainly temperature,
humidity, wind speed and
direction. This data needs to be
reliably stored and transmitted for
use in analysis, graphs, and for
consumption by external services
Understand Wireless Sensor Network (WSN)
Course Content Outline
■ here are a number of nodes in a sensor network, these nodes are the detection
stations and they are very small and portable. There is a sensor/transducer,
microcontroller, transceiver and power source in every sensor node. The transducer
senses the physical condition and if there is any change then it generates electrical
signals. These signals go to the microcomputer for processing. A central computer
sends commands to the transceiver and data is then transmitted to that computer.
WSN
■ here are a number of nodes in a sensor network, these nodes are the detection
stations and they are very small and portable. There is a sensor/transducer,
microcontroller, transceiver and power source in every sensor node. The transducer
senses the physical condition and if there is any change then it generates electrical
signals. These signals go to the microcomputer for processing. A central computer
sends commands to the transceiver and data is then transmitted to that computer.
TYPES OF WIRELESS SENSOR NETWORKS
■ The mobile network, as the name suggests, is not fixed rather the sensor nodes can
move from one place to any other. They can be easily interfaced with the
environment around them. Their main advantage is that they provide better
coverage, superior channel capacity and enhanced coverage. These mobile WSNs
are more versatile as compared to the other static sensor network systems.
APPLICATIONS OF
WIRELESS SENSOR
NETWORKS
Overview:
Wireless sensor networks are widely used in controlling and monitoring different physical
environments. The introduction of wireless sensors has reduced the physical presence of
humans in monitoring several situations. Currently most of the sensors are compact, advanced
and highly cost effective, which improved the availability of these sensors to anyone. People can
easily buy these sensors and use to measure a variety of situations like temperature, motion,
distance, acceleration, location, etc.
Wireless sensor networks can be implemented in automation of various application like
• Defense • Environmental monitoring • Logistics • Human-centric applications • Robotics.
1. DISASTER RELIEF OPERATION
■ If an area is reported to have been stricken from some sort of calamity such as
wildfire, then drop the sensor nodes on the fire from an aircraft. Monitor the data of
each node and construct a temperature map to devise proper ways and techniques
to overcome the fire.
2. MILITARY APPLICATIONS
■ As the WSNs can be deployed rapidly
and are self organized therefore they are
very useful in military operations for
sensing and monitoring friendly or
hostile motions. The battlefield
surveillance can be done through the
sensor nodes to keep a check on
everything in case more equipment,
forces or ammunitions are needed in the
battlefield. The chemical, nuclear and
biological attacks can also be detected
through the sensor nodes.
■ An example of this is the ‘sniper
detection system’ which can detect the
incoming fire through acoustic sensors
and the position of the shooter can also
be estimated by processing the detected
audio from the microphone.
Defense Surveillance
3. ENVIRONMENTAL APPLICATIONS
■ These sensor networks have a huge number of applications in the environment.
They can be used to track movement of animals, birds and record them. Monitoring
of earth, soil, atmosphere context, irrigation and precision agriculture can be done
through these sensors. They can also used for the detection of fire, flood,
earthquakes, and chemical/biological outbreak etc.
■ A common example is of ‘Zebra Net’. The purpose of this system is to track and
monitor the movements and interactions of zebras within themselves and with
other species also.
ENVIRONMENTAL APPLICATIONS
■ Air monitoring: A good example for air monitoring is using air quality sensors for
measuring the level of air pollution in major cities to let the people know the level of
pollution and take proper measures to control air pollution.
■ Water monitoring: A lot of government agencies are involved in monitoring the national
waters to determine the water quality, finding problems like water pollution and pollution
control efforts and responding to emergencies.
■ Some of the popular Example of Environmental monitoring are:
❖ Great Duck (bird observation on Grate Duck island)
❖ ZebraNet (studying wild life tracking systems)
❖ Glacier (glacier monitoring)
❖ Herding (cattle herding)
❖ Bathymetry
❖ Ocean (ocean water monitoring)
❖ Cold Chain (cold chain monitoring)
❖ Avalanche (rescue of avalanche victims)
3. ENVIRONMENTAL APPLICATIONS
4. MEDICAL APPLICATIONS
■ Two small booms on the rover mast will record the horizontal and vertical
components of wind speed to characterize air flow near the Martian surface from
breezes, dust devils, and dust storms. A sensor inside the rover's electronic box will
be exposed to the atmosphere through a small opening and will measure changes
in pressure caused by different meteorological events such as dust devils,
atmospheric tides, and cold and warm fronts. A small filter will shield the sensor
against dust contamination
REFERENCES
■ https://microcontrollerslab.com/wireless-sensor-networks-wsn-
applications/#TERRESTRIAL_WSNs