Download Cypress.Tutorials_1

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Radio transmitter design wikipedia , lookup

Rectiverter wikipedia , lookup

Mathematics of radio engineering wikipedia , lookup

Lego Mindstorms wikipedia , lookup

Index of electronics articles wikipedia , lookup

Counter-IED equipment wikipedia , lookup

Opto-isolator wikipedia , lookup

Transcript
CY3236APIRMOTION:
Pyroelectric Infrared
(PIR) Motion
Detection Evaluation
Kit (EVK)
Agenda
• PIR Theory
• PIR Motion Detection—The PSoC Way
2
PIR Theory
PIR Theory - Basics
• Humans at normal body temperature radiate
most strongly in the infrared spectrum at an
approximate wavelength of 10uM
• To detect this signal, a transducer is required
that converts the infrared signal to current or
voltage
4
PIR Theory – PIR Sensors
• A PIR sensor is made of
ceramic material that
generates surface charge
when exposed to infrared
radiation
• As the amount of radiation
increases, the surface
charge generated increases
• A FET is used to buffer this
signal
5
PIR Theory – PIR Sensors
• As the sensor is sensitive to
a wide range of radiation, a
filter window is added
• This window limits the
infrared rays falling on the
ceramic pickup to 8um-14um
range
• Also, a resistor is added to
the source of the FET to
convert the charge to
voltage
6
Filter Window
Ceramic Substrate
PIR Theory – PIR Sensors
• The output of the sensor is
the function of infrared
radiation
• But the output is also
affected by vibration, radio
interference, sunlight etc
What is the solution?
7
Filter Window
Ceramic Substrate
PIR Theory – PIR Sensors
• Dual Sensors are used
• Both sensors are connected
out of phase such that any
excitation that is common to
both the sensors cancel out
• A body passing before the
sensors excites first one and
then the other sensor
Two Sensors connected out
of phase
Physical Construction of a dual sensor
8
PIR Theory – Fresnel Lens
• To improve the range and
detection angle, Fresnel
Lens are used
• A Fresnel lens is a plano
convex lens that has been
collapsed on itself to form a
flat lens that retains its
optical characteristics, but is
thinner and has lesser
absorption losses
9
PIR Theory – Fresnel Lens
• There are many types of
Fresnel Lens available, each
having a different angle of
coverage, focal length etc
10
PIR Theory – Detection
• When an object moves in
front of the sensor, the dual
elements are excited one
after other
• The resultant output is a +ve
signal followed by a –ve
signal
11
PIR Theory – Detection
• The signal is first amplified using an amplifier
and then fed to a comparator
• The comparator produces an output when the
sensor detects a movement
• This comparator output can be further processed
to control electrical loads
12
PIR Motion Detection Applications
•
•
•
•
13
Automatic Lighting Controls
Automatic Door Openers
Security Systems
Activating Wireless Cameras
PIR Motion
Detection—The
PSoC Way
PIR Detection – The PSoC Way
Vcc
PGA_1
1uF
PGA_2
buf0 1uF
P0.3
P0.0
P0.7
Gain = 16
100K
.15uF
ACDINCVR_1
IM
IM
PIR
Gain = 16
buf1
AGND
P0.5
• The Amplifier is implemented in 2 stages
with capacitive coupling between stages
• ADC measures the output of amplifier
stage
15
13bits@240sps
PIR Detection – The PSoC Way
0.15 Hz IIR HP Filter
1-z-8
1-z-1
Datain
13bits
@240sps
1
1-z-1
1
a
Dataout
16bits
@30sps
Decimate by 8
6.7 Hz LP
Sinc Filter
• Digital High Pass Filter and Decision logic
in firmware
• All Hardware and Firmware implemented
in One PSoC Device
Refer to AN2105 on www.cypress.com/designresources
16