I.
Project Design
Introduction
Flame is the visible, gaseous part of a fire. It is caused by a highly
exothermic reaction taking place in a thin zone. Flame, rapidly reacting body of
gas, commonly a mixture of air and a combustible gas that gives off heat and
light, and is self-propagating. It is the glowing gaseous part of a fire.
Fire is the rapid oxidation of a material in the exothermic chemical process
of combustion, releasing heat, light, and various reaction products. Fire occurs
whenever combustible fuel in the presence of oxygen at an extremely high
temperature becomes gas. Fire in its most common form can result in
conflagration, which has the potential to cause physical damage through burning.
It is the reason why nowadays we need a fire alarm system in our house.
A fire alarm is a standalone device or a complete network of devices,
installed in a building or an area, which gives audible and/or visible warning of an
outbreak of fire in that building or area. Fire alarm systems are mandatory in
buildings, industrial installations, markets, offices, living spaces, public areas and
some kinds of transports. Fire alarms are generally audible and/or visible,
mechanical or electrical signals or intelligence, indicating a fire incident that
requires emergency actions such as fire-fighting, emergency services and
evacuation from a building or an affected area. There are three stages of Fire
Alarm System, the detection, signal initiation and notification.
Page | 1
There are many kinds of fire alarm system like Fire Alarm System with
SMS notification that detects the fire through flame sensor and gives signal
initiation
through a sound and light and notification through sending an SMS to the owner.
It sends an SMS to a set mobile numbers when fire occurs. It is very useful in
remote locations where human interaction is limited. It also helps to monitor
locations and alert during fire that occurs at night time. Furthermore, it gives
warning immediately to multiple mobile numbers and hence remedy can be taken
quickly and helps to prevent major damages and losses created by a fire
accident.
Design Details
1. Components
Table 1. List of Components
ARDUINO UNO – It is used to execute the commands
that sensors, module, led, and buzzers need to run.
POWER SUPPLY – It is a 5 Volts 2 Amperes power
supply that will be connected to Arduino after coding to
have supply.
FLAME SENSOR MODULE – It is used to detect the fire/
flame source or other light sources of the wavelength in
Page | 2
the range of 760 nanometer to 1100 nanometer.
SIM 900A GSM/GPRS MODULE – It is the device that is
connected to the flame sensor module that sends SMS to
the set mobile number when the flame sensor detects
fire.
BUZZER – It is connected to the flame sensor so that
when it detects fire it will give a sound that alarms people
around the area.
LED (Red) – It is also connected to the flame sensor so
that when it detects fire it will give a red light that alarms
people around the area.
CONNECTING WIRES – It is used to connect the
component.
Universal PCB – It is where the components are
soldered to connect them to the power supply.
Resistor (470 ) – it is connected in series to the LED.
Page | 3
2. House Layout and Design
Figure 1. Ground Floor
Page | 4
Figure 2. Second Floor
3. Schematic Diagram
4. Flowchart
Figure 3. Schematic Diagram
Page | 5
Figure 4. Flowchart
5. Block Diagram
Page | 6
LED
Flame sensor Arduino Uno Buzzer
GSM module
Input Process Output
Figure 5. Block Diagram
6. Program Code
#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10);
char msg;
int buzzer1 = 8;//bedroom
int buzzer2 = 5;//kitchen
int buzzer3 = 6; //livingroom
int LED1 = 7;//bedroom
int LED2 = 3;//kitchen
int LED3 = 2;//livingroom
int flame_sensor1 = 4;//bedroom
int flame_sensor2 = 11;//kitchen
int flame_sensor3 = 12;//livingroom
int flame_detected;
void setup()
{
mySerial.begin(9600);
Serial.begin(9600);
Page | 7
pinMode(buzzer1, OUTPUT);
pinMode(buzzer2, OUTPUT);
pinMode(buzzer3, OUTPUT);
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinMode(flame_sensor1, INPUT);
pinMode(flame_sensor2, INPUT);
pinMode(flame_sensor3, INPUT);
}
void loop()
{
//FLAME SENSOR 1
flame_detected = digitalRead(flame_sensor1);
if (flame_detected == 1)
{
digitalWrite(buzzer1, HIGH);
digitalWrite(LED1, HIGH);
mySerial.println("AT+CMGF=1");
delay(1000);
mySerial.println("AT+CMGS=\"+639662744995\"\r");
delay(1000);
mySerial.println("Bedroom is on Fire");
delay(100);
mySerial.println((char)26);
delay(1000);
}
Else
Page | 8
{
digitalWrite(buzzer1, LOW);
digitalWrite(LED1, LOW);
}
//FLAME SENSOR 2
flame_detected = digitalRead(flame_sensor2);
if (flame_detected == 0)
{
digitalWrite(buzzer2,HIGH);
digitalWrite(LED2,HIGH);
mySerial.println("AT+CMGF=1");
delay(1000);
mySerial.println("AT+CMGS=\"+639662744995\"\r");
delay(1000);
mySerial.println("Kitchen is on Fire");
delay(100);
mySerial.println((char)26);
delay(1000);
}
else
{
digitalWrite(LED2, LOW);
digitalWrite(buzzer2, LOW);
}
//FLAME SENSOR 3
flame_detected = digitalRead(flame_sensor3);
if (flame_detected == 0)
{
Page | 9
digitalWrite(buzzer3, HIGH);
digitalWrite(LED3, HIGH);
mySerial.println("AT+CMGF=1");
delay(1000);
mySerial.println("AT+CMGS=\"+639662744995\"\r");
delay(1000);
mySerial.println("Livingroom is on Fire");
delay(100);
mySerial.println((char)26);
delay(1000);
}
else
{
digitalWrite(LED3,LOW);
digitalWrite(buzzer3,LOW);
}}
7. System Operation
The flame sensor module is sensitive to a flame and its radiation. It can
detect ordinary light source in the range of a wavelength from 760 nm to 1100
nm. Using this flame sensor, you can detect infrared light up to a distance of 1 m
within its detection angle. At which a phototransistor is the one who senses light
levels. Under normal conditions, the output from the flame sensor is high. When
the sensor detects any fire, its output becomes low. After the Arduino Uno
checks the logic state of the flame sensor, it therefore triggers the buzzer and
LED, also the GSM module. The GSM module sends an sms to a registered
Page | 10
receiver alerting that the house is on fire. After the flame is out of range of the
sensor, the buzzer and LED automatically turns off.
II. Project Procedure
1. List the required materials for the approved project.
2. Canvass and research the components and materials of the project if it is
available and affordable.
3. Buy and test the components if it is working.
4. Make the program code and upload it to Arduino Uno.
5. Test and connect the components on a breadboard.
6. Troubleshoot if the codes are not working.
7. Make 10 trials of the program.
8. If the codes and the components are already working, do the casing of the
project.
9. Connect the components in a pcb.
10. Put the case and components together.
11. Make the finishing touches.
III. Testing, Results and Findings
Table 2. Testing, Results and Findings
TRIALS EXPECTED ACTUAL
INPUT REMARKS
OUTPUT OUTPUT
The buzzer will
Testing of One The buzzer
buzz and the
Flame Sensor, Flame buzzed and the Working
LED must be
Buzzer and LED turned on
turned on
LED
Testing of 2 Flame The buzzer will The buzzer
sensors, 2 buzz and the buzzed even if The sensor’s
buzzers and 2 LED must be there’s no initial state is
LED turned on flame and did HIGH wherein
Page | 11
our code’s
not buzz if
initial state is
there’s a flame
LOW
The GSM
The GSM
Activating of Module’s C5 The sim is not
Module’s C5
GSM Module Phone Call and D6 must properly
and D6 did not
Sim900A blink or it must inserted
blink and did
ring if you call
not ring.
it
The GSM
The GSM
Activating of Module’s C5
Module’s C5
GSM Module Phone Call and D6 must Working
and D6 blinked
Sim900A blink or it must
and rang.
ring if you call
it
Testing of
The GSM The GSM
GSM Module
Module must Module
Sim900A by
Input in Serial initialize and initialized and
switch case Working
monitor the Serial the Serial
and inputting in
Monitor must Monitor
the Serial
show that it is showed that it
Monitor
successful is successful
Testing of
The GSM The GSM The sensor’s
GSM Module
Module must Module initial state is
Sim900A by
Input in Serial initialize and initialized and HIGH wherein
switch case
monitor the Serial the Serial our codes
and inputting in
Monitor must Monitor initial state is
the Serial
show that it is showed that it LOW
Monitor
successful is unsuccessful
The GSM
The GSM
Activating of Module’s C5 The sim is not
Module’s C5
GSM Module Phone Call and D6 must properly
and D6 did not
Sim900A blink or it must inserted
blink and did
ring if you call
not ring.
it
Activating of Phone Call The GSM Working
Page | 12
The GSM
Module’s C5
Module’s C5
GSM Module and D6 must
and D6 blinked
Sim900A blink or it must
and rang.
ring if you call
it
The buzzer
The buzzer
and LED will
and LED The GSM
turn on and the
Testing of the turned on but module is not
Flame GSM module
whole system the GSM connected
will send an
module did not properly.
SMS to the
send a SMS.
registered
number.
The buzzer The buzzer
and LED will and LED
turn on and the turned on and
Testing of the
Flame GSM module the GSM Working
whole system
will send an module sent an
SMS to the SMS to the
registered registered
number. number.
IV. Breakdown of Tasks
Table 3. Breakdown of Tasks
TASKS JERSY AHRYZ CHAN PAUL TRISHIA LALAINE MJ
Project
Suggestion ☻ ☻ ☻ ☻ ☻ ☻ ☻
Buying of
Components ☻ ☻ ☻ ☻ ☻ ☻ ☻
Page | 13
Buying of
Materials for ☻ ☻ ☻ ☻ ☻ ☻ ☻
Casing
Case Design ☻ ☻ ☻ ☻ ☻ ☻ ☻
Case Making ☻ ☻ ☻ ☻ ☻ ☻ ☻
Coding ☻ ☻
Documentation ☻ ☻ ☻ ☻ ☻ ☻ ☻
V. Bill of Materials
Table 4. Bill of Materials
TOTAL
COMPONENTS AND MATERIALS QUANTITY PRICE(Php)
PRICE(Php)
Arduino Uno 1 400.00 400.00
Power supply 1 166.00 166.00
Flame sensor module 3 100.00 300.00
Sim 900a GSM/GPRS module 1 1188.00 1188.00
Buzzer 3 10.00 30.00
470 ohms Resistor 3 3.00 9.00
LED (Red) 3 3.00 9.00
Wires 10m 5.00 50.00
Plywood 1 148.00 148.00
Page | 14
Glue 1 40.00 40.00
Candle 1 6.00 6.00
Styroboard 1 200.00 200.00
Styrofoam 1 30.00 30.00
Paint (White) 1 52.00 52.00
Paint (Brown) 1 53.00 53.00
Universal PCB 1 25.00 25.00
TOTAL (Php): 2706.00
VI. Appendices
User Manual
1. Upload the codes to the Arduino Uno.
2. Make sure that all components are properly connected.
3. Activate the GSM Module Sim900A by calling the number of the sim
4. Place the candle near the sensor at least 10 inch apart from the
prototype.
Data Sheet
1. SIM 900A GSM/GPRS Module
The SIM900A is a complete Dual-band GSM/GPRS solution in a SMT
module which can be embedded in the customer applications. With a tiny
configuration, SIM900A can fit in almost all the space requirements in user
applications, especially for slim and compact demand of design. The module is
accessible via AT commands. The baud rate can be configurable from 9600-
115200 through AT command. The modem need only 3 wires (Tx,Rx,GND)
Page | 15
except Power supply to interface with microcontroller/Host PC. The module has
two set onboard power supply interface for 5V and 3V power supply, optional
power on self-starting (default) and control start.
Features:
Quad-Band 850/ 900/ 1800/ 1900 MHz
Dual-Band 900/ 1900 MHz
GPRS multi-slot class 10/8GPRS mobile station class B
Compliant to GSM phase 2/2+Class 4 (2 W @850/ 900 MHz)
Class 1 (1 W @ 1800/1900MHz)
Control via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced
AT Commands)
Low power consumption: 1.5mA(sleep mode)
Operation temperature: -40°C to +85 °C
Figure 6. SIM 900A GSM Module
Page | 16
Figure 7. Schematic Diagram of GSM Module
Table 5. GSM Module Pin Configuration
2. Flame Sensor Module
KY-026 Flame Sensor Module for Arduino detects infrared light emitted by
fire. The module has both digital and analog outputs and a potentiometer to
adjust the sensitivity. Commonly used in fire detection systems.
The KY-026 consist of a 5mm infra-red receiver LED, a LM393 dual
differential comparator a 3296W trimmer potentiometer, six resistors and two
indicator LEDs. The board features an analog and a digital output.
Connect the board's analog output (A0) to pin A0 on the Arduino and the
digital output (D0) to pin 3. Connect the power line (+) and ground (G) to 5V and
GND respectively.
Figure 8. Pin Connection of Flame Sensor
Page | 17
Table 6. Flame Sensor Pin Configuration
3. Buzzer
A buzzer is a small yet efficient component to add sound features to our
project/system. It is very small and compact 2-pin structure hence can be easily
used on breadboard, Perf Board and even on PCBs which makes this a widely used
component in most electronic applications.
The buzzer can be used by simply powering it using a DC power supply
ranging from 4V to 9V. A simple 9V battery can also be used, but it is recommended
to use a regulated +5V or +6V DC supply. The buzzer is normally associated with a
switching circuit to turn ON or turn OFF the buzzer at required time and require
interval.
Specifications:
Rated Voltage: 12V DC
Operating Voltage: 8V DC to 16V DC
Rated Current at Rated Voltage: 30mA
Sound Output at 10cm, at rated voltage: ≥85dB
Resonant Frequency at rated voltage: 2,300 ±300Hz
Operating Temperature: -20°C to +70°C
Figure 9. Buzzer
Storage Temperature: -30°C to +80°C
Page | 18
Weight: 2g
Table 7. Buzzer Pin Configuration
4. LED
These diffused LEDs are perfect for a variety of applications. The diffused
lenses, wide viewing and medium luminous intensity make them ideal for indicators
(e.g. Power, status etc).
Technical information:
Forward Voltage: 2.1V
Angle: 60 deg
Luminous intensity: 275 mCd(@20mA)
Max forward current: 25Ma
Lens type: Diffused
Figure 10. LED Pin Configuration
Page | 19
5. AC/DC Power Supply Adaptor
This AC/DC Adapter 5V@2A American Standard power supply is a perfect
solution for your projects that require high power consumption. It is ideal for
supplying Arduino with power when there is no computer nearby. And for
microcomputers/tablets which require higher amount of power than standard
USB port. This high quality power supply can provide with 5V@2A DC from an
AC wall adapter. Therefore, these will power most projects that don't require
more than 2A of current.
TECHNICAL DETAILS
Dimension: 47mm x 33mm x 33mm (1.9in x 1.3in x 1.3in)
Cable Length: 1.83/72in (5')
Cable Diameter: 3.5mm (0.125in)
Plug type: 5.5mm OD / 2.1mm ID 'coaxial' DC plug
Input: 110V-220V AC
Output: ~5V DC up to 2A
Page | 20
Curriculum Vitae
Page | 21
JERSY AURECRISTY M. ARIOLA
PHILOSOPHY
Happiness is always in our hearts. Love and
forgiveness are always the key to be happy.
SKILLS AND ABILITIES:
ADDRESS Oriented in application such as:
172 Purok 4 Berinayan Microsoft Office Word
Laurel,Batangas(4221) Microsoft Office PowerPoint
Microsoft Office Excel
TELEPHONE Multisim
09662744995 Arduino
Matlab
E-MAIL
jersyariola7@gmail.com PLC Programming
DATE OF BIRTH
August 4, 1998
AGE AFFILIATION
20 years old Junior Institute of Electronics Engineers of the
Philippines (JIECEP)
GENDER University of Batangas Chapter
Female MEMBER
2017 – Present
NATIONALITY
Filipino Institute of Electronics Engineers of the
Philippines (IECEP)
RELIGION Batangas Chapter
Roman Catholic MEMBER
2017 – Present
CIVIL STATUS
Single UB Checkmate
University of Batangas Chapter
WEIGHT President
50 kgs. 2018-2019
HEIGHT
4’10
Page | 22
MERRY LALAINE M. DE LEON
PHILOSOPHY
Differences of habit and language are nothing at all if
our aims are identical and our hearts are open.
SKILLS AND ABILITIES:
ADDRESS Oriented in application such as:
Bulacnin, Lipa City Microsoft Office Word
Batangas Microsoft Office PowerPoint
Microsoft Office Excel
TELEPHONE Multisim
09062436407
Arduino
E-MAIL Matlab
lalainedeleon11@gmail.com AutoCAD
DATE OF BIRTH
January 11, 1999 AFFILIATION
AGE Junior Institute of Integrated Electrical Engineers
20 years old (JIIEE)
University of Batangas Chapter
GENDER MEMBER
Female 2017 – Present
NATIONALITY
Filipino
RELIGION
Roman Catholic
CIVIL STATUS
Single
WEIGHT
50 kgs.
HEIGHT
5’2
Page | 23
PAUL ABNER T. PANOPIO
PHILOSOPHY
Kung sino pa ang nakakaramdam ng pain sila
pa ang nasasaktan.
ADDRESS
Sambat, San Pascual SKILLS AND ABILITIES:
Batangas
Oriented in application such as:
TELEPHONE Microsoft Office Word
09993819082 Microsoft Office PowerPoint
Microsoft Office Excel
E-MAIL Multisim
panopiopaul01@gmail.com Arduino
Matlab
DATE OF BIRTH
AutoCAD
September 01, 1998
AGE
20 years old AFFILIATION
Junior Institute of Integrated Electrical Engineers
GENDER
(JIIEE)
Male
University of Batangas Chapter
MEMBER
NATIONALITY
2017 – Present
Filipino
RELIGION
Roman Catholic
CIVIL STATUS
Single
WEIGHT
60 kgs.
HEIGHT
5’7
Page | 24
\
TRISHIA MHAEVIN M. PHI
PHILOSOPHY
We’re all living in the same hell just dealing
with different devils
SKILLS AND ABILITIES:
ADDRESS
Ilagan Subdivision, Oriented in application such as:
Kumintang Ibaba, Microsoft Office Word
Batangas ,Batangas City Microsoft Office PowerPoint
Microsoft Office Excel
TELEPHONE Multisim
09295417287 Arduino
Matlab
E-MAIL
PLC Programming
trishiamhaevin.phi@gmail.co
m
DATE OF BIRTH
June 08, 1999
AFFILIATION
AGE Junior Institute of Integrated Electrical Engineers
19 years old (JIIEE)
University of Batangas Chapter
GENDER MEMBER
Female 2017 – Present
NATIONALITY
Filipino
RELIGION
Roman Catholic
CIVIL STATUS
Single
WEIGHT
50 kgs.
HEIGHT
4’10
Page | 25
MEZAEL B. CASAO JR.
PHILOSOPHY
“I can do all things through Christ who
strengthens me.” - Philippians 4:13
SKILLS AND ABILITIES:
ADDRESS
Brgy. Tulo, Batangas City Oriented in application such as:
(4221) Microsoft Office Word
Microsoft Office PowerPoint
TELEPHONE Microsoft Office Excel
090785033502 Multisim
Arduino
E-MAIL
casaomezaeljr@gmail.com Matlab
PLC Programming
DATE OF BIRTH
April 3, 1999
AFFILIATION
AGE
20 years old Junior Institute of Integrated Electrical Engineers
(JIIEE)
GENDER University of Batangas Chapter
Male MEMBER
2017 – Present
NATIONALITY
Filipino
RELIGION
Roman Catholic
CIVIL STATUS
Single
WEIGHT
50 kgs.
HEIGHT
5’3
Page | 26
CHRISTIAN C. DALISAY
PHILOSOPHY
PM is the key.
SKILLS AND ABILITIES:
ADDRESS
A-Left 085 Bonus Compd. Oriented in application such as:
Manghinao 1 Bauan Vb.Net
Batangas B4A
mysQL
TELEPHONE
09976048639 C Programming
Arduino
E-MAIL Photoshop
1502070@ub.edu.ph Assembly Language Programming
DATE OF BIRTH
October 29, 1997
AGE AFFILIATION
21 years old
UNIVERSITY OF BATANGAS CAMERAL
GENDER PRESIDENT (2016-2017)
Male PROJ. DEVELOPMENT OFFICER(2017-2018)
VICE PRESIDENT (2018-2019)
NATIONALITY
Filipino COMPUTER ENGINEERING STUDENTS’
SOCIETY
RELIGION P.R.O (2017-2018)
Roman Catholic MEMBER (2018-PRESENT)
CIVIL STATUS Institute of Computer Engineers of the
Single Philippines.Se
Member(2017-present)
WEIGHT
69 kgs.
HEIGHT
5’7”
Page | 27
AHRYZ R. BRIONES
PHILOSOPHY
A dream without action is just a wish.
SKILLS AND ABILITIES:
Oriented in application such as:
Microsoft Office (Word, Excel, PowerPoint,
Access)
Multisim
PLC Programming
Aduino
Matlab
Photoshop
AFFILIATION
Junior Institute of Electronics Engineers of the
Philippines (JIECEP)
University of Batangas Chapter
MEMBER
2017 – Present
Institute of Electronics Engineers of the
Philippines (IECEP)
Batangas Chapter
MEMBER
2017 – Present
Page | 28