Template 299 Project Report - v1
Template 299 Project Report - v1
Template 299 Project Report - v1
EEE 299
Submitted By
[ID Name]
[ID Name]
[ID Name]
Supervisor
Name – Initial
Position
Declared By:
………………………………………………
Name:
ID:
………………………………………………
Name:
ID:
………………………………………………
Name:
ID:
Approved By:
……………………………
Supervisor
Mohammad Rezaul Islam
Sr. Lecturer, Department of Electrical and Computer Engineering
North South University, Dhaka, Bangladesh
.......................................
Dr. Rezaul Bari
Chair, Department of Electrical and Computer Engineering
North South University, Dhaka, Bangladesh
[Title of project]
[Abstract]
After the 3rd industrial revolution and progress of modern technology usage of gas is increased day by day. Gas is
needed in almost every place either home, Industry and vehicles. But in recent times security has been collapsed and the
rate of gas leakage is increasing day by day especially in third world country like Bangladesh, Pakistan, Nepal,
Myanmar. The notable accident happened In Bangladesh like Narayangonj Mosque; Old Dhaka Chawkbazar is recent
witness for this incident. To alleviate this type of disastrous accident we need to check the gas leakage continuously.
Considering the security of Gas leakage, if we want to stop the accidents related to gas leakage, need to set up a device
which can be warn us before upcoming accident. The purpose of the project is to detect gas leakage using Arduino (a
microcontroller) and MQ-5 (a gas sensor). Moreover, the design of this project is consisted with LCD display and a
Buzzer which will alert us from possibility dangerous accident. The system can detect gas perfectly in closed room
because the concentration of gas is higher in constrict environment on the other hand gas can easily mingle in open
space.
.
Table of Contents
Appendix
A Reference
B Datasheet
C Codes
D Survey Questionnaire
List of Tables:
1 Name Page
List of Figures:
1 Name Page
CHAPTER 1
INTRODUCTION
1.1 Project Details:
The name of our project is Gas Leakage detector using Arduino Through Alarm System. In most houses, LPG gas is
used in the kitchen which is highly flammable. These gases are a mixture of Hydrocarbons. Our project is to create an
alarm system of the LPG Gas leakage. We are using a MQ gas sensor which has a fast response to gas leakage with an
Arduino Microcontroller. Our proposed system use a gas sensor to sense gas when the leakage occurs. We are using
buzzers for triggering the alarm and a LCD for our output signal. When the Arduino Board gets high pulse from gas
sensor, it displays the message on the LCD and activates the buzzer to generate beep sound.
In our project, we are using breadboard for our circuit connection. We are also using various range of resistors and we
calculated the internal resistance of our components. For the execution of our project, we are using the software
Arduino IDE where our designed code sequence is applied and the Arduino microcontroller will be the output of those
codes. All the buzzers and sensors are connected with our Arduino system.
From our point of view, this project has many significant importance. Accidents due to fire hazard is a very common issue in our
country and also throughout the world. One of the main causes of these accidents is gas leakage. When gas leakage occurs in a
confined place such as kitchen or industries or in car, the whole confined area becomes vulnerable to fire. Even a little spark will
create an explosion which can potentially cause permanent damage. Imagine having a alarm system like our project in every
industry and home. Whenever an accident is about to occur, we can prevent it before it occurs. This is the significance of our
alarm system. We can modify this alarm system for larger area such as open field or in industries. We can add a GSM module to
it which will be connected straight with the mobile number of the nearby fire service. There are endless possibilities of
protection. And, that is our goal. Our goal is to create a safe, fire hazard free environment for our family and others. Our aim is to
make a device which will be economical and reachable to every household which will provide them fire safety.
Also, our project is environmental friendly. We are not using any product which will harm the greenhouse process or the
environment. This is also a step forward for a greener environment which is pollution free.
China is producing high quality LPG gas cylinders which are said to be leak proof and also can minimize the accidental
damage. They invented the Cylinder Valve protection cap for prevention of any kind of leakage. The advantage of this
solution is, it does not need any external hardware or modules for ensuring safety. It’s also pre built with the cylinder.
The disadvantage is, these kind of cylinders are more expensive than the normal cylinders and also they are not always
100% reliable. There can be manufacturing faults but there will be no alarm like our system for preventing that.
There are many induction cookers and Electric Stoves for prevention people using LPG gas in home kitchen. These
machines use electricity for heating up a coil which converts into heat energy. The advantage of this system is, there are
no usage of Gas. The disadvantage of this solution is, these machines consume a lot of electricity and it’s expensive.
Another solution can be done with our existing project device. If we add a GSM Module with the project, we can add
our home number and even the fire service contact number in the module. Whenever the alarm ticks, the fire service
department will be notified. The advantage of this method is, it provides a larger range of safety but the disadvantage is,
sometimes the device can give false alert and it will create an uncomfortable situation.
Gas leakage can occur due to defective rubber tubing inside the cylinder. These rubber tubing can be changed on a
schedule basis for prevention of danger. This is a very reliable way but It’s also a maintenance process.
There are currently many gas leakage detectors similar to our project is out there in the market. The working
mechanism of this detectors are also very similar to ours. But, those detectors are very expensive and I think if our
project can be made in a larger quantity, we can bring the cost way down which will be available for the consumers
everywhere.
Motivation:
There are many motivations behind this project but the bigger ones are connected with our personal life. Not many days
ago, there was a huge explosion in Puran Dhaka due to chemical storing in a very crowded area. Many of us lost our
loved ones due to these kind of accidents. Fire damage in kitchen occurs in almost any household. It can be a minor
burn issue but if we look at the bigger picture, that minor burn could turn out to be a major burn. Our mothers, sisters
also spend a huge amount of time in kitchen and that area should be more safer for them. Not only kitchen but also in
the industrial areas and industries, fire hazard is a big concern. If this small contribution from us can help preventing
this big issue, it will be an honor for us.
That is why we choose this project, an alarm system for gas leakage. We also want to take this project to another step
up in future for making this more reliable. We are trying to solve a problem which is fire hazard due to gas leakage with
our project. We also want to learn the basics of Arduino based projects. Creating an alarm system using sensors with
Arduino is a perfect way to learn about Arduino based projects.
I was also motivated for doing this project from a personal experience. I lost on of my closest school friends who lived
beside my house due to gas leakage explosion. There was a leakage in their cylinder and only he was home who could
not understand the situation. Before he could realize anything, he tried to put fire for turning the stove on and the next
thing is a big explosion and he died there on spot. These kinds of accidents can be avoided with such devices and it’s a
big issue which is needed to be looked from a serious point of view.
The purpose of this project is to remark the presence of Gas leakage as a part of a safety and security
system. LPG leakage detection is very important to stop accidents and to save human lives.
Apart from LED display system, a buzzer will trigger the sound alarm and people can notify about possibility
accident early stage.
The main objective of this project is to serve a humanitarian means for safely detecting any error of a
pressurized gas system in order to prevent accumulation of combustible gases so that damage
or explosion due to such an accumulation of gases is prevented.
Another object is to provide a novel safety means for detecting the leakage of gas into the
area of an appliance when the appliance is in a inactive condition and not in active.
Typical installation areas being gas yards (Bullets), gas banks with multi cylinders in
manifold, user production departments / utility areas like kitchens.
CHAPTER 2
TECHNICAL DESIGN
2.1 Existing Solution:
2.2 Proposed Solution:
2. Communication Skill
A group will work together as long as everyone is constantly communicating with each other. The members should be
open to different suggestions and respect other member’s points of view.
5. Basic Coding
Apart from the hardware side, we have to give instructions on our project based on codes. Many of us are from
electrical engineering but still having basic code knowledge will help us a lot when we implement open source codes in
our project.
6. Arduino IDE
The bread and butter software for instructing Arduino using codes and good knowledge about this software is very
essential. We will keep developing this skill as we advance.
7. Presentation Skills
As we have to report back about our progress to the honorable faculty, we need to improve our presentation skills and
be more subtle about our speech.
8. Dedication
Every member should be dedicated to work and being punctual about the deadlines.
9. Hardware Knowledge
We have to have the basic skills of the hardware we are going to use.
If we sum up all these, we obtained the following skills during the project
1. Circuit design.
2. Apply linear systems theory and analysis.
3. Develop electrical schematics.
4. Data collection and analysis.
5. Build and operate computer systems.
6. Prepare operational plans.
7. Electronic equipment maintenance.
8. Direct construction activities and equipment upkeep.
9. Arduino coding
10. Circuit implements
11. Knowledge about pin configuration of the Arduino board.
12. Knowledge about electrical hardware, such as digital multi-meters, power adapter.
13. Knowledge about breadboard connection and how it is connected.
CHAPTER 3
ESSENTIAL PARTS AND DEVICES
The hardware needed for our gas leakage detection project is listed below.
1. MQ 5/ MQ 135 Sensors
2. Resistors of various range
3. 9V Power Adapter
4. Breadboard
5. Connecting wires
6. LCD display boards
7. Arduino Uno Board
8. Transistor, LED lights, Buzzers
MQ 5 Sensor
They are used in gas leakage detectors for detecting LPG, Natural Gas, and Cigarette smoke. This is one of the most
used gas leakage sensors. These sensors are effective, low cost, high sensitivity, and long time usage.
Specification:
Model MQ - 5
Sensor Type Semiconductor
Standard Encapsulation Bakelite, Metal Cap
Target Gas LPG, CH4
Detection range 300~10000ppm(CH4,C3H8)
Standard Circuit Conditions Loop Voltage Vc ≤24V DC
Heater Voltage VH 5.0V±0.1V AC or DC
Load Resistance RL Adjustable
Sensor character under standard test Rs(in air)/Rs( in 2000ppm
conditions Sensitivity S
C3H8)≥5
Output V 2.5V~4.0V (in 2000ppm
Voltage s C3H8)
Concentration ≤0.6(R3000ppm/R1000ppm
α
Slope C3H8)
Standard test conditions Tem. Humidity 20℃±2℃;55%±5%RH
Standard test Vc:5.0V±0.1V;
circuit VH:5.0V±0.1V
Preheat time Over 48 hours
Figure: MQ 5 Sensor
Reference:
https://www.winsen-sensor.com/sensors/combustible-sensor/mq5.html?
gclid=Cj0KCQjw7sz6BRDYARIsAPHzrNIsxcTbyo5dotjtEUWk8McmK15B5afhKJizAmiIP8vl0Efet50kiOwaAh8yE
ALw_wcB
2. Resistors
3. Power Adapter
We have selected a 9v adapter for our project. The 9 Volt Power Supply Adapter is a throwback to the early days of
electronics when 9V was a common battery output voltage. ... The 9 Volt Power Adapter, also known as a "
Brick" " Desk Wart" and " Floor" supply, provide a regulated 9 Volts DC output.
Features:
1. Voltage Input: AC 100-240V.
2. Frequency Response: 50/60Hz.
3. Voltage Output: DC 9V.
4. Electric Current: Max. 2A.
5. Power: 18W.
6. Length of the cable: approx. 93 cm (36.6 inches)
7. Internal diameter of the connector: 2.1 – 2.5 mm (0.1 inch)
8. The external diameter of the connector: 5.5 mm (0.21 inch)
Reference:
https://shopdelta.eu/power-supply-adapter-9v2a5-5_l2_p8200.html
4. Breadboard
We will use this breadboard for connecting our wires and building the circuit. A breadboard is a solderless device for a
temporary prototype with electronics and test circuit designs. Most electronic components in electronic circuits can be
interconnected by inserting their leads or terminals into the holes and then making connections through wires where
appropriate.
Specification:
https://components101.com/misc/breadboard-connections-uses-guide
Figure: Breadboard
5. Connecting Wires
We have various kinds of jumper wires and connecting wires for our project. A few of these wires will go from our
sensor to the breadboard and the Arduino Uno. We also have male and female connectors along with the wires.
Figure: Connecting wires
6. LCD Display
We choose a 16x2 LCD display for our project. An LCD is an electronic display module that uses liquid crystal to
produce a visible image. The 16×2 LCD display is a very basic module commonly used in DIYs and circuits.
The 16×2 translates o a display 16 characters per line in 2 such lines. In this LCD each character is displayed in a 5×7
pixel matrix.
Features:
1. The operating voltage is 4.7V to 5.3V.
2. The current consumption is 1mA without backlight.
3. Alphanumeric LCD display module, meaning can display alphabets and numbers.
4. Consists of two rows and each row can print 16 characters.
5. Each character is built by a 5×8 pixel box.
This will show our output as the display.
Figure: 16x2 LCD display
The Arduino Uno is a microcontroller board based on the ATmega328. It has 20 digital input/output pins (of which 6
can be used as PWM outputs and 6 can be used as analog inputs), a 16 MHz resonator, a USB connection, a power jack,
an in-circuit system programming (ICSP) header, and a reset button.
Features:
1. The operating voltage is 5V
2. The recommended input voltage will range from 7v to 12V
3. The input voltage ranges from 6v to 20V
4. Digital input/output pins are 14
5. Analog i/p pins are 6
6. DC Current for each input/output pin is 40 mA
7. DC Current for 3.3V Pin is 50 mA
8. Flash Memory is 32 KB
9. SRAM is 2 KB
10. EEPROM is 1 KB
11. CLK Speed is 16 MHz
Figure: Arduino Uno
Reference:
https://components101.com/microcontrollers/arduino-uno
8. Transistors, LED Lights, and Buzzers
We will be using buzzers for the signal alert in our system. Various range of transistors will be used and there
will be different colors of LED lights.
Selection of software
For the selection of software, We are mainly using Two software. These are Microsoft Visual Studio and Arduino IDE
Microsoft Visual Studio:
Microsoft Visual Studio is an IDE by Microsoft. This software is used for programming and it will be useful for us to
check the errors in the codes we will be putting in Arduino IDE. This software is a code editor and debugger.
Reference:
https://en.wikipedia.org/wiki/Microsoft_Visual_Studio
Arduino IDE
Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards can
read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a
motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of
instructions to the microcontroller on the board. To do so you use the Arduino programming language (based
on Wiring), and the Arduino Software (IDE), based on Processing.
Over the years Arduino has been the brain of thousands of projects, from everyday objects to complex scientific
instruments. A worldwide community of makers - students, hobbyists, artists, programmers, and professionals - has
gathered around this open-source platform, their contributions have added up to an incredible amount of accessible
knowledge that can be of great help to novices and experts alike.
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping, aimed at students
without a background in electronics and programming. As soon as it reached a wider community, the Arduino board
started changing to adapt to new needs and challenges, differentiating its offer from simple 8-bit boards to products
for IoT applications, wearable, 3D printing, and embedded environments. All Arduino boards are completely open-
source, empowering users to build them independently, and eventually adapt them to their particular needs.
The software, too, is open-source, and it is growing through the contributions of users worldwide.
Version: Arduino 1.18.13
Selection of Tools
In order to test the Gas Leakage Detection and Alert System the following tools are
necessary:
1. Internet Connectivity
2. Hardware: Processor (Core i3, Core i5 or higher ), RAM (4 GB or Higher )
3.Operating System: Win-XP, Win-7, Win-8 or higher version
4. Arduino IDE: Arduino consists of both a physical programmable circuit board
(often referred to as a microcontroller) and a piece of software, or IDE (Integrated
Development Environment) that runs on our computer, used to write and upload computer
code to the physical board.
5. DMM: Used DMM to find out faulty connection and measured voltage.
CHAPTER 4
WORKING SHEETS
4.1 Work Breakdown Structure:
Use table/chart to provide weekly schedule of your project. As we have 12+12 scheduled meetings, so divide
your work into 24 weeks and tabulate it in this section.
WBS is abbreviation of work break down structure, known as also a Gantt chart. The division
of work into convenient schedule for efficiency is named as work breakdown structure. The title
of our project is “Gas leakage detector through Alarm System using Arduino”. In this project
we will check through Alarm system if gas leakage or not.
Group has been formed and we have discussed about title and topic
4 selection. Rakibul Hasan Khan
Thus, Registration of group has done naming Group No-01 with information Rezauan Rafi
like Name, ID, Cell No, Email and all other necessary data. Moreover, The
title Sabbir Ahmed
and topic of this project has been selected with “The Gas Leakage detector
through Alarm System using Arduino”.
5 We have done feasible study about this project. The main purpose of task is Rakibul Hasan Khan
actually about possibility of adding a flame sensor extra. The functioning of Rezauan Rafi
code also matters in this issue. Besides, The function and difference of MQ-2 Sabbir Ahmed
and MQ-135 along with MQ-5 was checked for using this project which will
detect gas.MQ-135 and MQ-5 had given better result in this case.
6 We have purchased our equipment through online .The website of the online Rakibul Hasan Khan
site is named as “ROBODOC”, which is very renowned and trustworthy.
Unfortunately some tools are out of stock then but promised will be available
and notify us soon.
7 We have reviewed 3 journal for our research background 01.The main purpose Rakibul Hasan Khan
of this journal is take idea and overview of publishing research paper. Rezauan Rafi
Sabbir Ahmed
8 The project will be run by Arduino IDE, an essential software. The code and Rakibul Hasan Khan
code design will be learn by 2 members. Besides this we have to design a Sabbir Ahmed
technical diagram and simulation for implementing this project. This task will
be maintained by one member.
9 As code learning progress will continue and other two member will now join Rakibul Hasan Khan
for learning pin diagram and connection of Arduino and other parts of this Rezauan Rafi
project especially gas sensor pin diagram ,16*2 LCD display , how Arduino Sabbir Ahmed
will be powered etc.
10 Now It’s time for implementing this hardware project. Connecting all the part
together and input the code into it. The demo of hardware part will be ready for Rezauan Rafi
this project. Sabbir Ahmed
11 The report writing of this project will occurred in this week. Attachment of all Rakibul Hasan Khan
data like technical diagram, Arduino IDE code and all other tables will input in Rezauan Rafi
this report. Sabbir Ahmed
12 We will be prepare for our final demo presentation. The final report of this Rakibul Hasan Khan
project also will be submitted in this week. Rezauan Rafi
Sabbir Ahmed
13 Final Exam week. An individual final exam will take place. Rakibul Hasan Khan
Rezauan Rafi
Sabbir Ahmed
Financial Requirements:
For this pandemic period we have purchased all equipment’s through online. We have ordered
from Robodoc, an online shop, which is committed to deliver the equipment’s in short time.
10 LED 03 10
Total 1175
CHAPTER 5
PROJECT SUMMARY
5.1 Result and Discussion:
Explain in details your test runs and results. Discuss if you find any error.
Provide reason and margin of error in your result discussion.
5.2 Feasibility Study:
During feasibility study we have considered the The LPG users as a standard in terms of
Functionality, Usability, Reliability and Maintainability. However, our project is for
welfare of greater humanitarian. So, that’s why project should to be cost efficient and
designed with simplicity and easy. This project is cost to near around 1200 taka and filled
with mobility that’s why we can say that this project is economically sufficient and cost
efficient.
We detect the gas using MQ-5 gas sensor and used Arduino as a brain. For output we
used LED display and buzzer. All of the tools are affordable and accessable.Thus the
project is designed with full resourceful.
Moreover, Gas leakage is becoming common incident now a days. Usage of gas is
increasing now a days. This project can help alleviate the damage the loss of livestock. In
other words, it can contribute an important role in socially.
In additional to using this project we need to follow some rule and guide. For the safety
of user this project is temperature sensitive and it can function in room temperature. Over
exceeding temperature this project can loss its functionality.
Environmental issues
Ethical issues
5.3 Problem Faced and Solutions:
For successful compilation of our project we faced some4 problem regarding both in
hardware and software issue.
Problem:
01.We faced problem in adjusting the contrast and brightness of LED display. we have
seen that we cannot seen any message or command through it.
02.During purchasing the components from online site we have seen that in LED display
there are no connecting pins at all.
03.In a software issue we have faced regarding problem regarding delay function.
Solution:
1. We have add 10K potentiometer with RS pins and for knobbing the potentiometer we
can adjust the contrast of our LED.
2. We have wielded the pin with LED display in a view that it cannot short circuited
with one another.
3. We put main delay in 3000s and for regarding LED and buzzer we keep 1000s delay
as it can successful detect the gas leakage through the code.
5.5 Conclusion:
Gas leakage become fatal inferno of twenty century in household and industry. Despite of
unexpected gas leakage we can control the damage by taking some precaution with the
help of modern technology. This project is applicable in detecting gas leakage. If we
implement it in greater perspective, we can easily prevent damage of household, industry
and, vehicles successfully. The main advantage of this simple gas leakage detector is its
flexibility, mobility and its simplicity. Moreover, it able to warn its interest group about
the leakage of gas perfectly. The project is consisted with excellent sensitivity and can
response quickly. For its fast response time and less time lapse it can take its accurate
measurements as soon as possible and inform its stakeholders as early as possible.
void loop()
{
if(digitalRead(lpg_sensor))
{
digitalWrite(buzzer, HIGH);
lcd.clear();
lcd.print("LPG Gas Leakage");
lcd.setCursor(0, 1);
lcd.print(" Alert ");
delay(400);
digitalWrite(buzzer, LOW);
delay(500);
}
else
{
digitalWrite(buzzer, LOW);
lcd.clear();
lcd.print(" No LPG Gas ");
lcd.setCursor(0,1);
lcd.print(" Leakage ");
}
delay(1000);
}