Go Back   EcoModder Forum > EcoModding > Instrumentation
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-26-2010, 08:18 PM   #21 (permalink)
EcoModding Lurker
 
Join Date: Jan 2010
Location: Los Angeles, CA
Posts: 54
Thanks: 0
Thanked 20 Times in 8 Posts
Quote:
Originally Posted by Old Tele man View Post
...I somehow missed finding that page when I fumbled around looking for information; I appreciate the direct link...Thanks!
Forgive yet another long post from me, but this is something that just came up for me a few days ago.

The thing to keep in mind is that even as you enter very technical sounding things, like engine size, etc. you are not just calibrating for the vehicle and it's sensors, but also your driving style and common routes.

The problem is that standard OBD-II information doesn't include everything you need for precise measurement, so all MPG systems based on them have to make some assumptions. The problem is, the assumptions aren't always true.

Let's say your vehicle offers a MAF sensor and a VSS sensor. In this case, if we have a modern vehicle that runs 'closed loop' for emissions, it seems like we have everything we need to get a good idea about fuel consumption and the work being done. If we assume that our AFR is 14.7:1, or there about, and we know the mass of air going in, it seems like we could take an educated guess about how much fuel is being used. But let's look at a 30 second log I took from my daughter's car driving an errand I normally walk because of the pouring rain:



A side effect of my work, all the cars here are instrumented, and she has a relatively fast ECU, so when I snagged this log on my phone, we got a bunch of channels I had previously configured for, but if we turn everything off but RPM and VSS, we can see what I was doing:



I was nearly stopped when I started the log, then I had to give some gas to both accell and climb the steeper end of a modest hill. I then coasted down the long side of the hill, breaking to a stop at a stop sign, then accell'ed away, into another very modest terrain rise.

Now let's turn on MAF from the sensor:



The scale is kind of high, but we can see that MAF dropped quite low as we were coasting. With MAF low and VSS still relatively high, the theoretical calculation should put out a pretty high MPG. So let's do two things.

Let's add a math trace, that is, a computation, not something we got from the ECU. We'll just do the rudimentary MPG from VSS and MAF you'll find if you Google it. In addition, let's drop a marker near 20 seconds and see what values we are talking about.



Sure enough, calculated MPG was low when I was on the throttle, soared as I started to coast, spiked when MAF dropped, then decayed as my speed decayed. At the point in question, 3 gs in MAF (actually, it is rounding because of the scale, it was 3 and change) and an MPG calculation of 81.8. The question is, is this right?

The fundamental assumption is that air flowing through represents a certain amount of fuel. But let's look at the narrow band O2 sensor in the car that it uses to run closed loop:



Up to the 15 second mark, the sensor is oscillating between rich and lean. This is normal. The sensors inherently have a steep curve at stoich, and ECU's chase it closed loop. The crossover, lean, rich, lean, rich, actually has to occur for the cat to work right anyway. But starting at 15 seconds, the sensor is pegged lean. So, we aren't running at 14.7:1, but how much leaner?

Fortunately, this ECU has a less common J1979 PID called EQ_RATIO. It isn't something measured, but the Equivalency Ratio that the ECU is trying to achieve:



Equiv. Ratio is normally shown as it's reciprocal, and called "lambda". To approximate AFR, you multiply lambda by the typical stoich ratio of the fuel. So, before 15 seconds, the 1.0 means 1.0 x 14.7, or 14.7:1. But when our MAF dipped, the ECU says it was targeting 1.11, or 1.11 x 14.7 = 16.3:1. So, taking the ECU at face value, we can see that the MPG is wrong, because we are leaner than 14.7:1.

But, in this case, I think the error is bigger still. 1.11 is the highest the ECU ever reports for that PID, but look at RPM at that point, it dips and gets rougher. I would bet good money (well, OK money), that I was in overrun and the injectors were closed. That is, lambda was infinite because no fuel was being used.

Now, look right after the stop sign, the O2 sensor pegs rich and the ECU reports that it is targeting about .8 lambda, or 11.76:1. It is tempting to think that coasting lean and going up hill rich will even back out to 14.7:1. But this isn't so. If you turn AFR over, and make it fuel to air (and fuel is what we are projecting based on air) and you average a trip over hilly terrain, you aren't going to end up back at stoich. The reason is the same one that MPG calcs tend to jump so wildly, MPG is not a linear scale, but a exponentially curved one.

Also, it might be tempting to say, but that's MAF, I use X, Y, and Z... But the truth is that MAF is one of the best ways to know fuel. The problem is that many vehicles don't offer a MAF sensor, so we have to work from things like MAP, IAT, and RPM.

I don't know the exact calculation used in this device, but the general formula would be something like:

IMAP = RPM * MAP / IAT (in degK)

Then, airmass = (IMAP/120) * (VE/100) * Displacement * constants-for-air

This calculated air value is then used in lieu of MAF for a fuel usage estimation and MPG calculation. There is nothing wrong with this sort of calculation, a lot of ECU's do essentially the same thing. But they have some information that we do not readily have via OBD-II. For example, they have a VE lookup table for different loads and conditions. Also, just like the example above, they know the AFR that they are targeting at the moment!

Via OBD-II, we have some additional challenges. MAF is a 16 bit measurement, 1/100 g/s, but MAP is pretty course, just one byte and in kPa steps. Second, there is the question of ecu speed. Take a typical pre-CAN Honda, say early 2000-somethign models. They are talking ISO 9141, and pretty slow. If you are polling MAP, RPM, IAT, and VSS. You are getting a full set of readings roughly 1 or 2 times a second. So you are getting snapshots of engine performance that are pretty far apart. In addition, the samples themselves are offset from each other in time.

Now, there are some tricks that could be used to refine the measurements, but, in general, I think these sorts of things are better as 'relative' measurements. I am using more fuel, less fuel, that sort of thing.

Sorry for the long post, but I just talked to someone else about this a few days ago.

-jjf

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-26-2010, 09:40 PM   #22 (permalink)
...beats walking...
 
Join Date: Jul 2009
Location: .
Posts: 6,190
Thanks: 179
Thanked 1,525 Times in 1,126 Posts
...geez, and I "thought" I was onto something when I understood: MPG = MPH / GPH.
  Reply With Quote
Old 01-26-2010, 10:04 PM   #23 (permalink)
EcoModding Lurker
 
Join Date: Jan 2010
Location: Los Angeles, CA
Posts: 54
Thanks: 0
Thanked 20 Times in 8 Posts
Quote:
Originally Posted by Old Tele man View Post
...geez, and I "thought" I was onto something when I understood: MPG = MPH / GPH.
Sorry, occupational hazard. Ultimately, what I am saying is:

A. OBD-II MPG is better as a relative scale than an absolute one because of the information available

B. Tracking your fillups against odometer is a much more accurate measurement of actual MPG

C. If you want real time MPG measurements, something like measuring every injector pulse width is probably more accurate (I see another thread on that technique) - though, it too has some limits and hurdles

D. MPG gauges may or may not be good at tweaking your driving (I think it is debatable), but when you are trying to maximize the fuel performance of the machine itself, other instrumentation, like really good wideband measurements, are probably more useful

Regards
-jjf
  Reply With Quote
Old 01-30-2010, 09:26 PM   #24 (permalink)
EcoModding Lurker
 
Join Date: Jan 2010
Location: Long Beach, CA
Posts: 9

Roady - '07 Honda S2000
90 day: 26.34 mpg (US)

Evo - '06 Mitsubishi Evolution GSR
90 day: 24.21 mpg (US)

Mazotti - '10 Volkswagen Golf TDI
90 day: 46.4 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Lazarus View Post
With mine it was 2 times but I was careful to fill at the same pump and run it till the low fuel light came on before refill. From that point on it was pretty rock solid. Once in a while it would be different but I would wait and see if the next tank after that was also different before I made any tweek assuming it could be pump or fill error.
The instructions of the SGII tell you to fill-up the car when you have a 1/4 tank of gas left during calibration. You ran yours till it the light came on for calibration. Does it matter which method to use? I think your method is more accurate, but why do the instructions say 1/4 tank!!!
  Reply With Quote
Old 01-30-2010, 09:59 PM   #25 (permalink)
ECO-Evolution
 
Lazarus's Avatar
 
Join Date: Nov 2007
Location: Central Texas
Posts: 1,482

Iron Horse (retired) - '97 Iron horse Intrepid

Ninja - '08 Kawasaki 250R
90 day: 76.23 mpg (US)
Thanks: 17
Thanked 45 Times in 34 Posts
Quote:
Originally Posted by nj1266 View Post
The instructions of the SGII tell you to fill-up the car when you have a 1/4 tank of gas left during calibration. You ran yours till it the light came on for calibration. Does it matter which method to use? I think your method is more accurate, but why do the instructions say 1/4 tank!!!
Hmmm. I don't know unless they don't want you to run the fuel level to low. From the manual:
Quote:
NOTE: It is dangerous to run a vehicle out of fuel and can damage the
fuel pump. Do not rely on the fuel gauge or ScanGaugeII at low fuel
levels or low remaining distance or time.
It also states:
Quote:
When the tank is around 1/4 full, go to the gas station (the same one if
possible and use the same pump with the vehicle facing the same
direction) and fill up the tank at the same rate and let it shut off
automatically.
So it appears that I did it wrong. My SG was within .1 gallon just about every fill. My guess is they don't want you running it to low for the reasons above. Maybe someone else can come up with a better explanation.
__________________
"Judge a person by their questions rather than their answers."

  Reply With Quote
