Skip to content

ramuroy/Fire-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ Fire Detection System using Arduino

This project is a Fire Detection System built using an Arduino Uno, an MQ-2 smoke sensor, an LED, and a buzzer. It detects smoke levels and provides a local visual and audible alert, making it useful for fire safety and early-warning applications.


πŸ› οΈ Components Used

  • πŸ”Ή Arduino Uno – Processes sensor data and controls outputs.
  • πŸ”Ή MQ-2 Smoke Sensor – Detects smoke and combustible gases.
  • πŸ”Ή LED (+ ~220–330 Ξ© resistor) – Visual alert when smoke is detected.
  • πŸ”Ή Buzzer – Audible alert for fire warnings.

πŸ”Œ Wiring

Arduino Pin Connects to
A0 MQ-2 analog out (AO) (sensor VCC β†’ 5V, GND β†’ GND)
D7 LED + via a ~220–330 Ξ© resistor (LED βˆ’ β†’ GND)
D8 Buzzer + (buzzer βˆ’ β†’ GND)

⚠️ MQ-2 sensors need their heater to warm up before readings are reliable. The sketch ignores the sensor for the first ~20 s after power-on (WARMUP_MS) to avoid boot-time false alarms, and uses a hysteresis band around the trip point so the alarm latches instead of chattering. The threshold (ALARM_ON/ALARM_OFF) is uncalibrated β€” tune it per sensor and environment.


βš™οΈ How It Works

1️⃣ After a short warm-up, the MQ-2 sensor continuously monitors the air.
2️⃣ If smoke concentration exceeds the trip point, the Arduino activates the LED and buzzer.
3️⃣ The alarm clears once the smoke level falls back below the lower threshold.


πŸ“ Features

βœ… Detects smoke and combustible gases using an MQ-2 sensor
βœ… Local visual (LED) + audible (buzzer) alert
βœ… Sensor warm-up gate avoids false alarms at power-on
βœ… Hysteresis prevents alarm chatter near the threshold


🌍 Applications

πŸ”Ή Fire Alarm System – Early warning for fire hazards.
πŸ”Ή Gas Leak Detection – Detects combustible gases in homes and workshops.
πŸ”Ή Kitchen Safety – Alerts users of excess smoke while cooking.
πŸ”Ή Workshop / Garage Monitoring – A simple standalone smoke alert.

ℹ️ This is a standalone local alert (LED + buzzer) with no networking. Remote/IoT monitoring or home-automation integration would be a future extension, not part of this build.

About

An Arduino-powered Fire Detection System that senses smoke and triggers an LED and buzzer alert. Ideal for early fire warnings and safety automation! πŸ”₯🚨

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages