Design of Smart Fuel Station and Management System Based on Arduino and Internet of Things

— Patrol that is distributed to the public must meet the requirement for the quality, quantity and continuity. Pertamina as one of the companies that is responsible for the distribution of patrol to the public through gas stations and must have competent management and services. However, problems arise in the community and even companies in controlling fuel consumption and queues for sales services at gas stations. One solution is to use a station that is connected to smartphone wirelessly and a cashless. Through the "Smart Fuel Station and Management System Based on Arduino and Internet Of Things", that will be able to help the community and companies in controlling their fuel consumtion and making savings. This monitoring tool uses the Arduino ESP8266 which is combined with Internet of Things (IoT) Technology which is displayed on the LCD and the Internet Web. Customers can purchase the patrol at gas stations independently, by connecting the smartphone application with the gas station wireless and purchase and make payments through the application. By having top up the balance on the application to be able to make purchases as needed and the balance will continue to decrease according to usage. The fuel filling station will issue it according to the nominal or the number of liters we choose in the application. Customers can view detailed fuel purchase for place, date, time, amount and total balance.


I. INTRODUCTION
Fuel is one of the vital needs for living things on earth. Fuel is used by humans for various purposes, including fuel for motorized transportation, industry and energy sources. The population growth which is increasingly rapid has made the need for vehicle fuel continues to increase [1]. Gas Station is a public infrastructure provided by PT. Pertamina for distributing fuel needs which sould meet the requirement [2].
Based on previous studies using the RFID system [3], there are still some weaknesses which is still using officers for filling and payment transactions, so that there are still queues prchasing, especially during rush hours. In addition, it is common to find several stations that have unavailble officers, so they cannot be used optimally. Another drawback is that there are frequent frauds committed by drivers to get benefits in managing vehicle fuel needs due to the absence of a good management system in terms of automatic, online and integrated, and accurate historical.
Observing in this research, it is necessary to have a transaction system that allows consumers to be able to refuel independently (self-service) and cashless transactions and historical data can be stored into the data base for management system. Fuel consumption monitoring by the community or a company as in other research on monitoring water consumption [4], by using a flow meter sensor Yf-s201 [5] as a sensor for the total volume of distributed fluid [6]. In order to be realized, it is necessary to create a tool that is able to carry out transactions independently and the data which can be applied to the purchase of fuel at gas stations.
In this study, an automatic fuel station will be designed and a fuel purchase management system as a part of online purchase data using Arduino [7] and the concept of the Internet of Things (IoT) [8] so that, when making transactions, customers simply enter the gas station, run the application. via a Smartphone to control the filling machine. Customers must have sufficient balance in the application to be able to make purchases. By topping up electronic money [9], [10], customers can add to their balance. This balance will decrease according to usage. There is a database to store every transaction in detail that can be seen online through application or internet.

Data Collection Methods
Collection data is retrieving data from hardware and software to determine whether the system meet the expectation. The methods used in collecting the data include: 1. Observation, which observing while testing the haequipment has been made and measurements for further data analysis. This test includes: -Testing (Flow meter, LCD, Keypad, IoT, Relay and Solenoid valve). -Ttransactions simulation that is stored in the data base as a management system. -Testing the control system on the application and filling balances. 2. Collect documentation of the results which are used as references to provide supporting knowledge.

Data Analysis Methods
The data analysis method used in this study used descriptive analysis, which is to describe the data according to the test results as follows: 1. A management system for monitoring fuel consumption displayed in a data base that can be accessed via an application on a Smartphone and an internet web browser 2. Fuel transactions using the Yf-S201 flow sensor which can be seen through displays, applications on Smartphone or the internet web controlled by Arduino.

Control system for pump station machines with
Smartphone and top up ballance.

System Testing Results
System testing is the process of executing system hardware and software to determine whether the system achieve the expectation. Which is done by conducting experiments to see possible errors that occur from each process.

Communication System Testing
Testing the communication system in the application consists of several types, namely communication between Arduino and devices, communication between Arduino and the Internet web to determine the communication process between the communication support system in the smart fuel station application so that conclusions can be drawn.
The communication interface with the web server is displayed on an LCD to make it easier for users to become more familiar with the equipment as follows.
a. Connect with registered Wifi In this tool system, a wifi network is needed as an interface between the device and the web server.  In this system, the device can only communicate with only certain wifi address, namely MANDIRI SPBU so that the device will not be disturbed by other addresses as  After connecting to wifi, a certain address is needed which is used as an addressing between the device and the user / client and admin. In this case, the IP address is used as an  This relay works as an ON / OFF switch for the solenoid valve coil. Relay condition will be active when it starts filling until the desired transaction value is reached. The solenoid valve that we use is the NC type, which is without a voltage, the valve will be closed.   Admin, there is a menu of choices for Customers 1 or 2 who will top up the balance, the menu will appear in the admin menu as shown in Figure 3.5 above.
On the customer menu as shown in Figure  3

Device Testing
This test is to find out every input / output of a system is working.

Fuel Transaction Testing
In system testing for fuel transactions, the results are in table 3.3. In this test, it is carried out on one of the client users and the pump station. In this case the transaction is carried out by entering the nominal value of Rupiah on the application.

Transaction History Testing
In accordance with the design of this equipment, all transaction data, both top up balances and fuel transaction, are automatically stored in a data base that can be viewed through the application on a Smartphone or laptop.

Wiring Diagram Tools
The wiring diagram for the equipment as follow assembled component.

Discussion
Based on the testing that have been carried out, the system that has been designed is working properly, even though there are errors in some circuits or sensors that are relatively small.
A management system for monitoring fuel consumption displayed in a data base that can be accessed via an application on a smartphone and the web. The device works well. The system can display all transaction, both top up balances and refueling gasoline either via smartphone or laptop in detail for the location, date, time, top up and total balance.
Fuel transactions using the Yf-S201 flow sensor which can be seen on the LCD / display are controlled using the Arduino. In this case the system works well, the display can show the desired rupiah and the number of milli liters issued with an error of 5.3%.
Control system for fuel pump station with smartphones / laptops and balance top up. In this section the system works well, when the transaction process (via a smartphone or laptop) starts, the equipment works by opening the solenoid valve automatically at the selected pump station and the fluid comes out through hose and the flow will stop when the value has been reached. In the case of initializing balances, the system also works properly. The transaction data is stored in detail for the location, date, time, top up and total balance.

IV. CONCLUSIONS
Based on the results of the research and discussion that has been described in the previous chapters, it can be concluded as follows: The designed tool is equipped with the following facilities: