diy mpg gauge - Page 2 - Fuelly Forums

Click here to see important news regarding the aCar App

Reply
 
Thread Tools Display Modes
 
Old 07-09-2007, 03:25 AM   #11
Team GasMisers5!
 
landspeed's Avatar
 
Join Date: Nov 2006
Posts: 440
Country: United States
Quote:
Originally Posted by skewbe View Post
Yah, the laptop->

Here is another laptop idea, tap into the vss and injector pulses via the line-in right and left channels on the sound card and sort it out from there. They are basicaly A/D converters.
I've thought of this and looked it up - you would need to make circuits to protect the laptop soundcard, especially as injector pulses can hit +50/+100v due to inductive effects when the power supply is cut off (at the end of the injector pulse).

I found somewhere, a USB device that had about 16 A-D convertors and D-A convertors too. It was about $150 though. Shortly after this I found the SuperMID on this site (in fact, it was research into homebrew MPG gauges that led me to this site!)
__________________

__________________

Team GasMisers5 - #1 for first three rounds of the original GS Fuel Economy Challenge
Miles displaced by e-bike since 1 Jan 2008: 62.6 (0 kWh used)
Hypomiler
landspeed is offline   Reply With Quote
Old 07-09-2007, 05:07 AM   #12
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
Quote:
Originally Posted by landspeed View Post
I've thought of this and looked it up - you would need to make circuits to protect the laptop soundcard, especially as injector pulses can hit +50/+100v due to inductive effects when the power supply is cut off (at the end of the injector pulse).
Yah, worth mentioning, don't want people frying their line in ports.

I would think taking the signal from a pair of diodes in parallel, which are in series with a largish value resistor which leads to , oh nevermind, let me draw a picture Were talking pennies worth of parts to limit (clamp) the voltage to .7 volts.



I've got some old assembler routines I wrote for high resolution recording in dos (windows recording always make skips), I can dredge those up, mebbe a linux port would be in order.

I think we have enough info for a laptop based mpg/mph/trip/and rpm program, once you tell it some info about your car like:
1. how many vss pulses per wheel rotation
2. how many injectors
3. how many cylinders (if it is tbi)

but dang if a laptop isn't a lot of luggage for an mpg gauge
Attached Images
 
__________________

__________________
Standard Disclaimer
skewbe is offline   Reply With Quote
Old 07-09-2007, 05:29 AM   #13
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
Quote:
Originally Posted by sonyhome View Post
Most people have laptops nowadays, and all have serial ports.

If there's an explanation of what to monitor on the ODB-2, then a simple program can be made, which then will be ported etc.
Yah, it isn't that simple. there are many OBDII protocols, only iso (asian cars)can be handled by the laptops serial uart chip with only the scantiest of circuitry, and less and less laptops have such a serial port available. The other protocols take $100 adapters (and you might as well get a scangauge/supermid at that point).

I'm looking for cheap and simple, that can be adapted to any electronic fi car (regardless of obd status) using surplus parts/etc.
__________________
Standard Disclaimer
skewbe is offline   Reply With Quote
Old 07-09-2007, 07:35 AM   #14
Registered Member
 
jwxr7's Avatar
 
Join Date: Jan 2007
Posts: 291
Country: United States
Quote:
I'm looking for cheap and simple, that can be adapted to any electronic fi car (regardless of obd status) using surplus parts/etc.
I was just talking with the guys at work about doing something similar to that. Goal was As long as the vehicle has a vss and efi the gauge will work. Just have to do some calibrations for fuel use. I just want a DIY route for my 94 metro since it is all DIY so far + I'm cheap. The scangauge I bought should offer enough to be worthwhile on my newer gas hogs .
__________________
Best tank= 81.23 mpg on july 1st 2008
SAVE SOME GAS, SAVE THE WORLD!

jwxr7 is offline   Reply With Quote
Old 07-09-2007, 08:10 AM   #15
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
a vss is easy to fabricate if the car doesn't have one, basically zip-tie a small magnet to a drive shaft or axle and bracket up a coil to pick it up.

