Introduction
A fire alarm system is a critical safety measure that can help detect and alert individuals to the presence of fire in a building. In this project, we will be using a flame sensor and a buzzer to create a simple fire alarm system that can be used at home or in other small spaces. When the flame sensor detects the presence of a fire, the buzzer will sound an alarm, alerting individuals to the danger.
Hardware Required
Components | # | Buy From Amazon |
---|---|---|
Arduino UNO | 1 | Buy Now |
Flame sensor Module | 1 | Buy Now |
LED 5mm | 1 | Buy Now |
Resistor 220Ω | 1 | Buy Now |
Buzzer | 1 | Buy Now |
Jumper Wires | Few | Buy Now |
Breadboard | 1 | Buy Now |
Circuit Diagram
Working Explanations
The flame sensor module detects the presence of a flame and sends a signal to the Arduino. The Arduino then sends a signal to the buzzer to sound an alarm and the red LED to light up, alerting individuals to the presence of a fire. The resistor 220Ω is used to protect the LED and buzzer from excess current.
Installing Arduino IDE Software
First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow
Code
//For more Projects: www.arduinocircuit.com
int max=20;
void setup() {
pinMode(3,OUTPUT);
pinMode(9,OUTPUT);
digitalWrite(7,LOW);
}
void loop() {
if(analogRead(A0)>=max){
alarm();
flash();
digitalWrite(9,HIGH);
}
else{
digitalWrite(9,LOW);
}
}
void alarm(){
tone(4,400,500);
delay(500);
tone(4,650,500);
delay(500);
}
void flash(){
digitalWrite(3,HIGH);
delay(50);
digitalWrite(3,LOW);
}
Applications
- Home safety: This fire alarm system can be used in homes to provide an early warning in the event of a fire.
- Office safety: This system can be installed in small office spaces to provide an additional layer of safety for employees.
- Laboratory safety: Laboratories dealing with flammable materials can use this fire alarm system to provide safety for lab personnel.
- Restaurant safety: Restaurants can use this system to provide safety for employees and customers in the event of a kitchen fire.
- Garage safety: This system can be installed in garages to provide an early warning of fires caused by flammable liquids and materials.
Conclusion
This simple fire alarm system using a flame sensor and buzzer is an effective safety measure that can be easily implemented in small spaces. and It is important to note that this system should not be relied upon as the sole means of fire detection and prevention, and individuals should take all necessary precautions to prevent fires from occurring in the first place.