Results 1 to 5 of 5

Thread: Gas logging

  1. #1
    Variable Bitrate
    Join Date
    Dec 2007
    Location
    NY
    Posts
    263

    Gas logging

    I didn't put this in the software section because that section looks anemic.
    The program I'm writing does gas/drive/speed logging so I can monitor my mpg and cost. It tells me how many miles ive driven since my last fill up, average and peak speed. This generally works fine as it pertains to actually driving. However when I'm not driving, or stop and go traffic at less than 2mph, nothing is registered (I have it programmed to only calculate/register when I'm >3mph). I know it is a pretty broad question considering different cars and mpg and such, but how can I go about calculating gas use while the car is at stand still(stop and go traffic)? As it is, I generally get 14-18mpg city.

    Thanks.

  2. #2
    Raw Wave
    Join Date
    Nov 2009
    Posts
    2,119
    What do you mean "calculate" (at standstill)? That's zero mpg, or infinite L per 100km etc.

    Not that I know how modern vehicles do it, but it used to be handled by whatever filtering/averaging algorithm was used, else an invalid display (dashes with flashing dot etc) - especially if a dual display in conjunction with a rolling average or filtered display.

  3. #3
    Variable Bitrate
    Join Date
    Dec 2007
    Location
    NY
    Posts
    263
    Basically my software logs that I put X gallons in my tank at $60.00, on 1/8/2014. Now I go driving for let's say 30 miles and my tank is empty. While I was driving, my software was logging how many miles I was driving, doing all the calculations based on GPS and speed. Now when I fill up my tank again it logs that I got 30 miles out of the previous fill for $60.00.

    Now that last run was a straight highway run with no stops or idle time, so the calculation is perfect, I know I was able to drive 30 miles for my $60.00. But what if I idled for say three hours, which I do tend to do because I can't run my system for too long without the car running, then it looks like I was only able to get 27 miles out of my fill up. So it looks like something is wrong and I'm not getting my proper mpg. So I want to split the log in order to calculate none drive time that is using up my gas. I just need to figure out an average formula. Like let's say an hour of idle time equates to driving 1 mile; so three hours of idling will equate to ROUGHLY 3 miles of driving and I'm back up to 30 miles. Of course the database log would be split between idling time and actual driving time so I know how much is a rough estimate.

    Soooooooo, any ideas?

  4. #4
    FLAC SNOtwistR's Avatar
    Join Date
    Nov 2009
    Location
    Keswick,On Canada
    Posts
    1,531
    According to the US Dept of energy the average fleet vehicle burns 0.594387 US gallons of fuel for every hour idling
    I had researched this many moons ago for my fleet tracking company. Not sure how accurate but at least it is a starting point some what. Good luck SNO

  5. #5
    Variable Bitrate
    Join Date
    Dec 2007
    Location
    NY
    Posts
    263
    I went ahead and did some googling...I don't know why I didn't do that first...and see that the burn is between .3 - 1 gallon per hour idling. That's wildly different numbers. I think I'll split the difference and go with .6 gallons per hour. I also found a site that said an hour of idling translates to a trip of 25-30 miles. Now I need to figure out what all this means mathematically and come up with a happy rough medium. Chime in if you have input.

Similar Threads

  1. need some help with data logging
    By tmhb16 in forum FB Software
    Replies: 5
    Last Post: 06-07-2010, 01:23 AM
  2. Vehicle GPS Logging
    By ukchris in forum GPS
    Replies: 2
    Last Post: 12-30-2006, 12:50 AM
  3. logging
    By canibusfan in forum Road Runner
    Replies: 1
    Last Post: 07-26-2006, 01:06 PM
  4. Software for logging OBD and GPS ?
    By elkiv54 in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 2
    Last Post: 08-31-2005, 05:21 AM
  5. Logging In
    By big al in forum Mp3car Forum Suggestions/Comments
    Replies: 2
    Last Post: 03-12-2002, 12:15 AM

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
  •