. Automatic Fire Detection & Suppression System(Arduino Uno | Embedded + Safety System) ~ SmartElectronicsDIY

Automatic Fire Detection & Suppression System(Arduino Uno | Embedded + Safety System)

Project Overview

This system automatically detects fire using flame & smoke sensors and activates a water pump to suppress it.
At the same time, it triggers an alarm and can send alerts (optional GSM/IoT).




⚙️ Working Principle

  1. Sensors continuously monitor environment

  2. Fire or smoke detected

  3. Arduino processes sensor data

  4. Water pump ON automatically

  5. Buzzer alert ON

  6. Fire suppressed

  7. System resets after safe condition


๐Ÿง  Block Diagram (Text)

Flame Sensor Gas Sensor | | └───────┬─────┘ | Arduino Uno | | | Buzzer Relay LCD | Water Pump

๐Ÿ”ง Components Required

ComponentQuantity
Arduino Uno1
Flame Sensor1
MQ-2 Gas/Smoke Sensor1
Relay Module (5V)1
Water Pump (DC)1
Buzzer1
16x2 LCD (optional)1
Power Supply1
Jumper WiresAs required

๐Ÿ”Œ Pin Connections

Flame Sensor

Flame SensorArduino
DOD2
VCC5V
GNDGND

MQ-2 Gas Sensor

MQ-2Arduino
AOA0
VCC5V
GNDGND

Relay + Pump

ArduinoRelay
D8IN
5VVCC
GNDGND

Pump connects via relay COM & NO

Buzzer

ArduinoBuzzer
D9+
GND-

๐Ÿ” Flowchart

  1. Start

  2. Read flame & smoke sensor

  3. Fire detected?

  4. Yes → Pump ON + Buzzer ON

  5. No → Continue monitoring

  6. Reset after safe condition


๐Ÿงพ Arduino Code (Full Working)

int flamePin = 2; int gasPin = A0; int relayPin = 8; int buzzerPin = 9; int gasThreshold = 400; void setup() { pinMode(flamePin, INPUT); pinMode(relayPin, OUTPUT); pinMode(buzzerPin, OUTPUT); digitalWrite(relayPin, HIGH); // Pump OFF digitalWrite(buzzerPin, LOW); Serial.begin(9600); } void loop() { int flame = digitalRead(flamePin); int gasValue = analogRead(gasPin); Serial.print("Gas: "); Serial.println(gasValue); if (flame == LOW || gasValue > gasThreshold) { digitalWrite(relayPin, LOW); // Pump ON digitalWrite(buzzerPin, HIGH); // Alarm ON } else { digitalWrite(relayPin, HIGH); // Pump OFF digitalWrite(buzzerPin, LOW); // Alarm OFF } delay(500); }




0 comments:

Post a Comment