Sample Project
Sample Project
Sample Project
Esra Ezgin
JUNE 2019
1
1 DEDICATION
To
My Parents
That I love you so much…
All my friends with me...
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.
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
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.
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.
6.2 BACKGROUND
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.
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.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.
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.
✓ 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.
As I mentioned in the Motivation section, Most people will be protected from life and product
life depend to the my Project.
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
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
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.
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.
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
device, the device that the user uses must be turned on.
21
10 SYSTEM ANALYSIS
This section contains design diagrams. This section will include uml structure and behavior
diagrams.
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.
26
11.1.2 Hardware part send temparetare and User show temperature on own Android device
I'm going to explain how I designed the hardware part in this part.
• 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.
30
This part is where the temperature sensor
operates .The temperature sensor called "msg" is
holding the temperature value.
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.
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.
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