Some cars will have one for a cruise control even if it isn't an obd car.
__________________
Standard Disclaimer
skewbe is offline   Reply With Quote
Old 07-10-2007, 12:13 PM   #16
Registered Member
 
Join Date: Jul 2007
Posts: 8
Country: United States
I'd love to see what you come up with, as i would like to make one for my 94 VX...
VXrunner is offline   Reply With Quote
Old 07-10-2007, 12:37 PM   #17
Registered Member
 
sonyhome's Avatar
 
Join Date: Jul 2007
Posts: 150
Country: United States
Let's recap, assuming you don't want to tap the ODB2 codes (would work for all cars!):

For MPG you need actual distance and gas consumption (duh!)

- distance: count wheel axle rotations

Count rotations R with a magnet or an optical reader
Calibration: multiply count by the circumference Ctire of the tire in inches. That's easy to get with a chalk mark on the tire.

D = R * Ctire /63360

- gas consumption: collect duty cycle of injectors

Can we track it by monitoring the duration of the electromagnetic pulse on the injector electric wires somehow? Maybe with a pickup from the speaker of
an old walkman headset taped to an injector wire? Else tap the wire directly to measure voltage shifts.

Calibration: Need the max volume of gas Vmax the injector can feed divided by the max duty cycle DCmax. Those parameters are probably known by the racers.

V = Vmax * DC/DCmax
__________________

sonyhome is offline   Reply With Quote
Old 07-10-2007, 01:03 PM   #18
Registered Member
 
Join Date: Mar 2007
Posts: 1,138
Country: United States
In a way, you're making it too tough. You really just work off a couple of assumptions. 1- injector pulse width is proportional to fuel flow 2- number of pulses from the vehicle speed thingy is proportional to speed. And then, you just lay a constant on top of it.

Instant MPG = A constant * speed / flow

Less elegant than your idea, though. :-)
__________________
Bill in Houston is offline   Reply With Quote
Old 07-10-2007, 01:36 PM   #19
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
Quote:
Originally Posted by sonyhome View Post
...assuming you don't want to tap the ODB2 codes (would work for all cars!):
that is incorrect, not all cars by a long shot. It won't work on pre-96, didn't even work on my 97 until I swapped ECU's (car worked fine though), it didn't work on my neighbors car. It's ugly too as it is several protocals under one name, some needing more circuitry than others. Check it out.

Having a layer of ECU and whatnot between the mpg gauge and the actual sensors also means a lot more can (and will) go wrong, in my experience.

Note, however, my metro uses ISO (I'm using an OBDII specific term here, so be careful), and you can use a standard serial port (found on older laptops and even old blackberries/palm pilots) with ISO for a few transistors, i.e.: http://prj.perquin.com/obdii/ So there may be an old palm pilot gorilla glued to my dashboard in the not too distant future anyway
__________________
Standard Disclaimer
skewbe is offline   Reply With Quote
Old 07-10-2007, 07:38 PM   #20
Registered Member
 
skewbe's Avatar
 
Join Date: Jan 2007
Posts: 771
Country: United States
revisiting the analog stuff

so rethinking the analog stuff and reusing a tach dwell as a mpg gauge, I found this reference about using op amps to divide.
http://www.national.com/an/AN/AN-30.pdf


So we would use the rpm circuit to create a voltage proportional to the speed (like the rpm circuit does already to drive the meter, only it is connected to an amplified vss signal), and take the dwell circuit to create another voltage (like the dwell circuit does to drive the meter, only it is hooked up to an injector instead of a coil) and divide the speed voltage (E1) by the injector duty cycle voltage (E2) using op amps in a logarithmic mode with a fudge multiplier (calibrator) on E3. Easy cheesey, right?

Attached Thumbnails
Click image for larger version

Name:	divider.GIF
Views:	1271
Size:	12.0 KB
ID:	584  
__________________

__________________
Standard Disclaimer
skewbe 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 07:23 AM.


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