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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 09-19-2008, 02:22 AM   #691 (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
I have posted on arduino.cc. Hopefully it is something simple. But this might be where I have to part ways with Arduino and squirrel away a copy of 0011 for the DIYers. I don't think I can pull 2500 bytes out AND not get any room for new stuff out of the deal.

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 09-19-2008, 07:38 AM   #692 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 Posts
Or just keep a code like you have now for us, then work with a 328 for others that want the extra stuff. I wanted mine for just current and instant mpg.
__________________
  Reply With Quote
Old 09-19-2008, 08:09 AM   #693 (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
There are a lot of atmega168s out there, I would definitely leave a 168 compatible solution together for folks to use (even though you have to use version 0011 of arduino for now).
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 09-19-2008, 10:16 AM   #694 (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
It may come from new stuff in arduino-0012\hardware\cores\arduino and they are compiled/linked with your application.

I made test here with my obduino.pde

arduino-0011 12618 bytes
arduino-0012 12268 bytes

So I gained 350 bytes! And it's my latest application with multiple screen, menu configuration, etc.

Note that I do not use any OO in my code, I do not use their Print class or whatever too. You can take a look at my code for my LCD functions andalso the read/write in EEPROM that I optimized.
__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote
Old 09-19-2008, 08:10 PM   #695 (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
FYI, I don't think the new AVR likes unsigned longs so much, I let the arduino.cc folks know this as well:

when I global replace unsigned long to unsigned int

0012 goes from 16772 to 11934 which is 4838 bytes difference

0011 goes from 14104 to 10762 which is a 3342 byte difference

So that is a 1500 byte difference just from that change. Of course it isn't useable like that, just trying to see where it went.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 09-19-2008, 08:53 PM   #696 (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
You know what? It isn't worth it to upgrade. One of the main focuses on the guino has been precision, and it has that. That's precicely why it has so may unsigned longs in the first place. And it works well. And 0011 will be around a long time. I'm going to put a few finishing touches on it (like a big comment about needing 0011 at the top) and call it 1.0.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 09-19-2008, 09:15 PM   #697 (permalink)
EcoModding Lurker
 
Join Date: Aug 2008
Location: S Fla
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Cool, I'm glad you're keeping the 168 compatible version because mine just came. Now I just need to solder everything up. Any idea when the final version will be up?
BTW. Thanks for all the effort you've been putting into this. It's great to see something like this.
  Reply With Quote
Old 09-19-2008, 10:41 PM   #698 (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
Quote:
Originally Posted by dcb View Post
FYI, I don't think the new AVR likes unsigned longs so much, I let the arduino.cc folks know this as well:

when I global replace unsigned long to unsigned int

0012 goes from 16772 to 11934 which is 4838 bytes difference

0011 goes from 14104 to 10762 which is a 3342 byte difference

So that is a 1500 byte difference just from that change. Of course it isn't useable like that, just trying to see where it went.
It may come from all the casting and conversion needed for comparison, arithmetic, etc.

I am using a lot of unsigned long and a lot of bytes, and I try to not mix them, only match them.
__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote
Old 09-19-2008, 10:55 PM   #699 (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
Do you have some specific examples in the mpguino code you can point me to?
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 09-19-2008, 10:57 PM   #700 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 Posts
Finally got my stuff and fired right up!! Hooked up my signal generator and got readings. Thanks DCB you are the man!

__________________
  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
My kingdom for a giant, heated workspace MetroMPG The Lounge 14 12-12-2010 09:08 AM
Motorcycle manufacturers beginning to release MPG info MetroMPG Motorcycles / Scooters 1 04-03-2008 05:23 PM



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