There are many reported death cases because of fire accidents. There are different reasons that increase the severity of the fire accidents:
Difficulty of evacuation process
Missing alarm systems
Locked doors
Heavy smoke
My project idea aims to save life and reduce the impacts of fire disaster. My solution is based of using autonomous system that can detect the fire and accordingly it raise alarms through lamps and buzzers.
But not only alarms but also taking other actions like opening doors locks to ease evacuation process and to operate suction fans to reduce the impacts of the smoke.
Also to give additional feature of manual testing the functionality of the system by manual switch.
Finally and it worth to mention that I got inspired for this solution by the below video.
Design Steps
I used Fusion 360 for Designing.
First, I started with the sketches at the base, the enclosure that will contain the circuit.
I designed the 2 sides that have the tabs and T-slots ,one side has button and Arduino opening
And then designed the house back, took a copy for the front, and added the slots for the LED
Add top cover and is fixed by four captive nut
Front Side
Top Cover
Base Bottom
Back Side
Left Side
Right Side
Assembly steps
I used the Laser cutter machine to make the project enclosure.
I used Laser Works to upload the files to the machine.
I used Prusa I3 MK2 printer to read the .gcode file & print the 3D physical object
Captive nut
The project circuit:
There are two inputs in the circuit:
1- on-off switch that the user can activate the system and check its functionality
2-flame sensor to detect fire
There are two action components (OUTPUT) in the circuit:
1- Bulb which will turn on if the sensor detected fire or Button is on position 1.
2- Buzzer will be high if the sensor detected fire or Button is on position 1
------------------------------------------------------------------
I used tinkerCAD to sketch the circuit, however as tinkercad does not have relay nor flame detector, I did the following work arounds:
- Use PIR sensor as its wiring is quite similar to flame sensor
- Use paint program to add the picture of the relay instead of the dummy components
---------------------------------------------------------------
The components used are:
Arduino UNO
Bulb & Relay module
Flame sensor
Push button with resistor
Bread board
Wires
9V Adaptor
---------------------------------------------------------------
Integration phase
Upload the code on Arduino Uno through USB cable.
connect the +ve of 9 volt to the Vin of Arduino
on bread board connect 5 V wire to Arduino to supply all components with required power.
Connect wire from the GND of Arduino to bread board to generalize all grounds.
Flame sensor connection
VCC to the 5 volt on the bread board and GND to the ground on the board.
signal pin is connected on pin 4.
on-off switch connection
One terminal is connected to the 5 volt on the bread board
second terminal is connected Arduino pin 9 and to resistor.
resistor is connected to the GND.
Bulb with relay connection:
Relay VCC is connected to the 5 volt on the bread board
Relay GND is connected to the GND on the bread board
Relay IN is connected to Arduino pin 7
Relay NO is connected to bulb terminal
Relay C is connected to the 5 volt on the bread board
Bulb second terminal to GND on bread board
Buzzer connection
Positive terminal to Arduino pin 8
Negative terminal to bread board GND
Generally the circuit is powered by 9v adaptor that is connected to the Arduino
the output 5v from the Arduino is used to power the whole circuit components; Buzzer, Relay, Bulb and Flame sensor,
Also I have used 5v from Arduino to activate pin connected to the switch to detect ON Position.
1- Declare all variables
2- Assign Arduino pin to Variable
1- Define Buzzer pin as OUTPUT
2- Define Bulb pin as OUTPUT
3- Define flame pin as INPUT
4- Define button pin as INPUT_PULLUP
1- Read flame status and store it in flame_detected variable
2- Read button status and store it in button_detected variable
1- If flame sensor detects a flame or button was set to position 1
perform the code between {}
2- Once any of the conditions detected ;
activate buzzer pin --> make buzzer ON
activate Bulb pin --> make relay ON
then wait for 2 seconds
deactivate buzzer pin --> make buzzer OFF
deactivate Bulb pin --> make relay OFF
then wait for 0.2 seconds
repeat the code as it is in the void loop
1- If flame sensor does not detect a flame nor button was set to position 1
deactivate buzzer pin --> make buzzer OFF
deactivate Bulb pin --> make relay OFF
Software Tools:
Tinker CAD: to build the virtual circuit
Arduino IDE: to upload the code to the Arduino board
Fusion 360: Design 2D and 3D
Laser work: Prepare files for laser cut
Ultimaker Cura 5.2.1 :to slice the .stl model and create the .gcode file for the 3D printer
TinkerCad
Arduino
Fusion360
laser works
Ultimaker Cura 5.2.1
BreadBoard
PLA
Wires
Arduino Uno
Relay
Buzzer
MDF
Screws and nuts
Bulb
Fire Sensor
On-Off switch
El Malky ML1390 CO2 laser cutter
Step1: Electronics Interconnections
Upload the code on Arduino Uno through USB cable.
Connect the +ve of 9 volt to the Vin of Arduino
on bread board connect 5 V wire to Arduino to supply all components with required power.
Connect wire from the GND of Arduino to bread board to generalize all grounds.
Flame sensor connection
VCC to the 5 volt on the bread board and GND to the ground on the board.
Signal pin is connected on pin 4.
on-off switch connection
One terminal is connected to the 5 volt on the bread board
second terminal is connected Arduino pin 9 and to resistor.
resistor is connected to the GND.
Bulb with relay connection:
Relay VCC is connected to the 5 volt on the bread board
Relay GND is connected to the GND on the bread board
Relay IN is connected to Arduino pin 7
Relay NO is connected to bulb terminal
Relay C is connected to the 5 volt on the bread board
Bulb second terminal to GND on bread board
Buzzer connection
Positive terminal to Arduino pin 8
Negative terminal to bread board GND
Step2: Fix the four captive nuts in the 4 sides
Step3: Fix the top plate on the four captive
Step4 : Mount and fix electronic componets on wooden base
A- I fixed Arduino UNO using screw
B- I fixed the relay using screw
C- I remove the cover from the sticky part of the breadboard and stick it to the wooden base
Step5 : Attach and fix base with the whole enclosure
Final Step : Integration Test
1- It was supposed to deliver my design without ceiling; but when I asked for feedback, it was recommended to have a cover sheet to protect the electronic components.
2- The fixation method of the top sheet ; it was advised to use 3d printed captive nut as it is suitable to my design status.
3- Fusion360 proper way to integrate files; its better to save the file first file then upload the others one by one and make save in between.
1- When I face challenges and problems , I start with troubleshooting , then use Google, and finally if I failed to find answers, I ask my direct instructor, and if she is not available, I do to another instructors.
2- I usually stop searching by myself , when it takes longer time that impacts the remaining activities. when I see that other activities will be postponed and delayed , I go directly to instructors and colleagues.
3- I would advise my colleagues to explore more similar projects before starting their own project.
Main Challenge:
Power from Arduino pin was not enough to power the bulb
When I connected Bulb directly to the Arduino and activate the pin, the bulb did not operate
I tried to connect the Arduino to the 9v adaptor instead of USB, howvere it did not work as well
Then I googled it and I found that I have to use relay and use different power source than Arduino INPUT/OUTPUT pins.
The solution was :
Connect the +ve of 9 volt to the Vin of Arduino
On bread board connect 5 V wire to Arduino to supply all components with required power.
Connect wire from the GND of Arduino to bread board to generalize all grounds.
Bulb with relay connection:
Relay VCC is connected to the 5 volt on the bread board
Relay GND is connected to the GND on the bread board
Relay IN is connected to Arduino pin 7
Relay NO is connected to bulb terminal
Relay C is connected to the 5 volt on the bread board
Bulb second terminal to GND on bread board
As my project idea is to save life and reduce the impacts of fire disaster , I hope I could have time to add two more features:
Door lock opens to ease evacuation process
Suction fan to operate with the buzzer and bulb to reduce the impacts of the smoke