Professional Documents
Culture Documents
Waqar Azeem Assistant Professor Department of Computer Science Lahore Garrison University
Waqar Azeem Assistant Professor Department of Computer Science Lahore Garrison University
Waqar Azeem
Assistant Professor
Department of Computer Science
Lahore Garrison University
2
Overview of previous lecture
As all real world things can be made Io-things; for which first making the the things a
system is more important.
Importance of Sensor and Actuators for making Io-Things.
• Actuators:
– They are mainly output components
– They alter the surrounding
Sensors
• A sensor is a device that receives a stimulus and
responds with an electrical signal.
Actuators
• Hardware devices that convert a controller
command signal into a change in a physical
parameter
– The change is usually mechanical (e.g., position or
velocity)
– An actuator is also a transducer because it changes
one type of physical quantity into some alternative
form
– An actuator is usually activated by a low-level
command signal, so an amplifier may be required to
provide sufficient power to drive the actuator
Types of Actuators
1. Electrical actuators
– Electric motors
• DC servomotors
• AC motors
• Stepper motors
– Solenoids
2. Hydraulic actuators
– Use hydraulic fluid to amplify the controller
command signal
3. Pneumatic actuators
– Use compressed air as the driving force
Computer Process Control System
Transformation Process
Actuators
Actuators Sensors
Sensors
DAC
DAC ADC
ADC
Computer
Computer
Controller
Controller
Output Devices Input Devices
What is a Stimulus?
• Motion, position, • Sound
displacement • Moisture
• Velocity and • Light
acceleration • Radiation
• Force, strain • Temperature
• Pressure • Chemical presence
• Flow
• Example:
– A chemical sensor may have a part which converts the
energy of a chemical reaction into heat (transducer)
and another part, a thermopile, which converts heat
into an electrical signal
Physical characteristics of Sensing
• Charges, fields, & • Heat transfer
potentials • Light
• Capacitance
• Magnetism
• Induction
• Resistance
Sensor Types: HW & SW
• Hardware-based sensors
– Physical components built into a device
– They derive their data by directly measuring specific
environmental properties
• Software-based sensors
– Not physical devices, although they mimic hardware-
based sensors
– They derive their data from one or more hardware-
based sensors
Sensor List of Smartphones
Sensor Function Type Software-based or
Hardware-based
Accelerometer Motion Sensor Hardware-based
Gyroscope Motion Sensor Hardware-based
Gravity Motion Sensor Software-based
Rotation Vector Motion Sensor Software-based
Proximity Position Sensor Hardware-based
GPS Position Sensor Hardware-based
Orientation Position Sensor Software-based
Light Environmental Sensor Hardware-based
Thermometer Environmental Sensor Hardware-based
Barometer Environmental Sensor Hardware-based
Humidity Environmental Sensor Hardware-based
Accelerometer
• An accelerometer is a sensor which measures the tilting
motion and orientation of a mobile phone. The Apple
iPhone was the first popular mobile phone to make
the accelerometer a key feature of its user interface.
As the Orientation sensor &
Gravity sensors are less accurate, They cost low.
So, they are used in low cost android phone.
Auto-rotation is a software in Android which
gets the information from Accelerometer and
changes the your screen orientation.
Pressure sensors
• These sensors are used in IoT systems to monitor systems and
devices that are driven by pressure signals. When the pressure
range is beyond the threshold level, the device alerts the user
about the problems that should be fixed. For example, BMP180
is a popular digital pressure sensor for use in mobile phones,
PDAs, GPS navigation devices and outdoor equipment. Pressure
sensors are also used in smart vehicles and aircrafts to determine
force and altitude, respectively. In vehicle, tyre pressure
monitoring system (TPMS) is used to alert the driver when tyre
pressure is too low and could create unsafe driving conditions
• Applications: Pressure sensors are used in touch screen
devices, weather monitoring devices and in automotive industry.
Barometer
• Air pressure
• the barometer is probably used on the phone to
aid in correcting altitude measurements by the
GPS." ... The atmospheric pressure is directly related
to elevation, so a barometer can very easily be
used as an altimeter, measuring your altitude
IOT and Sensors
• In many cases, IoT devices are dependent on
sensors to sense what is going on in the world
and then the data is processed to continue the
work. These sensors are most important part of
devices and hence used extensively in IoT setup.
In this article, we will discuss some of the
commonly used types of sensors and what they
are used for.
Some common types of IoT sensors
• Temperature sensors
• These devices measure the amount of heat energy generated from an object or
surrounding area. They find application in air-conditioners, refrigerators and
similar devices used for environmental control. They are also used in
manufacturing processes, agriculture and health industry.
•
Temperature sensors can be used almost in every IoT environment, from
manufacturing to agriculture. In manufacturing, sensors are used to monitor
the temperature of machines. In agriculture, these can be used to monitor the
temperature of soil, water and plants.
•
Temperature sensors include thermocouples, thermistors, resistor temperature
detectors (RTDs) and integrated circuits (ICs). Some common types of
temperature sensors are shown in Fig. 2.
Humidity sensors
• The amount of water vapour in air, or humidity,
can affect human comfort as well as many
manufacturing processes in industries. So
monitoring humidity level is important. Most
commonly used units for humidity measurement
are relative humidity (RH), dew/frost point (D/F
PT) and parts per million (PPM).
• Applications: Humidity sensors are mostly
used in thermostats and other weather related
IoT Devices.
Interfacing with Arduino
Motion sensors
• Motion sensors are not only used for security
purposes but also in automatic door controls,
automatic parking systems, automated sinks,
automated toilet flushers, hand dryers, energy
management systems, etc. You use these sensors in
the IoT and monitor them from your smartphone or
computer. HC-SR501 passive infrared (PIR) sensor
is a popular motion sensor for hobby projects.
Motion sensors working
Interfacing PIR with Ardiuno
Gas sensors
• These sensors are used to detect toxic gases. The sensing technologies
most commonly used are electrochemical, photo-ionisation and
semiconductor. With technical advancements and new specifications,
there are a multitude of gas sensors available to help extend the wired
and wireless connectivity deployed in IoT applications.
Gas sensors Interfacing
Smoke sensors
• Smoke detectors have been in use in homes and
industries for quite a long time. With the advent
of the IoT, their application has become more
convenient and user-friendly. Furthermore,
adding a wireless connection to smoke detectors
enables additional features that increase safety
and convenience.
Optical Sensors
• Optical sensors have been a great use in digital cameras for
years. Optical Sensors can emit, receive and convert the
light energy into digital signals. These sensors work by
detecting electromagnetic energy and then sending the
results to processing units. As digital cameras are one of the
most important physical devices in IoT, Optical sensors are
sure to have continued applications in the future.
• Applications: Among other places, Optical Sensors are
used in mining operations, oil refineries and chemical
plants.
Image sensors
How sensors and actuators can made a simple real world thing to a system and than a
system to an I-o-Things
Working of Sensors and actuators
Q&A