Professional Documents
Culture Documents
JUNE, 2015
DECLARATION
I MOHAMED FARUKU I declare that this project is an original work of my mind with my own
knowledge. It’s not copied from elsewhere except the discussion and extracts taken from other
sources that I explained each in detail.
………………………………………………………..
Student: MOHAMED FARUKU
………………………………………………………..
Project Supervisor: MR. NNKO, J.J
…………………………..
Date
ABSTRACT
Now a day’s auto mobile takes a major role in world economic due the rise of petrol cost, on
another side almost every car use analog fuel gauge meter this meter has weakness drivers are
unable to estimate the real actual volume of fuel present in the tank and what is entered during
refueling some of them only show if the tank is full or if the tank is empty this is nothing to help
the driver to know the actual volume.To solve this problem the digital display system has to be
designed and implemented. This project consist of two parts software and hardware development
in which it contain three unit which will be designed so that to reach the implementation of
digital system where those components are sensing unit, control unit and display unit.
Sensing unit will responsible for detecting the volume found in the tank takes the analog values.
Control unit is PIC microcontroller based which has inbuilt ADC analog to digital converter
which will be responsible for conversion of analog values from the tank which have been sent by
the sensing unit into digital values so that they can be manipulated to give out the desired output
volume. Display unit is responsible for giving out the real reading from the tank to the user.
The project is intended to be implemented to the PARAGUNA TRANSPORTATION
COMPANY which is headquarter is located at DODOMA region but has its branches at
Dar Es Salaam and all over East Africa. The company involved in cargo transportation along
East and Mid Africa. The company use various tracks in transportation like Scania, Isuzu, Fuso
this tracks use analog fuel gauge meter. In order to meet the solution the method used for this
project the prototyping methodology is used. Various tools will be used for data collection like
interview, questionnaire, observation and documentary and other project review. The data that
will be collected from all tools will help to the accomplishment of the project. If the project is
successful could be extended further to show the amount of temperature rise, mileage, and also
truck the car tank fuel tank as it is used as it travel through a certain distance.
ACKNOWLEDGEMENT
Up to this moment I would like to express my sincere appreciation to God almighty for giving
me health and strength during the whole time of preparation of this first phase of the project.
I would like to express my deep appreciation to Mr. NNKO who is my supervisor of the project
without forgetting all the members of staff in the department of Computer studies at DIT for their
contribution to my report writing.
TABLE OF CONTENTS
DECLARATION...............................................................................................................................................i
ABSTRACT....................................................................................................................................................ii
ACKNOWLEDGEMENT.................................................................................................................................iii
LIST OF ABBREVIATIONS.............................................................................................................................vi
LIST OF FIGURES.........................................................................................................................................vii
LIST OF TABLES..........................................................................................................................................viii
CHAPTER ONE..............................................................................................................................................1
1.1Introduction........................................................................................................................................1
1.2Problem statement.............................................................................................................................1
1.3Main objective....................................................................................................................................1
1.4Specific objectives..............................................................................................................................1
1.5Significance of the project..................................................................................................................1
1.6Scope of the project...........................................................................................................................2
CHAPTER TWO.............................................................................................................................................3
LITERATURE REVIEW................................................................................................................................3
2.1.Introduction.......................................................................................................................................3
2.2Existing system...................................................................................................................................3
2.2.1 Sensing unit................................................................................................................................3
2.2.2The indicator unit........................................................................................................................3
2.2.3 Block diagram of the current system..........................................................................................4
2.2.4 Weakness of the current system................................................................................................4
2.3 Proposed system...........................................................................................................................5
2.3.1Relevant views about the proposed system................................................................................5
2.3.2Digital fuel gauge meter..............................................................................................................5
2.3.3Sensing unit.................................................................................................................................5
2.3.4Analog to digital converter..........................................................................................................5
2.3.5Control unit..................................................................................................................................5
2.3.6Display unit..................................................................................................................................5
2.3.7 Block diagram of the proposed system.......................................................................................6
2.3.8Advantages of the proposed system...........................................................................................6
CHAPTER THREE..........................................................................................................................................7
METHODOLOGY.......................................................................................................................................7
3.1 Introduction.......................................................................................................................................7
3.2LiteratureReview................................................................................................................................7
3.3 Data Collection..................................................................................................................................7
3.4 Data Analysis.....................................................................................................................................7
3.5 Design of theCircuit...........................................................................................................................8
3.6 Circuit Simulation..............................................................................................................................8
3.7 Building the prototype.......................................................................................................................8
METHOD OF THE PROJECT.......................................................................................................................9
CHAPTER FOUR..........................................................................................................................................10
DATA COLLECTION.................................................................................................................................10
4.1 introduction.....................................................................................................................................10
DATA COLLECTION TABLE......................................................................................................................10
4.2 DATA SHEETS FOR CIRCUIT COMPONENTS......................................................................................11
4.2.1 Crystal oscillator.......................................................................................................................11
CHAPTER FIVE............................................................................................................................................12
DATA ANALYSIS......................................................................................................................................12
5.1 Power Supply (rectified AC mains)...................................................................................................12
5.2 Controller unit.................................................................................................................................14
RUNNING CIRCUIT SIMULATION FOR THE DESIGN................................................................................17
4.3 PROJECT COST ESTIMATION............................................................................................................18
REFERENCES..............................................................................................................................................19
APPENDICES..............................................................................................................................................20
APPENDIX A.......................................................................................................................................20
QUESTIONNAIRE FOR PERAGUNA EMPLOYEE...................................................................................20
APPENDIX B.......................................................................................................................................21
INTERVIEW GUIDED QUESTIONS FOR EMPLOYEE AND DRIVERS.......................................................21
LIST OF ABBREVIATIONS
1.1Introduction
Chapter will consist of background of PARAGUNA TRANSPORTATION COMPANY
LIMITED, Problem statement, Main objectives and Specific objectives, Significance of the
project and Scope of the project.
1.2Problem statement
The existing gauge meter is analog based which using a wiper moving on the scale to indicate
the reading. In this system got some limitations which make it inefficient to perform its work
efficiently to meet the accurate readings to the user.
1.3Main objective
To design and implement the digital system for measuring the amount of fuel found in the car
tank.
1.4Specific objectives
• Designing of power regulator – involve designing of a desirable DC for utilization of
the circuit component.
• Designing of central control system – involve designing of the circuit control system.
• Construct circuit – this involve construction of the circuit in circuit simulating tools.
• Circuit simulation and testing – this involve testing and free the circuit from bugs.
• Transfer and build the circuit on the PCB board – the tested circuit is transferred and
soldered on the PCB board.
• Testing the PCB board circuit – after transferring on the board the built circuit is
tested and free it from bugs.
• Implementing of the system – involve system implementation and delivery.
2.2Existing system
The existing system of the car fuel gauge meter is analog based, which is used to show the
amount of fuel found in the tank.
It consist of two parts:
• Sensing unit
• The indicator
POWER SUPPLY
ANALOG MATER
FLOATING
SENSOR IN THE
CAR TANK
2.3.3Sensing unit
This unit consist of floating sensor located in the tank used to detecting the amount found in the
tank.
2.3.5Control unit
In this unit accept input from ADC and process it to give out the values in digital format
2.3.6Display unit
This unit provide actual reading output from the tank to the user.
2.3.7 Block diagram of the proposed system
POWER SUPPLY
CAR TANK
WITH
FLOATING
SENSOR
MICROCONTROLLER
DISPLAY ANALOG TO DIGITAL
UNIT CONVERTER (ADC)
METHODOLOGY
3.1 Introduction
This chapter will explain different steps that will be taken in order to accomplish the
objectives of the project.
• Literaturereview
• Data collection
• Data analysis
• Circuitdesigning
• Circuit simulation
• Testingof thecircuit
3.2LiteratureReview
Literature review has been done through reading electronics books so asto obtain relevant
information relating to my project and counseling from my project supervisor.
Specification Quantity
Components
Microcontroller 1
16F887
oscillator Crystal 1
Variable Resistor 1
10KΩ POT
Resistors Variable resistor 2
Electrolytic type 2
Capacitor
Ceramic type 1
display Lcd 20 x 4 1
Battery 9-12v 1
Table1:data collection
Vp=220∗√ 2=311V
You can see that as the sampling rate and precision (resolution) increase, the similarity between
the original wave and the ADC's output improves.
The figure below shows an analog signal and quantized versions for several different number of
quantization levels. With L levels, we need N=log2 L bits to represent the different levels or
conversely, with N bits we can represent L = 2N levels.
The ADC for PIC 16F887 module has the following characteristics