Professional Documents
Culture Documents
Acpnd Prototype
Acpnd Prototype
SYSTEM
ARIOLA, MARK M.
CUADRA, JOROSS N.
NOLASCO, SHEKINAH R.
2023
1
CHAPTER I
THE PROBLEM
buildings are built to last several decades and to provide residential and
tsunami, etc.) and man-made (fire, explosion, etc.) risks over this long period
of time, which can result in partial or entire collapse of the building and
incapacity can jeopardize the lives of residents and create large direct and
from a variety of predicted risks in order to assure life and structural safety
throughout their design life, and fire is one such severe hazard that can occur
validated this issue in the recent study about high-rise building's fast
evacuation. As a result, it can therefore be said that proper and safe building
2
design to preserve human life in the case of a fire is critical. Additionally,
Shokouhi et al. (2019) stated that significant fires have occurred in buildings
with no or inadequate fire alarm systems, and at least 75% of fires are
preventable.
fire to endanger life, structural, and property safety. Fire hazards in buildings
fast expansion around the world, and have been an increasing worry in recent
years. Over the last two decades (1993-2015), 86.4 million fire events
resulted in more than one million fire deaths (Brushlinsky et al., 2017), and
total annual loss from worldwide fire hazard accounts for roughly 1% of global
GDP (Bulletin, 2014) (about US$857.9 billion [GDP, 2018]). Every year, 3.8
million fires kill 44,300 people in both developed and poor countries around
the world (Brushlinsky et al., 2017). Moreover, between 2010 and 2014, the
United States had the highest number of fires (600,000-1,500,000 per year)
and the second highest number of fire deaths (1,000-10,000 per year) in the
India and Pakistan, on the other hand, saw the highest number of fire fatalities
(10,000-25,000 per year) and the second largest number of fires (100,000-
of fire hazards.
3
Fire safety is defined as a collection of techniques for preventing or
tactics for guaranteeing fire safety in buildings differ from one code of practice
to the next, the majority of them are prescriptive in nature and are drawn from
based approaches. Active fire protection systems (sprinklers, heat and smoke
detectors, and so on) are more significant in terms of life safety since they
detect and control or extinguish fire in its early stages. Passive fire prevention
hand are intended to maintain structural stability during fire exposure and to
limit fire spread. Their primary purpose is to provide adequate time for
Fire has been a useful tool throughout human history, but it can also be
monitoring the fire in real-time can help to reduce the loss of life and property.
As a result, the current researchers intend to create a device that includes not
only a smoke detector during fire hazards, but also a camera, motion sensor,
and automatic SMS notification when one of the two is subjected to particular
conditions.
4
Research Question
a. Durability
b. Weight
c. Appearance
a. Camera
This study aims to build an alarm and security system that alerts
homeowners when there is fire and motion detected. The OV7670 camera
module will serve as a security system. It will give the video footage of the
actual break-in. The camera has approximately 5 meters of range. SMS and
call alert will be received when a high level of smoke is detected. The IR
Sharp sensor has the measuring range of 20 to 150 cm, whereas the flame
5
Benefits and Beneficiaries of Research
wireless smart fire alarm with security system and use it as a prototype for the
following:
designed to work in any type of building. This will then function as an early
security purposes.
innovated early warning system will be deemed critical in their duty. They may
improve their studies by referencing the prototype on how to create, run, and
6
Definition of Terms
something with the least waste of time and effort; competency in performance
other technologies that did not previously have. In this study, the camera is a
event. (vocabulary.com 2023). For this study, SIM 800 and 900 L will be the
and data.
7
Acceptability. This means something that is considered to be socially
accepted or within the realm of being appropriate (Laird, 2018). One of the
researchers.
Module. Compactness, and the versatility to design and add units to perform
any task. (Robotpark 2015). In this study, modules are responsible in storing
up programs.
technology implemented. (Law Insider 2019). In this study, the ability of the
motion sensor and the camera will function as the security system.
In this study the ability to resist motion and contact will be determined.
8
CHAPTER II
the current study for a deeper comprehension gleaned from these reviews,
Acceptability
used for perimeter protection and security in both residential and commercial.
Compared to the PIR sensors, the IR beam sensors have the advantage of
temperature. He also added that the IR beam sensor adopts active infrared
technology.
using IR beam sensors generally, while the present study will accentuate the
ACPND Prototype: Wireless Smart Fire Alarm and Security System which
9
Effectiveness
the basic and popular sensor modules in an electronic device. This sensor is
and these type of sensors measures only infrared radiation, rather than
emitting that is called a passive IR sensor usually in the infrared spectrum all
the radiation of the object is some forms of thermal radiations are invisible
tour the eyes, that can be detected by an infrared sensor. The emitter is
by the IR LED. When IR light falls on the photodiode. The resistance and this
The present study and older literature are comparable in terms of the
the functionalities and descriptions that have been examined, but the current
10
According to Hossain, T, et.al (2022), fire, smoke, gas, temperature,
and other elements in the immediate vicinity are detected by a fire alarm and
petroleum gas (LPG). Each of those elements in this system has a unique
threshold value that this system uses to decide which of those elements is
home's owner urging them to act quickly. The system will alert users to clear
The previous literature and current study are similar in terms of its
ability to sense flammable gases, both detect LPG and smoke. On the other
hand, the current study has a fire alarm system together with a security
which has a fire alarm system that alerts people to an impending fire.
Precision
air caused by a fire and records images using a camera mounted within a
room when a fire begins. This fire alarm system was created using an Arduino
Uno. The capability of the system to remotely send an alert when a fire is
detected is its major feature. The system will show an image of the state of
the room on a webpage when smoke is detected. To report the event the
11
system will send an SMS to the owner. The benefit of employing this
gases, the Sim will promptly transmit a notice. Nevertheless, the current study
detector types has been carried out along with the development of a low-cost,
aim of the system designed is to alert the distant property owner efficiently
and quickly by sending short messages (SMS) via the GSM network. A Linear
from fire hazards. The sensor units are connected via a common data line to
module, capable of operating in standard GSM bands, has been used to send
alert messages.
12
incorporates a security system, so in addition to warning people about fires, it
property or asset. This type of detector is most useful on the ground that is flat
these create opportunities for the intruder to crawl under the beams. He also
added that IR beams are available to span distances from 100cm-500cm (1-5
meters / 3-15 feet) and these are useful whenever a long straight line over
Range Covered by the sensor. The literature, however, is mainly about the
advantages and limitations of infrared beam sensors, while the present study
will create ACPND Prototype: Wireless Smart Fire Alarm and Security
System, which also uses infrared beam sensors in order to attain its main
objective.
beneficial insights that were necessary for the development of the current
study, the earlier literature that was analyzed also made a contribution.
Hossain, T, et.al (2022) stated that a fire alarm and smoke detection
system detects a fire, smoke, gas, temperature, and other elements in the
13
immediate vicinity, using a unique threshold value to decide which element is
home's owner urging them to act quickly. Omar Asif, O. et al. (2020) also
the air and records images using a camera mounted within a room when a fire
begins. To report the event the system will send an SMS to the owner.
technology. Norman, H. (2019) also added that Infrared beam sensors are
used to sense and detect infrared radiation, measure or observe the heat of
an object, and detect motion. The emitter is an IR LED and the detector is an
study to generate the most fruitful and satisfying findings that are feasible.
14
STAGE 1 STAGE 2
STAGE 4 STAGE 3
EVALUATION
DEVELOPMENT STAGE
STAGE
15
The following conceptual framework, which demonstrates the study's
The design and materials required to construct the product are shown
Smoke Gas Sensor Module Flame Senso Thick Plywood IR Sharp Motion
Sensor.
Troubleshooting the codes, and debugging the programs to reach the desired
sending alarm when there is flammable gases and motion being detected and
16
CHAPTER II
METHODOLOGY
followed in the study. The researcher describes the research design chosen
for this study’s purpose and the reasons for this choice. The information
about materials used for making the product, steps for making the product,
testing of the product, and procedures that were made for the study. The
instrument used for data collection is also described and the procedures
followed to carry out this study are included. The researcher also discussed
the methods used to analyze the data. Lastly, the ethical issues followed in
Research Design
this study to determine the level of acceptability of the in terms of its portability
and to determine the level of functionality of the ACPND in terms of its ability
to send an alert and ability to sense smoke. The survey is used in gathering
17
A. Materials
materials used to make the ACPND: Wireless Smart Fire Alarm System and
Security System
Table 1. Materials Used in Making the ACPND: Smart Fire Alarm System
and Security System
18
OV7670 1 pc This module, is a
camera device that can
module send SMS and
calls.
It is responsible for
alert to caught your
attention.
SIM800L V2 1 pc This has the ability
5V Wireless to send messages,
GSM GPRS make a call or
Module transfer data over
GPRS.
It is responsible for
alert to caught your
attention.
SIM900L V2 1 pc This has the ability
5V Wireless to send messages,
GSM GPRS make a call or
Module transfer data over
GPRS.
It is responsible for
alert to caught your
attention.
Flame Sensor 1 pc This module has a
photodiode to
detect the light and
an op-amp to
control the
sensitivity.
It is used to detect
fire and provide a
high signal upon the
detection.
Thick Plywood 2x2 feet Material
manufactured from
thin layers or "plies"
of wood veneer that
are glued together
with adjacent layers
having their wood
grain rotated up to
90 degrees to one
another.
19
Sharp IR 1 pc A distance sensor
Motion Sensor that detects
motions.
A distance
measuring unit, can
be used for
obstacle detection
for robots. It has
measuring range of
10 to 80 cm.
Procedure
Flame Sensor
Arduino Uno board
SIM800L
2. Assemble the flame and MQ2 sensors and connect wires it to the Arduino
board.
3. Picking up all the data and calculations of angle by, checking the specs of the
modules indicated.
4. Get the codes and modify the program based on the functions of fire alarm
system.
1. #include <SoftwareSerial.h>
2.
3. //Alarm reciever's phone number with country code
4. const String PHONE_1 = "092810432304";
5. const String PHONE_2 = ""; //optional
6. const String PHONE_3 = ""; //optional
7.
20
8. #define rxPin 2
9. #define txPin 3
10. SoftwareSerial sim800L(rxPin,txPin);
11.
12. #define flame_sensor_pin 5
13. //fire_flag = 0 means no fire detected
14. boolean fire_flag = 0;
15. #define buzzer_pin 4
16.
17. void setup()
18. {
19. //Begin serial communication: Arduino IDE (Serial Monitor)
20. Serial.begin(115200);
21.
22. //Begin serial communication: SIM800L
23. sim800L.begin(9600);
24.
25. pinMode(flame_sensor_pin, INPUT);
26. pinMode(buzzer_pin, OUTPUT);
27. digitalWrite(buzzer_pin,LOW);
28.
29. Serial.println("Initializing...");
30. //Once the handshake test is successful, it will back to OK
31. sim800L.println("AT");
32. delay(1000);
33. sim800L.println("AT+CMGF=1");
34. delay(1000);
35. }
36.
37. void loop()
38. {
39. while(sim800L.available()){
40. Serial.println(sim800L.readString());
41. }
42.
43. int flame_value = digitalRead(flame_sensor_pin);
44.
45. //The fire is detected, trigger Alarm and send sms
46. if(flame_value == LOW)
47. {
48. digitalWrite(buzzer_pin,HIGH);
49. if(fire_flag == 0)
50. {
51. Serial.println("Fire Detected.");
52. fire_flag == 1;
53. send_multi_sms();
54. make_multi_call();
55. }
56. }
57. //No fire is detected, turn OFF Alarm
58. else
59. {
60. digitalWrite(buzzer_pin,LOW);
61. fire_flag = 0;
62. }
63. }
64. void send_multi_sms()
65. {
66. if(PHONE_1 != ""){
67. Serial.print("Phone 1: ");
68. send_sms("Fire is Detected", PHONE_1);
69. send_sms("Sensor Value: ", PHONE_1);
70. }
71. if(PHONE_2 != ""){
72. Serial.print("Phone 2: ");
73. send_sms("Fire is Detected", PHONE_2);
74. send_sms("Sensor Value: ", PHONE_2);
75. }
76. if(PHONE_3 != ""){
77. Serial.print("Phone 3: ");
78. send_sms("Fire is Detected", PHONE_3);
79. }
80. }
81.
82. void make_multi_call()
83. {
84. if(PHONE_1 != ""){
85. Serial.print("Phone 1: ");
86. make_call(PHONE_1);
87. }
88. if(PHONE_2 != ""){
89. Serial.print("Phone 2: ");
90. make_call(PHONE_2);
91. }
92. if(PHONE_3 != ""){
93. Serial.print("Phone 3: ");
94. make_call(PHONE_3);
95. }
96. }
97.
98. void send_sms(String text, String phone)
99. {
100. Serial.println("sending sms....");
101. delay(50);
102. sim800L.print("AT+CMGF=1\r");
103. delay(1000);
104. sim800L.print("AT+CMGS=\""+phone+"\"\r");
21
105. delay(1000);
106. sim800L.print(text);
107. delay(100);
108. sim800L.write(0x1A); //ascii code for ctrl-26 //Serial2.println((char)26); //ascii code
109. for ctrl-26
110. delay(5000);
111. }
112.
113. void make_call(String phone)
114. {
115. Serial.println("calling....");
116. sim800L.println("ATD"+phone+";");
117. delay(20000); //20 sec delay
118. sim800L.println("ATH");
119. delay(1000); //1 sec delay
120. }
5. Testing of the sensors and modules. Check if the module function according
7. By using the Arduino app, upload the program and the codes needed by the
product.
OV7670 Camera
Resistors
Jumper Wires
2. Build the circuit by connecting the sensors to the Arduino Board by the jumper
wire.
22
3. Download and copy the two libraries "LiveOV7670Library" and
(https://github.com/indrekluuk/LiveOV7670;
https://github.com/indrekluuk/ArduImageCapture)
4. By using the Arduino app, upload the program and the codes needed by the
product.
void setup() {
// This is not necessary and has no effect for ATMEGA based Arduinos.
// WAVGAT Nano has slower clock rate by default. We want to reset it to maximum
speed
CLKPR = 0x80; // enter clock rate change mode
CLKPR = 0; // set prescaler to 0. WAVGAT MCU has it 3 by default.
initializeScreenAndCamera();
}
void loop() {
processFrame();
}
5. Open ArduImageCapture
Security system
23
2. Build the circuit by connecting the sensor and Sim800A module to the
Arduino Board by the jumper wire.
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
pinMode(inputPin, INPUT); // declare sensor as input
Serial.begin(9600);
}
void loop(){
val = digitalRead(inputPin); // read input value
if (val == HIGH) { // check if the input is HIGH
digitalWrite(ledPin, HIGH); // turn LED ON
if (pirState == LOW) {
// we have just turned on
Serial.println("Motion detected!");
// We only want to print on the output change, not state
pirState = HIGH;
}
} else {
digitalWrite(ledPin, LOW); // turn LED OFF
if (pirState == HIGH){
// we have just turned of
Serial.println("Motion ended!");
// We only want to print on the output change, not state
pirState = LOW;
}
}
}
24
1. Examine the product’s placement to see if it is stable.
2. Check to see if to see if the battery has a sufficient percentage to
power the motherboard.
3. Check to see if the product still has enough load to send and call
when it detects fire and smoke.
4. Plug the battery into the Arduino and ensure that it lights up in
green and orange.
5. Use a lighter to create fire and smoke, and then check to see if the
product detects the fire and smoke. If it does, it will send the sms
“fire detected”, and it will take a few seconds to call.
B. Security System
1. Check to see if the camera and motion sensor wirings are connected to
the correct location.
2. Check to see if the battery has a sufficient percentage to power the
motherboard.
3. Open the Arduino app and, with the cursor, select tools, then “click”
ArduImage Captured” and then, click “Listen” to see if the camera
connection is in the proper location.
4. When the Arduino app displayed a green screen, the camera
automatically flashed an image from the room where the product is
located.
5. To see if the motion sensor is working, try opening the door closest to
the product; if the sensor detects the door’s motion. It will send an SMS
stating “Motion detected” and it will take a few seconds to call.
which the participants are selected based on the purpose of the sample and
The subjects of the study are Electrical Installation and Maintenance (EIM)
25
Mathematics (STEM) students of Sipocot National High School in the
After making the product, the researchers will test the product to
(5) a point Likert scale but with a different interpretation. For the first variable,
4 - Strongly Agree
3 - Agree
2 - Disagree
1 - Strongly Disagree
Indicators 4 3 2 1
acceptable after are still intact removed from from the removed
shaking. shaking.
26
If the product If the product If the If the
kilograms.
and neatly of all the exactly the are exactly product are
design design.
Indicators 4 3 2 1
27
motion detected, 30 seconds responds responds responds
mins. minutes
is the resolution of good and the is good is bad and is bad and
Indicators 4 3 2 1
28
the distance detected is detected is detected is detected is
flame sensor
precise?
synchronicity sec. to send SMS and call SMS and call at all
of the SMS SMS and call for fire alarm for fire alarm
in sending warning
alarm
precise?
the camera’s its viewpoint from its from its from its
viewpoint
29
precise?
respondents that will evaluate the ACPND Prototype: Wireless Smart Fire
Frequency Count
Where:
f = frequency
N = Population
Weighted Mean
Ex
Wm=
N
30
gases ability to sense motion, level of precision of the product in terms of
31