Fire Alarm System using Arduino [In Few Easy Steps]

Fire Alarm System using Arduino

arduino project

Are you looking to make a simple and interesting project with Arduino which at the same time could be really useful and potentially lifesaving?

If yes, the you have come at the right place to learn something new and innovative. In this post we are going to learn how to make a fire alarm system using Arduino which gives a buzzer sound as well as LED get lights up to warn people of a potential fire in the vicinity. The project works on the principle of detecting infra-red light by a photodiode on the sensor module, an Op-Amp is then used to check for a change in voltage across the IR receiver. At last, PCBA manufacturing is completed through AiPCBA.

Items Required

Solder iron
solder ironing
220K ohm resistor
resistor
Jumper wires
connecting wires
Breadboard
breadboard for connection

How the Fire Alarm System works?

The system works on a simple principle, by detecting the infra-red light by a photodiode on the sensor module it gives logic 1 as output if flame is detected else it gives 0 as output. The Arduino which is continuously monitoring the output of the module performs further takes such as activating the buzzer and LED, sending an alert message.

 Now let’s learn how to put everything together.

Steps to follow:

1. First let’s interface the flame detecting module as shown in the diagram. Make sure to follow the exact circuit diagram and be careful while soldering!

connection 1

2.Now let’s interface the buzzer as well as the LED light as show in the circuit diagram. 

connection 2

3.Upload the Arduino code which is designed for this project. You can find the code at the end of the post (below)

4.Bingo! you are all set to test your fire alarm system !

Video 

Here is a short video which can help you to get it right:


Arduino Code

int buzzer = 8;
int LED = 7;
int flame_sensor = 4;
int flame_detected;

void setup()
{
  Serial.begin(9600);
  pinMode(buzzer, OUTPUT);
  pinMode(LED, OUTPUT);
  pinMode(flame_sensor, INPUT);
}

void loop()
{
  flame_detected = digitalRead(flame_sensor);
  if (flame_detected == 1)
  {
    Serial.println("Flame detected...! take action immediately.");
    digitalWrite(buzzer, HIGH);
    digitalWrite(LED, HIGH);
    delay(200);
    digitalWrite(LED, LOW);
    delay(200);
  }
  else
  {
    Serial.println("No flame detected. stay cool");
    digitalWrite(buzzer, LOW);
    digitalWrite(LED, LOW);
  }
  delay(1000);
}


Read our Other Interesting Electronic Engineering articles here