EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   OpenGauge / MPGuino FE computer (https://ecomodder.com/forum/opengauge-mpguino-fe-computer.html)
-   -   Differences between prebuilt MPGuino code & official code (https://ecomodder.com/forum/showthread.php/differences-between-prebuilt-mpguino-code-official-code-14751.html)

FalconFour 10-03-2010 01:30 AM

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)...

dcb 10-03-2010 04:14 AM

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

FalconFour 10-03-2010 05:17 AM

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 :)

Magister 10-26-2010 03:16 PM

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.

Cooluser23 11-10-2010 03:37 AM

Quote:

Originally Posted by FalconFour (Post 197116)
And with about 15k of free Flash, that leaves plenty of room for the eventual ALDL reader :)

Don't tease. ALDL would be awesome!!! :cool:

Cooluser23 11-10-2010 03:38 AM

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?


All times are GMT -4. The time now is 12:52 AM.

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