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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 05-16-2008, 07:06 PM   #71 (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 see what you mean,
just going from:
unsigned long vssPulsesPerMile =14400ul;
to:
#define vssPulsesPerMile 14400ul

chops off 72 bytes! (was expecting 4 bytes)

I'm thinking though that 7000 bytes is just too big a penalty for 64bit math. The data is there, we just need to figure out how to scale it down to 32 bit math for display purposes, like in the mpg and gallons and miles functions.

edit: one thing with int vsspinstate=0; it gets destroyed if it isn't declared out of the scope of the interrupt handler, just remembered. If i declare it method static, it takes up just as much space as in global scope

__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 05-17-2008 at 01:44 AM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-17-2008, 09:08 PM   #72 (permalink)
EcoModding Apprentice
 
awillard69's Avatar
 
Join Date: Feb 2008
Location: Streamwood, IL
Posts: 105

Dakota - '00 Dodge Dakota Club Cab, Sport
90 day: 18.57 mpg (US)

Jeep - '01 Jeep Wrangler TJ Sport
90 day: 18.46 mpg (US)
Thanks: 0
Thanked 1 Time in 1 Post
You might be counting transitions, from 0 to 5v, and 5v to 0.

So you have 5000 ticks per mile, what about the injector? How often and at what pulse duration?

I assembled by quino today, it was pretty cool. Fun to be doing that stuff again, but my eyes ain't what they used to be.

I haven't fully assembled a working configuration, because I had to run to the Shack to pick up some Zeners.

I used an old IDE cable to interface to the display. Just peeled off the 16 conductors, separated, stripped and tinned the ends, stuffed them into the holes on the board for the LCD. Then did the same for the other end, with a longer "pull back" for more flexibility, and tinned them. Looks nice. I might need to hot glue the ribbon to the back so it won't stress the solder connections.

I had to go scrounging thru my parts piles (more like bins, boxes, baggies, etc), looking for some perf board so I can setup my button interface and the input locations. I had some really nifty little switches that I scavenged from an old VCR some time ago - I knew I was keeping them for something!
__________________

  Reply With Quote
Old 05-17-2008, 10:08 PM   #73 (permalink)
Batman Junior
 
MetroMPG's Avatar
 
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 22,515

Blackfly - '98 Geo Metro
Team Metro
Last 3: 70.09 mpg (US)

MPGiata - '90 Mazda Miata
90 day: 52.71 mpg (US)

Even Fancier Metro - '14 Mitsubishi Mirage top spec
90 day: 70.75 mpg (US)

Appliance car - '14 Mitsubishi Mirage ES (base)
90 day: 52.48 mpg (US)
Thanks: 4,062
Thanked 6,959 Times in 3,603 Posts
I have a pile of parts to scavenge too. Thanks for the ribbon cable idea. It'll come in handy for me this week when I do my LCD hookup.
__________________
Project MPGiata! Mods for getting 50+ MPG from a 1990 Miata
Honda mods: Ecomodding my $800 Honda Fit 5-speed beater
Mitsu mods: 70 MPG in my ecomodded, dirt cheap, 3-cylinder Mirage.
Ecodriving test: Manual vs. automatic transmission MPG showdown



EcoModder
has launched a forum for the efficient new Mitsubishi Mirage
www.MetroMPG.com - fuel efficiency info for Geo Metro owners
www.ForkenSwift.com - electric car conversion on a beer budget
  Reply With Quote
Old 05-18-2008, 12:01 AM   #74 (permalink)
EcoModding Lurker
 
Join Date: Jan 2008
Location: us
Posts: 14

grnsat - '95 Saturn SL1

metro - '95 Geo Metro LSi
Thanks: 0
Thanked 0 Times in 0 Posts
Got mine installed today. I have yet to get any usable mpg readings, but after an 8 mile trip I compared the guino and speedometer to get 9969 ticks per mile. After a 90 mile trip, I was less than .1% (yeah, 1/10th percent) off.. My VSS seems solid. My instantaneous mpg never went over 15 however, even when I decreased microsecondsPerGallon by a factor of 10.

I used a harddrive power connector to connect my car to the guino. Since we only need 4 wires, it seems to work great. An added benefit is you can use another hd power connector to power it on the bench.
  Reply With Quote
Old 05-18-2008, 03:11 AM   #75 (permalink)
EcoModding Lurker
 
Join Date: May 2008
Location: Central New Mexico
Posts: 18

Bun - '02 Ford Focus ZTS
90 day: 31.3 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

I just tested my guino today! I've been following the project for a while, but I haven't had the time to play until school let out last week. I'll post some pictures when I get my usb ports working.

I also noticed the low numbers on the instant mpg readout. My instant mph was fine. It also seemed that only speed affected instant mpg, not throttle. My instant raw injector time was usually 20000 to 26000 uS at light throttle. I did some quick calculations and noticed that gallons() would underflow to zero for the values typically seen in instant.

My fix for this:
Code:
unsigned long  Trip::mpg(){
  
  unsigned long mi=miles();
  unsigned long gal=gallons();
  if( injHiSec<4 ) // prevent overflow
  {
    gal = ((injHiSec*1000000000) + (injHius*1000))/(microSecondsPerGallon/1000); // 1e-6 gals
    if (gal==0) gal=1;//default to a millionth of a gallon so not division by zero
    return mi*1000000/gal; // 1e3 mi * 1e6 / 1e-6 gal = 1e3 mpg
  }
  if (gal==0) gal=1;//default to a thousandth of a gallon so not division by zero
  return mi*1000/gal; // 1e3 mi * 1e3 / 1e3 gal = 1e3 mpg
}
It seems to work fine on the simulated values. I have not yet tested this in the vehicle.

