Results 1 to 14 of 14

Thread: Accurate Trip MPG Calculation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026

    Accurate Trip MPG Calculation

    me, being the perfectionist that i am, i needed to find a way to come up with perfectly accurate MPG numbers for any trip.

    now, i've been able to make accurate instant numbers before using an equation that's been posted a few times, but when averaging that out over a log, it comes out quite optimistic, so i came up with a better method.

    now, the faster your datastream is, the better, so 160baud is pretty much not going to benefit much from this since their conditions change so much between samples.

    what i do is export a CSV log from a tunerpro XDL file with the following items in it:

    vehicle speed
    fuel flowrate in gallons/hr

    now to allow those two values to show up correctly(at least in the current version of tunerpro), you need to also export the values that fuel flowrate is created from. now it's generated by fuel flowrate in lb/hr, but the lb/hr value is generated via BPW and RPM, so a total list of items exported are:

    MPH
    flowrate in G/Hr
    flowrate in Lb/Hr
    BPW
    RPM

    you can export more, if you feel a need to, but not necessary for the MPG calc.

    so, now that you have a CSV file filled with fun numbers, you need to create a few values:

    log duration
    average fuel flow in gal/hr
    total fuel used
    average speed
    total distance traveled
    and finally trip economy

    if you've messed with spreadsheets before, this will be fairly simple, but here is how to create each(after scrolling all the way to the bottom of the document):

    log duration
    this is always the first item i see and is in column B(as Time, Seconds). it's displayed in seconds, so make a value underneath all of the nice numbers and take the last value and have a cell operation of "=B23554/3600". B23554 being the last cell number for this example, now you have the length of the log in hours.

    average fuel flow
    column E for this example. "=AVERAGE(E4:E23554)" now you have a averaged fuel flow over the entire log. since fuel flow takes RPM into account, cells with the engine not running won't effect the calculation(or in the case of RPM values that can't be 0, very little and to the point of where you could remove them beforehand). displayed in G/Hr.

    Total fuel used
    this uses the previously two generated values, so no column to worry about. "=C23558*C23556". now those cells are where i have log duration and average fuel flow stored, though yours will vary significantly. just multiply the two together and store them in a different cell. fuel used is displayed as gallons.

    average speed
    just like average fuel flow, just in a different column. for me, column G. "=AVERAGE(G4:G23554)". now we have average speed over the entire log. displayed in MPH

    total distance travelled
    just like total fuel used. multiply average speed with log time. "=C23561*C23556" and now we have miles traveled.

    finally, we take miles traveled and fuel used to make miles traveled per gallon used(MPG)
    "=C23562/C23559", with '562 being distance traveled and '559 being fuel used.

    congratulations, you should now have something looking similar to this:



    http://i.imgur.com/zagQj.png

    keep in mind, i do this all in openoffice, so MS and others may be different.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  2. #2
    Fuel Injected! gregs78cam's Avatar
    Join Date
    May 2011
    Location
    N. Idaho
    Posts
    767
    I would love to use this through a whole tank of gas to see just accurate the BPW vs RPM conversion is. Ya know, just how accurate the fuel flow that the ECM sees is.
    1978 Camaro Type LT, 383, Dual TBI, '7427, 4L80E
    1981 Camaro Z-28 Clone, T-Tops, 350/TH350
    1981 Camaro Berlinetta, V-6, 3spd
    1974 Chevy/GMC Truck, '90 TBI 350, '7427, TH350, NP203, 6" lift, 35s

  3. #3
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    i've been tracking it with the MC, and it's very close in my application. within a few percent.

    keep in mind it does not account for any async fuel, though if you're driving for fuel economy, you shouldn't run into that too much.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  4. #4
    RIP EagleMark's Avatar
    Join Date
    Feb 2011
    Location
    North Idaho
    Age
    64
    Posts
    10,477
    so 160baud is pretty much not going to benefit much from this since their conditions change so much between samples.
    You saw me coming didn't you? I do have a P4 conversion half done on sons truck and an LT1 too you know...

    How accurate is the MPG history tables you make? Seems you like this, how do they compare or how do they compare to actual gallons used at pump?

    1990 Chevy Suburban 5.7L Auto ECM 1227747 $42!
    1998 Chevy Silverado 5.7L Vortec 0411 Swap to RoadRunner!
    -= =-

  5. #5
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    using this log as an example, TP calc'd it out to be like 47MPG, which is optimistic to say the least.

    using this method, you see 34.8MPG, which is really believable for this car when i'm driving it nicely(and have the benefit of a lot of downhill coasting).

    luckily, this car doesn't have a hole in it's fuel tank, so i can do full fills/empties, however, i do have a leaking fuel neck, so when i do fuel up, some of it ends up on the ground. i'll have to attempt to log an entire tank without a single moment of the engine running not being logged.

    a little earlier in the year(when it was significantly colder and i let it warm up more), i was still seeing 28MPG on similar routes using the tank empty method, though with the fuel neck issue, i get slightly better than what that comes out to, but since i'm still paying for it, i don't attempt to compensate for it.

    also, 160 baud will work..... but don't expect it to be AS accurate, since a lot of things can go on between a sample with it.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


  6. #6
    RIP EagleMark's Avatar
    Join Date
    Feb 2011
    Location
    North Idaho
    Age
    64
    Posts
    10,477
    Quote Originally Posted by RobertISaar View Post
    also, 160 baud will work..... but don't expect it to be AS accurate, since a lot of things can go on between a sample with it.
    I was going to build a MPG history table for the $42 since it is a very nice advanced type file, and I still own a stock factory 1227747 1990 Suburban I've had for about 10 years. Do you think it would be worth the effort?

    I'm on to 16197427 within the month with tuning the kids IH 345, Isky cam bored, balenced, exhaust ported new engine! Woo Hoo! I finally have one to play with. I'm wore out on the LT1... and all the 1227747 Off Road Conversions I take care of around here.

    1990 Chevy Suburban 5.7L Auto ECM 1227747 $42!
    1998 Chevy Silverado 5.7L Vortec 0411 Swap to RoadRunner!
    -= =-

  7. #7
    Super Moderator
    Join Date
    Mar 2011
    Location
    Camden, MI
    Age
    35
    Posts
    3,026
    it's not difficult to setup a MPG estimate. the way i mentioned...

    in fact, we've discussed it recently, it's just that this method is more accurate for a trip rather than letting TP's histogram come up with an average.
    1995 Chevrolet Monte Carlo LS 3100 + 4T60E


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •