A group project elaborating the use of Arduino interfaced to MATLAB for detecting temperature. The report elucidates the above using DS18B20 temperature sensor.
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Fire Detection Using MATLAB
1. Fire Detection Using Sensor Interfaced To MATLAB
Abstract— The paper describes the use of a temperature
sensor (DS 18B20), interfaced to MATLAB environment via
Arduino Uno. The temperature data from the sensor is
continuously monitored. When the temperature value
exceeds the threshold, it sends a signal to a motor, via the
Arduino, to start its desired task. As this is completely based
on MATLAB modelling, it eliminates the headache of
Arduino programming, while displaying real-time
temperature data. This method is of potential use in
industries needing autonomous, GUI based fire
detection/fighting systems.
I. INTRODUCTION
Fire is a major cause of destruction in
companies today. Even a small spark could cause huge
loss to the corporations. Such sudden and rapid outbreak
of fire is certainly not stoppable, but can surely be
prevented. The project addresses this very issue while
keeping simplicity in mind.
The use of MATLAB instead of the conventional
Arduino software made the process less cumbersome
and left scope for future improvements. MATLAB helps
in designing the system in a simple and lucid manner.
The library functions of the Arduino Support Package
enable us to interface the Arduino board (any variant)
with a PC. All the major commands are built into the
library functions itself. The use of library functions is
justified as it fulfils following purposes:
a) Simplification of programming
b) Eliminates tiresome writing of code
c) Easy to understand and modify.
d) Real-time output is possible.
e) Virtual environment simulation
f) GUI creation.
MATLAB is a powerful tool to incorporate multiple
functions in to a relatively small and easy program. As
opposed to conventional programming, MATLAB
keeps tab of the syntaxes and makes sure the program is
correct, every time.
Fig. 1. Temperature Sensor
The temperature sensor, as shown in Fig. 1, carries a
model number DS 18B20. The operating voltage is from
0V to 5V. This sensor is suitable for sensing
temperatures in the range of 0o
C to 150o
C. The sensor,
though useful, is not reliable for temperature ranging
close to 100o
C. The use of the transducer here is only to
demonstrate the potential applications of the system and
keep down the costs. The specifications of the sensor are
summarised in Table. 1. The sensor has 3 pins for
interfacing with a microcontroller. The pin-out diagram
is as shown in Fig. 2.
The sensor output is connected to the analog input pin
A0. While the supply is connected to +5V and ground to
GND.
Fig. 2. Pin Configuration
Parameter Value
Temperature Range -55o
C to 150o
C
Operating Voltage 5V DC
Sensitivity 10mV/o
C
Pins 3
Table. 1. Specifications of DS 18B20
Mithsagar Amey1
, Joshi Swaroop2
, Sumathi V3
School of Mechanical and Building Sciences
VIT University, Chennai Campus
Chennai, India
1
ameymithsagar@gmail.com, 2
swaroopjoshi123@gmail.com, 3
vsumathi@vit.ac.in
2. II. OBJECTIVE
The primary objective of the system is to detect a spike
in temperature (fire). If the detected temperature goes
over the pre-set value (threshold), the motors should
begin to function to stop the rise.
III. METHODOLOGY
The setup includes the following major components:
1) Arduino Uno
2) MATLAB
3) Support Package for Arduino (in
MATLAB/SIMULINK)
4) Temperature Sensor (DS 18B20)
5) Motor
6) Breadboard
To keep the setup as compact as possible, we use
breadboard which includes minimal wiring.
The following graphic shows the detail procedure of
how to go about the system from scratch.
Fig. 3. Methodology
The Arduino Support package is installed as part of the
MATLAB library. It forms a bridge between the
computer and the Arduino board. This library includes
variety of graphical tools to program the controller as
per the user’s needs. The commands used frequently for
our system include analog input, constants,
mathematical operands, if-else condition, and digital
output. The MATLAB model has been truncated to its
bare minimum part. The scaling factor has been
independently calculated and multiplied to the analog
input voltage. The output of this product is supplied to
the if-else block. The governing condition for the if-else
block is the threshold temperature. The output of this
block is connected to the digital output block of the
Arduino. If the value obtained from the analog input is
greater than the threshold value, the pins denoted in the
digital out block are turned high. This results the motors
to run.
The basic agenda of this paper is to sense the flames
and douse the fire. For this, DS 18B20 Temperature
sensor is used as input sensor which is connected to
Arduino Uno with help of a cable. The temperature
sensor senses the temperature coming out from fire and
server room and it feeds signal to the Arduino Uno
which in turn is used to control the extinguishing
mechanism. The value obtained from analog input to set
as range of the temp, if the temp is greater than the
threshold value then the pins in the digital is high and
motor to run after the temp is crossed the lift then
automatically stop the motor.
IV. EXPERIMENTAL SETUP
The project helped to generate interest as well as
innovation in the fire extinguishing system. The fire
protection when there is a fire in a tunnel or in an
industry by using automatic control of robot by the use
of microcontroller in order to reduced loss of life and
property damage. The experimental setup as shown in
Fig .4.
Fig.4 Experimental Setup
This system consists of a DC motor, Fan, Arduino Uno,
DS 18B20 Temperature sensor and a connecting cable.
In this setup, DS 18B20 temperature sensor connecting
to the Arduino Uno with suitable pins and cable. The
5V Dc motor connecting with fan which is indicate the
extinguishing of fire temperature .This setup are
interfacing with Arduino and MATLAB. The
prediction of the fire as early as possible and occurs
when the humidity of the air is lower and temperature
is higher. Thus if the temperature is higher than the
threshold value then an alert signal is sent to the control
center. The fire prediction comes into picture when the
fire arises due to increase in the relative temperature.
The threshold value is always fixed above the
maximum temperature which is experienced in that
region to avoid any wrong indication due to increase in
the atmospheric temperature.
Install Arduino Support
Package
Connect the components
according to the pin diagram
MATLAB Code Generation
Set a threshold value
Apply the logic
(if-else)
Run the code
Verify
3. V. RESULTS AND CONCLUSION
For detecting flame temperature with 100% accuracy,
the robot must be able to differentiate industrial fire and
ordinary temperatures. For fire detection, temperature
sensor should give accurate reading to provide it to real
time temperature monitoring system.
VI. REFERENCES
1) Sahil S. Shah,Vaibhav K.Shah, FIRE FIGHTING
ROBOT, IJETTCS,August 2013
2) Joga D. Setiawan, Mochamad Subchan,Agus
Budiyono,Virtual Reality Simulation of firefighting
Robot Dynamic and Motion, ICIUS,2007
3) H.P. Singh, Akanshu Mahajan-d, Veena Budharaja-
c, Control of An Autonomous Industrial Fire Fighting
Mobile Robot, DUJURI,P.P. 124-128
4) D.Vignesh kirubaharan,A.John Clement Sunder,
Intruder Detection and forest Fire Alert System with
using Wireless Sensor network,IARJSET,Vol.1,Issue
3,November 2014
4) Akshay Deshmukh, Nikhil More , Shubham
Nagare,A Survey On Fire Detector And Extinguisher
Robot Controlled Using Android Application –
BlueControl,NITTTR,2017
5) S. Sridevi. G. Manikandan, Design of Fire Fighting
Robot, IJIRSET, Vol.3, Issue 11, November 2014
6) Rahul M. karande,Anant Vijay Patil, Fire Fighting
Robot, IJRITCC,Vol.4,Issue 4.P.P.-788-803
7) Chien T.L., Guo H., Su K. L. and Shiau S. V.(2007),
Develop a Multiple Interface based Fire Fighting
Robot, IEEE International Conference on
Mechatronics,PP.1-6
8) Chattunayakti S., kondo T. and Nikhamhang
I.(2003),Development of Robotic Platform for Swarm
Robots in Fire detection Application, kasetsart Journal
Natural Science ,47,PP.967-976.
9) Kristi Kosasih , E. Merry Sartika ,M. Jimmy
hasugian ,the Intelligent fire Fighting Tank Robot ,
Electrical Engineering Journal, Vol. 1, No. 1, October
2010.