Introduction: OLED Fuel Level Display Using Arduino

About: I'm just a hobbyist. I do Linux, Electronics and Automotives A project that combines 3 topic above is definitely will get my attention and love

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 :)

Step 1: Locating Where to Get Fuel Sender Signal

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 :)

Step 2: Make Your Arduino on the Breadboard

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)

Step 3: Program Your Arduino!

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

Step 4: 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

Step 5: In Car Test and Done

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 :)