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

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

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

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

Yellow Submarine - '04 Dodge Neon SXT
90 day: 28.71 mpg (US)
Thanks: 6
Thanked 1 Time in 1 Post
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.

__________________
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

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

MR2 Turbo - '93 Toyota MR2 Turbo
90 day: 28.28 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
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: 96

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

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

Yellow Submarine - '04 Dodge Neon SXT
90 day: 28.71 mpg (US)
Thanks: 6
Thanked 1 Time in 1 Post
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: North Central Alabama
Posts: 572

Big Salsa - '04 Toyota Sienna LE

Silver - '10 Toyota Prius III
Thanks: 110
Thanked 123 Times in 71 Posts
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: 18

MR2 Turbo - '93 Toyota MR2 Turbo
90 day: 28.28 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
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: 76

sukisuki - '00 Suzuki Grand Vitara 4wd
90 day: 21.88 mpg (US)
Thanks: 1
Thanked 15 Times in 6 Posts
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
Old 02-18-2013, 01:15 PM   #7 (permalink)
Like a 2CV only newer
 
stargazerf3a's Avatar
 
Join Date: Jun 2012
Location: Thessaloniki , Greece
Posts: 50

Booboo - '06 Renault Clio 2 PH.3 LPG
90 day: 34.69 mpg (US)
Thanks: 17
Thanked 5 Times in 5 Posts
Hey guys! Nice mod!!!

Did anyone tested it yet?
I would like to impliment it to my mpguino but i can not compile it with the canadian version 0.82 it's just drives me crazy
but nice idea i'll keep trying, if anyone manages to do it please share it with us!

here it seams to be the problem :
instantmpg()>tank.mpg
instantmpg()>current.mpg
They have different names on the canadian version but i can not find them
  Reply With Quote
Old 02-18-2013, 03:55 PM   #8 (permalink)
Like a 2CV only newer
 
stargazerf3a's Avatar
 
Join Date: Jun 2012
Location: Thessaloniki , Greece
Posts: 50

Booboo - '06 Renault Clio 2 PH.3 LPG
90 day: 34.69 mpg (US)
Thanks: 17
Thanked 5 Times in 5 Posts
if(instantdistanceperfuelunit()>tank.distanceperfu elunit()){
if(instantdistanceperfuelunit()>current.distancepe rfuelunit()){

It does compile it , but is it ok?

  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
MPGuino release one workspace dcb OpenGauge / MPGuino FE computer 1061 01-17-2020 02:37 AM
Just some quick info on Scangauge vs. MPGuino NoCO2 OpenGauge / MPGuino FE computer 4 06-01-2015 05:58 PM
MPGuino installation/setup: 1998 Geo Metro (Pontiac Firefly) MetroMPG OpenGauge / MPGuino FE computer 12 10-11-2009 04:29 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



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