You are on page 1of 36

İstanbul Aydın University

Computer Engineering Department

Android Controlled By Machine Overheat


Detection With Alert
Prepared by

Esra Ezgin

Submitted in partial fulfillment of the requirement for the Bachelor Degree


of Computer Engineering

JUNE 2019

1
1 DEDICATION

To

My Parents
That I love you so much…
All my friends with me...

I Dedicate This Project

2
2 ACKNOWLEDGMENT
I have worked hard to finish my project during the fall semester. While my time struggles
to finish my project, I got the help and support of the people around me or the people I
just met. Thus,Thank you eveyone to who I got the help ,support of all people and who
motivated me when I was forced or close to giving up and who helped me when I had a
lack of confidence.

If I want to thank everyone individually,

I would like to endless thank my mother, my father and my brother that they're with me
and they love me.

I would like to thank department head and advisor of Ali Güneş who help to select a
project topic and help to found the solution to the problems I could not solve

I would like to thank my best friend and some new friend when I met who producing
solution when I live in a mess in the Project and who say supportive words in order to
motivate in I was forced in my project.

I done the my graduation project and I achieved success the my graduation Project
depend on you Actually There are many people who I would like to thanks but this page
is not enough I am eternally grateful for your understanding, patience and support.

3
3 TABLE OF CONTENTS
1 DEDICATION .................................................................................................................................... 2
2 ACKNOWLEDGMENT ....................................................................................................................... 3
3 TABLE OF CONTENTS ....................................................................................................................... 4
4 GLOSSARY ........................................................................................................................................ 6
5 ABSTRACT ........................................................................................................................................ 7
6 CHAPTER 1: INTRODUCTION ........................................................................................................... 9
6.1 WHAT DID I DO BEFORE CHOOSING THE PROJECT? ............................................................... 9
6.2 BACKGROUND ......................................................................................................................... 9
6.3 SOME QUESTİONS FOR UNDERSTANDING THE PROJECT...................................................... 10
6.3.1 How Do Users Install The Application? ......................................................................... 10
6.3.2 Who is the project for?.................................................................................................. 10
6.3.3 Is this device easy to understand for its users?............................................................. 10
6.3.4 How old are people using this device? .......................................................................... 10
6.3.5 Is this project compatible for every machine? .............................................................. 10
6.3.6 Does this device take up a lot of space? ....................................................................... 10
6.3.7 How does the device measure the machine's temperature? ....................................... 11
6.3.8 How does the device work? .......................................................................................... 11
6.3.9 Can the device become damaged if excessive heat comes? ......................................... 11
6.3.10 Does the application works without Internet? ............................................................. 11
6.3.11 Can the user change if he or she selects the wrong temperature? .............................. 11
6.4 PROJECT MOTIVATION .......................................................................................................... 12
6.5 PROBLEM STATEMENT .......................................................................................................... 12
6.6 PROJECT TARGETS ................................................................................................................. 12
6.7 PROJECT SIGNIFICANCE ......................................................................................................... 12
6.8 PROJECT SCOPE ..................................................................................................................... 12
7 CHAPTER 2: LITERATURE REVIEW.................................................................................................. 14
7.1 DEFINATION OF ARDUNIO AND MICROCONTROLLER MODELS ........................................... 14
7.2 MAIN ADVANTAGES OF ARDUNIO ........................................................................................ 15
7.2.1 ARDUNIO UNO............................................................................................................... 15
7.3 BLUETOOTH MODULE ........................................................................................................... 16
7.4 TEMPARATURE SENSOR ........................................................................................................ 17
8 CHAPTER 3: PROJECT METHODOLOGY .......................................................................................... 19
9 CHAPTER 4: REQUIREMENT ANALYSIS .......................................................................................... 21
9.1 PROJECT DESCRIPTION .......................................................................................................... 21

