It is currently Mon Apr 29, 2024 7:59 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: How do you calculate your fuel economy (formulas / tools)
PostPosted: Fri Dec 01, 2006 3:49 pm 
Offline
Lifetime Member
Lifetime Member
User avatar

Joined: Wed Mar 08, 2006 6:15 pm
Posts: 2733
Location: Atlanta GA
Having just gone through all my old fuel reciepts, I decided to make a little web-based application to track and graph fuel economy for my vehicles. I've been recording the following on fill-ups (among other things):
- odometer reading
- time/date
- volume added to the tank.

The details are not that important other than to say that I have the data in a couple database tables and indexed, etc (for you computer geeks like me). I can sort it however I want. I'm trying to figure out a good general formula to give approximate mpg based on those numbers for generating datapoints on a graph.

I considered doing a simple "it took this much to fill up the tank and my last mileage readin was X" type thing, but then the thought occured to me that I don't ALWAYS fill up the tank, so it might be better to get my delta value over a couple fill-ups. It might not give me any more accurate individual results, but the curve, when plotted should be better over time.

So, what are y'all doing for your tracking? Spreadsheets? hand calculations, SQL with a web frontend like me? 8)

Dan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 4:14 pm 
Offline
Lifetime Member
Lifetime Member
User avatar

Joined: Wed Apr 05, 2006 4:21 am
Posts: 1894
Location: Gilbert, AZ
Back in my Sophomore year of college I had to design a java applet to display an average of miles driven to fuel used over the course of 10 fuel-ups, I'll attach the link here if anyone feels like typing in 10 times their fuel use...otherwise use a calculator and type miles(km) driven divided by gallons(litres) used...enjoy...of course if you type in an error in my applet you won't be able to go back unless you refresh the page..i think, been a long time since I fooled around with Java Programming...

Applet Here

If you like Battleship, give this a shot...make sure you have someone to play against though, or you can check it out for fun...

Battleship, Java Style

_________________
Had 2005 KJ Rocky Mnt. Edition (destroyed)
Had 2006 KJ Sport 4x4
Have 2007 JK 4-dr Sahara 4x4 (tow package so stock 4.10s!!)
AEV 3.5" RS Lift; Schrockworks FR bumper and Warn 9.5ti winch; Cobra 75 CB; Rigid 50" LED light bar; Adventure Trailers (AT Overland) JK Kitchen setup in the cargo area.
Southern L.O.S.T. # 236487


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 5:01 pm 
Offline
Lifetime Member
Lifetime Member
User avatar

Joined: Wed Mar 08, 2006 6:15 pm
Posts: 2733
Location: Atlanta GA
Yeah, that gives a good average. Looks like (sum(miles(1-n))) / (sum(gal(1-n)))

What I'm looking for is a general math smippet that'll appoximate instantaneous milage based on deltas from the current odometer and the previous based on the number of gallons added (and possibly the past couple to normalize the data).

Man, I wish I had a copy of the moonlander applet I did way back when(polygons with gravity, thrust, and solar wind calculations controled via keyboard to land on a pad on the screen).

Dan

2006KJSPORT4x4 wrote:
Back in my Sophomore year of college I had to design a java applet to display an average of miles driven to fuel used over the course of 10 fuel-ups, I'll attach the link here if anyone feels like typing in 10 times their fuel use...otherwise use a calculator and type miles(km) driven divided by gallons(litres) used...enjoy...of course if you type in an error in my applet you won't be able to go back unless you refresh the page..i think, been a long time since I fooled around with Java Programming...

Applet Here

If you like Battleship, give this a shot...make sure you have someone to play against though, or you can check it out for fun...

Battleship, Java Style


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 9:22 pm 
Offline
Lifetime Member
Lifetime Member
User avatar

Joined: Thu Dec 29, 2005 9:59 pm
Posts: 5171
Location: Austin, TX
A nice simple Excel trick is to go into Tools/Add-ins and add Statistical functions (you may have to have original disks) -
This will allow you to do an EWMA (Exponentially Weighted Moving Average) -
Generate an EWMA SPC chart weighing the last 3-4 tanks for each chart data point - plot your mileage on the SPC chart.
This should allow some variation for an incomplete fill of 1 tank - and yet still give you a response if something is changing.

_________________
2005 CRD
stuff
Skeptic quod gratis asseritur, gratis negatur


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 5:40 pm 
Offline
LOST Newbie

Joined: Thu Dec 28, 2006 6:05 pm
Posts: 52
Location: INDIANA
I LET THE ON-BOARD COMPUTER DO MY MATH FOR ME....
ANYTHING WRONG WITH THAT???

_________________
WGNMAN- in a RENEGADE
NUFF SAID...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 7:19 pm 
Offline
Master of the Blender
User avatar

Joined: Thu Jul 07, 2005 4:21 pm
Posts: 2804
Location: Margaritaville
WGNMANinaRENEGADE wrote:
I LET THE ON-BOARD COMPUTER DO MY MATH FOR ME....
ANYTHING WRONG WITH THAT???

No, nothing wrong with that, but ya don't hafta shout it :P

I normally try to do a complete fill each time and just do the standard x miles / y gallons = mpg. I suppose if I kept reasonably accurate records of miles at each fill and number of gallons I could do a better long-range average, may have to try it to see what I get.

_________________
Kevin
AD5VG
Just another red Jeep in the world...
L.O.S.T. #KB051963


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 7:31 pm 
Offline
Lifetime Member
Lifetime Member
User avatar

Joined: Thu Dec 29, 2005 9:59 pm
Posts: 5171
Location: Austin, TX
and reading a simple number is so boring compared to a good SPC chart......

(and you have to have the EVIC - that was an option - not standard)

_________________
2005 CRD
stuff
Skeptic quod gratis asseritur, gratis negatur


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 8:01 pm 
Offline
LOST Member
User avatar

Joined: Sun Nov 12, 2006 7:38 pm
Posts: 137
Location: Kingston, Ontario, Canada
WGNMANinaRENEGADE wrote:
I LET THE ON-BOARD COMPUTER DO MY MATH FOR ME....
ANYTHING WRONG WITH THAT???


...well, if you have an EVIC then I suppose not...however...


dagmabbit...that'll teach me for clicking reply then going for a walk before hiting "submit"... :D

_________________
2K9 Space Grey 335d Sport
2K1 Galaxy Blue Jetta TDI 5-sp


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Color scheme by ColorizeIt!
Logo by pixeldecals.com