Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 02-20-2009, 09:11 AM   #851 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
weight was optimistically added for things like coefficient of drag and power computations

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 02-21-2009, 01:16 PM   #852 (permalink)
EcoModding Lurker
 
Join Date: Aug 2008
Location: Massachusetts USA
Posts: 84

Ziggy - '95 Audi S6 Sedan

Manfred - '97 Audi A6 Quattro Sedan
90 day: 20.61 mpg (US)

Clarabell - '03 Audi A4 Quattro Avant

Sherman - '98 Audi A6 Quattro Avant

Cab - '96 Audi Cabriolet
Thanks: 0
Thanked 2 Times in 2 Posts
With weight and an accelerometer chip, engine power could be calculated. I wonder if, in place of an accelerometer, the change in VSS over time could be used?
  Reply With Quote
Old 02-21-2009, 01:23 PM   #853 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
My guess is that the vss would be more accurate and consistent than an accelerometer chip (and more convenient if you already have a working mpguino).
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 02-25-2009, 01:07 AM   #854 (permalink)
EcoModding Lurker
 
Join Date: Dec 2008
Location: USA
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
I've done some experimenting trying to get an instant acceleration value from the change in VSS over a 1 second interval and the data comes out next to useless. The pulse interval varies too much. Might be just a mechanical issue with my cars VSS. Maybe measuring VSS change over something like a 10 second interval might work.

I was trying to compensate the instant MPG display to account for the kinetic energy stored in the car's motion. Its a really neat feature if the numbers weren't so jumpy.
  Reply With Quote
Old 02-25-2009, 04:17 AM   #855 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
FX, you might try a 50-100k pulldown on the vss lead to help stabilize it. What are you driving anyway?
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 02-25-2009, 02:02 PM   #856 (permalink)
EcoModding Lurker
 
Join Date: Aug 2008
Location: Massachusetts USA
Posts: 84

Ziggy - '95 Audi S6 Sedan

Manfred - '97 Audi A6 Quattro Sedan
90 day: 20.61 mpg (US)

Clarabell - '03 Audi A4 Quattro Avant

Sherman - '98 Audi A6 Quattro Avant

Cab - '96 Audi Cabriolet
Thanks: 0
Thanked 2 Times in 2 Posts
I found this calculation of HP:

1/2 * [veh_weight_lbs] / 32 * (5280 / 3600)^2 * (curr_speed_mph^2 - initial_speed_mph^2) / time / 550

1/2 and 32 adjust for acceleration
5280 adjusts miles to feet
3600 adjusts hours to seconds
550 adjusts to HP

The total weight is the car + fuel (@6lbs per gal) + driver + misc stuff. My car with 1/2 tank of gas is 3837 + 60 + 170 + 30 = 4097lbs.

I set up an array as a ring buffer in loop() that captures mph values over the last few loops. The oldest value is overwritten by the current value each time through loop(). For example, current MPH might be 50mph and 4 loops ago it was 30mph. 4 loops is about 2 seconds. So, currentmph & initialmph, time and weight are known. Plug them into the formula and calc away.

I've tried this in the car once but I' don't think what I'm seeing is correct. All the constants can be factored into a single constant but it will be a fraction so float types will be needed. Working on it.
  Reply With Quote
Old 02-25-2009, 03:50 PM   #857 (permalink)
Master EcoModder
 
Join Date: Nov 2008
Location: 18603, USA
Posts: 759

The Crimson Crawler - '04 Hyundai Elantra GLS
90 day: 36.71 mpg (US)
Thanks: 221
Thanked 60 Times in 45 Posts
I think you are missing a step of addition - see page below.

Horsepower Calculator
  Reply With Quote
Old 02-25-2009, 07:21 PM   #858 (permalink)
EcoModding Lurker
 
Join Date: Dec 2008
Location: USA
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by dcb View Post
FX, you might try a 50-100k pulldown on the vss lead to help stabilize it. What are you driving anyway?
Thanks, I'll try that. My next step was to put a scope on the VSS input to see whats going on but I'm hesitant to run the car on jackstands.

I have a '94 civic vx (49-state). I already hooked up the o2 sensor wire to the MPGuino and implemented a lean-burn monitor which has been very revealing on how it affects the instant MPG.
  Reply With Quote
Old 02-25-2009, 09:40 PM   #859 (permalink)
EcoModding Lurker
 
Join Date: Aug 2008
Location: Massachusetts USA
Posts: 84

Ziggy - '95 Audi S6 Sedan

Manfred - '97 Audi A6 Quattro Sedan
90 day: 20.61 mpg (US)

Clarabell - '03 Audi A4 Quattro Avant

Sherman - '98 Audi A6 Quattro Avant

Cab - '96 Audi Cabriolet
Thanks: 0
Thanked 2 Times in 2 Posts
Audi Rosetta Stone

Quote:
Originally Posted by dcb View Post
...P.S. rmccomiskie, it might help if you record both simultaneously, at cd stereo sampling rate but 8 bit depth. the raw wave format is pretty easy to decypher, don't know about compressed, but having both signals captured at the same time could be something of a rosetta stone for that ECU signal if other VW/Audi groups don't have the answers.
Well...maybe not quite a Rosetta Stone but it's an informative comparison. I frankensteined both the injector and ECU fuel flow signals into a stereo audio plug and captured them with my SoundCard Scope. The green signal is from the injector and the red signal is from the ECU.

This is about 30 mph steady on level ground:

You can that there are 6 ECU pulses for every injector pulse as expected.

...and this is about 30 mph uphill accelerating hard.

The ECU pulses appear to be scaled down from the injector pulse width but I expect them to be proportional.

Then I started coasting downhill at about 30 mph...

When coasting, the signals start out looking like the engine is at idle.

...after a couple of seconds, the signal looked like this...

The ECU signal goes completely flat while the injector signal shrinks to a very short pulse. The flat ECU signal may present a problem because the external interrupt routines will not execute.

More analysis needed. I'm working on it.
  Reply With Quote
Old 02-26-2009, 11:55 AM   #860 (permalink)
EcoModding Lurker
 
Join Date: Aug 2008
Location: Massachusetts USA
Posts: 84

Ziggy - '95 Audi S6 Sedan

Manfred - '97 Audi A6 Quattro Sedan
90 day: 20.61 mpg (US)

Clarabell - '03 Audi A4 Quattro Avant

Sherman - '98 Audi A6 Quattro Avant

Cab - '96 Audi Cabriolet
Thanks: 0
Thanked 2 Times in 2 Posts
I compared the injector pulse width versus the ECU pulse width across a range of speeds and throttle settings to get an average ratio between the two. Here's the graph of the relationship:



The Raw data is for the full injector pulse width and the -500uS data is for the inj pulse minus the settling time. So, the ECU pulse width seems to be about 1/8th the width of the injector pulse and it's consistent across different speeds and acceleration.

If I assume that the ratio is 0.123 and I know that the injector uS/gal is 200500000 for my car, when I switch to the ECU signal input, the uS/gal should be 148000000. Calculated as 0.123 * 200500000 * 6 inj pulses. That gives me a starting point to calibrate the ECU signal.

Of course, it still remains to figure out how to handle the ECU flatline signal when coasting.

  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
My kingdom for a giant, heated workspace MetroMPG The Lounge 14 12-12-2010 09:08 AM
Motorcycle manufacturers beginning to release MPG info MetroMPG Motorcycles / Scooters 1 04-03-2008 05:23 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com