Professional Documents
Culture Documents
Minorproject Smoke, Gasdetector PDF
Minorproject Smoke, Gasdetector PDF
Minorproject Smoke, Gasdetector PDF
CERTIFICATE OF APPROVAL
have read and recommended for the acceptance of a Minor Project Report
DECLARATION
ACKNOWLEDGEMENT
PREFACE
CONCLUSION 25
REFRENCES 26
APPENDIX 27
Introduction
Automated Smoke Alerting System Using Arduino Uno
Smoke and gas leaks pose significant risks to life and property.
Traditional smoke detectors offer some protection, but they have
limitations. This project aims to address these limitations by
creating an automated system that provides faster, more
comprehensive, and potentially remote alerts.
The system utilizes Sensors like MQ-2 for Smoke and MQ-9 for
Gas. These sensors change their resistance when exposed to
smoke or gas, and the Arduino Uno reads these changes. If the
sensor readings exceed pre-defined thresholds, the system
triggers an alarm (buzzer or LED).
2. Hardware requirement:
Programming:
If the sensor detects smoke, the Arduino triggers the LED
to turn on and activates the buzzer to sound the alarm.
The Arduino code reads sensor values at regular
intervals.
If the sensor readings exceed pre-defined thresholds, the
code triggers the alarm by activating the buzzer and/or
LED.
The program should also include a delay or debounce
logic to avoid false alarms due to temporary smoke or
sensor fluctuations.
The programming complexity depends on the desired
functionality and communication features.
The threshold value (smokeThreshold) may need
adjustment based on environment and the sensitivity of
the MQ-2 sensor. It can be adjusted by monitoring the
values printed in the Serial Monitor and setting a suitable
threshold value.
To create a simple Arduino code for a smoke alerting system
using the MQ-2 sensor, LED, and buzzer, you can follow the
example below. This code assumes that the MQ-2 sensor is
connected to analog pin A0, the LED is connected and the
buzzer is connected. We will use C Programming language for
coding.
void setup()
{
Serial.begin(9600); // Initialize serial communication
pinMode(digitalPin, INPUT); // Set digital pin as input for
digital output of MQ-2 sensor
pinMode(ledPin, OUTPUT); // Set LED pin as output
pinMode(buzzerPin, OUTPUT); // Set buzzer pin as
output
}
void loop()
{
int sensorValue = analogRead(analogPin); // Read analog value
from MQ-2 sensor
int digitalValue = digitalRead(digitalPin); // Read digital value
from MQ-2 sensor
Serial.print("Analog Value: ");
Serial.println(sensorValue);
// If digital value is HIGH (smoke detected), activate LED and
buzzer
if (digitalValue == HIGH)
{
digitalWrite(ledPin, HIGH); // Turn on LED
tone(buzzerPin, 1000); // Activate buzzer
delay(1000); // Buzzer on for 1 second
digitalWrite(ledPin, LOW); // Turn off LED
noTone(buzzerPin); // Turn off buzzer
}
delay(1000); // Adjust the delay based on your specific
requirements
}
Advantages and Disadvantages
Advantages:
Disadvantages:
Books:
Getting Started with Arduino by Massimo Banzi and Mike
Shiloh.
Building Wireless Home Automation Projects by Kimmo
Porttila.
Practical Arduino by Jonathon Firth.
Appendix
CERTIFICATE OF APPROVAL
1&2
DECLARATION
ACKNOWLEDGEMENT 3
PREFACE 4
INTRODUCTION
1. Purpose of the project report
2. Introduction to Embedded Systems 6 - 11
3. Introduction to Arduino Uno
4. Importance of smoke alerting systems
ANALYSIS
1. Working principle
12 - 16
2. Hardware Requirement
3. Software Requirement
4. Cost Estimation
DESIGN
1. Circuit Diagram and Explanation 17 - 22
2. Components used in Circuit
3. Programming of the Circuit
CONCLUSION 25
REFRENCES 26
APPENDICES 27
I will look forward to enhance and update our project.
I would also like thanks all the teachers for the guidance.
SUBMITTED BY :-
1. Mohammad Toufeeq Ansari : (0228EC211012)