Report On Smoke Detector
Report On Smoke Detector
Report On Smoke Detector
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND COMPUTER ENGINEERING
Submitted by
January 2024
Rukmini Knowledge Park, Kattigenahalli, Yelahanka, Bengaluru-560064
www.reva.edu.in
1
DECLARATION
We are submitting this Report in partial fulfillment of the requirements for the completion of
Course in IOT and Applications in I-Semester of Bachelor of Technology in Electronics and
Computer Engineering by the REVA University, Bengaluru during the academic year 2023-
2024.
January 2024
Certified that this work submitted by Mr.Roshan zameer , Nihitha P Mood,Gagana.K has been
carried out under our guidance and the declaration made by the candidates is true to the best of
our knowledge.
1.
2.
2
3
Contents
SL LIST OF CONTENTS PG NO
NO
1 INTRODUCTION 4
2.4 BUZZER
3.3 IMPLEMENTATION
4 CONCLUSION 25
5 APPLICATION 25
6 FUTURE SCOPE 25
4
1
INTRODUCTION
5
2.THEORY BEHIND THE PROJECT
Smoke detection circuit used hereinvolves the following components
whichplays vital importance in building thecircuit and the components
are :
1. Smoke sensor module (MQ 2)
2. Arduino UNO R3 module
3. LCD Display
4. Buzzer
5. Resistors
6. Bread board
7. Patch chords
6
2.1
7
Typical image of the MQ2 smoke sensor in side view, top
view and bottom view as shown below:
8
Specifications:
Pin configuration
9
The MQ2 smoke sensor which we are using in the project
1. VCC
2. D0 pin
3. A0 pin
4. GND
The four pins are used to fetch the signals which can be analog or digital in nature.
We connect Vcc to 5V DC and GND to ground. Using high quality dual- panel
design, with a power indicator and TTL signal output instruction; with theD0
switch signal (TTL) output, and A0 analog signal output; TTL output valid signal
is low level.
The voltage that the sensor outputs change according to the density of the smoke
level that exist in the atmosphere but in this we are creating the smoke externally
by burning the matchstick or in any other ways. The sensor outputs a voltage that
is proportional to the concentration of the smoke.
10
Schematic Diagram:
Working:
11
2.2 Arduino-UNO R3
Architecture of Arduino-UNO R3 :
There are many varieties of Arduino boards that can be used for different purposes.
The Arduino UNO components are:
12
Power -USB / Barrel Jack
Our Arduino board needs a way to be connected to a power source. The Arduino
UNO can be powered from a USB cable coming from your computer or a wall
power supply that is terminated in a barrel jack. In the picture above the USB
connection is labeled and the barrel jack is labeled . The USB connection is also
how you will load code onto your Arduino board.
The pins of Arduino are the places where connect wires to construct a circuit. The
Arduino has several different kinds of pins, each of which is labeled on the board
and used for different functions.
1. 5V : The 5V pin supplies 5 volts of power. Most of the simple components used
3.GND: Full name is Ground. There are several GND pins on the Arduino, any of
which can be used to ground circuit.
13
4. Analog: The area of pins under the ‘Analog In’
label (A0 through A5 on the UNO) is Analog In pins. These pins can read the
signal from an analog sensor and convert it into a digital value that we can read.
5.Digital: Across from the analog pins are the digital pins (0 through 13 on the
UNO). These pins can be used for both digital input and digital output (like
powering an LED).
6.PWM: The digital pins (3, 5, 6, 9, 10, and 11) on the UNO are the PWM (~)
pins. These pins act as normal digital pins, but can also be used for something
called Pulse-Width Modulation (PWM).
First download and install the Arduino for Mac, Linux or Windows from
arduino.cc. Windows users also need to install a driver. Connect your board via
USB, launch the Arduino application and select Arduino-Uno from the tools to
board menu. Open the sketch File
Every microcontroller needs software to be programmed. The Arduino board is not a case apart.
It has its own integrated development environment (IDE). It is free and everyone can download it
from its official website using either the Windows, Mac OS X or Linux platform. That allows
Arduino Board to gain more users and it also helps it to grow
IDE Parts
14
1. Compile: Before program “code” can be sent to the board, it needs to be
converted into instructions that the board understands. This process is called
Compiling.
3.Create new Sketch: This opens a new window to create news ketch.
4.Open Existing Sketch: This loads a sketch from a file on our computer.
6.Upload to Board: This compiles and then transmits over the USB cable to our
board.
7.Serial Monitor: Until this point when our programs (sketches) didn’t work, we
just pulled out our hair and tried harder
8.Tab Button: This lets you create multiple files in your sketch. This is for more
advanced programming than we will do in this class.
10.Text Console: This shows you what the IDE is currently doing and is also
where error messages display if make a mistake in typing program.
11.Line Number: This shows what line number your cursor is on.
2.3
15
Liquid Crystal Display (LCD)
LCD (Liquid Crystal Display) screen is an electronic display module and find a
wide range of applications. A 16x2 LCD display is very basic module and is very
commonly used in various devices and circuits. These modules are preferred over
seven segments and other multi segment LEDs. The reasons being: LCDs are
economical; easily programmable; have no limitation of displaying special & even
custom characters (unlike in seven segments), animations and so on. A 16x2 LCD
means it can display 16 characters per line and there are 2 such lines. In this LCD
each character is displayed in 5x7 pixel matrix. This LCD has two registers,
namely, Command and Data. The command register stores the command
instructions given to the LCD. A command is an instruction given to LCD to do a
predefined task like initializing it, clearing its screen, setting the cursor position,
controlling display etc. The data register stores the data to be displayed on the
LCD. The data is the ASCII value of the character to be displayed on the LCD
CIRCUIT DESIGN:
We use 16 x 2 LCD for making expert for this project. When we developed this we
learn the basic properties of Arduino board. Here we learned that A Read/ Write
16
(R/W) pin that selects reading mode or writing mode. The Enable pin that enables
writing to the register . The 8 data pins(D0 -D7). The states of these pins (high or
low) are the bits that we writing to a register. There's also a display contrast pin
(Vo), power supply pins (+5V and Ground) and LED Backlight (Bklt+ and BKlt-)
pins that web use to power the LCD, control the display contrast, and turn on and
off the LED backlight, respectively.
2.4 Buzzer
Here buzzer is used for alarming purpose whenever the smoke detecting circuit
detects the smoke then the buzzer will start buzzing here the buzzer used is
piezoelectric buzzer. A piezo electric element may be driven by oscillating
electronic circuit or other audio signal source, driven with a piezoelectric audio
amplifier. Sounds commonly used to indicate that a button has been pressed are a
click, a ring or a beep.
Here the resistors are used for blocking the high current. In this project we have
four resistors connected in parallel. Three 220 ohm and one470 ohm resistors have
been used in this project. Connecting wires are also used to build the whole circuit.
17
3. Circuit diagram & explanation
The whole system design is divided into two parts to design a smart
home appliance control system .One is the design the smart system in
the breadboard and controls the designed system. Another part is the
display part design to send sms. Finally, the smoke detector system is
formed a complete integrated system. In this project Arduino is more
efficient .
18
3.2 Implemented circuit :
3.3 Implementation :
Initial steps in implementing the smoke detector starts with interfacing
all the external components with the microcontroller Arduino UNO R3
and the components involved in inter facing are
1. Smoke sensor
2. Liquid crystals display (LSD)
19
3.4 Interfacing of MQ2 with Arduino:
This has only 4 pins to interface with the Arduino i:e VCC ,GND, A0 and D0
3.A0 is the analog output of MQ2 is connected to any analog pins (A0-A7) of
arduino.
4.D0 is the digital output is kept open since we are not using digital output for the
implementation of this project
20
3.5 Interfacing the LCD display with the Arduino
UNO R3 :
21
22
After interfacing all the components externally to the arduino , then
connect the smoke sensor to the breadboard and the resistors are also
connected in parallel so that it will block the flow of high current into
the externals components. And we also connect2 LED to breadboard to
indicate presence or absence of the smoke/gas. Now when mq2detects
smoke according to the written code . The configured LED will start
blinking. We also connect a buzzer as a alarm circuit to breadboard so
that it will start buzzing whenmq2 detects smoke. After implementing
the circuit as steps mentioned above then we will connect arduino to the
computer via power jack then we will check whether arduino is working
properly. Now code is written using arduino IDE software and then code
is compiled for errors and code is dumped on aurduino.
void setup() {
23
lcd.setCursor(0,1);
void loop() {
if(digitalRead(SensorPin) == HIGH)
digitalWrite(LEDPin,HIGH);
digitalWrite(BuzzerPin,HIGH);
lcd.setCursor(0,3);
delay(70);
lcd.setCursor(0,3);
delay(70);
lcd.setCursor(0,3);
delay(70);
lcd.setCursor(0,3);
delay(70);
else{
digitalWrite(LEDPin,LOW);
digitalWrite(BuzzerPin,LOW);
24
// Prints Message on the LCD
lcd.setCursor(0,3);
According to the code given WE have configured The threshold value For smoke
is 200 and here Green LED is configured to detect no smoke and RED LED is
configured to detect smoke After dumping the code to the Arduino UNO R3 we
have two conditions
2.Smoke detected
In this case there will be no smoke near smoke sensor so analog output value will
less than the given threshold value so as configured in code GREEN LED will be
glowing and BUZZER will be silent mode.
25
4. Conclusion:
The Smoke detector alarm system using Arduino UNO R3 has been designed and
developed. We use 5V from Arduino board. Finally, we have designed and
developed and tested using Smoke detector. We fix all the problems encountered
during the design and testing of the system. Finally, we successfully achieved in
getting the correct output. So, our Smoke detector alarm system using Arduino
UNO R3 is suitable.
5. Application
Smoke detectors found the general use as they give the highest level of protection.
They must be used in escape routes to provide sufficient early warning to allow the
evacuation of occupants. In this project we made use of ionization smoke detecting
sensor which finds following applications as given below:
1.High sensitivity to fast burning, flaming fires that produce small smoke particles
2.Widely used for applications such as printing workshop, paper mills and paint
stores
3.Good for general purpose
26