Arduino Fire Alarm Circuit Diagram
The design and implementation of a fire alarm system is a crucial aspect of ensuring safety and security in various settings such as residential buildings, offices, and public spaces. Traditionally, fire alarm systems have relied on complex, expensive hardware and intricate wiring. However, with the advent of Arduino, a user-friendly, open-source electronic prototyping platform, creating fire alarm systems has become more accessible and affordable.
Arduino, powered by easy-to-use software, allows hobbyists and professionals alike to design and build electronic devices with minimal programming knowledge. This article will guide you through the process of understanding and creating a simple yet effective fire alarm system using an Arduino circuit diagram.
Components Required for a Basic Fire Alarm System
Building a fire alarm system involves several components, including:
- An Arduino board
- Temperature sensors (e.g., LM35 or DS18B20)
- Smoke sensor (e.g., MQ-2)
- Buzzer or alarm
- Breadboard and jumper wires
- Power supply
Temperature Sensor Integration
Temperature sensors like the LM35 or DS18B20 measure the ambient temperature. A sudden increase in temperature can signify a possible fire. Here's how to connect a temperature sensor to your Arduino:
| Component | Arduino Pin |
|---|---|
| Temperature Sensor's VCC | 5V |
| Temperature Sensor's GND | GND |
| Temperature Sensor's Output | A0 (Analog 0) |
Example Arduino code:
const int tempSensorPin = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int tempValue = analogRead(tempSensorPin);
float tempCelsius = (tempValue * (5.0 / 1023.0)) - 0.5;
Serial.print("Temperature in Celsius: ");
Serial.println(tempCelsius);
if (tempCelsius > 50.0) {
Serial.println("High Temperature detected!");
}
delay(1000);
}
Smoke Sensor Integration
Smoke sensors like the MQ-2 detect the presence of smoke particles in the air. When smoke is detected, the sensor's resistance drops, and the voltage at its output changes. Here's how to connect a smoke sensor to your Arduino:
| Component | Arduino Pin |
|---|---|
| Smoke Sensor's VCC | 5V |
| Smoke Sensor's GND | GND |
| Smoke Sensor's Output (DO) | Digital 2 |
Example Arduino code:
const int smokeSensorPin = 2;
const int alarmPin = 12;
void setup() {
pinMode(smokeSensorPin, INPUT);
pinMode(alarmPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
int smokeValue = digitalRead(smokeSensorPin);
if (smokeValue == LOW) {
Serial.println("Smoke detected!");
tone(alarmPin, 1000, 200);
}
delay(1000);
}
Combining Temperature and Smoke Sensors
To create a comprehensive fire alarm system, combine both temperature and smoke sensors. When either or both conditions are met, trigger the alarm:
Example Arduino code:
const int tempSensorPin = A0;
const int smokeSensorPin = 2;
const int alarmPin = 12;
void setup() {
pinMode(smokeSensorPin, INPUT);
pinMode(alarmPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
int smokeValue = digitalRead(smokeSensorPin);
int tempValue = analogRead(tempSensorPin);
float tempCelsius = (tempValue * (5.0 / 1023.0)) - 0.5;
if (smokeValue == LOW || tempCelsius > 50.0) {
Serial.println("Fire detected!");
tone(alarmPin, 1000, 200);
}
delay(1000);
}
With this Arduino circuit diagram and code, you've created a basic yet effective fire alarm system. You can further enhance this project by adding features like real-time monitoring, remote notifications, or integrating it with a home automation system. Always test your fire alarm system and keep it well-maintained to ensure your safety and peace of mind.