PROJECT REPORT AUTOMATICALLY FEEDING …repository.unika.ac.id/14911/1/13.02.0059...
Transcript of PROJECT REPORT AUTOMATICALLY FEEDING …repository.unika.ac.id/14911/1/13.02.0059...
PROJECT REPORT
AUTOMATICALLY FEEDING FISH
USING IOT SYSTEM
CORNELIUS JUNIKO SANTOSO
13.02.0059
2017
INFORMATICS ENGINEERING DEPARTMENT
FACULTY OF COMPUTER SCIENCE
SOEGIJAPRANATA CATHOLIC UNIVERSITY
ABSTRACT
Feeding fish in the aquarium can be done automatically using amicrocontroller. The microcontroller used in this project is nodeMCU. Thisproject uses some of the devices that are nodeMCU, HC-SR04 sensors, amicro servo SG90,a micro SD module included micro sd memory, male-famale cable, and a breadboard. The working of this project is thenodeMCU will read the time.txt and the alarm.txt in the micro SD. Thetime.txt used to set the time. The alarm.txt used to set the schedule toopen and to close the door of fish feed can. This project uses HC-SR04 tomeasure the volume of fish feed and the water level in aquarium. Tomontoring the fish feed can and the water level can be done with asmartphone and computer. The volume of fish feed can and the waterlevel will be sent to IoT server (www.thingspeak.com) and will be saved intxt file format.
Keywords: NodeMCU, HC-SR04 Sensor, IOT, Automatically FeedingFish.
iv
PREFACE
First of all I would like to thank God because it can complete this
project. This project has the title “Automatically Feeding Fish using IoT
System.
The final project report consists of 6 chapters. The first chapter
describes the background problems, the scope, and the objectives of this
project. Chapter two contains a difference of this project from the previous
project. In chapter three discusses the steps in making this project.
Chapter four contains analysis and design for this project using flowchart
and schematic design. Chapter five discusses the implementation and
testing of this project. Then the last chapter six contains of the conclusions
from the writer and the project forward.
v
TABLE OF CONTENT
APPROVAL AND RATIFICATION PAGE ...................................................... ii
STATEMENT OF ORIGINALITY .................................................................. iii
ABSTRACT .................................................................................................. iv
PREFACE ..................................................................................................... v
CHAPTER I INTRODUCTION ..................................................................... 1
1.1 Background ......................................................................................... 1
1.2 Scope .................................................................................................. 1
1.3 Objective ............................................................................................. 1
CHAPTER II LITERATURE STUDY ............................................................. 2
2.1 NodeMCU ........................................................................................... 3
2.2 HC-SR04 Sensor ................................................................................ 4
2.3 Micro SD Module ................................................................................ 4
2.4 Micro Servo SG90 .............................................................................. 5
2.5 Micro SD ............................................................................................. 6
CHAPTER III RESEARCH METHODOLOGY ............................................. 7
CHAPTER IV ANALYSIS AND DESIGN ...................................................... 8
4.1 Analysis ............................................................................................... 8
4.2 Design ................................................................................................. 9
4.2.1 Flowchart ...................................................................................... 9
4.2.2 Design Schematic ...................................................................... 11
CHAPTER V IMPLEMENTATION AND TESTING ..................................... 12
5.1 Implementation ................................................................................. 12
5.1.1 Arduino IDE ................................................................................ 12
5.1.2 PHP File ..................................................................................... 21
5.2 Testing ............................................................................................... 23
CHAPTER VI CONCLUSION .....................................................................28
6.1 Conclusion ........................................................................................28
6.2 Further Research ..............................................................................28
REFERENCES
vi
TABLE OF FIGURE
Figure 1: NodeMCU ..................................................................................... 3
Figure 2: HC-SR04 Sensors ........................................................................ 4
Figure 3: Micro SD Module .......................................................................... 4
Figure 4: Micro Servo SG90 ......................................................................... 5
Figure 5: Micro SD ....................................................................................... 6
Figure 6: Flowchart ....................................................................................... 9
Figure 7: Design Schematic ....................................................................... 11
Figure 8: NodeMCU Connected the WiFi .................................................. 23
Figure 9: Detecting Micro SD Memory ....................................................... 24
Figure 10: Detecting the time.txt and the alarm.txt .................................... 24
Figure 11: Setting the time .........................................................................25
Figure 12: Measuring the distance using HC-SR04 sensor .......................26
Figure 13: Saving the volume and the water level in txt file .......................27
Figure 14: Saving the volume and the water level in IoT server ................27
vii