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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 08-19-2009, 01:58 PM   #1 (permalink)
EcoModding Apprentice
 
gtkid2002's Avatar
 
Join Date: Feb 2009
Location: USA - WA
Posts: 110

The Bug - '69 Volkswagen Bug Base
Thanks: 6
Thanked 0 Times in 0 Posts
Super MPGuino?

I'm pretty sure I already know that it will, but I don't want to drop thirty five extra bucks and find out "Hey, you're an idiot!" later.

So, because of my circumstances, I need a speedometer a little bit more than mpg gauge. Because of this, I don't really want to use the standard MPGuino. I'm not sure if anybody has built an mpguino with an Arduino Mega, but I think I might. I'm planning on using the graphic 128x64 screen. I know that's going to use up more memory, part of the reason why I want to use the Mega.

Now, besides the dedicated speedometer, I figure I'll have some room for something else. Suggestions?

Would a multi-injector input improve accuracy?

I know this also rather delves from the idea of the Mpguino, but would there possibly be room to add a twin axis accelerometer if I had the Arduino Mega and have it display on the screen? More or less like this one. There might be some way that I could have it tell when I'm going up/down hills and put that into a note or something. That or when there is extreme acceleration or braking. I could use a tilt sensor, but I would rather the accelerometer.

If there's room with the Mega, I could possibly save up and get an sd card adaptor thingy and have it log my mpg with time and date stamps. Record record mpg for trip, lowest mpg for trip, average for trip, maximum distance for maximum/average/minimum mpg with full tank, etc. A few more random features that could be recorded to sd card so I can be nit picky and stuff.

I know that skelly has a thread up about modifications that s/he has done to their Mpguino, but considering I'm not even a novice at coding, I think it's a good idea to ask for some opinions/input.


And yes, I know I can buy one pre-assembled, but to tell the truth, I love tinkering, and would much rather do this in my own way, despite how complex the entire thing may be.

__________________
I suck at coding! Woo!

1969 VW Bug - Daily Driver
1975 VW Baja - Current Project
Priors:
1989 Honda Prelude Si 4WS (RIP)
1995 Honda Prelude Si (Traded)
1980 Fiat Spider 2000 (Sold)
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 08-19-2009, 02:11 PM   #2 (permalink)
EcoModding EcoModder
 
wikityler's Avatar
 
Join Date: May 2008
Location: Victoria BC
Posts: 68

Gerald - '91 Pontiac Firefly 3dr
Team Metro
90 day: 40.08 mpg (US)
Thanks: 1
Thanked 1 Time in 1 Post
With the power of a mega I'd be tempted to go as far as a digital dash. Have you looked at ladyada's ATmega328? It might be more reasonable if you don't need all the extra gpio on the mega.
__________________
  Reply With Quote
Old 08-19-2009, 02:18 PM   #3 (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
the atmega 1280 is a lot different than the atmega 168, it most likely will not work, as-is anyway. The 328 is much more 168 compatible.

FYI, I don't see much return in monitoring multiple injectors.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 08-19-2009, 04:04 PM   #4 (permalink)
EcoModding Apprentice
 
gtkid2002's Avatar
 
Join Date: Feb 2009
Location: USA - WA
Posts: 110

The Bug - '69 Volkswagen Bug Base
Thanks: 6
Thanked 0 Times in 0 Posts
wikityler - Yeah, I'm a n00b. I hope by gpio you mean pins (something something I/O?), and if so, then yeah, that's what I'm after. I'm hoping to add a lot of stuff to this, mostly gauge cluster related.

dcb - The multiple injectors was just an idea I threw out. If it would help make the gauging even more accurate, why not? But if it's not going to make much of a difference, who cares. I could possibly see the need of something like this on a V-8 that has the cylinder shutoff, but i'm assuming that would require a lot of code tweaking and a lot of vehicle-specific engine data.

I'm aware that the atmega 1280 is different, but wouldn't the coding still work so long as I adjusted the pin numbers as needed? Please correct me if i'm wrong, but I thought the code was exactly the same for all Arduinos.

I figure what I'll do is have the screen and a needle sweep so I can use the mpg gauge seperately. Or something.
__________________
I suck at coding! Woo!

1969 VW Bug - Daily Driver
1975 VW Baja - Current Project
Priors:
1989 Honda Prelude Si 4WS (RIP)
1995 Honda Prelude Si (Traded)
1980 Fiat Spider 2000 (Sold)
  Reply With Quote
