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


Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 07-13-2009, 02:59 PM   #891 (permalink)
EcoModding Lurker
 
Join Date: Dec 2008
Location: San Diego
Posts: 12

Big red - '95 Civic VX
90 day: 46.51 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
hey dcb, and everyone who made this project happen its a great thing you all have done. I just went through this whole thread looking for specific info to get my car calibrated correctly. I drive a 1995 civic vx and have the mpguino that ordered from dcb installed and running but it is just off a bit. I believe the vss is right. And I found that andrewj thought that the correct inj should be about 4999200000. so I have to actually rack up some driving time and see if those two numbers make the mileage seem more feasible. If anyone have calibrated a civic vx I would be uber greatful to get the numbers because I am going on a 1,100 mile road trip and would love to have a correct calibration.

Thanks


(Support Ecomodder.com & get rid of these annoying ads!)      
 
  Reply With Quote
Old 09-02-2009, 08:31 AM   #892 (permalink)
EcoModding Lurker
 
Join Date: Aug 2009
Location: terra firma
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
Is there someplace I can download 0.80 cpp and 0.75 cpp (if it exists) ? I'd like to follow the changes & possibly incorporate them into 0.75 pde.
  Reply With Quote
Old 09-14-2009, 06:05 PM   #893 (permalink)
EcoModding Lurker
 
Join Date: Aug 2009
Location: terra firma
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
processInjOpen/Closed

I think there is an error in processInjOpen/Closed. I understand the change made from 0.74 to 0.75 resulted in more steady GPH calculations, but I believe the results are incorrect.

In 0.74, InstInjStart/End were always set to the beginning of the "On" signal. GPH was calc'd as (Total On Time) / (Total On+Off Time).

In 0.75, InstInjEnd was changed to the beginning of "Off". This causes the last "Off" period to drop from the GPH calc. Suppose 10 equal-length pulses occur during one loop period. GPH = (10 * On) / (10 * On + 9 * Off). Since injector pulses are "Off" much longer than "On", this will skew the result several percent higher.


My suggested fix is to return to the 0.74 Start/End method (always at leading edge of "On"), but instead of updating Inj totals on the Off signal (processInjClosed), wait until the pulse cycle is complete, and then update the totals in processInjOpen.

Code:
void processInjOpen (void)
{
  injHiStart = microSeconds();

  if (tmpInstInjStart == nil)  tmpInstInjStart = injHiStart;
// else { // edit 9/26/09 - see note below
    tmpInstInjTot += tmpInstInjOn;
    tmpInstInjCount++;
    tmpTrip.injHius += tmpInstInjOn;
    tmpTrip.injPulses++;
//  } // edit 9/26/09

  tmpInstInjEnd = injHiStart;
}


void processInjClosed (void)
{
    tmpInstInjOn = elapsedMicroseconds(injHiStart)- parms[injectorSettleTimeIdx];
}


in loop():

change     tmpInstInjStart=nil;
to:     tmpInstInjStart=tmpInstInjEnd; //preserve InjStart of unfinished pulse from previous loop



near line 200:

change:  unsigned volatile long tmpInstInjEnd=nil;
and add: unsigned volatile long tmpInstInjOn=0;
edit 9/26/2009 processInjOpen -- remove the else condition. If one or more loops were entirely EOC, tmpInstStart will alwayss == nil, and the last good tmpInstInjOn will not get added to tmpTrip, and thus, will never be added to tank or current via update(). Removing the else will allow the old injOn to get updated to all the Trip structures, regardless of injStart's status.

The side-effect of this unconditional update: instantgph & rpm will be a little off for the re-entry loop, but you're coming off an EOC where gph=0.00 and mpg=999.999, so no real harm.

Last edited by nickdigger; 09-27-2009 at 04:31 AM..
  Reply With Quote
Old 09-17-2009, 07:21 PM   #894 (permalink)
EcoModding Lurker
 
Join Date: Aug 2009
Location: terra firma
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
Addition to above processInjOpen/Closed procedures: Discard Too-Long Pulses.


Code:
#define injEdgeIdx 10          //v0.82
#define injectorMaxTimeIdx 11  //discard any pulses longer than this value
#define parmsLength (sizeof(parms)/sizeof(unsigned long)) //array size      


char *  parmLabels[]={
"Contrast","VSS Pulses/Mile", "MicroSec/Gallon", "Pulses/2 revs","Timeout MicroSec",
"Tank Gal * 1000", "InjectorDelay uS","Weight (lbs)","Scratchpad(odo?)","VSS Delay ms",
"InjTrg 0=Dn 1=Up", "Max Inj Pulse us" };



unsigned volatile long maxInjOn=0;
// use for debugging, display it on a Custom screen.  See what kind of pulse length we can expect during normal driving.  Then, set injectorMaxTimeIdx accordingly.


void processInjClosed (void)      //v0.82
{
  tmpInstInjOn = elapsedMicroseconds(injHiStart);
  if (tmpInstInjOn > parms[injectorMaxTimeIdx] || tmpInstInjOn < injectorSettleTime)
    tmpInstInjOn = 0;   // now weed out too-big & too-small pulses
  else  tmpInstInjOn -= injectorSettleTime;

  if (tmpInstInjOn > maxInjOn)  maxInjOn = tmpInstInjOn;   //debugging info, to find max injector length
}



void processInjClosed (void)      //v0.75
{
  tmpInstInjOn = elapsedMicroseconds(injHiStart);
  if (tmpInstInjOn > parms[injectorMaxTimeIdx] || tmpInstInjOn < parms[injectorSettleTimeIdx])
    tmpInstInjOn = 0;   // now weed out too-big & too-small pulses
  else  tmpInstInjOn -= parms[injectorSettleTimeIdx];

  if (tmpInstInjOn > maxInjOn)  maxInjOn = tmpInstInjOn;   //debugging info, to find max injector length
}
  Reply With Quote
Old 10-22-2009, 10:07 PM   #895 (permalink)
EcoModding Lurker
 
Join Date: Aug 2008
Location: Massachusetts USA
Posts: 83

The Tank - '90 200 Quattro Avant

Ziggy - '95 S6 Sedan

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

Clarabell - '03 A4 Quattro Avant

Sherman - '98 A6 Quattro Avant
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nickdigger View Post
Addition to above processInjOpen/Closed procedures: Discard Too-Long Pulses.
I did something similar some time ago.
MPGuino for Audi
  Reply With Quote
Reply  Post New Thread

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Motorcycle manufacturers beginning to release MPG info MetroMPG Motorcycles / Scooters 1 04-03-2008 06:23 PM
My kingdom for a giant, heated workspace MetroMPG The Lounge 13 01-07-2008 12:11 AM


car hire glasgow
Compare numerous car hire deals in Glasgow with one easy Dealchecker search. Follow the link.



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
All content copyright EcoModder.com