4
9.2 USER DESCRIPTION ................................................................................................................ 21
9.3 USER REQUIREMENTS ........................................................................................................... 21
9.4 SYSTEM DESCRIPTION ........................................................................................................... 21
9.5 SYSTEM REQUIREMENTS ....................................................................................................... 21
10 SYSTEM ANALYSIS...................................................................................................................... 22
10.1 PROJECT DIAGRAMS .............................................................................................................. 22
10.1.1 USE CASE DIAGRAM ...................................................................................................... 22
10.2 Block dıagram ........................................................................................................................ 23
10.3 Class dıagram......................................................................................................................... 24
11 CHAPTER 5: DESIGN AND IMPLEMENTATION ........................................................................... 26
11.1 SEQUENCE DIAGRAM FOR MY PROJECT ............................................................................... 26
11.1.1 Connection between Hardware and Software part via Bluethooth.............................. 26
11.1.2 Hardware part send temparetare and User show temperature on own Android device
27
11.2 DESIGN PHASE ....................................................................................................................... 27
11.2.1 Building the Hardware................................................................................................... 27
11.2.2 BUILDING THE SOFTWARE............................................................................................. 31
12 . CONCLUSION ........................................................................................................................... 33
12.1 OUTPUT OF PROJECT ............................................................................................................. 33

5
4 GLOSSARY

✓ Ardunio : Arduino is an electronic hardware and software based development


platform
✓ UML Diagram : Diagrams are used to extract models of business
systems.
✓ Use-Case Diagram : Diagrams including time and change of systems
and classes
✓ Block Diagram :Schema where the main components of the system are
shown as blocks

6
5 ABSTRACT

In these days , with the pace of technological development, people have become more and
more demanding in terms of quality of life. People's tendency towards technology is
increasing with the change of time. At the same time, there is a growing need for the need
to bring and incorporate new technology ideas to create new products. In this way, people
want to reach technology in the shortest and simplest way.

Are there any damages to the technological products we use? Unfortunately, most of the
technological products we use harm us. Fire emerged in factories where many products
emerged from the British industrial revolution to the present day. We have seen explosions
or fires in the house due to some malfunctions in most of the technological products we use.
Most of the fire is actually caused by overheating of the machines. Most people will be saved
if their heat is controlled. I thought about what I could do about it. Later ,I made a device
that warns users when the machines overheat.

This device is very beneficial especially in places like factories or industries consisting of big
machines where it is very necessary to take some action in case the machine is overheated.
Not just for factories. At the same time, users can use it in the technological products they
use at home. When the notebook overheats, the temperature of the notebook can be
controlled by this device .Because Device will alert on user's phone application.

I created the project hardware part with Arduino materials. I created it in the software two
part of the project .First part application by android studio and second part the code panel
that arduino provided.

7
8
6 CHAPTER 1: INTRODUCTION

Nowadays, many people die because of the fires in the products used in their lives or the
fires in the factories they work in. Most of these fires are caused by overheating. I thought I
could save people's lives without these fires. The project that I will do will save many
people's lives and the industrial factory of market will sell a lot.

6.1 WHAT DID I DO BEFORE CHOOSING THE PROJECT?


1) I have determined the project location.
2) I did a detailed research on the project.
3) I have reviewed projects similar to the project I will do before.

a) The refrigerator that I use in my own home is warning when it overheats. However,
in the white goods market, this feature is not used in every product or there is'nt
detecting device that show and alert people use overheating devices.

4) I bought the necessary materials for my project.


5) I designed the implementation part of my project.

6.2 BACKGROUND

My project device name is” TempController”. I have given "TempController" name to my


project to make it easier for the user to find it in google play and not confused with other
apps on his phone.

The project consists of 2 parts, both software and hardware.I created hardware parts of the
project with Ardunio . The basic part of the hardware part is the microcontroller. ıt transfers
data to the application I created in the software part thanks to the sensors included in this
microcontroller. There are 2 sensors in the microcontroller . One of these sensors allows the
device to communicate with the app on Android devices, while the other sensor measures
the temperature of the device every 1 minute. This project is based on the android-based
device.. This project hardware part first communicates with the android application then
begins to measure the temperature. If the user exceeds the set temperature.

