OLED Fuel Level Display Using Arduino

by Putra Adriansyah in Circuits > Arduino

2002 Views, 8 Favorites, 0 Comments

OLED Fuel Level Display Using Arduino

DSC_1358.JPG

Make a fuel level display using Arduino NANO and ssd1306 I2C display for your vehicle

Supplies

Supplies needed for this project :

  1. Arduino (can be a nano, uno, micro or whatever you have)
  2. SSD1306 I2C display
  3. Jumper wires
  4. vehicle with 3 wire type fuel level sender
  5. some spare time :)

Locating Where to Get Fuel Sender Signal

2022-03-15-111836_1366x768_scrot.png
2022-03-15-111812_1366x768_scrot.png

First, if you have a schematic for your car, you need to locate the 3 wire for VCC, GND and Data.

for this step, I think you'll always find it near your fuel tank but to know which wire is which, I recommend you to check your vehicle's electrical repair manual or schematics :)

Make Your Arduino on the Breadboard

DSC_1399.JPG

Wire up your arduino on the breadboard.

Display :

  • SDA -> A4
  • SCL -> A5
  • VCC -> VCC
  • GND -> GND


Fuel Sense / Level sensor :

A0 - your fuel sender data or middle pin (in my case, pin 4 on my speedometer wiring)

VCC - VCC on your sender wire

GND - can be chassis ground or dedicated gnd wire to your sender (dedicated ground is recomendded)

Program Your Arduino!

2022-03-15-114349_678x587_scrot.png

Now, you have to program your arduino. You can use my code of you want, but you have to change the splash screen to match to your vehicle or whatever splash screen you like. leave it as default if you use this in a toyota cressida

Calibration

Now for the calibration part. I already reassemble my car's fuel sender without making photos :(

so i will try to explain with text only and hopefully my instructions dont confuse you.

Empty fuel tank calibration :

  • Empty your tank or open the fuel sender unit, move the fuel float to set it to 10% above bottom stop end
  • Pull D6 to LOW (short it to GND), power up your Arduino. This will save the Empty value to the EEPROM
  • remove D6 jumper

Full fuel tank calibration :

  • Move the fuel float to the top end stop of your fuel level sensor or sender unit
  • Pull D7 to GND (shirt it to GND), power up your arduino. This will save the Full value to the EEPROM
  • remove D7 jumper

Reassemble everything, make sure there's no leak

In Car Test and Done

DSC_1347.JPG
DSC_1348.JPG

The project is done. now you have to embed it in your vehicle.

I'm not going to cover it here because different vehicles have different ways :)

just make sure you get a precise reading :)

Thanks for reading :)