Uploaded by hanaa wakwak

ch1 p1 iot

advertisement
THE PRESENCE OF IOT IN TODAY'S
WORLD:
•
The Internet of Things (IoT) is all around us and quickly
expanding.
•
We are just beginning to reap the benefits of the IoT.
•
New ways to use connected things are always being
developed.
•
The IoT helps individuals connect things to improve
quality of life.
•
Consider how many people are now using wearable
devices to track their fitness activities.
example of a wearable shirt designed to track your
fitness level.
The IoT also helps organizations and industries improve
resource management to become more efficient.
Consider how the IoT is used in smart cities.
overview of how smart cites connect things to improve
the lives of its citizens.
•
The IoT is helping industries including manufacturing,
utilities, oil and gas, transportation, mining, and public
and private sector organizations increase operationally
efficiency.
•
Companies and cities are now increasingly deploying IoT
solutions.
•
However, this rapid increase in growth has also
introduced new challenges including:
•
•
•
•
•
•
•
How to integrate the millions of devices from
different vendors that use custom applications
How to integrate new things into the existing
network infrastructure
How to secure these new devices, each
configured with varying levels of security
To help address these challenges and help
organizations and industries adopt IoT solutions, Cisco
introduced the Cisco IoT System.
Specifically, the Cisco IoT System reduces the
complexities of digitization for industry.
As shown in the figure, the Cisco IoT System identifies
six technology pillars that help simplify and secure an
IoT
•
Network Connectivity
•
Fog Computing
•
Cybersecurity and Physical Security
•
Data Analytics
•
Management and Automation
•
Application Enablement Platform
To help address these challenges and help
organizations and industries adopt IoT solutions, Cisco
introduced the Cisco IoT System.
•
•
Click here to see how Cisco is developing digitization
solutions for all types of industries.
Cisco Jasper Technologies is a company that provides
an IoT cloud platform enabling you to manage
connectivity for all your IoT devices.
•
With Jasper, companies can use cellular networks to
connect to any device, from pacemakers to jet engines.
•
Companies can then manage connectivity of IoT
services through the IoT cloud platform as a Service
(SaaS) platform.
•
For more information on Cisco Jasper Technologies,
their IoT cloud platform, and customer IoT success
stories click here.
•
There are many different types of IoT-enabled devices
available.
•
However, most IoT devices use sensors, controllers, and
actuators to perform functions
•
Feedback loops are used by the IoT device to provide
real-time information to its controller based on current
behavior.
•
A closed loop exists when the feedback is continuously
being received by the controller from its sensors.
•
The controller analyzes and processes information, and if
necessary, it can use actuators to modify conditions.
•
This process is continuously repeated and adjusted.
SENSORS
•
A sensor is a device that can be used to measure a
physical property by detecting some type of
information from the physical world.
•
This information could be light, moisture, motion,
pressure, temperature, or any other environmental
condition.
•
For example, in Figure 1, the coffee farm displayed
could use sensors to collect a variety of information,
such as sunlight, temperature, and soil moisture.
•
This data can then be analyzed to help maximize
the yield and quality of coffee.
• A sensor may be connected to a controller either
directly or remotely.
•
Sensors and controllers are usually connected by
means of analog or digital circuits.
•
Sensors send data to a controller.
•
That controller could react to the sensor data
immediately and change the actuator settings.
•
As an example, a Controller Area Network (CAN)
is a standard used in most modern automobiles to
allow for communication between sensors and
controllers without any host computers.
•
Most new cars are equipped with backup cameras
or anti-collision sensors.
•
•
These cameras and their sensors can alert the
microcontrollers if an object is in the way and the
microcontrollers will automatically cause the car to
emit a warning signal or to apply the brakes.
A sensor may be connected to a controller either
directly or remotely.
•
Sensors and controllers are usually connected by
means of analog or digital circuits.
•
Sensors send data to a controller.
•
That controller could react to the sensor data
immediately and change the actuator settings.
•
As an example, a Controller Area Network (CAN)
is a standard used in most modern automobiles to
allow for communication between sensors and
controllers without any host computers.
•
Most new cars are equipped with backup cameras
or anti-collision sensors.
•
These cameras and their sensors can alert the
microcontrollers if an object is in the way and the
microcontrollers will automatically cause the car to
emit a warning signal or to apply the brakes.
ACTUATORS
•
An actuator is a basic motor that can be used to
move or control a mechanism or system, based
on a specific set of instructions.
•
Typically, in the Industrial IoT, there are three
types of actuators:
•
•
Electrical - Powered by a motor that converts
electrical energy into mechanical operations
•
Hydraulic - Uses fluid pressure to perform
mechanical movement
•
Pneumatic - Uses compressed air to enable
mechanical operations
The example in the figure displays an industrial
actuator consisting of an electric solenoid used
to control hydraulics.
• n other areas, an actuator can be responsible
for transforming an electrical signal into
physical output.
•
This physical output could provide information
to a user via LEDs or modify another device or
environment.
•
For example, the heater in the thermostat
feedback loop is an actuator because it
changes the status of the controlled
environment (temperature) in response to an
electrical signal.
•
Regardless of how the actuator causes the
movement to be performed, the basic function
of an actuator is to receive a signal from the
controller, and based on that signal, perform a
set action.
CONTROLLERS
•
Controllers are responsible for collecting data from
sensors and providing network or Internet
connectivity.
•
Controllers may have the ability to make immediate
decisions, or they may send data to a more
powerful computer for analysis.
•
This more powerful computer might be in the same
LAN as the controller or might only be accessible
through an Internet connection.
•
Figure 1 displays a sample IoT topology consisting
of sensors, controllers, routers and data centers.
•
To reach the more powerful computers in the data
center, the controller will first send data to a local
router.
•
This router is the interface between the local
network and Internet.
•
It can send data back and forth between them.
•
Figure 2 displays a sample IoT topology that
highlights how controllers are used in fog
computing.
•
Imagine smart traffic lights that contain sensors
and actuators.
•
The sensors detect and report traffic activity to the
controller.
•
The controller is able to process this data locally
and determine optimal traffic patterns.
•
Using this information the controller will send
signals to the actuators in the traffic lights to adjust
traffic flows.
•
This is an example of machine-to-machine (M2M)
communication.
•
In this scenario, the sensors, actuators, and the
controller all exist within the fog.
•
That means that the information is not sent beyond
the local network of end devices.
Figure 3 displays an example of IP-enabled
controllers.
•
•
The IP-enabled controller forwards information
across an IP network, and allows individuals to
access the controller remotely.
•
In addition to forwarding basic information in an
M2M configuration, some controllers are able to
perform more complex operations.
•
•
Some controllers can consolidate information from
multiple sensors or perform basic analysis of data
received
The Arduino microcontroller, shown in Figure 4, and
the Raspberry Pi (RaPi), shown in Figure 5, are both
types of controllers.
•
They can both operate without the Internet and are
used by hobbyists and professionals.
•
The key difference between the two is physical size,
available processing power, memory, and OS.
•
Typically the Arduino requires less power than the
RaPi and is more suitable for analog input.
•
The application should dictate which controller is the
best to use.
•
The two controllers are commonly used together.
•
For instance, you can acquire data with the Arduino
and then process the data using the Raspberry Pi.
•
More details about the Arduino and Raspberry Pi
controllers will be covered in a later chapter
IOT PROCESS FLOW
•
Key components of some of the simplest IoT
systems include sensors connecting, through a
wireless or wired connection, to actuators or
controllers.
•
Some devices can have more than one function.
•
This is the case for the controller in an IoT System.
•
A controller can collect data from sensors without
human intervention or network connectivity.
•
As an example, a sensor determines that the
temperature in an apartment has dropped below a
pre-set level.
•
The controller will process the data and send output
to cause the heater (the actuator) to turn on.
•
A controller may also act as a gateway to the local
network.
•
In the previous example, if the IoT system is
designed to capture the temperature changes
within every apartment of the building, the controller
may pass the data up to be stored or analyzed on
servers in the local or edge network.
PROCESSES
•
•
As illustrated in Figure 1, a process uses inputs to
execute the right actions to achieve the desired
output.
•
More formally, a process is a series of steps or
actions taken to achieve a desired result by the
consumer of the process.
•
A system is a set of rules that govern the series of
steps or actions in the process.
FEEDBACK
•
Feedback is when the output of a system, or
process, affects the input.
•
To illustrate this, consider how feedback was used
to safely land on the moon (Figure 1). The computer
continually received altitude and speed feedback
measurements and displayed this information to the
astronaut and on-board systems.
•
The astronaut used the feedback to control the
spacecraft and adjust altitude, engine, and thrust
levels to successfully land on the moon.
• Feedback is often referred to as a feedback loop.
•
This is because the input results in output that is
continually resampled and used as new input, as
illustrated in Figure 2.
•
The feedback loop represents the idea of a causeand-effect cycle, or circuit, where results
continually adjust actions.
•
Many system processes normally have some type
of feedback loop mechanism.
•
Systems usually have a way of looping or feeding
back information about the quality of the output.
Feedback loops can be positive or negative:
•
•
Positive feedback - Feedback reinforces the
original input.
•
Positive feedback accelerates the transformation
of the output in the same direction as the previous
result.
•
It tends toward either exponential growth or
decline, as shown in Figure 3.
•
Negative feedback - Feedback cancels out or
counteracts the original input.
•
Negative feedback diminishes the effect of the
previous result.
•
It tends towards stabilization, reaching some level
of equilibrium, as shown in Figure 4.
CONTROL SYSTEMS
•
A control system includes a controller that uses
inputs and outputs to manage and regulate the
behavior of the system in an attempt to achieve a
desired state.
•
The input specifies what the output should be for
the whole process.
•
The controller indicates what specific changes are
needed to achieve the desired output based on the
input.
•
The controlled portion of the system, the process
and the actuator, is often called the plant.
•
The input is used by the plant to produce the
desired output.
•
Choosing the adjustments to apply to a plant to
achieve a desired output is called control theory.
•
Control theory is essentially a strategy to select the
correct input and how to go about generating the
desired output.
•
Control theory is applied in all types of devices.
• Consider how control theory is applied when
driving a car.
•
The driver of the car is the controller, managing
and regulating the car (the plant).
•
Based on the input, the driver determines how to
use each control (e.g., accelerator, brake, steering
wheel) to achieve the intended output.
•
Many of the processes in a car also depend on
control systems designed by the automobile
manufacturer.
•
In these control systems, the output is measured
using some type of sensor to inform what changes
a controller needs to make.
•
The goal is to design a system with an error rate
of zero.
•
This means that the output of the plant is exactly
what you want it to be.
•
Therefore, if a driver wants to travel at 65 MPH,
then setting the cruise control to 65 MPH should
achieve exactly that result.
•
On a greater scale of technology, consider how
control theory was applied to successfully land the
NASA Curiosity Rover on Mars.
•
The rover used a dynamic control system to
determine how to move through space.
•
The rover sensors provided input by repeatedly
sampling its position and velocity during its descent
to the surface of Mars.
•
Processes in the rover used this input to make the
necessary adjustments to land at the intended
destination.
• Control systems can be open-loop or closed-loop
systems.
•
The difference between these two systems is
based on whether it uses feedback or not.
•
Click here to view an excellent 9-minute video that
explains open-loop and closed-loop control
systems.
OPEN-LOOP
CONTROL SYSTEMS
•
•
Open-loop control systems do not use feedback.
•
The controller instructs the plant to perform a
predetermined action without any verification of
the desired results.
•
A logic diagram of an open-loop control system is
displayed in the figure.
•
Open-loop control systems are often used for
simple processes where the relationships between
the input and the plant are well-defined.
•
The job of the engineer is to determine how to
manipulate the inputs so that the plant will
generate the desired outputs.
•
For example, consider a coffee maker (the plant) as an
open-loop control system.
•
The user provides the right amount of coffee and water
(the inputs).
•
The plant heats the water and controls the flow of hot
water into the filter basket.
•
The output is coffee.
•
Assuming the plant is in proper working order, the quality
of the coffee (the output) is determined by the quality of
the inputs.
•
Another example of an open-loop control system is a
home appliance.
•
A dishwasher (the plant) typically runs for a set amount of
time using soap and hot water (the inputs).
•
The plant, with its optimally-placed spraying jets and dish
racks, produces clean dishes (the output).
•
However, the plant has no ability to determine when or if
the dishes are clean.
•
The plant will run its full cycle regardless of the quality of
the input.
Did the user load exceptionally dirty dishes? Did the user
add soap?
Note that in both examples, the quality of the inputs directly
impacts the quality of the output.
•
CLOSED-LOOP
CONTROL SYSTEMS
•
A closed-loop control system uses feedback to
determine whether the collected output is the
desired output.
•
As shown in the diagram in Figure 1, a closed-loop
system measures output using a sensor.
•
Using control theory, this measurement is
compared to a reference that represents the
desired state (input).
•
•
The result is then “fed back” into a controller.
This feedback is used by the controller to adjust the
controls into the plant for the next iteration of output,
and the process repeats.
• There are many examples of closed-loop control
systems.
For example, consider the
diagram of a home heating,
ventilation, and air conditioning
(HVAC) control system in Figure
2.
•
Initially, the digital thermostat is
programmed with the desired temperature.
•
•
This input is fed into the HVAC plant. If necessary,
the plant engages the HVAC equipment, to
generate the desired output.
•
The resulting output is measured against the
desired input.
•
The error, or difference, between the desired and
measured temperatures is determined and the
thermostat adjusts the control to the HVAC plant.
•
There are many types of closed-loop controllers.
•
A proportional-integral-derivative (PID) controller is
an efficient way to implement feedback control.
•
PID controllers are used in many types of industrial
applications because they are simple to use.
•
PID controllers are easy to understand, implement,
test, and troubleshoot.
•
The Arduino® and Raspberry Pi® devices can be
used to implement PID controllers.
•
As mentioned earlier, the acronym PID stands for
proportional, integral, and derivative.
•
Each of these terms describes how an error is
handled.
•
Although the math is beyond the scope of this
course, the meaning of these terms can be
explained using the graphs in Figure 2.
• Proportional controllers (P) – These controllers
look specifically at the difference between the
measured output and the desired output.
•
The amount of change sent to the plant by the
controller is proportional to the size of the error
from the last iteration.
•
For example, in an HVAC system the controller
would activate 50% of the chillers if the sensor
detected a one degree deviation from the set
temperature.
•
At 2 degrees deviation, 100% capacity would be
activated.
•
Proportional controls will usually overshoot the set
temperature, as shown in the P graph because
they are only looking at the deviation from the set
point at any given time.
ntegral controllers (PI) – These proportional and
integral controllers use historical data to measure
•
how long the system has deviated from the set
temperature.
•
The longer the system has deviated from the set
temperature, the larger the response from the
controller.
•
In an HVAC system, the controller would account
for historical data and time when adjusting the
system.
•
Although integral controllers will also overshoot
the set temperature, the variation will decrease
overtime, as shown in the PI graph.
Adding Derivative controllers🡪 (PID) – These
proportional, integral, and derivative controllers
include data about how quickly the system is
approaching the desired output.
•
•
In an HVAC system, the derivative function of a
PID controller looks at the rate of change in
temperature.
•
This allows the controller to quickly adjust the
output as the system approaches the desired
output, as shown in the PID graph.
•
•
INTERDEPENDENT
SYSTEMS
Closed-loop control systems are simple to
understand.
•
However, there can be considerable complexity in
the real world.
•
Many factors can impact systems, and the extent
of their impact is not always easily measured.
•
Most systems have many interdependent pieces
contributing to and affecting the output.
•
For example, consider a healthy lifestyle system,
as shown in the diagram.
•
A person embarks on a program of diet and
exercise.
•
After a short time, they become stronger and their
clothes fit more loosely.
•
They begin to receive compliments (feedback)
from others.
•
This results in good feelings that motivate them to
continue their diet and exercise.
Another example is the Earth’s climate system.
•
•
The diagram in Figure 2 shows how rising global
temperatures cause arctic ice to melt faster,
thereby increasing the amount of ocean surface.
•
Increased ocean surface means less sunlight is
reflected back into space, which increases the
temperature of the earth.
•
Finally, consider the example of
materials back into the supply chain.
•
Click here to learn about how Dell is recycling the
plastic from old electronics back into the supply
recycling
chain, which is used to manufacture new computer
systems.
Download