9
The software part of the project works with an application built on the Android operating
system. In order to use this device, the user must download this application to his phone
for free from Google Play. After the application communicates with the device, a main
screen opens where the temperature is displayed. The user can see how the temperature of
the device changes every 1 minute in this main section. The temperature value is always
visible in the notification part of the android device. User sets the maximum temperature of
the device in the application. If the maximum temperature is not specified, the device will
not give warning to the user.
If the device reaches the maximum temperature set, the user sends a notification message
to the android device (eg tablet, phone) that the user uses and the ringing device starts to
ring. Users can cut the ringing tone if clicking this notification. The ringing tone on the
device will also be cut off.

6.3 SOME QUESTİONS FOR UNDERSTANDING THE PROJECT

6.3.1 How Do Users Install The Application?


• User can upload GooglePlay store.

6.3.2 Who is the project for?


• Factories or industries consisting of big machines
• Every overheating device in the home, at workplaces, on the Street

6.3.3 Is this device easy to understand for its users?


• Yes, I have prepared the application in a convenient and simple way for users to
understand.

6.3.4 How old are people using this device?


• Anyone older than 10 years of age can use this device.

6.3.5 Is this project compatible for every machine?


• Yes.It can be used in every device or machine with heating problem.

6.3.6 Does this device take up a lot of space?


• Of course No. Because the device is designed using the most minimal parts.

10
6.3.7 How does the device measure the machine's temperature?
• The device has a temperature sensor. The heat sensor must be attached to the metal
frame of the device. Therefore, the heat sensor is extended to the outside by means
of cables.

6.3.8 How does the device work?


• At least 5V is required for device working.

6.3.9 Can the device become damaged if excessive heat comes?


• I used the dht11 sensor because it's a prototype. If this device exceeds 50 ℃, the
sensor is broken. But if the factory will buy this device, I will use the dht22 sensor. If
the Dht22 sensor exceeds 125 ℃, the sensor is broken.

6.3.10 Does the application works without Internet?


• No, the application works without the internet.

6.3.11 Can the user change if he or she selects the wrong temperature?
• The user can change the last value of the temperature at any time.

11
6.4 PROJECT MOTIVATION

This project represents the sending of warning buzzer and notifications when devices and
machines overheat .Most people will be protected from life and product life depend to the
my Project.

6.5 PROBLEM STATEMENT

This is a simple prototype device and own application . Ideal for use in small areas. For
industrial plants, however, it is necessary to use an upper level temperature sensor.

6.6 PROJECT TARGETS

✓ To reduce the number of people who die from fires caused by overheating of
machines.

✓ To extend the life and quality of the devices and machines used for temperature
measurement.
✓ To ensure that people take precautions by indicating that the machine is overheated.

✓ Some devices measure extreme cold and extreme temperature. My purpose is to


make an additional temperature control device for devices that do not measure.

6.7 PROJECT SIGNIFICANCE

As I mentioned in the Motivation section, Most people will be protected from life and product
life depend to the my Project.

6.8 PROJECT SCOPE

The project can be used on machines that will be used in factories, as well as on all devices
that are prone to overheating in areas such as at home, at work, on the street, in the park .

12
13
7 CHAPTER 2: LITERATURE REVIEW
This chapter includes description of arduino parts

7.1 DEFINATION OF ARDUNIO AND MICROCONTROLLER MODELS

It is a physical programming platform consisting of a developmental environment that


includes an application of a common I / O board and an application of Processing / Wiring.
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

Arduino is used to create stand-alone interactive objects and can be used in software running
on the computer. Arduino provides a facilitating development environment for developers to
make comfortable encodings with microprocessors. Arduino helps the developer with USB
serial connection, LED, Input / Output pins, Power input and many more features for
programming. You can tell your board what to do by sending a set of instructions to the
microcontroller on the board. To do so user can use Ardunio Software(IDE) with the Arduino
programming. If you are going to build an Arduino project, you need to use some model of
microcontrollers.Such as;
✓ ARDUNIO UNO
✓ ARDUNIO MEGA
✓ ARDUNIO NANO

FİGURE 2.1-ARDUNIO MEGA FİGURE 2.2-ARDUNIO NANO FİGURE 2.3-ARDUNIO UNO