Old 01-31-2010, 08:03 PM   #26 (permalink)
...beats walking...
 
Join Date: Jul 2009
Location: .
Posts: 6,190
Thanks: 179
Thanked 1,525 Times in 1,126 Posts
...OK, did a second SGII tank fill-up "calibration" and it was MUCH closer this time, even though it was a 'short' tank--only 7 gals into 13 gallon capacity.

...this time, SGII indicated 7.2 gallons while the pump read 7.011 gallons, which the SGII indicated as a +12.4% offset (a reduction from first calibration of +13.7%).

...I'm thinking "...third time's a charm..."

...any 2009-2010 Vibe 1.8L (2ZR-FE) automatic owners here who can confirm this value?



THUMBS UP! -- 3rd tank: SGII said 9.7 gallons used, tank-fill was actually 9.736 gallons...close enough for me!

Last edited by gone-ot; 02-15-2010 at 10:14 PM..
  Reply With Quote
Old 02-05-2010, 05:31 PM   #27 (permalink)
EcoModding Apprentice
 
Join Date: Oct 2008
Location: Indiana
Posts: 131

Impala - '04 Chevrolet Impala base
90 day: 32.84 mpg (US)
Thanks: 0
Thanked 2 Times in 2 Posts
Nice information here both on the troubles of setting up the Scangauge, and the very detailed info provided on the MAP/VSS/lean-rich graphing. Have been mulling over the idea of getting the Scangauge but just cant justify the expense yet. Good luck!!
__________________
  Reply With Quote
Old 02-05-2010, 08:14 PM   #28 (permalink)
Pokémoderator
 
cfg83's Avatar
 
Join Date: Dec 2007
Location: Southern California
Posts: 5,864

1999 Saturn SW2 - '99 Saturn SW2 Wagon
Team Saturn
90 day: 40.49 mpg (US)
Thanks: 439
Thanked 532 Times in 358 Posts
jfitzpat -

Quote:
Originally Posted by jfitzpat View Post
...

Via OBD-II, we have some additional challenges. MAF is a 16 bit measurement, 1/100 g/s, but MAP is pretty course, just one byte and in kPa steps. Second, there is the question of ecu speed. Take a typical pre-CAN Honda, say early 2000-somethign models. They are talking ISO 9141, and pretty slow. If you are polling MAP, RPM, IAT, and VSS. You are getting a full set of readings roughly 1 or 2 times a second. So you are getting snapshots of engine performance that are pretty far apart. In addition, the samples themselves are offset from each other in time.

Now, there are some tricks that could be used to refine the measurements, but, in general, I think these sorts of things are better as 'relative' measurements. I am using more fuel, less fuel, that sort of thing.

Sorry for the long post, but I just talked to someone else about this a few days ago.

-jjf
I have an old Scanguage I. But, I also have a scantool setup I occasionally use for datalogging. It uses the ELM 322 chip. It has been my impression that my 1999 ECU/PCM is slow to respond to commands. I very much agree that scantools do not get all the data as a "crisp snapshot in time", but as a "blurry picture over time". It also makes me wonder if the ScanGuage limits it's instant display to 4 items for the sake of manageable bandwidth (in addition to LCD real-estate).

CarloSW2
__________________

What's your EPA MPG? Go Here and find out!
American Solar Energy Society
  Reply With Quote
Old 02-06-2010, 11:41 AM   #29 (permalink)
Semi-serious ecomodder
 
ChillyBear's Avatar
 
Join Date: Feb 2010
Location: Ohio
Posts: 52
Thanks: 11
Thanked 4 Times in 3 Posts
I had a car with a 17 gallon tank and the fill up from empty was only 12 gallons...I can't imagine how anyone would ever run out of gas in that thing.
  Reply With Quote
Old 02-06-2010, 07:42 PM   #30 (permalink)
...beats walking...
 
Join Date: Jul 2009
Location: .
Posts: 6,190
Thanks: 179
Thanked 1,525 Times in 1,126 Posts
...interestingly, the Vibe lists a 13.0 gallon (50 ml) gas tank while the exactly-same Toyota Matrtix lists a 13.2 gallon capacity.

...one wonders why (and how) the difference?

  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate MPG / fuel economy formula MetroMPG DIY / How-to 29 11-25-2013 07:47 PM
87 octane vs 89 octane kill-9 General Efficiency Discussion 51 02-14-2013 02:12 PM
Engine braking without using fuel idea Dane-ger EcoModding Central 38 02-04-2010 11:35 AM
Effect of fuel octane number on FE hummingbird EcoModding Central 32 10-28-2009 01:50 AM
Basic EcoDriving Techniques and Instrumentation SVOboy Instrumentation 2 11-17-2007 12:38 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com