Hackster is hosting Impact Spotlights: Edge AI. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Edge AI. Stream on Thursday!
advit_90sumitbranfigo
Published © GPL3+

Smart fire protection system for buildings

My project is to the alarm the people that there is a fire in the building and a lighted gate that tells the people to exit from that gate

IntermediateFull instructions provided3,167
Smart fire protection system for buildings

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Gas Detection Sensor, Hydrogen
Gas Detection Sensor, Hydrogen
×1
Buzzer, Piezo
Buzzer, Piezo
×1
Breadboard (generic)
Breadboard (generic)
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1
DC Motor, 12 V
DC Motor, 12 V
×2
RGB Diffused Common Cathode
RGB Diffused Common Cathode
×1
Resistor 220 ohm
Resistor 220 ohm
×2
Through Hole Resistor, 10 kohm
Through Hole Resistor, 10 kohm
×1
Jumper wires (generic)
Jumper wires (generic)
×35
LED Strip, NeoPixel Digital RGB
LED Strip, NeoPixel Digital RGB
×1

Software apps and online services

Arduino IDE
Arduino IDE
Tinkercad
Autodesk Tinkercad

Story

Read more

Schematics

Smart Fire Protection System For Skyscrapers

this is a smart fire protection system it helps us in telling where is the fire . This project works like when the fire is on any floor the gas sensor will alert us the buzzer will start to buzz and the bulb will start to glow and the sprinkler motor will be extinguishing the fire and the exhaust motor will be taking out the smoke from the building and also a neopixel LED will be there on the door because there is zero visibility in the smoke so the greenlight will show us the way out this is how it works

This is the image of working project

Code

SMART_FIRE_PROTECTION_SYSTEM.ino

C/C++
This is the code of Smart Fire Protection System
#include <Adafruit_NeoPixel.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);

//Constants 

const int dinPin = 3;

const int numOfLeds = 16;

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(numOfLeds, dinPin, NEO_GRB + NEO_KHZ800);
int Gas_Sensor_Value = 0;
int Gas_sensor = A0;
int Piezo    = 7;
int RGB_red  = 6;
int RGB_green = 5;
int exhaust_motor = 4;
int sprinkler_motor = 2;

void setup() 
{
  pixels.begin();
  pixels.setBrightness(80);
  lcd.begin(16, 2); // set up the LCD's number of columns and rows:
  pinMode(Gas_sensor, INPUT);
  pinMode(Piezo, OUTPUT);
  pinMode( RGB_red, OUTPUT);
  pinMode( RGB_green, OUTPUT);
  pinMode( exhaust_motor,OUTPUT);
  pinMode(sprinkler_motor,OUTPUT);
}
void loop() 
{
   lcd.clear();
   Gas_Sensor_Value = analogRead(A0);

   if( Gas_Sensor_Value >= 700)
   {
  for(int i=0;i<numOfLeds;i++){
  pixels.setPixelColor(i, pixels.Color(0,255,0));
  pixels.show();
  }
    digitalWrite(sprinkler_motor, HIGH);
    digitalWrite(Piezo, HIGH);
    digitalWrite(exhaust_motor, HIGH);
    digitalWrite(RGB_red, HIGH);
    digitalWrite(RGB_green, LOW);
    lcd.print("Burj Khalifa is"); // Print a message to the LCD.
    lcd.setCursor(0,1); 
   lcd.print("on fire!");
     delay(1000);
   }
  else
  {
   digitalWrite( exhaust_motor, LOW);
   digitalWrite(sprinkler_motor, LOW);
   digitalWrite(Piezo,    LOW);
   digitalWrite(RGB_red,  LOW);
   digitalWrite(RGB_green, HIGH);
   lcd.print("Burj Khalifa"); // Print a message to the LCD.
   lcd.setCursor(0,1); 
   lcd.print("is Safe"); 
    delay(1000);
  }
  }

Credits

advit_90
1 project • 4 followers
Contact
sumitbranfigo
7 projects • 6 followers
Contact

Comments

Please log in or sign up to comment.