diy mpg gauge - Fuelly Forums

Click here to see important news regarding the aCar App

 
 
Thread Tools Display Modes
 
Prev Previous Post   Next Post Next
Old 08-04-2007, 06:29 AM   #11
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
There's a couple ways to approach it, but referring to:
http://www.gassavers.org/showthread.php?p=64732

Assuming you can solder/record and view wav files/and understand what the program is doing given the wave forms and thresholds, and how to tweak it to make it work with your car after analyzing the signals:
1. you have to locate a good injector signal and a good vss signal. On my metro it was the yellow injector wire going into the resistor and the yellow and green wire going into the ecu.
2. hook them up to your line-in jack
3. run the program once then exit, locate the mpg.properties file it creates.
4. prepare to record line in in PCM at 44100hz 8 bits 2 channels into wav file
5. drive at a known speed (and rpm), make a guess at what mpg you should be getting, and start recording.
6. park it and save recording.
7. analyze the wave forms, if they look like mine you are done.
7a. If the are on the wrong channel, then you can fix it in the wiring or swap the processing of even and odd bytes in the processChunk method.
7b. If they are the wrong direction, then you will have to change the sign on the threshold in the mpg.properties file and the associated comparisons in processChunk for that channel.
7c. If the signals don't cross the default threshold, or noise is crossing the threshold then adjust the threshold (-128 to 127) in the mpg.properties file and/or fix your signal.

Ok, so if you made it through all that, lets "calibrate" it on the bench using your recording:
1. change defaultFile in mpg.properties to point to your recording.
2. run the program, note the speed and mpg
3. exit the program, adjust fuelfudge and vssfudge in mpg.properties a proportional amount (they are used in the divisor), and save.
4. rerun, note speed and mpg, and go to 3 if more adjusting is necessary, otherwise declare victory
5. set defaultFile back to blank and hook the computer back up to your car, enjoy.

Note, I'm considering a more user friendly version of the software, but not a priority for me at the moment. I was going to put this in my metro but the scangauge quit working in the saturn (so it is in the metro) and the saturns driver hasn't warmed up to the idea of having a computer in the car yet.

If a few of you are serious about this and understand what is going on with this cheezy bit of signal processing, PM me and I'll do what I can to help you sort it out.
__________________
Standard Disclaimer
skewbe is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not very precise mpg calculation larjerr Fuelly Web Support and Community News 4 08-20-2012 01:03 AM
epa estimates cseverens Fuelly Web Support and Community News 2 06-09-2010 03:48 AM
Keeping my distance in traffic khurt General Fuel Topics 8 09-07-2008 03:23 AM
Electrical power and cars. DracoFelis Automotive News, Articles and Products 2 09-16-2006 01:31 PM
"active" aero grille slats on 06 civic concept MetroMPG General Fuel Topics 21 01-03-2006 12:02 PM

» Fuelly iOS Apps
» Fuelly Android Apps
Powered by vBadvanced CMPS v3.2.3


All times are GMT -8. The time now is 06:48 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2025, vBulletin Solutions, Inc.