How to make a Fire protection system with Arduino

How to make a Fire protection system with Arduino

Hello and welcome back. In this project, we will learn how to make a Fire protection system with Arduino. This project is mainly based on the flame sensor and Arduino Nano board. Therefore, we can do this project at a low cost and easily. Also, this is a sprinkler system. That is releases water when a fire is detected. I have used a mini water pump for that.

This project includes only a basic structure. I have designed this project in such a way that when a fire is near, the buzzer will activate and spray water. But you can develop it as you like. This system can be used for our home, office, and different types of fire hazard places.

OK, let’s do this project step by step. The required components are given below.

Disclosure: These Amazon links are Affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Step 1

Firstly, identify these components.

Step 2

Secondly, cut the Rigifoam pieces using the following sizes.

Step 3

Thirdly, glue the pieces together using the pictures below.

Step 4

Next, place the Arduino Nano board and buzzer on the breadboard. And then, connect the buzzer and relay module to the Arduino Nano board. For that, use the circuit diagram below.

How to make a Fire protection system with Arduino

Step 5

Then, install the flame sensor on the top of the structure. For that, follow the picture below.

Step 6

Next, install the breadboard and relay module to the back side of this Rigiform board.

Step 7

And then, connect the flame sensor to the Arduino Nano board.

Step 8

Now, let’s connect the drinking straw to the end of the mini water pipe. And then, close the drinking straw hole.

  • Next, drill some holes on the drinking straw. Then, glue the water pipe near the sensor. For that, use the pictures below.

Step 9

And then, connect the mini water pump to the relay module. For that, use the circuit diagram above.

Step 10

Now, connect the Arduino Nano board to the computer.

Step 11

And then, upload the program to the Arduino Nano board. For that, follow the instructions below.

/*Fire protection system with Arduino */

#define flame 2
#define relay 3
#define buzzer 4

void setup() {
  Serial.begin(9600);
  pinMode(flame, INPUT);
  pinMode(relay, OUTPUT);
  pinMode(buzzer, OUTPUT);

  digitalWrite(relay, HIGH);
}
void loop() {
  bool Svalue = digitalRead(flame);

  if (Svalue == 0) {
    digitalWrite(relay, LOW);
    digitalWrite(buzzer, HIGH);
    delay(300);
    digitalWrite(buzzer, LOW);
    delay(300);
    digitalWrite(buzzer, HIGH);
    delay(300);
    digitalWrite(buzzer, LOW);
    delay(300);
    digitalWrite(buzzer, HIGH);
    delay(300);
    digitalWrite(buzzer, LOW);
  } else {
    digitalWrite(relay, HIGH);
  }

}
  • Now, select the board and port. After that, click the upload button.

Step 12

Now, remove the USB cable and provide an external 5v power supply to the circuit.

Step 13

Finally, put some water in the water bowl and put the water pump in the water.

  • Now, light a fire near the fire sensor. (I used a matchbox) Then we can see the process of this project.

Ok, enjoy this project. The full video guide is below. So, see you in the next project or tutorial.

How to make a Fire protection system with Arduino

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *