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-26-2009, 12:58 PM   #861 (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
Moving Audi content from this thread to the MPGuino for Audi thread

I've taken up enough space here on Audi related investigation. I'm moving this discussion over to the MPGuino for Audi thread to keep it all in one place.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 02-27-2009, 05:32 PM   #862 (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
Quote:
Originally Posted by Nevyn View Post
I think you are missing a step of addition - see page
What step is that?

BTW: In that Virtual Dyno site, gasoline doesn't weight 7 lbs per gallon. It's about 6.0 lbs per gallon depending on the temperature.
  Reply With Quote
Old 03-05-2009, 11:28 PM   #863 (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
Still working on the high GPH problem

I've switched my fuel flow input back to the ECU signal. Everything is working just fine except the high GPH when coasting. I repeat, the ECU signal works just fine. I've dialed in the VSS and the uS/gallon. I just don't understand why coasting behaves the way it does.

I've tracked the high GPH reading from instantgph() back to the external interrupt routine processInjClosed(). In that routine, the value returned by elapsedMicroseconds() jumps from a low value to a high value when I'm coasting.

The elapsed time is ~500-700uS at 30mph steady and increases with higher speed and acceleration. Seems normal. When coasting, however, it decreases to about 250-300uS where it suddenly jumps up to more than 11000uS. As the car slows further and the engine rpm decreases, the value starts rising from 11000 to 15-18000uS. It seems to follow engine rpm inversely. The lower the RPM, the higher the elapsed time. It acts like it switches and starts measuring the wrong part of the pulse. The point at which it switches coincides with the ECU signal going flatline.

I'm stumped! When the signal goes flatline, I expected that the external interrupt routines would not fire. However, I checked and found that the routines are firing normally when coasting and the signal is flat. How can that be?

Question: What signal voltage level is needed to trigger the external interrupt pins? The normal ECU signal is negative going. Looking back at my scope images of the flatline, I see that there are some verrry small positive blips. Could it be that they are triggering the external interrupts opposite of what is expected?

Grasping at straws here.
  Reply With Quote
Old 03-06-2009, 04:22 AM   #864 (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
Quote:
Originally Posted by rmccomiskie View Post
Question: What signal voltage level is needed to trigger the external interrupt pins? The normal ECU signal is negative going. Looking back at my scope images of the flatline, I see that there are some verrry small positive blips. Could it be that they are triggering the external interrupts opposite of what is expected?
The pins will signal an "on" @~2.5 volts on a rising signal, and "off" @~2.2 volt falling signal.

So is it just instant that is off? Can it predict gallons needed for a tank refill pretty well?
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 03-06-2009, 10:41 AM   #865 (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
Quote:
Originally Posted by dcb View Post
...So is it just instant that is off? Can it predict gallons needed for a tank refill pretty well?
I think it affects more than just instant because the elapsed time is added to 'tmpTrip.injHius' that eventually is added to the current and tank totals. I was able to zero in on the uS/gal pretty well but only because I did that on a long highway trip with a fillup at beginning and end. Very little coasting occurred.

I've observed that the maximum elapsedMicroseconds value even under hard acceleration is about 1900uS. I'm experimenting with an upper limit beyond which I set the elapsedMicroseconds to zero. Since it jumps from about 250-300uS way up to 11000uS instantly, I will assume that anything higher than the limit represents the flatline signal. I'll make the upper limit a setting parameter so I can play around with it.
  Reply With Quote
Old 03-06-2009, 02:54 PM   #866 (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
Okay then. The experiment worked. By excluding very high elapsed times, I've eliminated the high GPH readings.

Here's my changes:

Code:
void processInjClosed(void){      
//  long t =  microSeconds();
//  long x = elapsedMicroseconds(injHiStart, t)- parms[injectorSettleTimeIdx];  
  unsigned long t = microSeconds();
  unsigned long s = parms[injectorSettleTimeIdx];  //set to 72
  unsigned long x = elapsedMicroseconds(injHiStart, t);
  
  if (x >= s && x < parms[pulsewidthLimit]) {  //elapsed time within range of settling time(72) and upper threshold(3000)
    x -= s;                                    //then normal pulse, subtract settling time
  }else{
    x = 0;                                     //otherwise pulse width assumed to be zero
  }
  
//  if(x >0)  //no longer needed, x is guaranteed to be zero or greater
  tmpTrip.injHius += x;       
  tmpTrip.injPulses++;      

  if (tmpInstInjStart != nil) {
//    if(x >0)  //no longer needed, x is guaranteed to be zero or greater
    tmpInstInjTot += x;     
    tmpInstInjCount++;
  } else {
    tmpInstInjStart = t;
  }
  
  tmpInstInjEnd = t;
}
I found info for my injector that indicates the settling time should be 615uS using Yoshi's formula. I scaled that down to 72uS for the ECU signal based on the ratio of the ECU to injector pulsewidth.

The maximum pulsewidth that I've seen during normal operation is 1904uS. That's a full throttle run to redline. I've set the upper limit of the pulsewidth to 3000. I don't expect any combination of normal operation will get close to that pulsewidth.

So, the acceptable range of pulsewidths is constrained to 72-2999. Any elapsed time greater than that is assumed to be a flatline ECU signal.

In my experiment, the GPH now seems to operate normally, i.e. it drops to zero when coasting.

Now that I've found a solution, I'll merge the changes back into a clean copy of v0.75 and test it in the car for a while. I still need to fine tune the uS/gal setting for the ECU signal.

Last edited by rmccomiskie; 03-06-2009 at 03:16 PM..
  Reply With Quote
Old 03-07-2009, 12:54 PM   #867 (permalink)
EcoModding Lurker
 
Join Date: Oct 2008
Location: Phoenix
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Calibration data for 1997 Dodge B3500

1997 Dodge B3500 R-V Engine: 5.9 Transmission: 4spd auto VSS: 121785 usec/gal: 0111821079 NOTE: this is an American Cruiser class B motor home. Calibration was accomplished with a GPS after driving 480 miles.
  Reply With Quote
Old 03-07-2009, 03:51 PM   #868 (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
Quote:
Originally Posted by W8AEF View Post
1997 Dodge B3500 R-V Engine: 5.9 Transmission: 4spd auto VSS: 121785 usec/gal: 0111821079 NOTE: this is an American Cruiser class B motor home. Calibration was accomplished with a GPS after driving 480 miles.
Kewl! Put it in the MPGuino Wiki.
  Reply With Quote
Old 03-07-2009, 06:00 PM   #869 (permalink)
EcoModding Lurker
 
Join Date: Oct 2008
Location: Phoenix
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I poked around that site, followed links, and killed about 4 hours and never did figure out how to post there.

It will take someone either smarter than me or with more patience to put the information where it belongs.

Thanks
  Reply With Quote
Old 03-08-2009, 02:21 PM   #870 (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 looked at what others have done. If you click on your user id at the top of the wiki page, it should take you to a page with your user id. Click the edit tab. Here's an example of what I did.

Quote:
'''1997 Audi A6 Quattro'''

[[Image:manfred400x300.jpg]]

MPGuino Information

<<TBD>> Work in Progress!
In the table of car settings, click the 1997 Audi A6 link to see what that looks like. Click edit for the cars table and take a look at the format of the links to user pages. I uploaded a picture to the wiki and inserted a link to it in my page.

Good luck.

  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 10:08 AM
Motorcycle manufacturers beginning to release MPG info MetroMPG Motorcycles / Scooters 1 04-03-2008 06: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