Sensors in Real Time Embeded Systems
Sensors in Real Time Embeded Systems
2. Sensors
By:
1 Dr. Mohammed Abdul-Muttaleb
2
Sensors and actuators
1. Resistive
2. Capacitive 4. Piezoelectric
3. Inductive 5. Photoelectric
6. Pyroelectric
7. Hall effect
8. Thermocouple
4
1.Resistive Sensors
1.Resistive Sensors
1.1 Potentiometers: It is a resistance element with a sliding
contact which is moved over the length of the element.
Used for monitoring
Linear or circular
displacements.
The fraction ratio (f ) is
equal to f = xi/L = fi/ft
If the total track resistance =Rp then the resistance
between the sliding terminal and the reference terminal
= f Rp
1.Resistive Sensors
Potentiometers are linear elements (Vo is linearly
proportional to Vs) but as a load is placed across the output
linearity disappear and error is introduced.
Req= f RpRL/ f Rp+RL
Vo=Vs* Req/ Req+(1-f )Rp
=Vs f a
(Rp/RL)f (1-f )+1
Error=f Vs – Vo = Vs(Rp/RL)(f 2-f 3)
d(error)/df =0 f =2/3 for max. error
1.Resistive Sensors
EX1: A potential resistor of 500W is connected with a multi-meter which has an
internal resistor of 10KW calculate the error if| the Vs=4v when f=0.5 (Vo=?)
𝑣𝑠𝑅𝑝
𝐸𝑟𝑟𝑜𝑟 = ∗ 𝑓2 − 𝑓3
𝑅𝐿
500
𝐸𝑟𝑟𝑜𝑟 = 4 ∗ 10000 ∗ 0.52 − 0.53 = 0.025 (2.5%)
What happens when RL = 5KW instead of 10KW?
𝑣𝑠𝑅𝑝
𝐸𝑟𝑟𝑜𝑟 = ∗ 𝑓2 − 𝑓3
𝑅𝐿
9
HW: If a voltmeter of 10KW internal resistance is
connected to a potentiometer of 500W total
resistance which is connected to a 10V voltage
source 1)find the error if the slide is a)at the
middle b)at the position which produces the
maximum error. C) derive the expression for the
maximum error.
10
1.Resistive Sensors
1.2 Resistance Temperature Devices (RTDs):
RTDs are made of materials whose resistance changes in
accordance with temperature
a)Metals
RT: R at t temperature
R0: R at 0 Co
α: Temperature coefficient
𝑅𝑡 = 𝑅0 + 𝑅0 𝛼𝑇
Lux values
• Dark night (0.002)
• Living room (50)
• (32,000–100,000) Direct
sun light
14
LDR circuits
15
Photo transistor
They are p-n junctions which
produce a change in current when
electromagnetic radiation is incident
on the junction.
Dimensional piezoresistance
Δ𝑅
= 𝐺𝐸
𝑅
E: Strain
G: sensitivity or gauge factor
Example
An electrical strain gauge has a resistance of
120W and a gauge factor of 2.1. Find the
change in resistance when a strain of 0.0005
is applied along the length.
Δ𝑅
= 𝐺𝐸
𝑅
Δ𝑅 = 𝑅𝐺𝐸=120*2.1*0.0005=0.126 W
18
T1.Resistive Sensors
• Resistive Touch
The resistive touchscreen consists of a
glass panel with a resistive coating plus a
coversheet with a conductive coating.
The two layers are separated by tiny
insulating dots.
When the screen is touched, the
coversheet flexes to make electrical
contact with the coating on the glass.
The controller alternately drives the X
and Y axes on the glass layer with a +5V
current and reads the resulting voltage
from the cover sheet,
19
Resistive sensor application: Oximeter
Types:
Transmissive pulse oximetry
Reflectance pulse oximetry
20
Oximeter
• One LED is red, with wavelength of 660 nm,
and the other is infrared with a wavelength of
940 nm.
21
the device passes two wavelengths of light through the body part to a
photodetector. It measures the changing absorbance at each of
the wavelengths, allowing it to determine the absorbances due to the
pulsing arterial blood alone
22
Resistive sensor application: Oximeter
Reflectance pulse oximetry is a less common alternative to
transmissive pulse oximetry.
This method does not require a thin section of the person's
body and is therefore for feet, forehead, and chest, but it also
has some limitations.
23
24
Wheatstone bridge
Wheatstone bridge: Consists of 4 resistors in a diamond
orientation, with a resistive transducer in one or more legs.
VS VS
I1 = I 3 = I2 = I4 =
R1 + R3 R2 + R4
Vo = I1 R1 − I 2 R2 b a
R1 R2
Vo = VS − VS
R1 + R3 R2 + R4
R1 R2
if = , Vo = 0
R3 R4
𝑅2 𝑅3
𝑅1 = 𝑅4
When Vo=0
Δ𝑅1
Δ𝑉𝑜 ≈ 𝑉𝑆
𝑅1 + 𝑅3
Δ𝑅
For Strain gauge = 𝐺𝐸
𝑅
𝑉𝑠 𝑅1 𝐺𝐸
Δ𝑉𝑜 = 𝑅1 +𝑅3
Load cell
27
Different Types of Sensors
2.Capacitive Sensors
Input being measured is transformed into a
capacitive change. The capacitive (C) of a parallel
plate capacitor depends on the area (A), separation
distance (d) and the relative permittivity (ε) of the
materials between them given as:
Vacuum permittivity
ε0= 8.85×10−12 F/m.
An electrolytic It is constructed of
capacitor is made of two or more
Aluminum evaporated alternating layers
on either side of a very of ceramic and
thin plastic film (or a metal layer acting
electrolyte) as the electrodes.
• Low frequency
• high frequency
• High value • Lower value
• Polarized • stable
30
Capacitive Touch Screen
Capacitive touchscreens
work by sensing the
conductive properties of an
object, usually the skin.
When a capacitive panel is
touched, a small amount
of charge is drawn to the
point of contact.
A controller measures the
current from different
corners to determine the
location
31
Humidity Sensor
Capacitive: A capacitive humidity sensor measures
relative humidity by placing a thin strip of metal oxide
between two electrodes. The metal oxide’s electrical
capacity changes with the atmosphere’s relative humidity.
Weather, commercial and industries are the major
application areas
Resistive: Resistive humidity sensors utilize ions in salts
to measure the electrical impedance of atoms. As
humidity changes, so does the resistance of the electrodes
on either side of the salt medium.
32
Example: A capacitive sensor consist of two plates in air, the plates
being 50mm square and separated by a distance of 1mm. A new sheet
of dielectric material of thickness 1mm and 50mm square can slide
between the plates. Determine the capacitance of the sensor when
the sheet has been displaced so that half of it is between the
capacitor plates. The dielectric of the new sheet is 4 and it can be
presumed as 1 for the air.
𝐶𝑇𝑜𝑡𝑎𝑙 = 𝐶𝑎𝑖𝑟 + 𝐶𝑛𝑒𝑤
Eo Er A −12 −3 2
𝐶𝑎𝑖𝑟 = = 8.85 ∗ 10 ∗ 1 ∗ 50 ∗ 25 ∗ 10 /1 ∗ 10−3
D
=1.106*10-11 =11.06 pf
Eo Er A −12 2
𝐶𝑛𝑒𝑤 = = 8.85 ∗ 10 ∗ 4 ∗ 50 ∗ 25 ∗ 10 /1 ∗ 10−3
−3
D
=4.425*10-11 =44.25 pf
𝐶𝑇𝑜𝑡𝑎𝑙 =11.06+44.25=55.31 pf
33
3.Inductive Sensors
3.1 Variable reluctance sensor: in a similar way that a
electromotive force drives current through a resistance a
magneto-motive force drives flux though a reluctance
m.m.f=flux (f)*reluctance(S)
ST= So+ Sa
35
solenoid valve
وهو عبارة عن صمام الكترو-ميكانيكي الي يستخدم بشكل شائع لتنظيم جريان السوائل والغازات.
يتم هذا بشكل اساسي عن طريق اما فتح او اغالق فوهة الصمام بواسطة تنشيط الملف
يستخدم هذا الصمام في معظم تطبيقات التدفق الي تحتاج الى ايقاف واسماح بجريان السوائل والذي
يتم تشغيله الكترونيا لهذا الغرض من خالل تنشيط وايقاف تنشيط الملف.
من اسباب شيوع استخدامها هو امكانية وضعها باماكن بعيدة او نائية والتحكم بها بسهولة عن طريق
مفاتيح كهربائية بسيطة.
وكدذلك بسبب عمرها الطويل ،سرعة التبديل بين حالة التشغيل الى االيقاف وبالعكس ،احجامها
الصغيرة وكذلك استهالكها المنخفض للقدرة
36
37
Radio-frequency identification (RFID)
uses electromagnetic field to
automatically identify and track
tags attached to objects.
Passive tags collect energy from
a nearby RFID reader.
Active tags have a local power
source (such as a battery) and
may operate hundreds of
meters from the RFID reader.
38
Applications
1
2
3
….
39
Wireless charging
Advantageous
Protected connections
Used in medical devices
Disadvantages
Slow charging
More expensive
40
HW. Show that the output voltage for a Weatstone bridge
with a strain gauge which has identical platinum resistors
is equal to:
𝑉𝑠 𝐺𝐸
𝑉0 = 2
41
4.Piezoelectric Sensors
Piezoelectricity: some dielectric materials when stretched
its surfaces become charged
Strain causes a
redistribution of charges
and results in a net
electric
43
The other way round!
If you pass electricity through the same
crystals, they "squeeze themselves" by
vibrating back and forth!
Can be used in ultrasound equipment, a
piezoelectric transducer converts electrical
energy into extremely rapid mechanical
vibrations.
In quartz clock
44
Ultra-sonic sensor
45
85 to 180 Hz (male)
165 to 255 Hz (female)
46
Ultrasonic Sensor
47
Ultrasonic Sensor
Time=distance/speed
𝒕𝒊𝒎𝒆
𝒅𝒊𝒔𝒕𝒂𝒏𝒄𝒆 = ∗ 𝒔𝒑𝒆𝒆𝒅
𝟐
48
Multi-sensors
49
Fire Alarm
An optical smoke
detector contains a source of
infrared, visible, or ultraviolet light,
a lens, and a photoelectric receiver.
All of these components are
arranged inside a chamber.
Piezo-electric loud speaker is used.
50
51
Carbon monoxide detector
• Carbon monoxide is an odorless, colorless, and tasteless gas
that is near impossible to identify without a proper detector.
53
6.Pyroelectric Sensors
Pyroelectricity can be described as the ability of certain
materials to generate a temporary voltage when they are heated or
cooled.
When the pyroelectric material is exposed to infrared radiation
its temperature rises and the amount of polarization is reduced.
Charge decreases as temperature
increases.
55
Passive InfraRed Sensor (PIR)
All objects with a temperature above
Absolute Zero (0 Kelvin -273.15 °C) emit
heat energy in the form of infrared
radiation, including human bodies. The
hotter an object is, the more radiation it
emits.
56
Passive InfraRed Sensor (PIR)
When the sensor is idle, i.e. there
is no movement around the
sensor; both slots detect the same
amount of infrared radiation,
resulting in a zero output signal.
• Security
• Light control system
• Motion activated camera
• Pyrometer
59
Piezo-electric vs Pyro-electric
Piezo-Electric
Mechanical Electrical
Pyro-Electric/thermocouple
Thermo-Elastic
Thermal
60
7.Hall effect Sensors
The action of a magnetic field on a flat plate carrying an
electric current generates a potential difference which is a
measure of the strength of the field. A beam of charged
particles can be deflected by a magnetic field (Hall effect).
Applications
Electronics compass
66
Accelerometer
67
Gyroscope
https://www.youtube.com/watch?v=eqZgxR6eRjo
68