Final Fuel Report
Final Fuel Report
BACHELOR OF ENGINEERING
IN
Submitted By
Assistant Professor
Department of ECE
2020-2024
CERTIFICATE
This is to certify that the thesis titled “Enhanced Fuel Dispensing and
Determining Quality of Fuel” submitted by Japathi Yashwanth Chandra
(100520735018), Ritvik Aggarwal (100520735029), S Muhammed
Farhan (100520735030) in the partial fulfillment of requirements for the
award of the degree of Bachelor of Engineering in Electronics and
Communication Engineering, University College of Engineering,
Osmania University is an authentic work carried out by them is under
my supervision.
External Examiner
ACKNOWLEDGEMENT
The satisfaction that accompanies the successful completion of any task would be
incomplete without the introduction of the people who made it possible and whose
constant guidance and encouragement crowns all efforts with success
We would like to express our sincere gratitude to our guide Mr. R. Narendra Reddy,
Asst. Professor, Department of Electronics and Communication Engineering, for
his invaluable counsel and help. He was a huge inspiration for us to work on this
project. His ability to encourage us was really beneficial to our endeavor.
We are also grateful to Prof. D. Ramakrishna, Head of the ECE department, and
Prof.P. Chandra Sekhar, Principal, University College of Engineering, Osmania
University for providing great facilities and a pleasant atmosphere to complete this
project.
We sincerely acknowledge all the people mentioned above, without whose co-
operation we couldn't have completed the project successfully.
We at this moment declare that the work presented in this project report
entitled "Enhanced Fuel Dispensing and Determining Quality of Fuel”
submitted in partial fulfillment of the requirement for the award of the
degree of Bachelor of Engineering in Electronics and Communication
Engineering, University College of Engineering, Osmania University
Hyderabad, is an authentic record of our work carried out during the
year 2023-2024 under the guidance and supervision of Mr. R. Narendra
Reddy, Asst. Prof., Dept. of E.C.E and have not submitted for the award
of any other degree.
This report's findings have not been submitted to any other university
or institute for the purpose of conferring a degree or certificate.
The growing need to address the problems in the fuel industry is what inspired
this effort. Restoring trust in the fuel industry requires a strategy that combines
both quantity and quality detection techniques.
v
INDEX
ABSTRACT………………………………………………………….……… v
LIST OF FIGURES……………………………………………………………
viii
LIST OF TABLES……………………………………………………………..
x
CHAPTER 1 INTRODUCTION
1.1 Introduction…………………………………………………………..……
01
1.2 Problem Statement……………………………………………..………….
01
1.3 Literature Survey…………………………………………………………..
01
1.4 Existing System……………………………………………………….……
04
1.5 Objectives Of This Project…………………………………………………
05
1.6 Dissertation Organization…………………………..……………………
06
1.7 Summary…………………………………………………….……………..
06
CHAPTER 2 DESIGN REQUIREMENTS
2.1 Introduction……………………………………….……………………...…
07
2.2 Hardware Requirements……………………………………..………..…..
07
2.2.1 Arduino Uno……………………………………………………….
07
2.2.2 Arduino Nano ………………………………………………….….
11
2.2.3 Turbo Water Flow Sensor………………………………………....
15
2.2.4 Load Cell (Yzc - 133 20kg)…………………………………..…..
17
2.2.5 Hx711 Load Cell Amplifier………………………….…………….
18
` 2.2.6 Piezo Electric Buzzer….………………………………………….
20
2.2.7 Lcd With I2C………………………………………………………
21
2.2.8 SPST Push Button Switch………………………………………..
23
2.2.9 Push Button……………………………………………………….
23
2.2.10 Jumper Wires, Wood , Funnel And Container……………..…
24
2.3 Software Requirement……………………………………….………….…
26
2.3.1 Arduino Ide…………………………………………………….…
26
vi
CHAPTER 3 DESIGN METHADOLOGY
3.1 Introduction……………………………………………………………….
27
3.2 Proposed System………………………………………………………….
27
3.2.1 Real Time Flow Quantity Measurement……………………….
27
3.2.2 Fuel Quality And Quantity Measurement………………………
27
3.2.3 Block Diagram……………………………………………………
28
3.2.4 Quality Checking Chart………………………………………….
29
3.2.5 Conceptual Visualization…………………………………………
29
3.3 Need For Alteration………………………………………………………..
30
3.4 Developed System…………………………………………………………..
32
3.4.1 Hardware Implementation………………………………………
32
3.4.2 Software Implementation………………………………………..
33
BIBLIOGRAPHY……………………………………………………………..
45
APPENDIX……………………………………………………………………
46
A.1 Quantity Measurement Code……………………………………
46
A.2 Quality Measurement Code……………………………………….
48
vii
LIST OF FIGURES
viii
Fig 3.1 Proposed circuit diagram for fuel quantity and quality 28
measurement
Fig 3.2 Block diagram of the proposed system 28
Fig 3.3 Conceptual Visualization of proposed system 29
Fig 3.4 Testing with Ultrasonic sensor 30
Fig 3.5 Circuit Diagram for Quantity Measurement device 32
Fig 3.6 Circuit diagram for Quality measurement device 33
Fig 3.7 Calibration test in Arduino IDE 34
Fig 3.8 Calibrating load cell with known mass 34
Fig 4.1 Model of Quality measurement Device 36
Fig 4.2 Model of Quantity measurement Device 36
Fig 4.3 Model of the whole setup 37
Fig 4.4 Reading of petrol in Quantity measurement device 38
Fig 4.5 Reading of petrol in Quality measurement device 38
Fig 4.6 Reading of turpentine oil in Quality measurement device 39
Fig 4.7 Reading of adulterated petrol in Quality measurement 40
device
ix
LIST OF TABLES
x
CHAPTER - 1
INTRODUCTION
1.1 INTRODUCTION
India is ranked 11th in the world for the number of automobiles in use, as most of the
automobiles in India run on petrol and diesel.India has turned out to be a great market
for the fuel industry. Adulteration of fuel as well as reducing the fuel outflow in petrol
bunks has become a major issue in India. Adding adulterants to fuel not only
increases engine deposits and emissions but also reduces the customer’s trust in the
fuel industry. There are also issues with fuel amount being delivered to customer as
few petrol bunks use longer pipes to deliver fuel where the fuel stagnates in the pipe
letting lesser fuel to be delivered.
The escalating number of reports and complaints from customers highlights a growing
problem within the fuel industry—namely, the pervasive issue of inconsistent fuel
quantity dispensed by different fuel stations. This problem is further exacerbated by
concerns surrounding the accuracy and quality of the dispensed fuel. The persistent
grievances from consumers regarding inaccurate fuel dispensing have reached a
critical juncture, posing a serious threat to customer satisfaction and integrity within
the fuel industry. Urgent attention is required to address these issues comprehensively
and restore trust between fuel providers and consumers.
There is a lot of emphasis on the rising need of proper measurement for fuel quantity
and its quality. This is because of the uncertainty in people in relation to obtaining the
assured quantity and quality of fuel they have paid for. Traditional methods for
detecting fuel adulteration such as laboratory analysis and manual inspections are
time consuming, expensive and not applicable for real time monitoring. Several
studies have discussed about the various methods of solving these issues and to find a
1
way to enhance customer satisfaction.
The emergence of IoT technologies has revolutionized the field of fuel quality
monitoring by enabling real time data collection and analysis. The study [1]
implements a system that determines the adulteration and quantity of gasoline fuel
using Arduino Uno microcontrollers, load cells and TCS3200 colour sensors. This
system also integrates this data with a SIM00C GSM module for wireless
communication and data storage and uses an open source IoT platform called
ThingSpeak for data storage and visualization.
Similarly [2] discusses an IoT based system that incorporates load cells for
monitoring and tracking fuel levels effectively. It also implements the use of GPS and
GSM modules to alert the driver about insufficient fuel to prevent fraud and theft.
Despite the potential benefits of IoT based fuel quality monitoring systems, several
challenges faced in both study [1] and [2] include sensor accuracy, reliability and
most importantly high initial cost acts as a barrier that prevents widespread adoption.
Various sensor-based techniques have been explored for detecting fuel adulteration.
[3] provides a comprehensive review of different sensor-based techniques such as the
use of infrared sensors with camera-based imaging, optical sensors based on porous
silicon microcavity, sensors based on fibre grating technology, quartz transducers,
electrical meta material sensors along with the use of micro controllers for the same.
Sensor calibration and external environmental factors interference are challenges
associated with the use of this sensor-based techniques.
2
Some of the innovative fuel monitoring systems offer advantages like real time
monitoring like the system proposed in [5] which introduces a comprehensive fuel
monitoring system which comprises of various modules including fuel level detection
that incorporates the use of ultrasonic sensor, adulteration testing, oil quality check
that uses IR rays to determine the quality of the engine oil, notification module that
sends alerts to the user through a mobile application and a logs storage for all fuel
related data in cloud. However, several challenges associated include sensor accuracy,
data integrity and security and higher initial investment.
The device described in [6] includes a cylindrical cone tipped tank, PVC pipe, turbine
flow meter, an Arduino uno microcontroller, digitizer, temperature sensor and a 9v
battery. Fuel flows through this device and the quantity of fuel and its viscosity are
measured using the flow meter via pulse signal processing. The data is sent to the
digitizer for display. The advantages of using this system include portability, low
maintenance. However, bulky nature, higher sensitivity and high initial cost are the
constraints associated with this system.
The method proposed in [7] offers a real time approach to detecting fuel adulteration
using optical fibre sensors. The system utilizes a fibre optic evanescent wave sensor
interfaced with a PIC (peripheral interface controller) to detect to measure the
percentage adulteration in fuel by noting down the variations in its refractive index.
This system poses several advantages such as real time data acquisition, integration
with other displays and safe handling but interferences from the external environment
easily distort the data obtained from the sensors due to its higher sensitivity and
difficulty in sensor calibration are its major drawbacks.
The system described in [8] offers a sensor based approach whose key components
include a load cell sensor for computing the density of the sample and a TCS 320
colour sensor for detecting its colour. These sensors are interfaced with an Arduino
microcontroller which processes the sensor data and displays it on an 16x2 LCD
screen. The system developed was able to achieve an accuracy of 89% demonstrating
its effectiveness in adulteration detection. However, sensor calibration and external
environmental influences affect the accuracy and reliability of these types of systems.
3
1.4 EXISTING SYSTEM
Most fuel systems even in modern vehicles use a simple float assembly which
rises or dips according to the level of fuel in the tank. This is very similar to the
mechanism used in flush tanks. The float is connected to a resistor which in turn is
connected to the battery and the gauge .According the level of float the resistor value
increases/decreases which changes the amount of current being sent to the gauge .This
shows the fuel level in the gauge.
To minimize the effect of fuel sloshing around the tank, fuel tanks usually
have a feature to temporarily trap fuel around the float, so that it doesn’t change
whenever we accelerate, decelerate or change the vehicle’s orientation.
Fuel quality checking in petrol bunks can be demanded by the customer, first
they take a white filter paper and pour a drop of fuel from the nozzle on it. They let it
dry for 2 minutes , if one doesn’t observe any kind of stain after the filter paper dries
up , then the petrol is pure Similarly for density checking at petrol bunks they fill 500
ml fuel in a clean measuring jar, immerse a hydrometer in the jar and measure the
temperature using thermometer. They then use the ASTM table to check from where
15 degree density is achieved, compare with the density they get in the hydrometer, if
the difference doesn’t exceed plus or minus 3kg/m3 the density is right. For quantity
checking they have fuel measuring jars ready at the petrol bunks if they customer
wishes to check the fuel quantity.
4
Fig 1.1:Typical fuel sensing in a tank Fig 1.2:Fuel quality checking in petrol bunks
Fig 1.3 :Fuel density checking at petrol Fig 1.4 :Fuel meter at fuel station
bunks using hydrometer
1. To create a unit which can calculate the amount of fuel being poured into it for
accurate checking of the fuel being dispensed.
2. To create a unit which can calculate the density of fuel in the fuel tank and show
the changes in density when an adulterated fuel is added to the fuel tank.
5
By accomplishing these objectives, the designed system may prove to be a
useful tool, potentially enhancing the general life quality of life. With the cost of fuel
increasing every day, this system can help the customer not get cheated on. This
initiative would also make a major contribution to the development of the automobile
and fuel industry.
The Chapter-1 gives a brief introduction to the project including its need and
aim of the project. It also includes the requirement for a fuel quantity and quality
check system followed by a literature survey. The Chapter-2 explains about the design
requirements in terms of hardware and software components required for carrying out
the project. This chapter also contains a detailed explanation about each and every
hardware component used as a part of the project. Chapter-3 discusses about design
methodology, architecture of the developed system and details about both hardware
and software implementation. The proposed ideas as well as reasons to alter the
system are presented in this chapter. The results of the prototype, along with the
observations are presented in Chapter-4. The conclusion and the future scope are
mentioned in the final chapter i.e., Chapter-5.
1.7 SUMMARY
This chapter gives a brief discussion about the rising need for a quantity and
quality measurement device that can calculate the fuel quantity and quality in real
time. It describes the motivation of the project, its objectives and the literature survey.
The literature survey highlights the importance of a system which can accurately
calculate the fuel quality and quantity in real-time and gives an overview of the
existing methodologies which have similar concepts involved and hence provides an
opportunity to find the limitation in the existing methods and overcome those in the
proposed system. The Dissertation organization helps to establish the research context
and outlines the research objectives.
6
CHAPTER - 2
DESIGN REQUIREMENTS
2.1 INTRODUCTION
Introduction
The choice of micro controller for an IoT based solution plays a crucial role in
deciding the performance and efficiency of the end product. In this proposed system
we use 2 Arduino boards; Arduino UNO and Arduino Nano. The Arduino UNO is an
open - source micro controller based on the Microchip ATmega328P micro controller.
The micro controller board is equipped with sets of digital and analog input/output
pins that may be interfaced to various expansion boards and other circuits. The board
has 14 digital I/O pins, 6 analog I/O pins and is programmable with the Arduino IDE
via a type B USB cable. It can be powered by a USB cable or a barrel connector that
accepts voltages between 7 to 20 volts.
7
Features
Features Specifications
l 32KB Flash
Memory
l 2KB SRAM
l 1KB EEPROM
The Arduino Uno board is perfect for students and beginners to get familiar with
electronics and coding. This board gives new beginners the required first experience
within the world of Arduino and IoT Applications.
8
Pin Description
Analog Pins
1 NC NC Not connected
9
12 A3 Analog/GPIO Analog input 3/GPIO
Digital Pins
10
18 A5/SD5 Digital Analog input 5/I2C Clock
line(duplicated)
Introduction
The Arduino nano is a compact and a smaller version of Arduino Uno , It is also based
on the ATmega328. It mainly lacks only a DC Power Jack, and works with a Mini-B
USB cable instead of a standard one. It is used mainly mainly when space is a
constraint. Despite it’s small size the Arduino Nano retains most of the Arduino Uno
R3’s features making it suitable for multiple application in Electronics and Embedded
Systems. The Arduino Nano board is designed for mini projects at its core. The
hardware is compatible with Arduino IDE, Arduino CLI and Web Editor.
Features
Features Specifications
2 kB internal SRAM
11
1 kB EEPROM
Idle
Power-save
Sleep Modes
Power-down
Standby
Extended Standby
20 Digital
I/O 8 Analog
l 6 PWM Output
The primary processor in the Arduino Nano board is the high performance and
low power 8-bit ATmega328 microcontroller that runs at a clock frequency of 16MHz.
Its able to interface external devices through serial communication supported by chip
with UART TTL, I2C and SPI.
12
Pin Description
Analog Pins
13
10 +5V Power +5V Power Rail
Digital Pins
14
2.2.3 Turbo Water Flow Sensor (YF-S201)
Introduction
Water flow sensor consists of a plastic valve body, a water rotor, and a hall-effect
sensor. When water flows through the rotor, rotor rolls. Its speed changes with
different rate of flow. The hall-effect sensor outputs the corresponding pulse signal.
Specifications
Parameter Value
15
Operating Humidity 35%~90%RH
16
2.2.4 Load Cell (Yzc-133 20kg)
Introduction
The load cell (sometimes called a strain gauge) can translate up to 20 kilograms of
pressure (force) into an electrical signal. Each load cell is capable of measuring the
electrical resistance that changes in response to a strain (e.g. pressure or force) applied
to the tape
With this gauge one can see how heavy an object is, if the weight of the object
changes over time, or simply measure the pressure or weight applied to the surface.
There are four lead connectors that can be connected to the HX711 A/D Pressure
Sensor. It is easy to use with 5-10V driving voltage and the output voltage can be as
varied with power.
Installing the sensor is also a simple task, one end has to be fixed through the screw
hole and the other end hangs to the left, as the labels show the direction of gravity.
Specifications
Parameter Value
Material Aluminum
17
Weighing Range 20 Kg
Cable Length 18 cm
Impedance 1115±10% Ω
Weight 29 gm
Introduction
The HX711 is a 24 bit analog to digital converter (ADC) designed to amplify and
digitize signals from weight cells for weighing scales and industrial control
applications Converters are designed to convert the energy applied to the weight cell
into an electrical signal.
18
This amplifier communicates directly with microcontrollers such as the Arduino Uno
utilized in this project. It incorporates the use of simple communication protocols
making it easier to integrate into applications that require accurate load
measurement.
Features
3. On-Chip power supply regulator for load-cell and ADC analog power supply.
5. On-Chip Power-on-reset.
19
2.2.6 Piezoelectric Buzzer
The Piezoelectric Buzzer is a small and efficient component that produces sound
feedback as per requirements. Its two-pin compact structure allows it to be easily used
with a breadboard and PCBs. This piezoelectric buzzer has 23mm diameter and
30mm spaced mount holes. It produces a 3.3kHz tone at an 85dB sound level when
activated, drawing a current less than 15mA. It is supplied with a 100mm lead and is
designed for a 3 - 20V power supply.
Specifications
Parameter Value
Operation Voltage 5V DC
Frequency 3,300 Hz
Current <15 mA
Color Black
Number of Pins 2
20
Fig 2.12 Piezoelectric Buzzer terminals
An LCD With I2C uses Inter-Integrated circuitry to communicate and transfer data for
visual or textual displays. These LCDs use only 2 lines, SDA and SCL to transfer data.
Features
Parameter Value
21
Backlight White LED
Module Size 87 x 32 x 13 mm
Pin description
22
2.2.8 SPST Push Button switch
A Push Button is a mechanical device which is used to control the power flow
in an electrical circuit. The button is used to manually switch the circuit on or off.
They can also be used to provide an input by the user for a start / stop function. The
switch we have used is a SPST switch (Single pole single throw), it has 2 terminals
and can be used to control power flow only in one circuit.
Specifications
Parameter Value
Pitch 2.54mm
23
A push button switch is typically an electrical switch that is activated by
pressing a button. It is commonly used to control various functions in electronic
devices. In this project it is mainly used to give inputs to the Arduino to increase the
value of the volume in the container by a certain amount.
Specifications
Parameter Value
Jumper wires
24
Jumper wires are simple electrical wires with connectors at each end, commonly used
in electronics and prototyping projects to establish electrical connections between
components on a bread board or circuit board. They are often insulated with PVC or
silicone to protect again short circuits.
Wood
Wood was used in our project to balance the load cell balance and to perfectly
measure the weight being placed at the load.
Funnel
Funnel was used in our project in the Quantity measurement device to pour the
fuel into the container and to allow fuel to pass through the flow sensor. It is used to
ensure that no fuel is wasted outside and flows into the container properly.
25
Container
The container was used in the Quality measurement device, it acts as a fuel
tank in the prototype. It is used to measure the weight of fuel being poured in the
prototype.
26
CHAPTER - 3
DESIGN METHODOLOGY
3.1. INTRODUCTION
The chapter describes the steps and procedures followed to develop the fuel
quality and quantity measurement system. The project aims to provide a feasible and
cheap solution to prevent people from getting duped in petrol stations and to improve
the customer satisfaction rate.
The proposed system comprises a flow quantity sensor that is affixed to a funnel for
enhanced functionality. This sensor is linked to a micro controller board, establishing
connections with an LCD display to showcase the precise digital data acquired from
the sensor. Positioned at the end of the funnel is the sensor and the entire setup
consisting of the Arduino board, LCD and other components are cohesively arranged
outside the funnel. Notably, the system operates on battery power, ensuring flexibility
and portability in its use. Its compact design renders it easily manageable, catering to
the user's convenience in using it in real time.
The proposed system offers a distinct advantage over existing fuel monitoring
systems by providing an accurate numerical representation of the fuel quantity in the
tank. In contrast to conventional systems that rely on level-based sensors to indicate
fuel levels, this innovative solution employs a Flow based sensor for precise
measurement. The acquired fuel level data is subsequently processed by a micro
controller to calculate the exact volume of fuel within the tank. This micro controller
is seamlessly integrated with an LCD, which serves as the interface for presenting the
fuel volume information in liters, enhancing the user's ability to monitor and manage
fuel level efficiently. The main purpose of this fuel quantity measurement device is to
27
accurately measure the quantity of fuel poured through the funnel. This flow based
sensor has a rotor inside it which can measure the volume of fuel poured through it.
The proposed system introduces an innovative approach to assess the quality of fuel
by quantifying the percentage of adulteration based on density. A pivotal component
of this system is a load cell employed to determine the mass of fuel present in the tank.
Subsequently, the obtained mass is utilized to calculate the fuel's density, utilizing the
volume data acquired from the ultrasonic sensor, following the formula Density =
Mass/Volume. The calculated density is then compared with predefined standard
density values, giving an idea about the amount of adulteration in the fuel. This is
shown on the lcd which helps customer identify the level of adulteration in fuel.
Fig 3.1 : Proposed Circuit diagram for fuel quantity and quality measurement
28
3.2.4 Quality Checking Chart
Up to 5% 725
Up to 20% 751
Up to 21-30% 768
Up to 31-40% 774
Up to 41-50% 783
Up to 51-55% 791
Kerosene 795
Turpentine 850
29
3.3 NEED FOR ALTERATION
The proposed system originally used an ultrasonic sensor for accurate measurement of
volume in the container for the fuel quantity measurement device and needed no
external input from the user.
It failed because
1. Ultrasonic sensor cannot accurately calculate the distance of petrol from the sensor,
unlike water petrol is an absorbent of ultrasonic waves that the sensor uses to measure
distance.
2. Due to this absorbent nature, utilizing ultrasonic sensors was not possible as it gave
inaccurate values of the fuel level in the container.
3. Also, petrol vaporizes easily and these vapors interfere with the computation of
distance when using ultrasonic sensor.
These factors make ultrasonic sensors ineffective and potentially hazardous when
used with petrol.
30
Other methods that could be used
1. Capacitance Sensors:
2. Optical Sensors:
3. Float Sensors:
Float sensors are one of the most common sensors used for indicating the height of a
fluid in a tank. It’s used in water tanks and fuel tanks. It employs a simple mechanism
involving a buoyant object that rises or falls with the liquid level.
4. Pressure Sensors:
Pressure sensors measure the pressure exerted by a fluid on the sensing element. It is
usually placed at the bottom of the tank and they measure the pressure exerted by the
liquid column above them. It then converts the pressure into appropriate level
measurement reading.
5. Conductive Sensors:
While each of these sensors has its merits and demerits , factors such as cost and lead
time affected the choice of sensor to be chosen for this project. High Lead times and
High costs negatively affects the goal of the project which is to be cost effective. So
these sensors were not utilized.
31
3.4. DEVELOPED SYSTEM
Few changes were made to the proposed system as the ultrasonic sensor was not an
appropriate component. A few buttons and switches were also added so that the
system is more cost efficient and easy to work with.
The Arduino nano functions as the controller for this setup. A funnel is taken for the
petrol to be poured into and a turbo flow sensor is fixed at the nozzle of the funnel for
accurate measurement of the fuel being poured. The flow sensor is connected to the
Arduino nano. An LCD with I2C is connected to the setup for displaying the results. A
battery along with a switch is also connected to the circuit for the power supply of the
setup. The system is connected according to the circuit diagram given below.
The Arduino Uno functions as the micro controller in this setup. A load cell is used to
measure the weight of the fuel in the container which will be placed atop the load cell.
A HX711 Load cell amplifier is utilized to amplify the weak signals from the load cell
32
and to convert the analog signals from the load cell into digital signal. A push button
is attached to modify the volume to be calculated for density measurement. A buzzer
is attached in the circuit which will ring is the density of petrol is in its acceptable
range that is 720- 770 kg/m3 or 0.72 -0.76 kg/litre. Power supply for the system is
given from two Li-ion batteries and a switch is also implemented in the circuit for
effective power management and to conserve battery for prolonged usage. All the
components are attached as shown in the circuit diagram below.
Calibration code
3. Click on examples under the file option, then go to the HX711_ADC option under
the Examples option.
33
Fig 3.7 Calibration Test in Arduino IDE
4. In the HX711_ADC option go to Calibration Option; A new window will open up.
5. Place the load cell on a level stable surface. Remove any load applied to the load
cell, and enter ‘t’ from serial monitor to set the tare offset.
34
6. Now take an object with a known mass. (We took 150grams)
7. Place it on the load cell, and enter the weight in grams in the IDE. We will get a
calibration value which is to be entered into the Quality measurement code later.
8. We then end the calibration process and check if the value we are getting for the
known mass is correct or incorrect.
2. The Quantity measurement code takes data from the Arduino micro controller and
presents the data on the LCD with I2C, Here the output is simply the amount of fuel
being poured through the flow sensor in liters.
3. The Quality measurement code takes data from the load cell amplifier which are
mass(weight) and then the push button when pressed updates the amount of fuel
which is being poured into the container(volume) on the load cell.
4. The code takes both the mass and volume as inputs and gives out density as
Density = Mass / Volume.
35
CHAPTER - 4
36
Fig 4.3 Model of the whole setup
Petrol Readings
37
Initially we took 200ml of petrol using a measuring jar and poured it through the fuel
Quantity measuring system into the container and it displayed a reading of 0.21L at
the LCD. The weight of the fuel in the fuel quality measuring system displayed the
mass as 151.93gm , by calculations from the code the density of fuel came out to be
0.76gm/ml . This density is in the range of 0.72 - 0.77 gm/ml so the obtained Quality
of Fuel is GOOD.The buzzer starts to ring as the petrol quality is GOOD. Similarly
two more tests were conducted by adding 200ml of petrol through the fuel quantity
measurement system into the container. The obtained results matched with the fuel
density purchased from the petrol bunk, which was 0.75 gm/ml.
38
Quality Measurement device
Turpentine Oil
1 0 0 0
Initially all the systems were checked and calibrated to be 0 and then we took 200ml
of Turpentine oil using a measuring jar and poured it into the container and the weight
of the oil in the fuel quality measuring system displayed the mass as 157.79gm , by
calculations from the code the density of oil came out to be 0.79gm/ml ..Similarly two
more tests were conducted by adding 200ml of oil into the container through a
measuring jar. The density of turpentine oil is usually above 0.81 gm/ml , but as there
was ethanol mixed in it the density came out to be between 0.79 - 0.8 gm/ml.
39
Measurement for petrol with adulteration
(ml) (ml)
Initially the amount of petrol in the container was set to 500ml which was tested
earlier (density 0.75gm/ml). To this, 200ml of turpentine oil (also tested earlier
density 0.8gm/ml) was added through a measuring jar , here the turpentine oil acts as
the adulterant to petrol. The total volume of petrol in the container is now 700ml, the
mass displayed for this adulterated petrol came out to be 551.19 gm . The density
calculated from this mass and volume from the code is 0.79gm/ml. This density does
not lie between the range of 0.72-0.77gm/ml indicating the Quality of Fuel is
BAD.The Buzzer did not ring in this test as the Quality of Fuel is BAD. One more test
was conducted by adding 100ml of turpentine oil again which thereby increases the
adulteration ratio in the petrol, now the total adulterant added in the system is 300ml.
While we did not find any significant change in the density of the adulterated fuel, it
still showed that the Quality of Fuel was BAD.
40
4.3 SUMMARY
We have successfully tested the Fuel Quality and Quantity measurement device on the
basis of 3 parameters. Testing with Petrol (Fuel), Testing with Turpentine Oil
(Adulterant) and Testing with Petrol mixed with Adulterant (Adulterated Fuel). The
readings were accurate and from the observations we were able to conclude that the
quality of petrol which we used had a density of 750kg/m3, or 0.75 kg/l which was
same as the density of petrol shown in the fuel station. After adding adulterant into
the petrol, the density of petrol noted a sharp increase which proved that an adulterant
has been added to the petrol. Note that the petrol which we bought from the fuel
station was already adulterated with the adulteration being around 20%.
41
CHAPTER - 5
5.1 CONCLUSION
The goal of this project was to develop a cost-effective system that would
solve issues faced by consumers all over the world in regards to the quantity and
quality of fuel being provided to the public. The project involved development of a
quantity and quality detection system that would accurately determine the amount of
fuel being poured and also give an idea about its quality by obtaining its density.
The proposed system involved the use of a flow sensor, an ultrasonic sensor
and a load cell with amplifier as the data generating devices and Arduino
microcontrollers to process the data and display it on LCDs. The flow sensor setup
showed the amount of fuel being poured into the system. The ultrasonic sensor was
responsible for determination of quantity of fuel present in the container (replicating a
tank) and the load cell was responsible for giving out the mass(weight) of the fuel
present in the tank. Both the weight and the volume readings would then be used to
determine the density of the fuel hence giving an insight on its quality. The final
system incorporated the use of the flow sensor setup and the load cell setup but failed
to use the ultrasonic sensor-based volume determination setup, the reason being
absorbent nature of petrol and unavailability of alternate sensors due to cost and lead
time constraints.
Upon testing the fuel quantity and quality system we were able to achieve
accurate results demonstrating its effectiveness in improving customer satisfaction by
providing them with the necessary data when purchasing fuel. This project can serve
as a basis for future research and development of similar technologies.
According to statistics, more than 90% of the total vehicle users across the
world are dependent on petrol and diesel as a fuel for their vehicle. As the cost of fuel
is skyrocketing in recent times, it becomes more and more important for a more
convenient, cost-effective system to assure people of the quality and quantity of fuel
they are purchasing.This device can help consumers in that aspect. However, even
42
though our project is a success, there is still room for improvement and innovation in
the future.
Another aspect where this project can be improved is Integration with IoT and
Cloud Services. If it is possible to integrate the project’s code with a cloud service
which can display the GPS location of the fuel station where the petrol was refilled ,
as well the density of the fuel at that petrol station and give a rating system, it will be
highly beneficial so that the next time someone wants to refuel, he/she can go to a fuel
station which has better quality of fuel. It can also be improved in the aspect that by
considering the number of times the vehicle needs refueling, one can now accurately
understand when one has to take the vehicle for a maintenance check.
An aspect where this project can also be developed is to enhance the user
interface and experience it by developing mobile applications for remote monitoring.
The user should be able to have a customizable dashboard along with other intuitive
calibration procedures to check the fuel history . It should also be able to check for
any leaks or to ensure compliance with regulatory bodies related to fuel handling and
storage.
Research and implementing more accurate and advanced sensors along with
measurement techniques to improve the accuracy and precision of both quantity and
43
quality measurements. This could involve using higher-resolution sensors or
integrating sensors for reducing errors and error correction. Though care must be
taken that these sensors are cost effective and does not burden the consumer with its
cost.
The future scope of this project is not limited to the above ideas. The growing
technologies and needs give rise to new innovative solutions in the fuel industry.
44
BIBILIOGRAPHY
[2] Abhiraj Sutar, Anshu De, Jaskaran Singh, Dr. Manisha Mhetre, “ IOT Based Fuel
Quantity Measurement”, in International Journal of Research Publicatiuon and
reviews, 2020.
[3] Bharath LV, Himanth M,”Review on the Detection of Fuel Adulteration through
Sensor based Techniques “ in International Journal of Scientific and Research
Publications, ISSN: 2550-3153, September-2017.
[6] Mr. K. R. Roshan, M. Rama Krishnan, “Digitalized flow quantity and adulteration
measurement in petrol” , in International Journal of Engineering Research &
Technology, ISSN: 2278-0181, June-2019.
[7] Vivek Padmakarrao Kudea , Anita Patilb, “Detection of fuel adulteration in real
time using optical fiber sensor and peripheral interface controller” in International
Journal of optics and Photonics. DOI: 10.18869/acadpub.ijop.11.2.95, August-2017
[8] Isaac C. Febaide , Esther E. Odiki , “ Petrol Adulteration detection system based
on sensor technique” in International Research Journal of Modernization in
Engineering Technology and Science; e-ISSN: 2582-5208; July-2021.
45
APPENDIX
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // Change the address (0x27) based on your I2C
module
void setup() {
Serial.begin(9600);
// lcd.setCursor(0, 0);
// lcd.print("FlowRate:");
lcd.setCursor(0, 0);
lcd.print("Total Volume:-");
pinMode(flowSensorPin, INPUT);
void loop() {
46
unsigned long currentTime = millis();
// lcd.print(flowRate, 2);
// lcd.print(" L/min");
lcd.print(totalVolume, 2);
lcd.print(" L");
Serial.println(totalVolume);
lastTime = currentTime;}}
void pulseCounter() {
pulseCount++;
47
A.2 QUALITY MEASUREMENT CODE
#include <HX711_ADC.h>
#include <Wire.h>
int x=-1;
float density;
void setup()
lcd.init();
48
lcd.backlight();
pinMode(buttonPin, INPUT_PULLUP);
pinMode(buzzer,OUTPUT); //BUZZER
lcd.print("Mass:");
lcd.print("Volume:");
lcd.setCursor(0, 2);//density
lcd.print("Density:");
void loop()
//Serial.println(mass);
49
if (buttonState == LOW)
x= volume[currentIndex];
density= mass/x;
lcd.setCursor(10,3);
lcd.print("GOOD!");
digitalWrite(buzzer, HIGH);
else{
lcd.setCursor(10,3);
lcd.print(" ");
lcd.setCursor(10,3);
lcd.print("BAD!");
digitalWrite(buzzer, LOW);
50
lcd.setCursor(10, 0); // set cursor to first row
lcd.setCursor(10, 1);
lcd.print(x);
lcd.print(" ");
lcd.setCursor(10, 2);
lcd.print(" ");
lcd.setCursor(10, 2);
lcd.print(density);
delay(150);
51