Old 08-19-2009, 04:32 PM   #5 (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
If it were pure arduino then it would probably be portable, but I found myself fighting with the arduino environment early on to get the guino to do what I knew the chip could do but that "pure" arduino couldn't due to space/performance/absent & changing functionality issues.

Arduino is good at making simple things simple, and is a terrific introduction to embedded programming. But I have since abandoned arduino so I could get more functionality out of the same (at the time) hardware.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 08-19-2009, 04:43 PM   #6 (permalink)
EcoModding Lurker
 
Join Date: Apr 2009
Location: Debolt, Alberta
Posts: 78
Thanks: 1
Thanked 2 Times in 2 Posts
It's only a matter of time before OBDuino moves to the Mega board... Currently the extra pins are very few... so add on's are very limited. There is also less room for new fancy features in the code. The Mega provides a lot more room to grow, but it has an even larger footprint...

The Arduino compiler compiles the same source code as per the destination board (Mega or other) so any internal differences between chip types should be transparent to the OBDuino source code and the user. (The pins may need to be reassigned but that is no biggy.)
  Reply With Quote
Old 08-19-2009, 05:37 PM   #7 (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
Yes, life is simple when you just have to twiddle the uart or i2c ports

But that doesn't help 89 prelude guy.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 08-19-2009, 08:01 PM   #8 (permalink)
EcoModding Lurker
 
Join Date: Apr 2009
Location: Debolt, Alberta
Posts: 78
Thanks: 1
Thanked 2 Times in 2 Posts
LOL. So true!
  Reply With Quote
Old 08-20-2009, 01:54 AM   #9 (permalink)
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
Quote:
Originally Posted by gtkid2002 View Post
The multiple injectors was just an idea I threw out. If it would help make the gauging even more accurate, why not? But if it's not going to make much of a difference, who cares. I could possibly see the need of something like this on a V-8 that has the cylinder shutoff, but i'm assuming that would require a lot of code tweaking and a lot of vehicle-specific engine data.
As i understand it, you only need one injector pulse per cycle, because you are calibrating the # of pulses over an entire tank of gas. It makes no difference whatsoever to your calibration, whether you pulse once per 360 degrees (on the distributor), or once per cylinder. The value will either be 1 * N, or exactly X * N, where X = # cylinders and N = # times cylinder 1 fired over the calibration period.

You raise an interesting point with the cylinder shutoff option. Just throwing this idea out there, for comment by those who would know better than I:

Could each injector be tied to the single 'duino input line, by placing a protective diode onto each one? If so, your calibration and tracking would be based on the exact # of pulses, as required by 'shutoff' engines, instead of the once-per-cycle that most of us need. Would the diodes prevent the separate injectors from cross-talking or shorting each other out?
  Reply With Quote
Old 08-20-2009, 02:10 AM   #10 (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
Yup, as long as the pulses don't overlap the diode thingy should work. But the guino is already within 1% accuracy, at least on some cars (my saturn is always spot on), so diminishing returns to start with.

The typical ECU only has one o2 sensor that it makes fuel adjustments with, so all the pulses should be the same length, typically. Not much to be gained by the additional complexity, generally speaking.

But for engines that actually do shut off cylinders (not many), merging the signals with diodes should do it, for the most part anyway. You can tap one injector that doesn't shut off and one that does and cut the usPerGallon in half, I think, hmm...

edit: hmm... went the wrong way with the usPerGallon, didn't I. Lesse... If you have the single injector hookup figure right, then hook up another injector, you will get twice as much injector open time even though the car is getting the same fuel, so you want to DOUBLE the typical usPerGallon if you are monitoring two injectors.

__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 08-20-2009 at 02:54 AM..
  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MPGuino release one workspace dcb OpenGauge / MPGuino FE computer 1061 01-17-2020 01:37 AM
MPGuino rebooting and freezing also... Power issue? tygertec OpenGauge / MPGuino FE computer 28 04-17-2011 04:05 PM
MPGuino additon? BIG instant speed? gtkid2002 OpenGauge / MPGuino FE computer 11 02-19-2010 08:23 PM
MPGuino installation/setup: 1998 Geo Metro (Pontiac Firefly) MetroMPG OpenGauge / MPGuino FE computer 12 10-11-2009 03:29 PM
Will mpguino show the mileage going up while the engine is off and car is moving? abcdpeterson OpenGauge / MPGuino FE computer 6 06-02-2009 06:14 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