DEVELOPMENT OF INFOTAINMENT SYSTEM:
TRAVEL COST CALCULATOR
By
HASEEFAH NAZAAIDAH BINTI AHMAD MOGHNI
FINAL PROJECT REPORT
Submitted to the Electrical & Electronics Engineering Programme in Partial Fulfillment of the Requirements
for the Degree
Bachelor of Engineering (Hons) (Electrical & Electronics Engineering)
Universiti Teknologi Petronas Bandar Seri Iskandar
31750 Tronoh Perak Darul Ridzuan
© Copyright 20 II by
Haseefah Nazaahiah Binti Ahmad Moghni, 2011
cpproved:
CERTIFICATION OF APPROVAL
DEVELOPMENT OF INFOTAINMENT SYSTEM:
TRAVEL COST CALCULATOR
by
Haseefah Nazaahiah Binti Ahmad Moghni
A project dissertation submitted to the Electrical
&Electronics Engineering Programme
Universiti Teknologi PETRONAS in partial fulfilment of the requirement for the
Bachelor of Engineering (Hons) (Electrical
&Electronics Engineering)
lr. Noohul Basheer Bin Zain Ali roject Supervisor
UNIVERSITI TEKNOLOGI PETRONAS TRONOH, PERAK
May 2011
1
CERTIFICATION OF ORIGINALITY
This is to certifY that I am responsible for the work submitted in this project, that the original work is my own except as specified in the references and acknowledgements, and that the original work contained herein have not been undertaken or done by unspecified sources or persons.
Haseefab Nazaabiab Binti Ahmad Moghni
II
ABSTRACT
In-vehicle Infotainment (IVI) is a system that provides convenience for driver and passengers in a vehicle. The system has various applications that fulfill one need. In order to enrich the system, an application named Travel Cost Calculator (ICC) has been developed.
ICC is an application that calculates the mileage between two locations, fuel cost estimation and toll fare that user has to pay. This application is built on Intel e-Menlow platform that is based on Intel Atom processor. ICC is implemented by using the Google Maps Application Programming Interface (API), Adobe Flash Builder, Hypertext Preprocessor (PHP) and MySQL database. In order to achieve the total up cost of a journey, the programming has to be done part by part. The driving direction approach is used to obtain the mileage between two locations. For the fuel cost estimation, the vehicle's mileage per gallon (MPG) needs to be known. It can be chosen from the car engine size (cc) options. Last but not least, the total toll fare could be achieved by using the automatic detection of toll station approach Findings from these three parts will give the estimation of the total travel cost.
Ill
ACKNOWLEDGEMENTS
First of all, I would like to thank Allah the Almighty who has given me strength and blessings to complete my two semesters of Final Year Project. The utmost gratitude goes to my supervisor, Dr. Noohul Basheer Bin Zain Ali for his continuous guidance and support throughout my project. I would also like to give appreciation to Mr. Hau Tze-ming who has been a great teacher, and helping me getting through many challenges during this project.
Besides that, I would like to thank Universiti Teknologi PETRONAS (UTP), especially the Electrical and Electronics Engineering Department whereby students are given the opportunity to experience doing research or design work. It is an opportunity for us, students to use the tools and techniques for problem-solving. Furthermore, the learning process is gained through hands-on experience. Last but not least, thank you to all my fellow friends and family for their love and support, I have successfully completed my Final Year Project.
IV
TABLE OF CONTENTS
CERTIFICATION OF APPROVAL ... ···'
CERTIFICATION OF ORIGINALITY ... ii
ABSTRACT ... iii
ACKNOWLEDGEMENTS ... iv
LIST OFT ABLES ... viii
LIST OF FIGURES ... ... ix
LIST OF ABBREVIATIONS ... x1
CHAPTER 1 INTRODUCTION ... ! l.l Background Study... . . . ... I 1.2 Problem Statement ... . 1.2.1 Problem Identification ... . 1.2.2 Sign!ficant of Project ... ... . 1.3 Objectives ... . 1.4 Scope of Study ... . 1.5 Relevancy of Project. ... . . ... 2
. .. 3
3 . ... 4
...4
. ... ... ... ... . .... 5
1.6 Feasibility of the Project within the Scope and Time Frame.. . 5
CHAPTER 2 LITERATURE REVIEW ... 6
2.1 Hardware ... . 2.1.1 eMenlow Platform ... ... . 2.2 Ubuntu Operating System .... 2.3 Software ... . 2. 3.1 Google Maps API... . ... . 2.3.2 Adobe Flash Builder ... . 2. 3. 3 Hypertext Preprocessor ... . . 2. 3. 4 MySQL Database ... . ··· ... ··· 6
. .... 6
.. 9
. .. 9
··· ... 9
. ... 10
. .... 11
. ... 12
2.4 Specific Data Model of Smart Fuel Consumption Cost Estimator ... 12
2.5 Calculating the Nearest Location Using Haversine Formula ... 13
v
CHAPTER 3 METHODOLOGY ... 15
3.1 Procedure Identification ... . 3.2 Project Activities ... . 3.3 Gantt Chart... . ... . 3. 3.1 Project Milestone ... .. . 3.4 Tools and Equipments Required ... . . .. 15
.. 17
. 18 18 . 19 CHAPTER 4 RESULTS AND DISCUSSIONS ... 20
4.1 Data Gathering and Analysis ... . 4.1.1 Map Display and Driving Directions ... .. . 4.1.2 Fuel Consumption Cost Calculation ... . 4.1.3 Toll Cost Calculation... . ... . 4.1. 3.1 Database Development .. . 4.1.3.2 Result of Database ... . 4. 1. 3. 3 XML Parsing . ... 20
. ... 20
. ... 21
. ... 22
. ... 22
. ... 23
... 26
4.1.4 Automatic Detection of the Nearest Toll Station. . ... 29
4.2 Modeling... .. . . .. ... .. . . ... . .... 30
4. 2.1 Map Display . . . . ... . 4. 2.1.1 Program Elaboration ... . 4.2.2 Driving Directions ... . 4. 2. 2.1 Program Elaboration 4. 2. 3 Toll Cost determination ... ... . 4.2.3.1 Program Elaboration .. . 4.2.4Fuel Consumption Cost Calculation 4.2.5 Travel Cost Calculation ... . 4. 1. 4 Automatic Detection of the Nearest Toll Station ... .. . ... 30
. .... .31
... 33
.34 . .. 38
. ... 38
··· 39
. ... .41
. .. .42
=HAPTER 5 CONCLUSIONS AND RECOMMENDATIONS ... 45
5.1 Conclusions 5.2 Recommendations ... . ... .45
. ... .45
lEFERENCES .... •···•···•···••···••••···•···•··•···•····•.46
VI