By Davin Edison
11501056
BACHELOR’S DEGREE in
Mechanical Engineering – Mechatronics Concentration Engineering and Information Technology
SWISS GERMAN UNIVERSITY The Prominence Tower
Jalan Jalur Sutera Barat No. 15, Alam Sutera Tangerang, Banten 15143 - Indonesia
July 2019
Revision after Thesis Defense on July 18th 2019
Davin Edison STATEMENT BY THE AUTHOR
I hereby declare that this submission is my own work and to the best of my knowledge, it contains no material previously published or written by another person, nor material which to a substantial extent has been accepted for the award of any other
degree or diploma at any educational institution, except where due acknowledgement is made in the thesis.
Davin Edison
_____________________________________________
Student Date
Approved by:
Leonard P. Rusli, M.Sc., Ph.D.
_____________________________________________
Thesis Advisor Date
Erikson F. Sinaga, S.T., M.Kom.
_____________________________________________
Thesis Co-Advisor
_______
Date
Dr. Maulahikmah Galinium, S.Kom., M.Sc.
_____________________________________________
Dean
_
______
Date
Davin Edison ABSTRACT
MONITORING OF WATER QUALITY BY IMPLEMENTING INTERNET OF THINGS AND AUTONOMOUS BOAT
By
Davin Edison
Leonard P. Rusli, M.Sc., Ph.D., Advisor Erikson F. Sinaga, S.T., M.Kom., Co-Advisor
SWISS GERMAN UNIVERSITY
Aquaculture in Indonesia has begun to improve rapidly from time to time. However, most of aquaculture practitioners still use conventional method on monitoring the water most important aspect of the aquaculture which is the water quality. This thesis work focuses on the development of a prototype of an aquaculture water quality monitoring system which can monitor temperature and pH. The data then can be accessed by the practitioners to improve the quality of aquaculture product in Indonesia. The monitoring system covered the communication protocol that is based on MQTT communication protocol which is lightweight that is suitable with the remote area of aquaculture pond.
Keywords: Internet of Things, Python, Arduino, Raspberry Pi, Aquaculture.
Davin Edison
© Copyright 2019 by Davin Edison All rights reserved
Davin Edison DEDICATION
I dedicate this thesis works for the aquaculture technology in Indonesia and future development of automated technology.
Davin Edison ACKNOWLEDGEMENT
The author wishes to thank Leonard P. Rusli, M.Sc., Ph.D. as my thesis advisor and Erikson F. Sinaga, S.T., M.Kom as my thesis co-advisor for their attentive support and guide for the development of this thesis project.
Furthermore, the author wishes to thank Mr. Freddy, and Dr. Rusman Rusyadi for their supports and guide as external advisor in building mechanical system, electrical system, and from programming side system of this thesis project.
Without all the collaborations, the author will be at disadvantage to complete the thesis work.
Davin Edison Page
STATEMENT BY THE AUTHOR ... 1
ABSTRACT ... 2
DEDICATION ... 4
ACKNOWLEDGEMENT ... 5
TABLE OF CONTENTS ... 6
TABLE OF FIGURES ... 10
LIST OF TABLES ... 14
CHAPTER 1 INTRODUCTION ... 15
1.1 Background ... 15
1.2 Thesis Objectives ... 16
1.3 Thesis Problems ... 16
1.4 Thesis Scope ... 17
1.5 Thesis Limitations ... 17
1.6 Thesis Structure ... 18
CHAPTER 2 LITERATURE REVIEW ... 19
2.1 Internet of Things ... 19
2.1.1 Device to Device communication ... 19
2.1.2 Device to Cloud Communications ... 20
2.1.3 Device to Gateway Model ... 21
2.2 MQ Telemetry Transport (MQTT)... 22
Davin Edison
2.3.3 Water Temperature and Infectious Diseases ... 24
2.4 pH in Culture Pond ... 25
2.5 Temperature and Dissolved Oxygen Relation (Krueger, 2018) ... 26
2.6 Python (Programming language) ... 28
2.7 MySQL Database ... 29
2.7.1 Database Management System ... 29
2.7.2 Relational Database ... 29
2.8 Global Positioning System (GPS) ... 30
2.8.1 GPS Space Segment (SS) ... 30
2.8.2 GPS Control Segment ... 31
2.8.3 GPS User Segment... 32
2.9 Servomotor ... 32
2.10 Raspberry Pi ... 34
2.10.1 Types of Raspberry Pi ... 34
2.11 Arduino Mega 2560 ... 35
CHAPTER 3 RESEARCH METHODS ... 37
3.1 System Overview ... 37
3.2 Mechanical Design ... 38
3.2.1 Boat Cover ... 39
3.2.2 Waterproof enclosure ... 42
3.2.3 Additional Floaters ... 43
3.2.4 Boat Rudder ... 46
3.2.5 Boat Final Assembly ... 46
3.3 Electrical Design ... 47
3.3.1 Boat Control System ... 47
Davin Edison
3.4.2 GPS map plot ... 77
3.4.3 Accessing Older Data ... 77
CHAPTER 4 - RESULTS AND DISCUSSIONS ... 78
4.1 Introduction ... 78
4.2 Prototype Development ... 78
4.3 Website ... 80
4.4 Each Components Testing ... 83
4.4.1 Ultrasonic Sensor Test ... 83
4.4.2 GPS Module Test ... 86
4.5 Boat Real Testing ... 93
4.5.1 Testing 1 ... 94
4.5.2 Testing 2 ... 95
4.5.3 Test 3 ... 96
4.6 Boat Path Planning ... 98
4.7 Water Quality Data Taking ... 99
4.7.1 pH Sensor Calibration ... 100
4.7.2 Temperature Sensor Calibration ... 105
4.7.3 Temperature and pH Relation Analysis ... 106
CHAPTER 5 - CONCLUSIONS... 109
5.1 Conclusions ... 109
5.2 Improvement: ... 110
GLOSSARY ... 111
REFERENCES ... 112
APPENDICES ... 115
APPENDIX A – PYTHON CODE DATA LOGGING ... 115
Davin Edison
C.1 – DS18B20 ... 136
C.2 – ARDUINO MEGA 2560 ... 156
C.3 – JSN-SR04T ... 162
C.4 – NEO U-BLOX 6M ... 166
C.5 – IBT 2 MOTOR DRIVER ... 168
C.7 – SEN0161 pH METER ... 171
APPENDIX E – BOAT CONTROL GPS BASED ... 173
CURRICULUM VITAE ... 190