View Single Post
Old 01-13-2009, 08:34 AM   #792 (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
Well, there are a couple unused pins. It is certainly doable. If you know which injectors get deactivated and which don't, you can sense one of each and compensate the display when you detect the deactivation.

In mpguino terms:
1. connect analog 1 to the deactivating injector.
2. add a pin change interrupt on analog 1 that sets a flag.
3. in the loop, make a copy of the flag then clear the original, if the copy is set then use a microsecondsPerGallon value that is increased by the percentage of cylinders that get deactivated. (or something like that), if half the cylinders get deactivated then double the microsecondsPerGallon used in the calculations.

Plus etc. etc. to make it a semi-comprehendable thing to use and performance etc.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 01-13-2009 at 08:54 AM..
  Reply With Quote