Other things I've noticed:
My injector line is low when the engine is off. The guino incorrectly counts this as injector firing.
When changing screens the banner text is hard to see because of the leftover text and symbols cluttering the screen.

I'm willing to help with programming this project.
  Reply With Quote
Old 05-18-2008, 08:06 AM   #76 (permalink)
Batman Junior
 
MetroMPG's Avatar
 
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 22,515

Blackfly - '98 Geo Metro
Team Metro
Last 3: 70.09 mpg (US)

MPGiata - '90 Mazda Miata
90 day: 52.71 mpg (US)

Even Fancier Metro - '14 Mitsubishi Mirage top spec
90 day: 70.75 mpg (US)

Appliance car - '14 Mitsubishi Mirage ES (base)
90 day: 52.48 mpg (US)
Thanks: 4,062
Thanked 6,959 Times in 3,603 Posts
Hi, Mr Cheap - welcome to the project.

What kind of car are you testing on?
__________________
Project MPGiata! Mods for getting 50+ MPG from a 1990 Miata
Honda mods: Ecomodding my $800 Honda Fit 5-speed beater
Mitsu mods: 70 MPG in my ecomodded, dirt cheap, 3-cylinder Mirage.
Ecodriving test: Manual vs. automatic transmission MPG showdown



EcoModder
has launched a forum for the efficient new Mitsubishi Mirage
www.MetroMPG.com - fuel efficiency info for Geo Metro owners
www.ForkenSwift.com - electric car conversion on a beer budget
  Reply With Quote
Old 05-18-2008, 08:08 AM   #77 (permalink)
Batman Junior
 
MetroMPG's Avatar
 
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 22,515

Blackfly - '98 Geo Metro
Team Metro
Last 3: 70.09 mpg (US)

MPGiata - '90 Mazda Miata
90 day: 52.71 mpg (US)

Even Fancier Metro - '14 Mitsubishi Mirage top spec
90 day: 70.75 mpg (US)

Appliance car - '14 Mitsubishi Mirage ES (base)
90 day: 52.48 mpg (US)
Thanks: 4,062
Thanked 6,959 Times in 3,603 Posts
Mosier - you too: what kind of car?

It would be useful if you guys make garage entries for your vehicles, just so we know at a glance at your posts what the context is.
__________________
Project MPGiata! Mods for getting 50+ MPG from a 1990 Miata
Honda mods: Ecomodding my $800 Honda Fit 5-speed beater
Mitsu mods: 70 MPG in my ecomodded, dirt cheap, 3-cylinder Mirage.
Ecodriving test: Manual vs. automatic transmission MPG showdown



EcoModder
has launched a forum for the efficient new Mitsubishi Mirage
www.MetroMPG.com - fuel efficiency info for Geo Metro owners
www.ForkenSwift.com - electric car conversion on a beer budget
  Reply With Quote
Old 05-18-2008, 12:07 PM   #78 (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
That's really cool guys!! mr. cheap, instant is looking good. I'm still getting way too much consumption in the car (might be the low signal, might be the computer mixing up high and low, but it will get figured out). Mosier, I've got your microSecondsPerGallon figure in and it looks ok on instant. We need to get instant to do 999999 on an EOC. I'll update post one asap, but have exceeded the post size limit currently.

Actually someone suggested using wiki, I might just do that, then anyone can maintain it.

Oh, yah, disclose your car models, and some pics if you get a chance. Here is mine after taming the wiring (and doing the 12v hookup through the terminal block also):
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 05-18-2008 at 12:12 PM..
  Reply With Quote
Old 05-18-2008, 05:46 PM   #79 (permalink)
Batman Junior
 
MetroMPG's Avatar
 
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 22,515

Blackfly - '98 Geo Metro
Team Metro
Last 3: 70.09 mpg (US)

MPGiata - '90 Mazda Miata
90 day: 52.71 mpg (US)

Even Fancier Metro - '14 Mitsubishi Mirage top spec
90 day: 70.75 mpg (US)

Appliance car - '14 Mitsubishi Mirage ES (base)
90 day: 52.48 mpg (US)
Thanks: 4,062
Thanked 6,959 Times in 3,603 Posts
Quote:
Originally Posted by dcb View Post
Actually someone suggested using wiki, I might just do that, then anyone can maintain it.
We've got a wiki here on EM - haven't used it yet, but we could fire it up. Do you think it'd help?
__________________
Project MPGiata! Mods for getting 50+ MPG from a 1990 Miata
Honda mods: Ecomodding my $800 Honda Fit 5-speed beater
Mitsu mods: 70 MPG in my ecomodded, dirt cheap, 3-cylinder Mirage.
Ecodriving test: Manual vs. automatic transmission MPG showdown



EcoModder
has launched a forum for the efficient new Mitsubishi Mirage
www.MetroMPG.com - fuel efficiency info for Geo Metro owners
www.ForkenSwift.com - electric car conversion on a beer budget
  Reply With Quote
Old 05-18-2008, 07:55 PM   #80 (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
Sure, I'll give it a shot if you are up for it. Send me what I need to know.

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  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 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com