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


Reply
 
Submit Tools LinkBack Thread Tools
Old 10-05-2008, 04:27 PM   #1 (permalink)
EcoModding Lurker
 
Join Date: Sep 2008
Location: Olympia, wa
Posts: 65

Red Beast - '82 V45 Sabre Vetter Fairing
90 day: 39.38 mpg (US)

Da Truck - '92 B2600I
90 day: 25.66 mpg (US)

The Wife's bike - '82 CM450E Red
90 day: 57.22 mpg (US)

Yellow Submarine - '04 Neon SXT
90 day: 31.88 mpg (US)
Modding the MPGuino

Came up with an idea the other day for adding lights to the MPGuino.

Previously posted in the MPGuino release one workspace:


I was thinking about adding code for a 'Red / Green' indicator (2 LEDs hooked up to the outputs) Red would come on if instant was lower than Current, Green would come on if instant was higher than tank. Check to see if backlight was not 0 before turning the light on.
Code:
// in header section
#define GreenLed 10       
#define RedLed 11
...
// in setup()
pinMode(GreenLed,OUTPUT);       
pinMode(RedLed,OUTPUT);       
...
// After sei() call in loop()
if(lastActivity != nil){
  if(instantmpg()>tank.mpg()){
    //turn on GreenLed
    digitalWrite( GreenLed, HIGH); 
  }else{
    //turn off GreenLed
    digitalWrite( GreenLed, LOW);
  }
  if(instantmpg()>current.mpg()){
    //turn off RedLed
    digitalWrite( RedLed, LOW);
  }else{
    //turn on RedLed
    digitalWrite( RedLed, HIGH);
  }
}else{
  //turn off both lights if we are in sleep mode.
  digitalWrite( RedLed, LOW);
  digitalWrite( GreenLed, LOW);
}
Please check the code, I think this is right. Now just install 2 led's on the 10 and 11 pins with drop resistors.

I feel that this would give an instant, eyes up, indication of your driving efficiency based upon bettering your averages. By basing it on both tank and current you will have 4 different states possible:
  • Green on, Red off: Better than both Tank and Current avg, you are doing it right.
  • Both on or Both off: You are somewhere between current and tank averages, you could be doing better.
  • Red on, green off: You are driving too hard or accelerating.


(Support Ecomodder.com & get rid of these annoying ads!)      
 
__________________

  Reply With Quote
Old 11-14-2008, 01:38 PM   #2 (permalink)
EcoModding Lurker
 
Join Date: Nov 2008
Location: Florida
Posts: 11

MR2 Turbo - '93 MR2 Turbo
90 day: 28.3 mpg (US)
While I cant tell you if this is correct or not. I would like to have a single LED on mine to light up when Instant MPG > Tank MPG. Did you ever try this to see if it works out? If it does, maybe I can just wire up a green led to pin 10 and use only the code for instant>tank. Great Idea!

ERIK
__________________
  Reply With Quote
Old 11-14-2008, 09:54 PM   #3 (permalink)
EcoModding Lurker
 
Join Date: Sep 2008
Location: Olympia, wa
Posts: 65

Red Beast - '82 V45 Sabre Vetter Fairing
90 day: 39.38 mpg (US)

Da Truck - '92 B2600I
90 day: 25.66 mpg (US)

The Wife's bike - '82 CM450E Red
90 day: 57.22 mpg (US)

Yellow Submarine - '04 Neon SXT
90 day: 31.88 mpg (US)
I have since started driving a new car. So I have not gone ahead with it. Also, not having any feedback on the idea for a month left me without much interest.
After my emergency house re-model, I will look into doing it.
__________________

  Reply With Quote
Old 11-17-2008, 02:44 PM   #4 (permalink)
EcoModder
 
Join Date: Jul 2008
Location: Harvest, Alabama
Posts: 112

Suzi - '94 Swift GA
90 day: 49.28 mpg (US)

'01 Sentra - '01 Sentra
90 day: 33.53 mpg (US)
I have a secondary idea that I thought would be neat. I find myself watching my gallons per hour a lot during accelerations, with my goal of being under .7 or .8 gph. I was thinking the same idea only with gallons per hour would also be very useful, since I have noticed that accelerating more slowly is helping take the edge off the cooler weather. It's a great idea, I haven't tried anything with it yet either, but thought it would be easy enough if I wasn't able to get the hang of the sound my car makes around .8 gph.
__________________
  Reply With Quote
Old 11-17-2008, 05:46 PM   #5 (permalink)
EcoModding Lurker
 
Join Date: Nov 2008
Location: Florida
Posts: 11

MR2 Turbo - '93 MR2 Turbo
90 day: 28.3 mpg (US)
I would really like to know if this code would work okay to light up the led's. Can anyone verify this is written properly?
__________________
  Reply With Quote
Old 11-18-2008, 04:40 PM   #6 (permalink)
EcoModding Lurker
 
Join Date: Jul 2008
Location: US
Posts: 23

sukisuki - '00 Grand Vitara 4wd
90 day: 21.88 mpg (US)
Another idea: can we use on of the other analog inputs to monitor a CHT sensor on the plugs? That would be great for other mods (O2 leaning)
__________________
  Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MPGuino release one workspace dcb OpenGauge / MPGuino FE computer 772 12-01-2008 10:31 AM
MPGuino installation/setup: 1998 Geo Metro (Pontiac Firefly) MetroMPG OpenGauge / MPGuino FE computer 11 09-15-2008 08:17 PM
Restricted fuel system affect mpguino readings? wagonman76 OpenGauge / MPGuino FE computer 1 09-09-2008 02:34 PM
speed on mpguino fluctuates briansavka OpenGauge / MPGuino FE computer 1 08-01-2008 12:06 PM
Just some quick info on Scangauge vs. MPGuino NoCO2 OpenGauge / MPGuino FE computer 0 05-20-2008 05:47 PM




Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC5
All content copyright EcoModder.com