Consumer/Industrial - Smart Smoke Detector: Application Note Abstract
Consumer/Industrial - Smart Smoke Detector: Application Note Abstract
AN2245
Author: Andrey Magarita
Associated Project: Yes
Associated Part Family: CY8C24xxxA, CY8C27xxx
GET FREE SAMPLES HERE
Software Version: PSoC Designer™ 4.2
Associated Application Notes: None
Ionization
The ionization smoke detector has a small amount of
radioactive material (for example, Americium 241, which Photoelectric
emits the α-particles) that ionizes the air in the sensing Photoelectric smoke detectors use the principle of
chamber. This renders conductive air and permits a scattered or reflected light to indicate the presence of
current flow through the air between two charged visual smoke. When there's no smoke, the chamber is
electrodes. This also gives the sensing chamber effective dark. The light shines across the chamber and is received
electrical conductance. When smoke particles enter the in a light trap on the far side. When smoke is present in
ionization area, they decrease the conductance of air by the chamber, a photocell, located at a right angle to the
attaching to the ionized air particles. This reduction in light source, senses the light scattered off the smoke
conductance can be compared to a reference value and particles and at a certain level of illumination, triggers the
by disagreement an alarm is activated. See Figure 1, alarm sound or sends a signal to the central office module
which shows ionization type smoke detector operation. (Figure 2).
Figure 2. Photoelectric Smoke Detector
[+] Feedback
AN2245
These two types of smoke detectors use different sensitivity region of the photodiode. The internal reflection
detection principles. Their response time is dependent on from the interior chamber is minimal due to the unique
what types of materials are burning. The characteristics of chamber design. With these conditions, only a small
an ionization detector make it more suitable for detection amount of LED light can reach the photodiode when
of fast flaming fires that are characterized by combustion smoke is not present. As a result, the chamber side
particles the size of 0.01 to 0.4 micron range. reflection ratio is very low.
Photoelectric smoke detectors are better suited to detect
slow smoldering fires that are characterized by When smoke (or a similar substance that is able to scatter
particulates the size of 0.4 to 10.0 micron range. Each the light beam) enters the chamber, the LED beam reflects
type of detector can detect both types of fires, but their light from the smoke particles and part of this reflection
respective response times will vary, depending on the type reaches the photodiode. The photodiode signal is
of fire. Note that the sensitivity of photoelectric detectors amplified and measured by a detector. Smoke sensitivity
degrades when detecting dark smoke particles (for depends on many factors including camera design,
example, burning rubber) due to a low light scattering photodiode and LED type and their operating modes. This
ratio. application examines two types of chambers with large
and small volumes that reflect different sensitive element
When the ionization and photoelectric detector chambers characteristics. The unique architecture of the PSoC
become contaminated over time, the result is a more device allows use of different cameras without any electric
sensitive detector. Although this may sound like a good circuit change. Setup can be performed by changing
thing, it is not and will most likely lead to numerous false hardware settings and threshold values inside the PSoC
alarms. As smoke or additional contaminants collect inside device without having to modify schematic/component
the ionization chamber, the headroom between the normal values. PSoC also can support multiple detector features
chamber background value and the alarm threshold value without design modification
is decreased. The result is that, as time goes by, a very
small amount of smoke or contaminates can trigger an
alarm or cause an alert (pre-alarm) condition.
Smoke Detector Flowchart
The smoke detector flowchart is shown in Figure 3. At five-
Intelligent fire panels have special algorithms that can second intervals, the LED receives current pulses of
compensate for this slow increase in detector background approximately 100 microseconds. Part of the LED
level. An indicator is also displayed on the fire panel (if reflection beam touches the photodiode, which creates an
networked equipped) indicating when a specific detector electric current that is translated to voltage on a high-
has a high chamber value, and should be checked, resistance resistor. The AC part of this voltage through a
cleaned, and/or replaced immediately. Therefore, if the fire differentiating circuit (intended to cut the DC component)
panel supports receiving information from a separate is fed to the programmable gain amplifier (PGA). After
detector, customers can remotely check the state of each passing through a PGA, an amplified signal is fed to a
individual detector. This is accomplished only when band-pass filter (BPF) with a gain of about 17 dB. This
networked detectors are used. filter amplifies and filters only friendly signals and removes
When a conventional non-networked detector is used (that the DC component that appears as a result of the PGA
has only relay output, signaling the fire alert), it should be offset voltage amplification. The signal combination of the
equipped by a special test button to initiate the manual PGA and BPF allows a total stable system gain of
chamber testing procedure. The user needs to check approximately 55 dB, which supports chambers with low
detector operation by periodically pressing this button, for sensitivity. The PGA/filter settings were successfully
example, once per month. During this test, the response of tested on ten different CY8C24423A samples and
an empty chamber is measured and the level is compared demonstrated consistent repeatability and stability.
to upper and lower thresholds. When the signal response Therefore, the PSoC device can deliver a total of 55 dB
is too low, the light source or photo-receiver is either gain without problems. Note that higher gain only is
broken or very dirty. When the signal response is too high, required to support the test chamber function, when no
the chamber is slightly contaminated and need to be smoke is reflected, and the signal is received and
cleaned. analyzed. Under normal smoke detection conditions, total
gain is reduced and the signal from the second PGA is
The proposed smoke detector uses the photoelectric sampled by the ADC.
detection principle and provides a multi-level smoke
presence indicator and an automatic smoke chamber self- The following process of 8-bit ADC data stream is
test during start up or user initiation. The device allows implemented in the firmware. If the first threshold level is
modifications for different designs of smoke chambers and reached, the device begins brightly blinking the LED and
their sensitivity, and supports various LED and adjusts the sensitivity level by changing the PGA gain.
photodiodes. It has very low current consumption and Moreover, the detector reduces the measurement interval
noise suppression features. from 5s to 2s. If a second threshold level is reached, the
device begins the time interval to turn on the alert signal
An infrared photodiode and a light emitting diode are used and measure each second. If during this second threshold,
as sensing elements in the chamber. The chamber the level still remains high, a solid-state relay is switched
design does not allow external light to penetrate the and an alarm line is opened, signaling that the system is
inside. The photodiode light is activated using an LED. reaching an alarm situation. The test is repeated up to
The LED is positioned at an angle from the photodiode so three times and the chamber response is averaged to rule
that its directional light pattern does not intersect with the out false readings.
[+] Feedback
AN2245
The BPF and Delta Sigma ADC provide noise immunity. performed before the current pulse is fed to the LED and
The BPF reduces the noise level by limiting the input followed by estimating the offset value. This offset value is
signal frequency spectrum and integrating a Delta Sigma subtracted from the LED signal value while the level of
noise signal filter. The influence of temperature on voltage scattered light is being estimated.
bias drift and voltage reference change is eliminated as
well by using the correlated double sampling technique.
Voltage measurement of the smoke level channel is
Smoke
chamber
FILMWARE
To fire signaling
system
PWM
LED
PSoC’s inside
[+] Feedback
AN2245
R2 R4
U4 TPS71501 510k 3M
R7 1k C1
4 5 C5 100nF
Vp VIN VOUT 5V 100nF
9-18V 1 R7 U1
FB 3.3M 100uF 10V 28
+ + C4 VCC
C3 1 27 U2B
D1 0.1u 2 P0[7] P0[6] 26 R3 C6
LL4148 R14 3 P0[5] P0[4] 25 100K 560pF Photo-Diode
C2 1M 4 P0[3] P0[2] 24
100uF 25V P0[1] P0[0]
5 23
6 P2[7] P2[6] 22 AGND
7 P2[5] P2[4] 21
8 P2[3] P2[2] 20 R6
P2[1] P2[0] 510K
MH1 SW1 9 19
U3 Clare LCB120 R10 5V SMP XRES
6 2 10 18 5V
11 P1[7] P1[6] 17
MH2 510R Test button 12 P1[5] P1[4] 16 LED
13 P1[3] P1[2] 15 R9
4 1 ALARM P1[1] P1[0]
5.1k
14 C7
Vss D2 47*6.3v
C8 0.1uF
R8
5V
R15 R12
150k 750R 2.7R
J1
1
2 5V
3 R5 1k Q1
4
5 BC817
R11
ISSP 10K
Figure 5. Power Supply Current Time Graph The normally closed optically isolated solid-state relay,
manufactured by Clare as Type-1B, is used as a galvanic
alarm signaling control circuit. When the alarm condition is
true, the relay breaks the signaling line. The chambers
from existing smoke detectors were used in this design
(see Figure 10 in Appendix C). The detector can be
supplemented with a temperature measurement circuit
without noticeable modifications by adding a thermistor
and an additional bias resistor. Temperature measurement
is required by fire security standards in some countries.
[+] Feedback
AN2245
Summary
This Application Note describes a smart smoke detector
with multi-level detection capabilities. The detector can
cover worldwide fire system standards, including
networked operation support, with minimal modifications.
About half the Flash memory is free and can be used for
various purposes.
[+] Feedback
AN2245
Start
Init device
Sleep 2 sec.
Chamber test
No End number
test?
Sleep 1sec.
YES
No YES
New number test
Test value No
normal?
LED on
Opto-relay off
YES Work stop
[+] Feedback
AN2245
[+] Feedback
AN2245
No smoke
[+] Feedback
AN2245
Figure 11. Two Detectors with Different Chamber Sizes and Different Chamber LED and Photodiodes
[+] Feedback
AN2245
In March of 2007, Cypress recataloged all of its Application Notes using a new documentation number and revision code. This new documentation
number and revision code (001-xxxxx, beginning with rev. **), located in the footer of the document, will be used in all subsequent revisions.
PSoC is a registered trademark of Cypress Semiconductor Corp. "Programmable System-on-Chip," PSoC Designer, and PSoC Express are trademarks
of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are the property of their respective owners.
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone: 408-943-2600
Fax: 408-943-4730
http://www.cypress.com/
© Cypress Semiconductor Corporation, 2005-2007. The information contained herein is subject to change without notice. Cypress Semiconductor
Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any
license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or
safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as
critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The
inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies
Cypress against all charges.
This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide
patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a
personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative
works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress
integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the
right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or
use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a
malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support systems
application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
[+] Feedback