Unit II - Lecture - THINGS IN IOT PPT Final
Unit II - Lecture - THINGS IN IOT PPT Final
1
Sensor
● Sensor is a device that Sense a Physical Phenomenon (temperature,
displacement, force etc) & produces a proportional output signal
(electrical, mechanical, magnetic etc).
2
Light Sensors
• Light sensors are a type of photodetector (also called photosensors) that detect light.
Different types of light sensors can be used to measure illuminance, respond to changes
in the amount of light received, or convert light to electricity.
• Light sensors that transform the light or infrared radiation into the other electrical
parameters like Voltage/Resistance or are known as the light sensors. These sensors
are also named as the photoconductors. A normally used photoconductor is the light-
dependent resistor (LDR)(Photo resister).
• Three types: LDR , Photodiode & Phototransistor.
3
Light Dependent Resistance(LDR) :Photo resistor
• LDR are also known as the photoresistors, these light sensors are used in the
different engineering projects to control the light strength for different components.
• It is constructed from the Cds (cadmium) this substance is very sensitive to light and
according to the intensity of the light, it varies the value resistance
• its resistance varies according to light in the shadowy resistance is higher while
in light resistance is less.
The normally used type of the LDR cell is OPR12 it is manufactured by the cadmium sulphide.
4
LDR Working Principle
• These devices depend on the light, when light intensity increases that fall on on the
LDR then the resistance decreases, and resistance increases when light intensity Low
(dark condition) 5
• If we connect LED at output then LED will be on/off is achieved using this principle .
6
Photodiode and Phototransistor
Both are semiconductor-based components used for sensing light intensity and
converting it into electrical signal but they are quite different.
7
SL PHOTO-DIODE PHOTO-TRANSISTOR
NO.
1. Photodiode basically is a PN Phototransistor basically an NPN
Junction Diode which can create transistor which allows the
an electric current, when the flowing of current when light
light is falling on this. falls upon its base.
2. The output response of the The output response of the
photodiode is faster than the phototransistor is lesser than a
phototransistor. photodiode.
3. The sensitivity of the photodiode The sensitivity of the
is lesser than phototransistor. phototransistor is more than the
photodiode.
4. The main applications of The main applications of
photodiodes are in solar cell, Phototransistors are IR receiver
light sensor, Smoke Detectors, circuit, LASER detector, Counter,
Pulse Oximeters Relays
Optocoupler or Opto-isolator Punch Card Readers, Level Indication
Medical Devices etc. Position Sensing,Logic Circuits
etc.
8
Comparison between Photodiode & Phototransistor
Definition
Photodiode is a semiconductor component that converts light energy into electrical energy.
Phototransistor is a semiconductor component that amplifies the current generated from
light energy.
Function
Photodiode is used for converting light or solar energy into electrical energy.
Phototransistor is used for sensing light.
Biasing
Photodiode can be connected in forward as well as reverse bias.
Phototransistor is only connected in forward bias.
Output
The output of photodiode is current as well as voltage
The output of phototransistor is only current.
Cost
Photodiode is cheap. Phototransistor is expensive.
Applications
Photodiode is mainly used for the conversion of solar energy into electrical energy but it is
also used for sensing light in applications such as optical fiber communication, object
counter, etc. 9
Phototransistors are mainly used for detecting light & they find applications in printers, CD-
Voltage Sensor
What is a Voltage Sensor?
A voltage sensor is a sensor used to calculate and monitor the amount of voltage in an object.
Voltage sensors can determine the AC voltage or DC voltage level. The input of this sensor is
the voltage, whereas the output is the switches, analog voltage signal, a current signal, or an
audible signal.
Two main types of voltage sensors are available:
1. capacitive type voltage sensor and
2. resistive type voltage sensor.
10
Voltage Sensors
11
Advantages of Voltage Sensors Over Conventional Measuring
Techniques
The advantage of voltage sensors include:
• Small in weight and size
• Personnel safety is high
• The degree of accuracy is very high
• Non-saturable
• Wide dynamic range
• Eco-friendly
• Can combine the voltage and current measurement into a single physical
device with small and compact dimensions
13
Humidity is the amount of water vapor in the air.
Motion detector Sensors : Active & Passive IR sensors
14
Motion detector Sensor
• Motion is a change in the position of object or person with respect to time and its
initial reference location. The motion can be specified in terms of displacement,
velocity, direction, acceleration and time. The device which senses motion is known
as motion sensor. Following are the types of motion sensor.
15
Active Motion Sensor | Microwave Motion Sensor
17
Ultrasonic sensor
WHAT IS ULTRASONIC SENSOR ?
An Ultrasonic sensor is a device that can measure the distance to an object by using
sound waves. It measures distance by sending out a sound wave at a specific frequency
and listening for that sound wave to bounce back. By recording the elapsed time between
the sound wave being generated and the sound wave bouncing back, it is possible to
calculate the distance between the sonar sensor and the object.
18
Timing Diagram of Ultrasonic sensor
• The first signal is
'Trig', which is a pulse
with 10 us of duration
that triggers 8 pulses
of ultrasound emission
via the speaker, as
shown in the image
(Pulse sonico).
Ultrasonic is the application of ultrasound & Ultrasound is an oscillating sound pressure wave with a frequency
greater than the upper limit of the human hearing range . Ultrasound is thus not separated from 'normal' (audible)
sound based on differences in physical properties, only the fact that humans cannot hear it.
Principle of operation : through the speaker, trains of ultrasound pulses are sent at a
frequency of 40 Khz. This signal bounces off the object, and returns to the sensor, being
detected by the microphone (Figure 1). Once the delay is measured between the signal
emitted and received, based on the constant speed of propagation of sound (340 meters
per second) and using an arithmetic formula (Figure 5) the distance to the object can be
calculated.
Note: Who can emit infrared radiation? All objects whose temperature more than zero (0°C) degree centigrade, which 22
emits HEAT energy in the form of IR radiation. We can not see this radiation because it radiates at infrared wavelength. Also,
• It generates energy when exposed to heat. Human or animal body radiates
energy in the form of infrared radiation. Hence when human/animal come in the
range of PIR motion sensor, it receives thermal energy and hence motion is
detected by the sensor.
• Detects increase in received thermal energy to determine the motion of the
object/person
• Senses based on heat and light
24
Wireless Sensors :
WHAT IS A WIRELESS SENSOR?
• A wireless sensor is a device that can gather sensory information and detect changes
in local environments.
• Wireless sensors are designed to measure specific parameters about their physical
surroundings and produce outputs, often electrical signals, for further processing. These
parameters include many different types of stimuli, including air temperature, lighting
levels, movements, and liquid leakages.
25
SOME OF THE TRADITIONAL WIRELESS SENSOR PROTOCOLS?
There are many wireless protocols that enable connectivity between sensors. Wi-Fi
,Bluetooth ,Zigbee etc
26
Wireless Sensors :
29
Level Sensor
• Level sensors are used to measure the position of the surface within some form
of container of both liquids and solid materials in the form of powders.
Point level measurement: indicates Level when a product is present at a certain point.
The sensors for point level indication are:
– Capacitance
– Optical
– Conductivity
– Vibrating (Tuning fork)
– Float Switch
Continuous level measuring indicates the continuous level of a product as it rises and
falls.
following are the sensors for this :
– Ultrasonic 30
Examples: Sensors connected to tank
31
Level
•Sensors
Level sensors are used to measure the position of the surface within some form
of container of both liquids and solid materials in the form of powders.
32
Ultrasonic Sensor for Level
Management.
• Measuring water level is same as measuring distance of solid surfaces, the ultrasonic transducer
outputs a train of ultrasonic bursts at 40 KHz which will hit the water surface and reflect back to the
sensor. The time taken between sent and received ultrasonic waves are calculated by a microcontroller
such as Arduino. The measured distance is converted in to percentage.
• The tank has two heights the actual water holding capacity and the total height of the tank. In any
overhead tank there will be overflow and inlet tube, the point just below the overflow tube is the end of
water holding capacity. You need to measure these two heights and enter it in the given program code 33
USB sensors
• This type of sensor incorporates a common standard interface like USB which you can
connect directly to your IoT devices or a single-board computer to add sensing
capabilities.
With a USB extended type sensor, you can plug into a USB port of a single-board
computer to receive power and create a data acquisition program to load the sensor
data.
Moreover, this type of sensor allows connection to the internet via a single-board
computer which you can
2JCIE-BU Environment easily build
Sensor(USB IoT devices.
Type)
• Embedded type sensor is installed inside a single board computer or a power drive case.
A sensor module is placed on the printed circuit board so at the very least, all you need
is a power supply circuit.
This type of sensor is integrated into robots and single-board computers to monitor the
operating condition.
35
Embedded sensors in
Mobile
36
Introduction to Actuators
• An actuator is a part of a device or machine that helps it to achieve physical movements by converting
energy, often electrical, air, or hydraulic, into mechanical force., for example by opening a valve.
• Sensors in the device sense the environment, then control signals are generated for the
actuators.
• The controller directs the actuator based on the sensor data to do the work/perform actions.
• Examples of Actuators used in IOT: LED, Buzzer, Controlling- AC Power devices, Servo motor, Speed
DC Motor.
37
38
39
Types of Actuators :
1. Hydraulic Actuators –
A hydraulic actuator uses hydraulic power to perform a mechanical Action
Ex- construction equipment uses hydraulic actuators because hydraulic actuators can
generate a large amount of force.
2. Pneumatic Actuators –
A pneumatic actuator uses energy formed by vacuum or compressed air at high pressure to
convert into either linear or rotary motion. Example- Used in robotics, use sensors that work
like human fingers by using compressed air.
3. Electrical Actuators –
An electric actuator uses electrical energy, is usually actuated by a motor that converts
electrical energy into mechanical torque. An example of an electric actuator is a solenoid
based electric bell, DC MOTOR etc
4.Thermal/Magnetic Actuators –
40
These are actuated by thermal or mechanical energy.
Actuators used in IOT
1. LED : Light emitting Diode
A Light Emitting Diode (LED) is a semiconductor device, which can emit light
when an electric current passes through it.
41
RGB LED
An RGB LED is basically an LED package that can produce almost any color. It can be used
in different applications such as outdoor decoration lighting, stage lighting designs, home
decoration lighting, LED matrix display, and more.
42
2. Buzzer
• A buzzer or beeper is an audio signaling device, which may be mechanical,
electromechanical, or piezoelectric (piezo for short).
1. The active buzzer has an internal oscillation source that makes the buzzer sound whenever
power is applied. Only one type of sound .Active buzzers are widely used in computers, printers,
copiers, alarms, electronic toys, car electronics, telephones, timers and other electronic product
sounding devices.
2. A passive buzzer has no internal source of oscillation and needs to be driven by a square
wave and a different frequency. It acts like an electromagnetic speaker, and the changing
input signal (Changing frequency) produces sound, rather than a tone automatically.
43
Passive Buzzer
Active Buzzer
Types of buzzers
Buzzers come in a variety of construction, size, and specifications. Different types and
sizes of buzzers are used for different applications. Based on construction, there are the
following kinds of buzzers:
1. Piezoelectric buzzers
2. Magnetic buzzers
3. Electromagnetic buzzers
4. Mechanical buzzers 44
5. Electromechanical buzzers
Controlling- AC Power devices
• You can control a lot of things with an Arduino. Displays, LEDs, and other devices can
easily be hooked up to the I/O pins and controlled with a simple sketch.
• But the output ports on an Arduino, or any microcontroller, are only designed to
control logic-level devices (Logic 1 and Logic 0 ). Interfacing to anything that requires
more than a logic-level signal is going to require external components.
• Controlling AC devices requires different techniques:Safety First
• Alternating Current, or AC differs from Direct Current (DC) in that it constantly changes
polarity, oscillating like a sine wave between positive and negative at a predetermined
frequency.
Here are a few guidelines for working with AC:
1. NEVER experiment directly with high-voltage AC.
2. NEVER connect high-voltage AC to a solderless breadboard.
3. NEVER connect high-voltage directly to an I/O pin (or any pin) on a microcontroller.
4. ALWAYS work on AC circuits with the power off. Confirm that the power is truly off with
a multimeter.
5. ALWAYS test your wiring with a multimeter before applying power.
6. Do not leave high-voltage work unattended and powered on. Always remove power
from the circuit if you are not present, to avoid the risk of injuring others.
7. Do not attempt to work with high-voltage AC if you are inexperienced. 45
Controlling AC Devices : to control AC devices we can use
SCR,TRIAC and DIAC
47
2. Triode AC Switch (TRIAC)
48
Motors :
• A motor is an electric machine which can convert electrical energy into mechanical
energy. The electrical motor works on the principle of Faraday's law of electromagnetic
induction.
1. DC Motor
2. AC Motor
3. Universal Motor
49
Difference between DC Motor ,Servo Motor and
Steeper Motor
1. DC motors are fast and continuous rotation motors mainly
used for anything that needs to rotate at a high rotation per
minute (RPM). For instance; car wheels, fans etc.
50
DC Motor
A DC motor is an electro-mechanical device that converts direct current into mechanical energy by means
of rotation of a shaft.
DC motors are widely used in industrial automation, toys and robotics applications.
The speed of the DC motor can be controlled either by controlling current to the armature or by
using a variable power supply.
2) using pulse width modulation is the effective way to implement motor speed control.
Servo Motor
• A servo motor is an electrical device used to rotate objects at certain specified angles. It’s
just a basic motor that runs through the mechanism of the servo.
• They are used in numerous applications such as toy cars, robotics, machines etc.
• Servo motors are measured in kg / cm (kilogram per centimeter). Servo motors are rated 3kg
/ cm or 6kg / cm etc. This kg / cm tell you how much weight your servo engine can lift at a
given distance. Generally servo motor 9G SG90 is used in projects.
• You can connect small servo motors directly to an Arduino to control the shaft position very
precisely.
52
Brushless DC Motors :Steeper Motor
• Stepper motors are controlled by a driver, which sends the pulses into
the motor causing it to turn.
• The Rotation Angle of the Stepper Motor is Proportional to the Input Pulse.
• the position of motor shaft is controlled by controlling the number of
pulses.(step angles).
Stepping Modes
Driving Unipolar Stepper Motor
There are three stepping modes of a stepper motor. The stepping mode refers to
the pattern of sequence in which stator coils are energized.
● 1. Wave drive (One phase ON at a time)
● 2. Full drive (Two phase ON at a time)
● 3. Half drive (One and two phase ON at a time alternately)
Wave Drive
Advantages of stepper motor.
1. Flexibility.
2. Greater Torque than Servo motor.
3. Cheaper than Servo Motors
4. Stepper Motors are Considered to be Safer.
5. Stepper Motor Offer a Longer Life.
6. Excellent Repeatability.
7. Stepper Motors are Overload Safe
8. Good Choice for Applications Requiring Low Speed with High Precision.
Sensor Vs Actuators
● The main difference between sensor and actuator is that a sensor is used to monitor
the changes in the environment while an actuator is used to control the environmental
or physical changes.
Summary :Sensor Types and Actuators types