Fire Detection System Using Tiva C Series and Flame Sensor
Fire Detection System Using Tiva C Series and Flame Sensor
by xilef
Introduction
Serious Risk
Fire accidents pose a serious risk to life and property.
Traditional Systems
Traditional fire alarms rely on smoke or heat sensors, which
may delay detection.
Our Solution
Our project uses a flame sensor to detect fire early by
sensing infrared (IR) radiation from flames.
Alert System
The system activates an alarm (buzzer & LED) and displays a
warning message on the Serial Monitor.
Objectives
Develop a fast, efficient, and low-cost fire detection system.
Alert System
Processing
Activates the buzzer (sound
alert), turns on the LED (visual The Tiva C microcontroller
alert), and displays "🔥 Fire processes the signal.
Detected!" on the Serial Monitor.
Buzzer Connection
Buzzer → PA3
LED Connection
LED → PA4
Power Connection
Power Supply → 5V / 3.3V
Code Overview
Code Explanation:
#define FLAME_SENSOR_PIN 2 // Flame sensor connected to PA2
#define BUZZER_PIN 3 // Buzzer connected to PA3 1. Define pins for flame sensor, buzzer, and LED
#define LED_PIN 4 // LED connected to PA4
2. Initialize serial communication and set pin modes
void loop() {
int flameState = digitalRead(FLAME_SENSOR_PIN);
if (flameState == LOW) {
Serial.println("
🔥 Fire Detected!");
digitalWrite(BUZZER_PIN, HIGH);
digitalWrite(LED_PIN, HIGH);
} else {
Serial.println("
✅ No Fire Detected.");
digitalWrite(BUZZER_PIN, LOW);
digitalWrite(LED_PIN, LOW);
}
delay(500);
}
Applications
Fire Safety Factories & Smart
Systems Warehouses Homes
Early detection Prevents large- Integrated with
for homes, scale fire IoT for remote
offices, outbreaks fire alerts
industries
Automobile
Fire
Detection
Detects vehicle
fires
Conclusion
Successful Development
We successfully developed a low-cost fire detection system using Tiva C & a flame sensor.
Real-time Alerts
The system provides real-time alerts using a buzzer, LED, and Serial Monitor.
Future Enhancements
This project can be enhanced further with IoT, GSM alerts, and automation.
Life-saving Potential
Implementing such systems can reduce fire damage and save lives.