ARDUINO BASED WATER LEVEL MONITOR- ING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN TUAN ISMAIL UNIVERSITI MALAYSIA PAHANG
ARDUINO BASED WATER LEVEL MONITOR-
ING AND CONTROL VIA CAN BUS
TUAN ABU BAKAR BIN TUAN ISMAIL
UNIVERSITI MALAYSIA PAHANG
ARDUINO BASED WATER LEVEL MONITORING AND CONTROL VIA CAN
BUS
TUAN ABU BAKAR BIN TUAN ISMAIL
This thesis is submitted as partial fulfilment of the requirements for the award of the
Bachelor of Electrical Engineering (Hons.) (Electronics)
Faculty of Electrical & Electronics Engineering
Universiti Malaysia Pahang
DECEMBER 2016
ARDUINO BASED WATER LEVEL MONITORING AND CONTROL VIA CAN
BUS
TUAN ABU BAKAR BIN TUAN ISMAIL
This thesis is submitted as partial fulfilment of the requirements for the award of the
Bachelor of Electrical Engineering (Hons.) (Power Systems)
Faculty of Electrical & Electronics Engineering
Universiti Malaysia Pahang
DECEMBER 2016
iii
SUPERVISOR’S DECLARATION
I hereby declare that I have checked this thesis and in my opinion, this thesis is adequate
in terms of scope and quality for the award of the degree of the Bachelor Degree of
Electrical Engineering (Hons.) (Power Systems).
Signature :
Name of Supervisor : MAZIYAH BINTI MAT NOH
Position : LECTURER
Date : 30th
DECEMBER 2016
iii
STUDENT’S DECLARATION
I hereby declare that the work in this thesis is my own except for quotations and summaries
which have been duly acknowledged. The thesis has not been accepted for any degree and
is not concurrently submitted for award of other degree.
Signature :
Name : TUAN ABU BAKAR BIN TUAN ISMAIL
ID Number : EA11091
Date : 30th
DECEMBER 2016
iv
Specially dedicated to my family, supervisor and friends. Thank you for the support and
encouragement.
v
ACKNOWLEDGMENTS
Firstly, I would like thank God for giving opportunity to complete the project
and thesis on the designated time with health and time.
Secondly, I would like to express my gratitude to my supervisor madam Mazi-
yah Binti Mat Noh for the guidance to complete this project and thesis. I also would like
to thank her for choosing me to complete this project and provide me with the assistance
with the necessary facilities to complete my project.
Finally, I would like to thank my family and friends for giving the support and
encouragement for completing this project
viii
TABLE OF CONTENTS
Page
SUPERVISOR’S DECLARATION ii
STUDENT’S DECLARATION iii
ACKNOWLEDGEMENT v
ABSTRACT vi
ABSTRAK vii
TABLE OF CONTENTS viii
LIST OF TABLES x
LIST OF FIGURES xi
LIST OF SYMBOLS xiii
LIST OF ABBREVIATIONS xiv
CHAPTER 1 INTRODUCTION
1.1 Introduction 1
1.2 Problem Statement 1
1.3 Objective 2
1.4 Scope of Research 2
1.5 Thesis Outline 2
CHAPTER 2 LITERATURE REVIEW
2.1 Introduction 3
2.2 Controller Area Network
2.1.1 Applications 3
3
2.3 Micontroller Based Water Level Control System 3
2.4 Microcontroller Based Water Level Indcator Using
GSM
5
2.5 Design and Implementation of a Wireless Network Water
Level Control System
5
ix
CHAPTER 3 METHODOLOGY
3.1 Introduction 6
3.2 Project Flow Chart 7
3.3 System Flow Chart 8
3.4 Block Diagram 9
3.5 Hardware Design
3.5.1 Arduino Uno 9
3.5.2 Ultrasonic Sensor 10
3.5.3 Liquid Crystal Display 11
3.5.4 L298N Motor Driver Controller Board 12
3.5.5 Direct Current Motor 13
3.5.6 Power Supply 13
3.5.7 CAN Bus Shield 14
3.5.8 Prototype Fabrication 16
9
3.6 Software development 16
CHAPTER 4 RESULTS AND DISCUSSION
4.1 Introduction 20
4.2 Water Level Reading 20
4.3 Water Flow 23
CHAPTER 5 CONCLUSION AND RECOMMENDATION
5.1 Conclusion 25
5.2 Recommendation 25
REFERENCES 28
APPENDICES 29
A Software Coding 29
x
LIST OF TABLES
Table No. Title Page
4.1 Water level reading at room temperature
21
4.2 Water level reading at 65℃
22
4.3 Time taken for water level flow in
23
4.4 Time taken for water flow out
24
xi
LIST OF FIGURES
Figure No. Title Page
3.1 Project flow chart
7
3.2 System flow chart
8
3.3 Block diagram
9
3.4 Arduino Uno
10
3.5 Ultrasonic sensor
11
3.6 Ultrasonic application
11
3.7 I2C LCD display
12
3.8 L298N motor driver controller board
13
3.9 DC motor
13
3.10 Power supply
14
3.11 CAN bus shield
15
3.12 Fabrication prototype 16
4.1 Water level reading at room temperature
21
4.2 Water level reading at 65℃
22
4.3 Time taken for water flow in
24
4.4 Time taken for water flow out 25
xii
LIST OF SYMBOLS
℃ Degree Celcius
cm Centimetre
mm Mili metre
mA Mili Ampere
xiii
LIST OF ABBREVIATIONS
CAN Controller Area Network
ECU Electronic Control Unit
GSM Global System for Mobile Communication
SMS Short Messaging System
DC Direct Current
LCD Liquid Crystal Display
IDE Integrated Development Environment
USB Universal Serial Bus
GPS Global Positioning System
TTL Transistor-Transistor Logic