in

Smoke detection Fire alarm

Arduino fire alarm

Welcome to the Quanta Project. in this project, we will make a fire alarm with smoke detection. there are many beginner projects can be made on the Arduino but these are usable and quite simple.  also, you need less material to make these kinds of projects. there are many fire alarm available in the market but this time you can make your own. Smoke and the temperature rise noted in from the alarm. it can be deployed in the UPS room, inverter room computer lap and many other places where we always care to the smoke and the temperature rise. so the project can tell us the present situation in the room.

A fire alarm consists of a smoke sensor and a temperature sensor. we will get the reading first from this sensor and according to the desired situation, we make the program to make the fire alarm working according to the condition. there is a display also which can show the temperature and the smoke level.

Arduino alarm framework is a significant framework for mechanical purposes just as for family unit purposes. At whatever point it recognizes fire or smoke then it in split second caution the client about the fire through the Bluetooth module. For this reason, we are utilizing Arduino Uno which is from the Arduino family. Additionally, the Arduino interfacing with an LCD show is done to show the status of the framework whether the Smoke and Overheat are identified or not. What’s more, Arduino interfacing with the Bluetooth module is done so the client gets an alarm message. It hints the client about fire identification. This framework is extremely helpful at whatever point the client isn’t in the house or industry or inside the premises. At whatever point a fire happens, the framework naturally faculties and alarms the client by sending a caution to an application introduced on a client’s Android portable.

Components required;-

  • Arduino Uno
  • Smoke Sensor MQ-2
  • 16X2 LCD display
  • The general-purpose dot PCB board
  • Wires

Circuit Diagram

Code for fire alarm

#include “DHT.h”#define DHTPIN 3    #define DHTTYPE DHT11  DHT dht(DHTPIN, DHTTYPE);

#include <LiquidCrystal.h>const int rs = 7, en =6, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {

Serial.begin(9600);

Serial.println(F(“DHTxx test!”));

lcd.begin(16, 2);

dht.begin();

pinMode(A0, INPUT);

pinMode(8, OUTPUT);

pinMode(10, OUTPUT);

pinMode(12, OUTPUT);}void loop() {   int h = dht.readHumidity();   int t = dht.readTemperature();    int m= analogRead(A0);   Serial.println(m);

Serial.print(F(“Humidity: “));

Serial.print(h);   if(m>=170){  digitalWrite(8, HIGH);

digitalWrite(10, HIGH);

digitalWrite(12, LOW);

lcd.setCursor(0,0);

lcd.print(“FIRE ALERT!”);

lcd.setCursor(0,1);

lcd.print(“HUM=”);  lcd.print(h);

Serial.print(F(“%  Temperature: “));

Serial.print(t);

Serial.println(F(“°C “));

lcd.print(” “);

lcd.print(“TEMP=”);

lcd.print(t);

}

else

{ lcd.clear();

 

digitalWrite(8, LOW);

digitalWrite(10, LOW);

digitalWrite(12, HIGH);

lcd.setCursor(0,1);

lcd.print(“HUM=”);

lcd.print(h);

lcd.print(” “);

lcd.print(“TEMP=”);

lcd.print(t);

Serial.print(F(“%  Temperature: “));

Serial.print(t);

Serial.println(F(“°C “));

 

}   //lcd.print(“°C “);

//lcd.print(f);

//lcd.print(“F”);

}

Upload the given code into the Arduino by IDE software

What do you think?

0 points
Upvote Downvote

Written by shahid

Leave a Reply

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

Arduino Clock with LCD and RTC module

Laser Door Security Alarm DIY