Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Could this be a method to calculate diesel mpg?

  1. #1
    Newbie
    Join Date
    Jan 2009
    Posts
    17

    Could this be a method to calculate diesel mpg?

    I've been chewing over how to calculate diesel mpg from obd data, as we know diesel engines do not meter fuel out in the same way as a petrol engine, so it makes the calculation very difficult.

    But, we can work out mpg when refilling the tank for ourselves.

    Would the method below work ? -

    Record average speed, along with engine load and rpm, maybe mass air flow too.

    Plug in the mpg we worked out when refilling.

    Then some how use the recorded speed, engine load, rpm etc to map out the average mpg.

    So if you do a lot of town driving

    you might get average speeds of 30mph, low rpm values and a mixture of engine loads giving you an average 35 mpg for example

    Then if you do a lot of A road driving

    Higher speeds of 60mph, higher rpms and more steady engine loads giving you an average of 50mpg

    Eventually working out a map of engine speed, rpm and engine load with approximate mpg. The more trips you do, the more accurate the result.

    Anyone good at mathmatical formulas?

  2. #2
    Newbie
    Join Date
    Feb 2009
    Posts
    23
    Could someone please explain to me why it is so important to know the average mpg?

    I read these sort of topics everywhere, everyone seems to want to know the mpg of the car..

    My car ECU can't supply these values either, but it would be the last thing I want to know about the car.. When the $$ is low, I just drive relaxed, nog more then 2500rpm and the car takes 4L / 100km.. When times are not so though, the car (read: I, the driver) consumes 6l / 100km

    I know this, and I know the car can't do better.. But still. I'm a curious person, so this is not a bash or something, I just would like to know why..

    thnx m8

  3. #3
    Newbie
    Join Date
    Aug 2009
    Location
    Port Charlotte, FL
    Posts
    39
    Agreed w/ hakkow, this topic seems to be one of religious fervor for reasons that are unclear. I still calculate average MPG the way I always have, with a calculator, the odometer, and the metering device built into every service station's fuel pump.

    @ sonicmule, my knowledge of modern diesel engine management is somewhat limited as to particulars, however I'm not clear on what you mean by "diesel engines do not meter fuel out in the same way as a petrol engine." Since you are speaking of OBD, MAF, and load calculation, I assume that we are dealing with a common-rail diesel system using electronic fuel injectors. In what way does this system vary from that of a petrol engine? Granted, the fuel pressure is higher and the injection duration shorter, but in both systems you have a set of injectors with a known mass flow rate, being electronically operated for a variable length of time per cycle.

    How is this hard?

  4. #4
    Variable Bitrate
    Join Date
    Oct 2008
    Posts
    376
    Petrol cars measure the amount of air going into the engine and calculate from that the amount of fuel needed. So, there's always some relation between air and fuel.
    Diesels don't care how much air is going into the engine, as there's no throttle it's always a lot. The amount of fuel injected is controlled by the drivers foot. The more you press the accelerator pedal, the more fuel is injected (well, up to a limit). This means there's no relation between air and fuel.

  5. #5
    Newbie
    Join Date
    Aug 2009
    Location
    Port Charlotte, FL
    Posts
    39
    Airflow does not matter one bit insofar as calculating MPG is concerned.

    If you know either the duty cycle of the injectors (%), or engine RPM and the duration of the injector pulses (in milliseconds), then based upon the injectors' static mass flow rate (cc / min) you can compute the total amount of fuel per unit time being delivered, again, in cc / min or L / hour. (you'll need to correct for the injectors' on and off lag times, if unequal.)

    If you also know the vehicle speed (in KPH) then you can calculate mileage. If you are traveling at 100 KPH, and your injectors are delivering 5 LPH, then your mileage is 5L / 100 KM. (For Americans, that's 47 MPG.)

    Easy.

  6. #6
    Variable Bitrate
    Join Date
    Oct 2008
    Posts
    376
    If you're lucky you can get the length of the main injection through OBD2/EOBD.
    However, diesel's use 3 to 5 injections per cycle.
    Don't think you can get it right.

    Besides that, flow rate and injection time are not enough. Diesels also vary the injection pressure from 300 bar at idle up to 1500 or 1800 or even 2000 bar depending on the system. And the amount injected changes with the pressure.

  7. #7
    Newbie
    Join Date
    Aug 2009
    Location
    Port Charlotte, FL
    Posts
    39
    Quote Originally Posted by p2psmurf View Post
    If you're lucky you can get the length of the main injection through OBD2/EOBD.
    And if not, you can measure it directly with a simple microcontroller (such as a Parallax stamp), and pass the data into the PC as RS232.


    However, diesel's use 3 to 5 injections per cycle.
    ?!

    This contradicts my admittedly outdated understanding of diesel theory, but I'll accept it. In that case, just measure each pulse and sum them. You need monitor only one injector.


    Besides that, flow rate and injection time are not enough. Diesels also vary the injection pressure from 300 bar at idle up to 1500 or 1800 or even 2000 bar depending on the system. And the amount injected changes with the pressure.
    Sounds like a variable that can easily be accounted for in software once it is measured and its effect on injector flowrate known. That much can be determined with a pressure gauge, a graduated cylinder, and a means of triggering the injector externally. It's probable that a shop which services diesel injectors may already have this data, or at least the means to collect it. Dynamic flow testing is a common procedure on gasoline injectors, and I have to assume the same service exists for diesel injectors.

  8. #8
    Variable Bitrate
    Join Date
    Oct 2008
    Posts
    376
    A pressure gauge for 2000 bar? That's 29000 (twenty-nine thousand) psi.
    I would be a bit careful here. Oil at that pressure will cut a hole in a steel plate, so imagine what that will do to a human body.

    But why this difficult? Just monitor the fuel-consumption signal from the ecu, the same as the instrument panel does.

    But that wasn't the original question. The original question (as I understand it) was how to calculate it using OBD2/EOBD pid values which should work for every vehicle.
    If we start with measuring injection times or fuel-consumption signals, you would have to calibrate it for a vehicle.

    A good article on diesel injection systems:
    http://autospeed.com/cms/title_Commo...4/article.html
    It seems we also have to measure fuel temp if we want to use injection times to calculate MPG.

  9. #9
    Newbie
    Join Date
    Aug 2009
    Location
    Port Charlotte, FL
    Posts
    39
    Quote Originally Posted by p2psmurf View Post
    A pressure gauge for 2000 bar? That's 29000 (twenty-nine thousand) psi.
    Sure. Industrial suppliers that deal with big hydraulic systems will have gauges calibrated in that range. Heck, even Enco Tools has one for US$32 that's rated to 10,000 PSI (690 bar). I get all of my pressure and temperature instruments from them- much lower price (and much better quality) than dealing with automotive vendors.


    But why this difficult? Just monitor the fuel-consumption signal from the ecu, the same as the instrument panel does.

    But that wasn't the original question. The original question (as I understand it) was how to calculate it using OBD2/EOBD pid values which should work for every vehicle.
    Well, that's where I'm hazy. If the ECU already tells you fuel consumption, then why the business of reading Mass Air mentioned in the first post? (Do direct-injection diesels even use MAF sensors?)


    A good article on diesel injection systems:
    http://autospeed.com/cms/title_Commo...4/article.html
    It seems we also have to measure fuel temp if we want to use injection times to calculate MPG.
    Thanks, I'll check that out. I know gasoline EFI pretty much inside and out, but the only diesels I've worked with were older marine engines w/ mechanical injection.

  10. #10
    Variable Bitrate
    Join Date
    Oct 2008
    Posts
    376
    I agree your method could be used, but think of the costs involved if you need the injector flow to be measured before you can use those figures. And then you have to flow them at different pressures and with different fuel temps as well.
    You also need hardware to get the injection times, pressure and fuel temperature.
    I think this is to costly for most enthusiasts.

    Yes, a lot of modern diesels have a MAF, but you can't use that signal for MPG calculation. Let's say the MAF is saying 800 mg/cycle. That doesn't tell you how much fuel is going in. That is solely dependent on the drivers foot, the main injection could be 3 cubic centimeters per cycle or 30 cubic centimeters per cycle and everything in between. There's not a fixed relation between air and fuel, in contrast with petrol cars where you know this relation and can deduce fuel from the amount of air going into the engine. That is why everybody wants to read the MAF value.

    A lot of ecu's have either a dedicated wire for fuel consumption or they communicate with the instrument panel over can-bus or J1850 bus. Then you need hardware and software to get that signal. And quite a lot of reverse engineering to find out which signal it is and what it means. Not my idea of what the average do-it-your-self enthusiast is capable of. It is not a signal that can be read by simple OBD2/EOBD protocols.

Page 1 of 2 12 LastLast

Similar Threads

  1. Calculating MPG from VSS and MAF from OBD2
    By maeliosa in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 121
    Last Post: 02-25-2014, 09:29 AM
  2. fuel consumption on a diesel engine
    By pwb in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 16
    Last Post: 11-21-2009, 12:44 PM
  3. Instantanious MPG!! (Mazda 3 only '06+)
    By iNcArCeRaTiOn in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 16
    Last Post: 07-25-2009, 03:57 PM
  4. Diesel MPG formula
    By Aberk in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 1
    Last Post: 04-22-2009, 12:22 PM
  5. Best browseing method, post your ideas! (long)
    By liquid_smoke in forum Software & Software Development
    Replies: 75
    Last Post: 09-21-2004, 05:50 PM

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
  •