Page 1 of 10 123 ... LastLast
Results 1 to 10 of 109

Thread: Fuel_Economy calculated pid?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    New Member
    Join Date
    Jan 2006
    Posts
    9

    Default Fuel_Economy calculated pid?

    Anyone know of something like this, or a way to do it? It seems like it would be super easy to divide vehicle speed by the amount of fuel being delivered (through injector pulse widths?). Alas I know nothing of programing Live so I'm wondering if anyone can help out.

    I for one think it would be cool to have a gauge or graph that shows how your fuel economy varies based on tuning/hardware changes or driving habits.

  2. #2
    EFILive Developer Site Admin Blacky's Avatar
    Join Date
    Mar 2003
    Posts
    9,505

    Default

    Tricky to do, because there is no PID (as far as I know) to retrieve actual fuel flow. There is a PID that returns injector pulse width in milliseconds but how to convert from pulse width to actual fuel flow (i.e. liters per hour, or gallons per hour) is not trivial. The conversion would need to be based on fuel pressure (not available on LS1) and injector characteristics.

    Regards
    Paul
    Before asking for help, please read this.

  3. #3
    New Member
    Join Date
    Jan 2006
    Posts
    9

    Default

    I guess if your VE table was dialed in so your BEN was right around 1 you could calculate it based on the VE, cylinder volume, and AFR couldn't you?

  4. #4
    Joe (Moderator) joecar's Avatar
    Join Date
    Apr 2003
    Posts
    28,403

    Default

    You can calculate approximate fuel consumption using airflow, AFR, VSS, density of fuel, and some imperial/metric conversions:

    fuelflow (g/s) = airflow (g/s) / AFR

    then use density of gasoline (petrol) (737.22 g/L found on web) to convert fuelflow to from g/s to L/s,
    then convert to L/hour,
    then convert to gallon/hour,
    and then divide this into VSS (miles/hour), giving miles/gallon.

  5. #5
    EFILive Crew Site Admin Tordne's Avatar
    Join Date
    Oct 2004
    Posts
    3,870

    Default

    Quote Originally Posted by joecar
    You can calculate approximate fuel consumption using airflow, AFR, VSS, density of fuel, and some imperial/metric conversions:

    fuelflow (g/s) = airflow (g/s) / AFR

    then use density of gasoline (petrol) (737.22 g/L found on web) to convert fuelflow to from g/s to L/s,
    then convert to L/hour,
    then convert to gallon/hour,
    and then divide this into VSS (miles/hour), giving miles/gallon.
    There you go Paul, simple as that. So there will be a new calc PID in the next patch right
    Andrew
    EFILive Crew


  6. #6
    Member ace68's Avatar
    Join Date
    Jun 2004
    Posts
    97

    Default

    or you could just divide the miles driven by the gal used

  7. #7
    Lifetime Member
    Join Date
    Aug 2005
    Posts
    710

    Default

    Couldn't you also use GM.INJFLOW to get the injector flow rate, rather than using airflow (g/s) / AFR? Assuming you're not using a wideband, the AFR would only be commanded and not dead on, no?

  8. #8
    EFILive Developer Site Admin Blacky's Avatar
    Join Date
    Mar 2003
    Posts
    9,505

    Default

    Quote Originally Posted by dc_justin
    Couldn't you also use GM.INJFLOW to get the injector flow rate, rather than using airflow (g/s) / AFR? Assuming you're not using a wideband, the AFR would only be commanded and not dead on, no?
    Riiiiiiiiiiiiiiight (in my best Dr Evil voice). Don't I feel stupid now. I had forgotten about that fuel flow PID

    I'm sure the maths gurus among us can come up with a formula to convert {GM.INJFLOW} and {SAE.VSS} into a fuel economy value...

    Regards
    Paul
    Before asking for help, please read this.

  9. #9
    Lifetime Member emarkay's Avatar
    Join Date
    Apr 2003
    Posts
    481

    Default

    Jeez, this was an old request I made way back in the V6 days... Easier way would be VSS and inverted MAP. Vacuum in In/Hg is an easy and close "instant" MPG figure, and when VSS gets to zero MPG also goes to "0"...

    What about it, programmers?
    Early EFILive V5 user - Upgraded from AutoTap for DOS!
    2000 Chevrolet Camaro Z28, A4 - For occasional day trips...
    1984 Chevrolet Caprice Classic - For the family...
    1989 Honda VTR250 - For me and me only...

  10. #10
    Lifetime Member
    Join Date
    Aug 2005
    Posts
    710

    Default

    Welp, Calculated Injector Flow Rate doesn't work properly. My whole 30 minute drive home it stayed in the narrow range of 0.48lb/min to 0.52lb/min. Time for another idea.

Page 1 of 10 123 ... LastLast

Similar Threads

  1. Calculated PID's
    By Jason S. in forum General (Petrol, Gas, Ethanol)
    Replies: 7
    Last Post: March 17th, 2007, 09:55 AM
  2. Calculated PID Problem
    By NewV in forum General (Petrol, Gas, Ethanol)
    Replies: 4
    Last Post: December 12th, 2006, 09:44 AM
  3. LM1 Calculated AFR PID
    By VetPet in forum General (Petrol, Gas, Ethanol)
    Replies: 6
    Last Post: September 3rd, 2006, 03:04 AM
  4. calculated value question
    By evil in forum Tips and tricks
    Replies: 5
    Last Post: November 19th, 2003, 02:34 PM

Posting Permissions

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