All Microcontroller models are sold as original and clone. I used Ardunio UNO which is both the
most purchased and cheap.

14
7.2 MAIN ADVANTAGES OF ARDUNIO
❖ There is an Atmel brand microcontroller and it is ready to use with the necessary
connections (Oscillator, + 5V supply, Reset button).
❖ Can be connected directly to the computer via USB.
❖ Circuits, called shields, are widely available on the market, which can be easily adapted
to the kits.
❖ Together with the peripheral modules (Shield) makes the installation more simple.
❖ It does not need the programmer required for microcontrollers.
❖ Programming is more understandable and easier than other development kits.
❖ With its large library support, even very complex projects have been simplified as much
as possible.
❖ Cost is more suitable than similar systems.
❖ It is a product that can be easily found on the market.

7.2.1 ARDUNIO UNO


Arduino Uno, the most popular and frequently used Arduino model. Arduino Uno has the
following features:
❖ Microprocessor: ATmega328 (8-bit)
❖ SRAM: 2KB
❖ Flash Memory: 32KB
❖ Clock Speed: 16MHz
❖ Analog Input: 6
❖ Digital Input: 14 (6 PWM)

FIGURE 2.4-ARDUNIO UNO DETAILED

15
7.3 BLUETOOTH MODULE

HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for
transparent wireless serial connection setup. Hc-05 can work in Slave and Master mode.
Bluetooth modules Name Password and Baud rate sent with pre-set It is possible to replace
them with AT commands
Hc-05 Technical Specifications
❖ Bluetooth Protocol: Bluetooth 2.0 + EDR (Enhanced Data Rate)
❖ 2.4GHz communication frequency
❖ Sensitivity: ≤-80 dBm
❖ Output Power: ≤ + 4 dBm
❖ Current: 50 mA
❖ Authentication and Encryption

16
7.4 TEMPARATURE SENSOR

I used the DHT11 sensor as a temperature sensor. If the temperature of which device is to be
measured, the blue part at the head of this sensor is adhered to the floor of the instrument
to be measured.I will explain of feature for DHT11 temperature sensor

The DHT11 temperature and humidity sensor is an advanced sensor unit that provides a
calibrated digital signal output. DHT11 has an 8-bit microcontroller and the product has a
short response time. It measures the temperature with a margin of error of +/- 2 ° C
between -40 and 80 ° C.

DHT11 Technical Specifications

❖ Detection element: Polymer capacitor


❖ Accuracy Humidity: +/- 4% (Max 5%) RH
❖ Sensitivity Temperature: <+/- 2 ° C
❖ Measurement Period: 2 s
❖ Product Dimensions: 12mm x 23.5mm x 5.5 mm

17
18
8 CHAPTER 3: PROJECT METHODOLOGY

I I used the waterfall method in my project. "Waterfall Model" which is the most popular
method in project designs. This model is preferred in many application-based programs.
Waterfall Model descriptive; The linear-sequential life cycle model is mentioned in the
literature.

19
20
9 CHAPTER 4: REQUIREMENT ANALYSIS

In this section, I will explain the definition of the project and the ones that will use the
application. At the same time I will explain the method part 2, ie diagrams details and model

9.1 PROJECT DESCRIPTION


If I want to explain my project, my project is for the machines used in the factory measure
of temperature or the users are measuring the temperature of the devices they want. If the
device exceeds the temperature given by the user, the user is sending a warning to his / her
android device.

9.2 USER DESCRIPTION


In this project, the user does not have a very active role. The user can see the temperature in
this project on the android device (tablet or mobile phone), the user can determine the
maximum temperature.

9.3 USER REQUIREMENTS


• User must have a device with android operating system.
• The user should check the battery status of the android device he uses.
• When the TempController sends the alert that the temperature is too high for the android

device, the device that the user uses must be turned on.

• The Android device should not be turned off.

9.4 SYSTEM DESCRIPTION


The system is my hardware part. The system communicates to the android device via bluetooth. It
communicates the temperature with the help of its temperature sensor.

9.5 SYSTEM REQUIREMENTS


• The system must always be plugged in.
• Maximum 5V should be used for system operation.
• It should be placed in a smooth and stable place without breaking.
• The components contained in the system must be protected against external
influences.

21
10 SYSTEM ANALYSIS

This section contains design diagrams. This section will include uml structure and behavior
diagrams.

10.1 PROJECT DIAGRAMS

10.1.1 USE CASE DIAGRAM


There are two diagrams such as User-System Software diagram and System Harware-System
Software diagram

10.1.1.1 User-System Software diagram

10.1.1.2 System Harware-System Software diagram

22
10.2 BLOCK DIAGRAM

This diagram describes the operation of the application.Use embeded from java programing
language

23
10.3 CLASS DIAGRAM

Class modeling is based on an object-based system. In the class diagram, the name of the
class includes the objects of the class and the functions of the class. Each class is designed
individually. If the class is public + private, it takes – value espacially functions is the same
that. If the arrow direction is single, the transition is double. I have a total of twelve classes in
my project and each twelve class has separate operations. I tried to explain every detail in the
modeling below. This model also contains object and package diagrams.

24
25
11 CHAPTER 5: DESIGN AND IMPLEMENTATION

This section explains each step I made in the project from beginning to end. At the same time
this section contains the sequential diagrams. Because sequence diagrams show the flow of
the event. These diagrams also include the steps of the operation in the project. So I took
these diagrams in this section.

11.1 SEQUENCE DIAGRAM FOR MY PROJECT


11.1.1 Connection between Hardware and Software part via Bluethooth

26
11.1.2 Hardware part send temparetare and User show temperature on own Android device

11.2 DESIGN PHASE

I'm going to explain how I designed the hardware part in this part.

11.2.1 Building the Hardware


First I got the stuff I needed. These materials are:

• Ardunio UNO
• HC05 Bluethooth sensor
• DHT11 Tempeture sensor
• Jumpers
• Usb port
• Usb cable

27
Before we started, I took the microcontroller and other materials to the table.

28
Then I connected the bluetooth sensor.

Finally I connected the temperature sensor so I could create the hardware part

29
After the design of the hardware part, I wrote the code to the Arduino IDE platform. I
completed the values I will use first. I've added bookmarks to missing libraries. I created
digital pin outputs.

Btsend is a kind of function. This function reaches the bluetooth


sensor. If the bluetooth sensor is switched on, it sends
temperature data to the application if I can receive data from the
bidet.

30
This part is where the temperature sensor
operates .The temperature sensor called "msg" is
holding the temperature value.

11.2.2 BUILDING THE SOFTWARE

This section includes the android side. On the Android side, the user can see the
temperature as a notification. At the same time the user can change the maximum
temperature through the application. When it reaches the maximum temperature, the user
is notified on his android device and the alarm is ringing.

11.2.2.1 BLUETOOTH PART


The following is a section of code describing the connection with bluetooth.

31
In the picture above, the user sees the screen first. If it matches the bt sensor in the device,
the user will see the name of the sensor in the list. If you click on the sensor, it goes to the
screen showing the temperature.

When the above picture is turned on the user's temperature display, the temperature value above is
also displayed as a notification.

The picture above shows if the user has entered the max value and the temperature has
reached the max value, the alarm is activated and the alarm is audible.

32
In this picture, the user enters the maximum value. The maximum value that the android has
provided the temporary database to keep the updated screen and write

12 . CONCLUSION
Users will now check the temperature of the devices they use with this device.

12.1 OUTPUT OF PROJECT

33
34
35
13 REFERENCES
1: Selim Bozkır,2011,”UML MODELLEME”
https://www.slideshare.net/aselmanb/uml-ile-modelleme
2: Halil Özel ,2018,”Ardunio Nedir ? “
https://medium.com/@halilozel1903/arduino-nedir-722dbfda3fff
3:Murat Gül ,2015,Ocak 26,” Bluetooth Modüller HC-05 ve HC-06”
https://www.muhendisbeyinler.net/bluetooth-moduller-hc-05-ve-hc-06/
4: [1] Alzaza, N., (2042), “Research Methodology in Information Technology”, 4st edition.

36

You might also like