OLED Fuel Level Display Using Arduino
by Putra Adriansyah in Circuits > Arduino
2279 Views, 8 Favorites, 0 Comments
OLED Fuel Level Display Using Arduino
Make a fuel level display using Arduino NANO and ssd1306 I2C display for your vehicle
Supplies
Supplies needed for this project :
- Arduino (can be a nano, uno, micro or whatever you have)
- SSD1306 I2C display
- Jumper wires
- vehicle with 3 wire type fuel level sender
- some spare time :)
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 :)
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)
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
Downloads
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
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 :)