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-03-2010, 02:30 AM   #1 (permalink)
EcoModding Lurker
 
FalconFour's Avatar
 
Join Date: Sep 2010
Location: Fresno, CA
Posts: 78

LEAF - '11 Nissan LEAF
Thanks: 4
Thanked 9 Times in 7 Posts
Differences between prebuilt MPGuino code & official code

edit: Um... well, I guess you can delete this. I'm having a lot of trouble with the disorganized nature of the MPGuino information online - in the (now "no longer maintained") forum post, website, and Wiki... the Wiki led me to the forum post which pointed to an outdated version of the MPGuino code (v0.75) which was apparently written before the 20MHz crystal was used, and I was in a headache-inducing position of figuring out the differences between the prebuilt MPGuino's code, and the official "trunk" code... now I find out there really is none, and I was just using an old version.

I think my first contribution to MPGuino can be reorganizing the data in the Wiki so information can be more easily found, and old info can be more easily removed or updated...

But above all, I'd really recommend going back and updating that "no longer maintained" post, since so many things are linking to it (such as every reference to MPGuino above)...


Last edited by FalconFour; 10-03-2010 at 02:51 AM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 10-03-2010, 05:14 AM   #2 (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: 157
Thanked 266 Times in 209 Posts
original arduino version:
schematic: http://opengauge.googlecode.com/svn/...ino/wiring.GIF
code: http://opengauge.googlecode.com/svn/...no/mpguino.pde
hardware: 16mhz atmega168, pnp backlight driver
notes: versions of arduino newer than 0011 may not work, not being maintained as much time spent fixing what new versions of arduino break. Non-trivial application.

latest prebuilt version (hw 1.3, sw 0.86):
schematic: http://opengauge.googlecode.com/svn/...no/mpguino.png
code: http://opengauge.googlecode.com/svn/...no/mpguino.cpp
additions: metric, edge selectable inj trigger, floating decimal for bignum, various power supply and reliability improvements, no arduino dependencies.
hardware: 20mhz atmega328, npn backlight driver, stn (low current) LCD
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 10-03-2010 at 05:20 AM..
  Reply With Quote
Old 10-03-2010, 06:17 AM   #3 (permalink)
EcoModding Lurker
 
FalconFour's Avatar
 
Join Date: Sep 2010
Location: Fresno, CA
Posts: 78

LEAF - '11 Nissan LEAF
Thanks: 4
Thanked 9 Times in 7 Posts
Indeed, I'm now finding all the most recent info.

Already started hacking apart the code, slowly digesting all that's already been done (and if I may say, you're a hell of a great coder, if this is all what I think it is ).

Here's what I've got planned so far:
- Remaining miles on tank using existing "tank size" figure and using "tank MPG" and "tank gallons" (planned and implemented already, need to find a good "screen" for it)
- Editor for critical "tank" figures to recover from a power cycle (like the parameters editor, allows to enter/edit tank gallons, tank miles)
- Clock, if just for curiosity's sake (AM/PM kind of clock)

And already implemented:
- Added "improved font" from Wiki's "code hacks"
- Disabled/removed serial output, decreased "CPU usage" by about 10% even with new font
- Remove metric functions (I have no use for them personally, saves room for other changes)

And with about 15k of free Flash, that leaves plenty of room for the eventual ALDL reader
  Reply With Quote
Old 10-26-2010, 04:16 PM   #4 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 212

Titine - '13 Hyundai Sonata Hybrid
Thanks: 3
Thanked 10 Times in 8 Posts
you can also gain a lot of speed by changing the two instances of

delay2(5);

in LcdCommandWrite() and LcdDataWrite() with something like

delayMicroseconds2(43);

because if you display 16x2 so 32 characters on the screen, you are losing about 160ms every refresh, for nothing, as displaying 32 characters needs less than 1.5ms.
__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote
Old 11-10-2010, 04:37 AM   #5 (permalink)
EcoModding Lurker
 
Join Date: Nov 2010
Location: Monterey, CA
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by FalconFour View Post
And with about 15k of free Flash, that leaves plenty of room for the eventual ALDL reader
Don't tease. ALDL would be awesome!!!
  Reply With Quote
Old 11-10-2010, 04:38 AM   #6 (permalink)
EcoModding Lurker
 
Join Date: Nov 2010
Location: Monterey, CA
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Please edit the WIKI AND the forum thread. For a newbie I'm really confused which version I should use, and which is which.

It would be great if all were updated and synchonized.

Also can I use the most modern Arduino software 0.21 to program it now?

  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Official MPGuino preassembled now available dcb OpenGauge / MPGuino FE computer 445 04-19-2016 11:13 AM
Enhancements to MPGuino code -- bargraph display, etc. skelly OpenGauge / MPGuino FE computer 26 08-12-2013 11:41 PM
basic questions about prebuilt MPGuino usergone OpenGauge / MPGuino FE computer 12 06-11-2010 05:23 PM
Mpguino prebuilt, know what you are buying dcb OpenGauge / MPGuino FE computer 0 10-24-2009 05:27 PM
Help w/ mpguino space shuttle code please forgottenmindset OpenGauge / MPGuino FE computer 14 09-07-2008 04:17 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com