Download as pdf or txt
Download as pdf or txt
You are on page 1of 29

7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub

Digital
Sign In (https://www.hackster.io/users/auth/arduino?
Store
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%2Ffire-
(https://store.arduino.cc/digital/)
gas-and-smoke-detector-8241dc)

Arduino Web Editor


(https://create.arduino.cc/editor)

Arduino IoT Cloud


(https://create.arduino.cc/iot)
(https://www.hackster.io/users/auth/arduino?
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
gas-and-smoke-detector-8241dc)
Getting Started
(https://create.arduino.cc/getting-started)
NOW CHROME
OS READY!

ARDUINO CREATE IS Arduino Project Hub


N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
CHROME OS!

(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
DOWNLOAD THE APP

Fire, Gas and Smoke Detector © GPL3+


Device Manager
(http://opensource.org/licenses/GPL-3.0)
(https://create.arduino.cc/devices)
This project can detect gas leaks, fire and smoke and when powered by a nine
volt adapter can act as a gas leak detector for kitchens.

environmental sensing (/projecthub/projects/tags/environmental+sensing)

home automation (/projecthub/projects/tags/home+automation)

Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 1/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
monitoring (/projecthub/projects/tags/monitoring)
Store
5,801(https://store.arduino.cc/digital/)
VIEWS 9 COMMENTS 9 RESPECTS

Arduino Web Editor


(https://create.arduino.cc/editor)
COMPONENTS AND SUPPLIES 

Arduino Mega 2560 Arduino& IoT Cloud


Genuino Mega 2560
(https://create.arduino.cc/iot)
× 1 
(/projecthub/products/buy/1
(https://www.hackster.io/users/auth/arduino?
( (/proj (/projecthub/produc
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
45?
gas-and-smoke-detector-8241dc)
s=BAhJIhMyOTc1OTEsUHJvam Getting Started / ecthu ts/buy/145?
(/projecthub/pro p b/pro s=BAhJIhMyOTc1OTE
VjdAY6BkVG%0A)
(https://create.arduino.cc/getting-started)
r ducts sUHJvamVjdAY6BkV
NOW CHROME
ducts/buy/145?
o /buy/ G%0A)
OS READY!
s=BAhJIhMyOTc1
OTEsUHJvamVjdA j 145?
Y6BkVG%0A) e s=BA
c hJIhM
t yOTc1
h OTEs
u UHJva
ARDUINO CREATE IS
Arduino Project Hub
b mVjd
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
CHROME OS! / AY6B
p kVG%
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- r 0A)
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) o
DOWNLOAD THE APP d
u
c
t
Device Manager
s
(https://create.arduino.cc/devices) /
b
u
y
/
1
4
5
Digital ?
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 2/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
? Digital
s Store
(https://store.arduino.cc/digital/) =
B
A
Arduino Web Editor h
(https://create.arduino.cc/editor) JI
h
M
y
Arduino IoT CloudO
(https://create.arduino.cc/iot) T
(https://www.hackster.io/users/auth/arduino?c
1
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
Getting Started O
gas-and-smoke-detector-8241dc)
T
(https://create.arduino.cc/getting-started)
NOW CHROME E
OS READY! s
U
H
J
v
a
Arduino Project Hubm
ARDUINO CREATE IS
V
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
CHROME OS! j
d
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
A
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
Y
DOWNLOAD THE APP
6
B
k
V
Device Manager
G
(https://create.arduino.cc/devices) %
0
A
)

×
(
Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 3/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
Store
/
MQ2 gas and smoke sensor p
(/projecthub/products/buy/6
(https://store.arduino.cc/digital/)
r 1 
4087? o (/proj (/projecthub/produc
s=BAhJIhMyOTc1OTEsUHJvam j
VjdAY6BkVG%0A)Arduino Web Editor ecthu ts/buy/64087?
e b/pro s=BAhJIhMyOTc1OTE
(https://create.arduino.cc/editor) c ducts sUHJvamVjdAY6BkV
t /buy/ G%0A)
h 6408
u 7?
Arduino IoT Cloud
b s=BA
(https://create.arduino.cc/iot) / hJIhM
(https://www.hackster.io/users/auth/arduino?p yOTc1
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
r OTEs
gas-and-smoke-detector-8241dc)
Getting Started o
UHJva
(https://create.arduino.cc/getting-started) d mVjd
NOW CHROME u AY6B
OS READY! c kVG%
t 0A)
s
/
b
u
ARDUINO CREATE IS Arduino Project Huby
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON /
CHROME OS! 6
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- 4
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) 0
DOWNLOAD THE APP 8
7
?
s
Device Manager =
(https://create.arduino.cc/devices) B
A
h
JI
h
M
y
O
Digital T
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 4/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
c Store
1
(https://store.arduino.cc/digital/)
O
T
Arduino Web Editor
E
s
(https://create.arduino.cc/editor)
U
H
J
Arduino IoT Cloud
v
a
(https://create.arduino.cc/iot)
m
(https://www.hackster.io/users/auth/arduino?
V
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
j
gas-and-smoke-detector-8241dc)
Getting Started
d
(https://create.arduino.cc/getting-started) A
NOW CHROME Y
OS READY! 6
B
k
V
G
%
ARDUINO CREATE IS Arduino Project Hub
0
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON A
CHROME OS!
)
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
Flame Sensor
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
(/projecthub/products/buy/6
DOWNLOAD THE A PP
× 
4086?
( (/projecthub/produc
s=BAhJIhMyOTc1OTEsUHJvam
/ ts/buy/64086?
VjdAY6BkVG%0A)
p s=BAhJIhMyOTc1OTE
Device Manager
r sUHJvamVjdAY6BkV
(https://create.arduino.cc/devices) o G%0A)
j
e
c
t
h
u
b
Digital /
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 5/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
/ Digital
p Store
(https://store.arduino.cc/digital/) r
o 1
d (/proj
Arduino Web Editor u ecthu
(https://create.arduino.cc/editor) c b/pro
t ducts
s /buy/
/ 6408
Arduino IoT Cloudb 6?

(https://create.arduino.cc/iot) u s=BA
(https://www.hackster.io/users/auth/arduino?y hJIhM
/ yOTc1
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
OTEs
Getting Started 6
gas-and-smoke-detector-8241dc)
(https://create.arduino.cc/getting-started)
4 UHJva
NOW CHROME 0 mVjd
OS READY! 8 AY6B
6 kVG%
? 0A)
s
=
B
Arduino Project HubA
ARDUINO CREATE IS
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
h
CHROME OS! JI
h
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
M
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
y
DOWNLOAD THE APP
O
T
c
1
Device Manager
O
(https://create.arduino.cc/devices) T
E
s
U
H
J
v
a
Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 6/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
m
Store
V
(https://store.arduino.cc/digital/) j
d
A
Arduino Web EditorY
(https://create.arduino.cc/editor) 6
B
k
V
Arduino IoT CloudG
(https://create.arduino.cc/iot) %
0
(https://www.hackster.io/users/auth/arduino?
A
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
gas-and-smoke-detector-8241dc)
Getting Started )
(https://create.arduino.cc/getting-started)
NOW CHROME5 mm LED: Red
OS READY! (/projecthub/products/buy/5 × 1 
6525?
( (/proj (/projecthub/produc
s=BAhJIhMyOTc1OTEsUHJvam
/ ecthu ts/buy/56525?
VjdAY6BkVG%0A)
(/projecthub/pro p b/pro s=BAhJIhMyOTc1OTE
ducts/buy/56525 r ducts sUHJvamVjdAY6BkV
o /buy/ G%0A)
?
A RDUINO CREATE IS Arduino Project Hub
j 5652
s=BAhJIhMyOTc1
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON e 5?
OTEsUHJvamVjdA
CHROME OS!
Y6BkVG%0A) c s=BA
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- t hJIhM
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) h yOTc1
DOWNLOAD THE APP u OTEs
b UHJva
/ mVjd
p AY6B
Device Manager r kVG%
(https://create.arduino.cc/devices) o 0A)
d
u
c
t
s
/
b
Digital u
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 7/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
y Store
/
(https://store.arduino.cc/digital/)
5
6
Arduino Web Editor5
2
(https://create.arduino.cc/editor)
5
?
s
Arduino IoT Cloud=
B
(https://create.arduino.cc/iot)
A
(https://www.hackster.io/users/auth/arduino?
h
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
JI
gas-and-smoke-detector-8241dc)
Getting Started
h
(https://create.arduino.cc/getting-started) M
NOW CHROME y
OS READY! O
T
c
1
O
T
ARDUINO CREATE IS
Arduino Project Hub
E
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON s
CHROME OS!
U
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- H
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) J
DOWNLOAD THE APP v
a
m
V
Device Manager j
(https://create.arduino.cc/devices) d
A
Y
6
B
k
V
G
Digital %
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 8/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital %
Store 0
(https://store.arduino.cc/digital/) A
)

5 mm LED: Green
Arduino Web Editor
(/projecthub/products/buy/5
(https://create.arduino.cc/editor) × 1 
6524?
( (/proj (/projecthub/produc
s=BAhJIhMyOTc1OTEsUHJvam
/ ecthu ts/buy/56524?
VjdAY6BkVG%0A)
(/projecthub/pro p b/pro s=BAhJIhMyOTc1OTE
Arduino IoT Cloudr ducts sUHJvamVjdAY6BkV
ducts/buy/56524
(https://create.arduino.cc/iot) o /buy/ G%0A)
?
(https://www.hackster.io/users/auth/arduino?j 5652
s=BAhJIhMyOTc1
e 4?
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
OTEsUHJvamVjdA
Getting Started c
gas-and-smoke-detector-8241dc)
Y6BkVG%0A) s=BA
(https://create.arduino.cc/getting-started) t hJIhM
NOW CHROME h yOTc1
OS READY! u OTEs
b UHJva
/ mVjd
p AY6B
r kVG%
o 0A)
d
Arduino Project Hub
ARDUINO CREATE IS
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
u
CHROME OS! c
t
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
s
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
/
DOWNLOAD THE APP
b
u
y
/
Device Manager
5
(https://create.arduino.cc/devices) 6
5
2
4
?
s
=
B
Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 9/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
A
Store
h
(https://store.arduino.cc/digital/) JI
h
M
Arduino Web Editory
(https://create.arduino.cc/editor) O
T
c
1
Arduino IoT CloudO
(https://create.arduino.cc/iot) T
(https://www.hackster.io/users/auth/arduino?E
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
s
gas-and-smoke-detector-8241dc)
Getting Started U
(https://create.arduino.cc/getting-started) H
NOW CHROME J
OS READY! v
a
m
V
j
d
Arduino Project HubA
ARDUINO CREATE IS
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON Y
CHROME OS! 6
B
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) k
DOWNLOAD THE APP
V
G
%
0
Device Manager A
)
(https://create.arduino.cc/devices)
Buzzer, Piezo
(/projecthub/products/buy/4
×
4792?
(
s=BAhJIhMyOTc1OTEsUHJvam
/
VjdAY6BkVG%0A)
p
r
Digital o
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 10/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
j Store
e
(https://store.arduino.cc/digital/)
c 1 
t (/proj (/projecthub/produc
Arduino Web Editor h ecthu ts/buy/44792?
u b/pro s=BAhJIhMyOTc1OTE
(/projecthub/pro
(https://create.arduino.cc/editor)
b ducts sUHJvamVjdAY6BkV
ducts/buy/44792
/ /buy/ G%0A)
?
p 4479
s=BAhJIhMyOTc1
OTEsUHJvamVjdA Arduino IoT Cloudr 2?
o s=BA
Y6BkVG%0A)
(https://create.arduino.cc/iot)
d hJIhM
(https://www.hackster.io/users/auth/arduino?
u yOTc1
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
c OTEs
gas-and-smoke-detector-8241dc)
Getting Started
t UHJva
(https://create.arduino.cc/getting-started) s mVjd
NOW CHROME / AY6B
OS READY! b kVG%
u 0A)
y
/
4
4
Arduino Project Hub
ARDUINO CREATE IS 7
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON 9
CHROME OS!
2
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- ?
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) s
DOWNLOAD THE APP =
B
A
h
Device Manager JI
(https://create.arduino.cc/devices) h
M
y
O
T
c
1
O
Digital T
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 11/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
T Digital
E Store
(https://store.arduino.cc/digital/) s
U
H
Arduino Web EditorJ
v
(https://create.arduino.cc/editor)
a
m
V
Arduino IoT Cloud j
d
(https://create.arduino.cc/iot)
(https://www.hackster.io/users/auth/arduino?
A
Y
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
Getting Started 6
gas-and-smoke-detector-8241dc)
B
(https://create.arduino.cc/getting-started)
k
NOW CHROME
V
OS READY!
G
%
0
A
)

A R D U I N O C R E A T EBreadboard
IS Arduino Project Hub
(generic)
N O W A (https://create.arduino.cc/projecthub)
V A I L A B L E O(/projecthub/products/buy/4
N
CHROME OS! 1 × 
2749?
( (/proj (/projecthub/produc
s=BAhJIhMyOTc1OTEsUHJvam
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
/ ecthu ts/buy/42749?
VjdAY6BkVG%0A)
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
p b/pro s=BAhJIhMyOTc1OTE
(/projecthub/pro
DOWNLOAD THE APP
ducts/buy/42749 r ducts sUHJvamVjdAY6BkV
? o /buy/ G%0A)
j 4274
s=BAhJIhMyOTc1
OTEsUHJvamVjdA Device Manager
e 9?
Y6BkVG%0A) c s=BA
(https://create.arduino.cc/devices)
t hJIhM
h yOTc1
u OTEs
b UHJva
/ mVjd
p AY6B
r kVG%
o 0A)
Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 12/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
d
Store
u
(https://store.arduino.cc/digital/) c
t
s
Arduino Web Editor/
(https://create.arduino.cc/editor) b
u
y
/
Arduino IoT Cloud4
(https://create.arduino.cc/iot) 2
(https://www.hackster.io/users/auth/arduino?7
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
4
gas-and-smoke-detector-8241dc)
Getting Started 9
(https://create.arduino.cc/getting-started) ?
NOW CHROME s
OS READY! =
B
A
h
JI
h
ARDUINO CREATE IS
M
Arduino Project Hub
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON y
CHROME OS! O
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- T
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) c
DOWNLOAD THE APP 1
O
T
E
Device Manager s
U
(https://create.arduino.cc/devices)
H
J
v
a
m
V
j
d
Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 13/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
A Store
Y
(https://store.arduino.cc/digital/)
6
B
k
Arduino Web Editor
V
(https://create.arduino.cc/editor) G
%
0
A
Arduino IoT Cloud
)
(https://create.arduino.cc/iot)
Jumper wires (generic)
(https://www.hackster.io/users/auth/arduino?
(/projecthub/products/buy/4
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
× 1 
2742?
gas-and-smoke-detector-8241dc)
Getting Started
(/proj ( (/projecthub/produc
s=BAhJIhMyOTc1OTEsUHJvam
(https://create.arduino.cc/getting-started)
ecthu/ ts/buy/42742?
NOW CHROME VjdAY6BkVG%0A)
p b/pro s=BAhJIhMyOTc1OTE
OS READY!
(/projecthub/pro
r ducts sUHJvamVjdAY6BkV
ducts/buy/42742
? o /buy/ G%0A)
j 4274
s=BAhJIhMyOTc1
OTEsUHJvamVjdA e 2?
Y6BkVG%0A) c s=BA
t hJIhM
ARDUINO CREATE IS Arduino Project Hub
h yOTc1
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
u OTEs
CHROME OS!
b UHJva
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- / mVjd
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) p AY6B
DOWNLOAD THE APP r kVG%
o 0A)
d
u
Device Manager c
(https://create.arduino.cc/devices) t
s
/
b
u
y
/
4
Digital 2
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 14/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
2 Digital
7 Store
(https://store.arduino.cc/digital/) 4
2
?
Arduino Web Editors
(https://create.arduino.cc/editor)
=
B
A
h
Arduino IoT CloudJI
(https://create.arduino.cc/iot)
h
(https://www.hackster.io/users/auth/arduino?M
y
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
Getting Started O
gas-and-smoke-detector-8241dc)
T
(https://create.arduino.cc/getting-started)
NOW CHROME c
1
OS READY!
O
T
E
s
U
H
ARDUINO CREATE IS
Arduino Project Hub
J
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
CHROME OS! v
a
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- m
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) V
DOWNLOAD THE APP
j
d
A
Y
Device Manager
6
(https://create.arduino.cc/devices) B
k
V
G
%
0
A
)
Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 15/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
Store
(https://store.arduino.cc/digital/)
9V battery (generic) × 1

Arduino Web Editor


(https://create.arduino.cc/editor)
9V Battery Clip
(/projecthub/products/buy/5
× 1 
6464?
( (/proj (/projecthub/produc
s=BAhJIhMyOTc1OTEsUHJvam
Arduino IoT Cloud
/ ecthu ts/buy/56464?
VjdAY6BkVG%0A)
(https://create.arduino.cc/iot) p b/pro s=BAhJIhMyOTc1OTE
(/projecthub/pro
(https://www.hackster.io/users/auth/arduino?r ducts sUHJvamVjdAY6BkV
ducts/buy/5646
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
o /buy/ G%0A)
4? gas-and-smoke-detector-8241dc)
Getting Started j 5646
s=BAhJIhMyOTc1
(https://create.arduino.cc/getting-started) e 4?
OTEsUHJvamVjdA
NOW CHROME c s=BA
Y6BkVG%0A)
OS READY! t hJIhM
h yOTc1
u OTEs
b UHJva
/ mVjd
p AY6B
ARDUINO CREATE IS Arduino Project Hubr kVG%
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON o 0A)
CHROME OS! d
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- u
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) c
DOWNLOAD THE APP t
s
/
b
Device Manager u
(https://create.arduino.cc/devices)
y
/
5
6
4
6
4
?
Digital s
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 16/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
= Store
B
(https://store.arduino.cc/digital/)
A
h
JI
Arduino Web Editor
h
(https://create.arduino.cc/editor) M
y
O
T
Arduino IoT Cloud
c
(https://create.arduino.cc/iot) 1
(https://www.hackster.io/users/auth/arduino?
O
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
T
gas-and-smoke-detector-8241dc)
Getting Started
E
(https://create.arduino.cc/getting-started) s
NOW CHROME U
OS READY! H
J
v
a
m
V
ARDUINO CREATE IS Arduino Project Hubj
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON d
CHROME OS!
A
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO- Y
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE) 6
DOWNLOAD THE APP B
k
V
G
Device Manager %
(https://create.arduino.cc/devices) 0
A
)

NECESSARY TOOLS AND MACHINES 

Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 17/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
Store
(https://store.arduino.cc/digital/)

Multitool, Screwdriver
Arduino Web Editor
(/projecthub/products/buy/55829 
(https://create.arduino.cc/editor)
(/projecthub/pro ? (/projecthub/products/buy/
ducts/buy/55829 s=BAhJIhMyOTc1OTEsUHJvamVjdA 55829?
? Y6BkVG%0A) s=BAhJIhMyOTc1OTEsUHJva
s=BAhJIhMyOTc1 Screwdriver can be used to adjust the
Arduino IoT Cloud
mVjdAY6BkVG%0A)
potentiometer behind the sensors.
OTEsUHJvamVjdA
(https://create.arduino.cc/iot)
Y6BkVG%0A)
(https://www.hackster.io/users/auth/arduino?
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
gas-and-smoke-detector-8241dc)
Getting Started
(https://create.arduino.cc/getting-started)
NOW CHROME
APPS
OS AND ONLINE SERVICES
READY!

Arduino IDE Arduino Project Hub 


ARDUINO CREATE IS
(https://www.arduino.cc/en/main (https://www.arduino.cc/en
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
(https://www.ar
CHROME OS! /software) /main/software)
duino.cc/en/mai
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
n/software)
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
DOWNLOAD THE APP

Arduino Web Editor 


(https://create.arduino.cc/editor)
Device Manager (https://create.arduino.cc/e
(https://create.ar ditor)
(https://create.arduino.cc/devices)
duino.cc/editor)

ABOUT THIS PROJECT 

Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 18/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
Store
This project can be used to detect gas leaks and also detect fire in the kitchen or any
other place in your house.
(https://store.arduino.cc/digital/)
The incident behind making this was that once in the afternoon I was making coffee
and after I hade made it I forgot to switch off the gas regulators. As a result gas was
continuously flowing out and the Arduino Web Editor
entire kitchen along with its adjacent rooms was
smelling. When this smell hit my aunt's nose she ran to the kitchen and turned off the
(https://create.arduino.cc/editor)
gas. I recieved a good scolding that day and this urged me to make this project.
This project uses an mq 2 sensor , a flame sensor ,2 leds and a buzzer .And of course
the brain which is the arduino.
Arduino IoT Cloud
(https://create.arduino.cc/iot)
What is an MQ-2 Smoke Sensor?
(https://www.hackster.io/users/auth/arduino?
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
The MQ-2 smoke sensor is sensitiveGetting
to smoke
gas-and-smoke-detector-8241dc) and to the following flammable gases:
Started
LPG
(https://create.arduino.cc/getting-started)
NOW CHROME
Butane
OS READY!
Propane
Methane
Alcohol
Hydrogen
The
A R Dresistance
U I N O C R E of
A Tthe
Arduino Project Hub
E I Ssensor is different depending on the type of the gas.
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
The
C H R O M E Osensor
smoke S! has a built-in potentiometer that allows you to adjust the sensor
sensitivity according to how accurate you want to detect gas.
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
What is a flame sensor ?
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
A Oflame
D W N L detector
O A D T H EisAaPsensor
P designed to detect and respond to the presence of a
flame or fire, allowing flame detection. A flame detectorcan often respond faster and
more accurately than a smoke or heat detectordue to the mechanisms it uses to
detect the flame.
Device
Infrared flame detectors– These sensors Manager
operate by using an infraredband. A small
thermal(https://create.arduino.cc/devices)
imaging camera in these detectors can instantly detect the presence of hot
gasses released anywhere near the infrared detector. Infrared waves can penetrate
dust, smoke, fuel particles and oil films.
How does my project work?
In this project the MQ2 and flame sensor simultaneously collect data from the
environment and then transfer it to the arduino board in the form of analog inputs.

Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 19/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
The arduino board then checks if the values submitted by the sensors is less or more
Store
than that of the value kept constant in the memory.
(https://store.arduino.cc/digital/)
If the value is higher or lower than the threshold value the arduino acts respectively.
When there is presence of a flammable gas or smoke the red light glows and the
Arduino there
buzzer beeps.When (http://beeps.When) Web Editor
is no presence of a flammable gas the
green led glows.
(https://create.arduino.cc/editor)
When there is a flame nearby the red light glows and the buzzer beeps
(http://beeps.When). When there is no flame nearby there is no beeping of the buzzer
and no flashing of lights.
Arduino IoT Cloud
ENOUGH of reading, Lets get to wiring and firing!
(https://create.arduino.cc/iot)
. (https://www.hackster.io/users/auth/arduino?
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
gas-and-smoke-detector-8241dc)
Getting Started
(https://create.arduino.cc/getting-started)
NOW CHROME

CODE 
OS READY!

FIre and gas detection sensor Arduino


  (/PROJECTHUB/CODE_FILES/399434/DOWNLOAD)

ARDUINO CREATE IS Arduino Project Hub


N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
CHROME OS!

(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
DOWNLOAD THE APP

Device Manager
(https://create.arduino.cc/devices)

Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 20/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
Store
SCHEMATICS 

(https://store.arduino.cc/digital/)

Schematic
Arduino Web Editor
THE pins are to be connected as such
(https://create.arduino.cc/editor)
MQ2 sensor A0-A0
gnd -gnd
vcc-5 v
flame sensor analog -A1
Arduino IoT Cloud
vcc-5 v
gnd-gnd (https://create.arduino.cc/iot)
green led -digital pin 11
(https://www.hackster.io/users/auth/arduino?
red led-digital pin 12
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
buzzer-gas-and-smoke-detector-8241dc)
ditital pin 10 Getting Started
buzzer and led gnd to arduino's gnd
(https://create.arduino.cc/getting-started)
NOW CHROME
The
OS mq 4 sensor in the fritzing file has the safe config as the mq 2 sensor.
READY!
The flame sensor also is the one which i found on fritzing but the one which i have
used can be bought from the following link https://www.flipkart.com/rotobotix-fire-
flame-sensor-module/p/itmefvrkaevfwpee?
gclid=CjwKCAjwo9rtBRAdEiwA_WXcFqBWJgasifZo2X3zWz6o8nJwQT2OZ3zHCLg2yew
_anP1qPaYZznAKRoCHgwQAvD_BwE&pid=ETYEFVRKR4F7ZBDH&lid=LSTETYEFVRKR4
F7ZBDHQFGCGR&marketplace=FLIPKART&cmpid=content_learning-
A RDUINO CREATE IS Arduino Project Hub
toy_8965229628_gmc_pla&tgi=sem,1,G,11214002,g,search,,301302884581,1o1,,,c,,,,,,,
N O W A (https://create.arduino.cc/projecthub)
VAILABLE ON
&ef_id=CjwKCAjwo9rtBRAdEiwA_WXcFqBWJgasifZo2X3zWz6o8nJwQT2OZ3zHCLg2ye
CHROME OS!
w_anP1qPaYZznAKRoCHgwQAvD_BwE:G:s&s_kwcid=AL!739!3!301302884581!!!g!297
659526198!
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
No document.
DOWNLOAD THE APP

Device Manager
COMMENTS 

(https://create.arduino.cc/devices)

Please log in (/projecthub/users/sign_in?


id=297591&m=project&reason=comment&redirect_to=%2Fprojecthub%2Ftrijalsrimal
%2Ffire-gas-and-smoke-detector-8241dc%23comments) or sign up
(/projecthub/users/sign_up?
id=297591&m=project&reason=comment&redirect_to=%2Fprojecthub%2Ftrijalsrimal
%2Ffire-gas-and-smoke-detector-8241dc%23comments&source=popup) to comment.

Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 21/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
Store
23_Mebandonbok (/projecthub/23_Mebandonbok)
(https://store.arduino.cc/digital/)
7 months ago
(/pr
youre
oject not using resistor for the leds?
Arduino Web Editor
will
hub/it destroy the led?
(https://create.arduino.cc/editor)
23_
Meb
ando
nbok trijalsrimal (/projecthub/trijalsrimal)
Arduino IoT Cloud
) 7 months ago
(/pr
(https://create.arduino.cc/iot)
My
ojectleds did not get destoyed.You can use resistors if you want.No
(https://www.hackster.io/users/auth/arduino?
(http://want.No)
hub/ change in the code.
current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
trijal
gas-and-smoke-detector-8241dc)Getting Started
srim
(https://create.arduino.cc/getting-started)
al)
NOW CHROME
Mohamad Syafiq Mohamad Adenan (/projecthub/msyafiq7ms)
OS READY!
7 months ago
(/pr
Hello,can
oject i get the schematic diagram for this project.
hub/
msy
afiq7
ms)
A R D U I N O C Rtrijalsrimal
EATE IS
Arduino Project Hub
(/projecthub/trijalsrimal)
N O W A (https://create.arduino.cc/projecthub)
V A I L A6Bmonths
L E O N ago
CHROM (/pr
E OS!
sorry
oject the schematic accidentally got deleted
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
the
hub/connections are already there given in the schematic section of the
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
webpage
trijal
DOWNLOAD THE APP
srim
al)

FMZannat (/projecthub/FMZannat)
Device Manager
6 months ago
(/pr (https://create.arduino.cc/devices)
Can
ojecti use arduino uno instead of mega???
hub/
FMZ
anna
t) trijalsrimal (/projecthub/trijalsrimal)
6 months ago
(/pr
yes,
ojectof course
Digital
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 22/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub
Digital
hub/ Store
trijal
trijalsrimal (/projecthub/trijalsrimal)
(https://store.arduino.cc/digital/)
srim
al) 4 months ago
(/pr
NO
ojectCHANGE IN CODE
hub/
trijal
srim
al)
pradeep1586 (/projecthub/pradeep1586)
4 months ago
(/pr Arduino IoT Cloud
Ioject
dont have analog pin in flame sensor i have only d0 pin
(https://create.arduino.cc/iot)
hub/ (https://www.hackster.io/users/auth/arduino?
prad current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftrijalsrimal%
eep1 gas-and-smoke-detector-8241dc)
586) trijalsrimal (/projecthub/trijalsrimal)
NOW CHROME4 months ago
(/pr
OS READY!
#include<SoftwareSerial.h>
oject
int
hub/redLed = 12;
int greenLed = 11;
trijal
int
srimbuzzer = 10;
int
al) smokeA0 = A0;
int sensorPin = 5;
int sensorThres = 500;
ARDUINO CREATE IS
N O W Avoid
V A I Lsetup()
A B L E O{ N
CHROME OS!
pinMode(redLed, OUTPUT);
pinMode(greenLed, OUTPUT);
(HTTPS://CHROME.GOOGLE.COM/WEBSTORE/DETAIL/ARDUINO-
pinMode(buzzer, OUTPUT);
CREATE/DCGICPIHGKMCCJIGALCCIPMJLNJOPDFE)
D O W NpinMode(smokeA0,
LOAD THE APP INPUT);
pinMode(sensorPin,INPUT);
Serial.begin(9600);
}
void loop() {
int analogSensor = analogRead(smokeA0);
Serial.print("Pin A0: ");
Serial.println(analogSensor);
if (analogSensor > sensorThres)
{
digitalWrite(redLed, HIGH);
digitalWrite(greenLed, LOW);
tone(buzzer, 1000, 200);
https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 23/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub

}
else
{
digitalWrite(redLed, LOW);
digitalWrite(greenLed, HIGH);
noTone(buzzer);
}
delay(100);
Serial.println("Flame Sensor");
int sensorValue = digitalRead(sensorPin);
Serial.println(sensorValue);
if (sensorValue == LOW)
{
Serial.println("Fire Detected");
Serial.println("LED on");
digitalWrite(redLed,HIGH);
digitalWrite(greenLed,LOW);
tone(buzzer,1000,200);
delay(1000);
}
else
{
digitalWrite(redLed,LOW);
digitalWrite(greenLed,HIGH);
noTone(buzzer);
}
delay(100);
}
//THIS CODE WILL DO YOUR WORK AS THE FLAME SENSOR IS NOW WORKING
WITH ITS DIGITAL OUTPUT PINS.

AUTHOR

(/projecthub/trijalsrimal)

https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 24/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub

trijalsrimal (/projecthub/trijalsrimal)
0 PROJECTS 1 FOLLOWER

FOLLOW (/PROJECTHUB/USERS/SIGN_UP?ID=1038480&M=USER&REASON=FOLLOW&

PUBLISHED ON

October 26, 2019

 RESPECT PROJECT (/PROJECTHUB/USERS/SIGN_UP?ID=297591&M=ARTICLE&REASON=RESPECT...

 WRITE A COMMENT

 Share

MEMBERS WHO RESPECT THIS PROJECT

(/projecthub/predo-p) (/projecthub/Terminator) (/projecthub/mtalibe1302)

(/projecthub/decentdigitalbrains) (/projecthub/nihadkadi-98)

(/projecthub/callezenwaka) (/projecthub/msyafiq7ms)
and 2 others

SEE SIMILAR PROJECTS


YOU MIGHT LIKE

SIMILAR PROJECTS YOU MIGHT LIKE

(/projecthub/Aritro/smoke-detection-using-mq-2-gas-sensor-79c54a?
ref=similar&ref_id=297591&offset=0)

https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 25/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub

Smoke Detection using MQ-2 Gas Sensor


(/projecthub/Aritro/smoke-detection-using-mq-2-gas-sensor-
by Aritro Mukherjee (/projecthub/Aritro)
322,681 VIEWS 54 COMMENTS 204 RESPECTS

(/projecthub/daescobar/healthcare-skin-pressure-detector-d7d5f0?
ref=similar&ref_id=297591&offset=1)

https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 26/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub

Healthcare Skin Pressure Detector


(/projecthub/daescobar/healthcare-skin-pressure-detector-
Project tutorial by David Escobar (/projecthub/daescobar)
9,446 VIEWS 3 COMMENTS 21 RESPECTS

(/projecthub/crispylel/food-detector-6178cc?ref=similar&ref_id=297591&offset=2)

Food Detector (/projecthub/crispylel/food-detector-6178cc?


ref=similar&ref_id=297591&offset=2)
Project tutorial by crispylel (/projecthub/crispylel)
46,138 VIEWS 8 COMMENTS 103 RESPECTS

(/projecthub/icstation-team/diy-temperature-humidity-smoke-detector-alarm-
system-bas-5039f7?ref=similar&ref_id=297591&offset=3)

https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 27/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub

DIY Temperature & Humidity & Smoke Detector Alarm System


(/projecthub/icstation-team/diy-temperature-humidity-smoke-
Project tutorial by ICStation Team (/projecthub/icstation-team)
11,153 VIEWS 0 COMMENTS 13 RESPECTS

(/projecthub/runtimeprojects/a-lightning-detector-for-arduino-9f679c?
ref=similar&ref_id=297591&offset=4)

https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 28/29
7/7/2020 Fire, Gas and Smoke Detector - Arduino Project Hub

A Lightning Detector for Arduino


(/projecthub/runtimeprojects/a-lightning-detector-for-arduino-
Project tutorial by runtimeprojects (/projecthub/runtimeprojects)
20,687 VIEWS 8 COMMENTS 14 RESPECTS

(/projecthub/mohannad-rawashdeh/arduino-control-ac-water-heater-temperature-
e0712e?ref=similar&ref_id=297591&offset=5)

Arduino Control AC Water Heater temperature


(/projecthub/mohannad-rawashdeh/arduino-control-ac-water-
Project tutorial by Mohannad Rawashdeh (/projecthub/mohannad-rawashdeh)
15,190 VIEWS 0 COMMENTS 11 RESPECTS

(https://www.arduino.cc)
Powered by
(https://www.hackster.io)

https://create.arduino.cc/projecthub/trijalsrimal/fire-gas-and-smoke-detector-8241dc 29/29

You might also like