diy mpg gauge - Page 7 - Fuelly Forums

Click here to see important news regarding the aCar App

Reply
 
Thread Tools Display Modes
 
Old 08-04-2007, 06:29 AM   #61
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
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
Old 08-04-2007, 06:48 AM   #62
Registered Member
 
Join Date: Jul 2007
Posts: 6
Country: United States
Here are some pics of my circuit I made. I am not sure if it Is right, but I tried. My wires arent too thin are they? (speaker wires) And I put it in a nice box. I still have to connect it to my laptop and calibrate. (going to connect it to an older computer first, just to make sure, I dont fry my good laptop)

one more question... since my car is a 91 metro 3cyl, similar to your metro skewbe (is it 3cyl ?), I was wondering if I will still have to do all the calibrations etc...







__________________

mpmetro is offline   Reply With Quote
Old 08-04-2007, 07:16 AM   #63
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
looks right, you might want to use shielded wire to the probes and ground them near where they tap into the signal for less noise.

You might get lucky and not have to calibrate. I'm a little confused on right vs left so you may need to swap those to get it to work right.
__________________
Standard Disclaimer
skewbe is offline   Reply With Quote
Old 08-04-2007, 09:51 PM   #64
Registered Member
 
sonyhome's Avatar
 
Join Date: Jul 2007
Posts: 150
Country: United States
skewbe:

I'd love to code the program to make what I think would be a great hypermiling diagnostic tool, I have quite a few ideas on how to present the data usefully. However I need lo learn Java first . I did look at the graphic libraries, and it's too bad, it seems one has to code the graphic interfaces (for like 2D graphs, gauges etc.) so there's some overhead work to make a cool tool.

I think the config file you have is pretty well thought, it does allow adjusting the tool.

itjstagame :

With this gizmo you could have what you want. It's just a matter of programming.

Caprice:

I think it boils down to this:
- Find Vss and one injector wire
- Solder wires to needles and stick them in to tap those signals.
- At the other end, follow the diagram, aka solder to a 1/4" (?) headphone plug (each wire to center connectors and the diode bridges between those wires and the outside ground connector), and the ground to the car's chassis. Note that there's a resistor there, and it's to make sure you don't just ground the signals with the diodes. When the diodes pass current, it's via the resistor, which makes the current draw very small.
- Boot your PC or whatever, and run skewbe's Java app. For that I personally made a batch file that just calls the java program, else Windows doesn't launch it (maybe one needs to register the .java extension as a runnable program?).

The program works w/o the car: just with noise on the microphone it'll do some random stuff.

mpmetro:

That's some ugly soldering LOL
make sure that glue holds tight.
__________________

sonyhome is offline   Reply With Quote
Old 08-04-2007, 09:57 PM   #65
Supporting Member
 
cfg83's Avatar
 
Join Date: Sep 2006
Posts: 1,779
Country: United States
mpmetro -

Quote:
Originally Posted by mpmetro View Post
...



...
Plastic box containter. Righteous!

CarloSW2
__________________
Old School SW2 EPA ... New School Civic EPA :

What's your EPA MPG? https://www.fueleconomy.gov/feg/calculatorSelectYear.jsp
cfg83 is offline   Reply With Quote
Old 08-05-2007, 01:27 PM   #66
Registered Member
 
Join Date: Jul 2007
Posts: 6
Country: United States
Quote:
Originally Posted by sonyhome View Post
skewbe:
That's some ugly soldering LOL
make sure that glue holds tight.
i know... i cant solder.
mpmetro is offline   Reply With Quote
Old 08-06-2007, 06:04 AM   #67
Registered Member
 
Join Date: Jul 2007
Posts: 280
Country: United States
Quote:
Originally Posted by sonyhome View Post
itjstagame :

With this gizmo you could have what you want. It's just a matter of programming.
I've already done some of the programming. Java was new to me too but not that hard to pickup. I added a way to 'guess' VSS pulses based on tire size and final gear and a way to calibrate vss pulses over a given number of miles.

I'm also trying to add the cid and crr calculations but stopped at trying to figure out how to use the actual temp, pressure and humidity to get air pressure index. Also I didn't want to release anything until I could get it installed and calibrated (and debugged!) in my truck, but I'm kind of scared to throw a resistor in line with the negative on my injector and can't find my VSS (tons of wires to my trans and transfer case and not sure what I need). For now I'm just using small tankfuls and trying to drive (I have no time to work on most these things anyway).

A graph might be nice but I think I'd rather see a more 'gauge' like interface (with a needle). The only other diagnostic I'd like to add is instantaneous HP/power and keep track of that over trips too.

For instance the same trip done at 45MPH and at 75MPH, the 75MPH will neccisarily have to have generated more energy/hp and most likely used more fuel.

I was also wondering about trying to find a pinout diagram of my ecu and pull signals there. Not the processed signals from an ODB connector, but the actual inputs to the ECU and bridging them.
itjstagame is offline   Reply With Quote
Old 08-06-2007, 06:09 AM   #68
Registered Member
 
Join Date: Jul 2007
Posts: 280
Country: United States
Quote:
Originally Posted by mpmetro View Post
Here are some pics of my circuit I made. I am not sure if it Is right, but I tried. My wires arent too thin are they? (speaker wires) And I put it in a nice box. I still have to connect it to my laptop and calibrate. (going to connect it to an older computer first, just to make sure, I dont fry my good laptop)
Ok, that's what I understood from diagram posted earlier, but I still can't tell if you're tapping inline to the 'ground' from the injector or if you're bridging off or if you're tapping into the positive side.

I'm also still confused on what the diodes do (which is fine I don't really need to know ) and I'm confused why VSS signal would be hooked to a common ground, I picture it acting like the pulsing coil on my motorcycle, it's generates a small VAC current due to the magnet going toward and away from the circuit.

Also I was going to swap the 10k res for a 25k pot for calibration (I just need to be unlazy).
itjstagame is offline   Reply With Quote
Old 08-06-2007, 09:35 PM   #69
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
sonyhome: Yes on all accounts

itjstagame:
I believe my injector has a switched ground, so I'm on the other side of that, counting on the voltage drop across the resistor to give me a signal.

My VCC is a switch, which mysteriously does go positive and negative??? Don't care. The wagon is a magnet, or a hall effect thing, I expect that might take some figuring at slow speed and/or an op amp.


anyone: You can mess around with my wav recording for defaultFile. It's a bit more relevant than mic noise. It's too big to post so PM me your email and I'll forward it,2.5 meg. Tell me if you think the rpm "whine" on it is the alternator if you listen to it.
__________________
Standard Disclaimer
skewbe is offline   Reply With Quote
Old 08-07-2007, 12:00 PM   #70
Registered Member
 
Join Date: Jul 2007
Posts: 280
Country: United States
Ok, so you're on the same leg with the resistor in the middle, sounds good to me. I still worry about changing the ground of my injector (through a resistor) affecting pulsewidth, but I guess it doesn't matter and I can always change it back if there's a problem.

Yeah, I suspect VCC to go positive and negative but I guess that's all good too. Just need to find my VSS and start splicing.
__________________

itjstagame is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 Android Apps
Powered by vBadvanced CMPS v3.2.3


All times are GMT -8. The time now is 04:23 PM.


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