Go Back   EcoModder Forum > EcoModding > Instrumentation
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 09-09-2008, 06:41 PM   #1 (permalink)
EcoModding Lurker
 
Join Date: May 2008
Location: western Colorado
Posts: 59

ScabbySentra - '93 Nissan Sentra SE
90 day: 44.37 mpg (US)
Thanks: 2
Thanked 6 Times in 5 Posts
Analog MPG meter.

Here's a block diagram of a pretty simple concept for an mpg meter. The concept is based on the soundcard mpg monitor program- divide the fuel injector pulsewidth into the mileage and use a scaling factor to get mpg.

I've built and tested the prototype circuits for the duty cycle to voltage converter, the frequency to voltage converter, and the signal processors, which are simple comparators. So far, so good; I get voltages proportional to duty cycle and frequency of signals generated on my workbench.

I have a schematic for a simple PWM/analog division circuit that I plan to prototype in the medium future. The whole circuit should be easy to implement with a quad opamp chip, a 555 timer, and a voltage regulator chip plus a handful of discrete components.

If anyone's interested, I'll post schematics of the circuits as I build and test them. It would be nice to be able to read mpg on a simple tachometer style meter without having to lug my notebook computer around...

Attached Thumbnails
Click image for larger version

Name:	analog mpg meter.jpg
Views:	149
Size:	61.9 KB
ID:	1738  
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 09-09-2008, 09:57 PM   #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: 158
Thanked 267 Times in 210 Posts
Hi Jim, have you had a chance to check out the mpguino? It could be assembled bare bones for less than $7 sans LCD and programming support, and only has a handful of components, and can drive an rpm type gauge with just some more code.

I've been entertaining adding a tach like mpg display to it for a while now.


You can think of the mpguino as a really tiny laptop
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 09-09-2008 at 10:23 PM..
  Reply With Quote
Old 09-10-2008, 11:35 AM   #3 (permalink)
EcoModding Lurker
 
Join Date: May 2008
Location: western Colorado
Posts: 59

ScabbySentra - '93 Nissan Sentra SE
90 day: 44.37 mpg (US)
Thanks: 2
Thanked 6 Times in 5 Posts
Sure, I've been following the mpguino thread for a while. I just wanted to do an analog design as a design excercise. I didn't realize a guino cold be that cheap- I was under the impression that it would be somewhere over $60 or so...

But I haven't checked back there in a while, either.
  Reply With Quote
Old 09-10-2008, 11:48 AM   #4 (permalink)
EcoModding Lurker
 
Join Date: Jul 2008
Location: California
Posts: 61
Thanks: 0
Thanked 2 Times in 2 Posts
Where and how do you plug in a lead to pick up the fuel injector drive voltage?
  Reply With Quote
Old 09-10-2008, 12:02 PM   #5 (permalink)
EcoModding Apprentice
 
Join Date: May 2008
Location: South Dakota
Posts: 117

GMC Sonoma - '94 GMC Sonoma
90 day: 36.97 mpg (US)
Thanks: 0
Thanked 4 Times in 4 Posts
Quote:
Originally Posted by pasadena_commut View Post
Where and how do you plug in a lead to pick up the fuel injector drive voltage?
I did it on my GMC sonoma 4 cyl. by finding the correct wire on the ECM under the dash. You can just use one of the two wires of any fuel injector. One of them will be hot when the engine is running and the other will be switched, i.e. pulled to ground by the controller. It will be a square wave with a varying duty cycle that varies depending on how much fuel is being asked for. It will not be a varying voltage in the direct sense but can easily be turned into a varying voltage for feeding to a comparator or anything else you wish to do with it.

Last edited by Gregte; 09-10-2008 at 12:12 PM..
  Reply With Quote
Old 09-10-2008, 12:12 PM   #6 (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 267 Times in 210 Posts
re: guino costs. The chip itself is like $4, add a couple zener diodes and a regulator/caps/resistors. There is a schematic in this thread. You can leave off the LCD and Buttons but it will be tricky to calibrate.

http://ecomodder.com/forum/showthrea...html#post32427
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 09-10-2008, 12:26 PM   #7 (permalink)
EcoModding Lurker
 
Join Date: Jul 2008
Location: California
Posts: 61
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Gregte View Post
I did it on my GMC sonoma 4 cyl. by finding the correct wire on the ECM under the dash. You can just use one of the two wires of any fuel injector. One of them will be hot when the engine is running and the other will be switched, i.e. pulled to ground by the controller. It will be a square wave with a varying duty cycle that varies depending on how much fuel is being asked for. It will not be a varying voltage in the direct sense but can easily be turned into a varying voltage for feeding to a comparator or anything else you wish to do with it.
I was hoping to patch in right at the injector, since it is much more accessible on my cars than is the controller. However, I have not had any success in locating a test "tap", that could be plugged in between the cable and the injector. There are places that sell the "cable" side connector, but nobody seems to carry the "injector side" connector. The only other way I can see in is to strip a small section of the cable to gain access to the wire within, and for future reliability reasons, I would rather not go that route.
  Reply With Quote
Old 09-10-2008, 05:24 PM   #8 (permalink)
EcoModding Lurker
 
Join Date: May 2008
Location: western Colorado
Posts: 59

ScabbySentra - '93 Nissan Sentra SE
90 day: 44.37 mpg (US)
Thanks: 2
Thanked 6 Times in 5 Posts
I used a tap splice connector. It's a plastic doo hickey that you clip over the wire to be tapped into, and insert the tapout wire into a little hole. Then you crimp it down with a pair of pliers and you're done. I did this at the wires to injector number one.
  Reply With Quote
Old 09-14-2008, 06:23 PM   #9 (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 267 Times in 210 Posts
There's been some interest in an analog gauge lately here so I thought I'd put an example together. I've only run it on the bench, but it is a couple lines of code to spit out the current mpg (or whatever) on pwm pin 11.

I found a donor meter:



Took it apart, pried off the label plate:


Scanned in the plate and doctored it up in paintbrush:


Printed out the new label and carefully cut it out (used plate as template):



Glued the new label to the original label plate w/rubber glue, and glued the plate back with rubber glue. Hooked it up with a 4.7k resistor to pin 11 and ground.

slapped a test program together and played with maxv till I found a good value for full scale deflection. (had to swap meter leads when needle tried to move backwards)


Code:
void setup(){
  pinMode(11,OUTPUT);
}
#define maxv 120
void loop(){
 analogWrite(11,0);
 delay(1000); 
 analogWrite(11,maxv/2);
 delay(1000); 
 analogWrite(11,maxv);
 delay(1000); 
}
Confirmed that half scale deflection looked good also:


Making the new labeling was the hardest part
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 09-14-2008, 07:16 PM   #10 (permalink)
EcoModding Lurker
 
Join Date: Aug 2008
Location: Olympia, wa
Posts: 96

Red Beast - '82 Honda V45 Sabre Vetter Fairing
90 day: 39.38 mpg (US)

The Wife's bike - '82 Honda CM450E Red
90 day: 57.22 mpg (US)

Yellow Submarine - '04 Dodge Neon SXT
90 day: 28.71 mpg (US)
Thanks: 6
Thanked 1 Time in 1 Post
Once calibrated, you could easily use just the meter to show instant MPG. I think I will do that on one of mine.

__________________
  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
40 mpg last night wagonman76 Success Stories 7 03-11-2012 03:12 PM
Poll: MPG before and after hypermiling peterj Hypermiling / EcoDriver's Ed 36 04-23-2009 06:16 PM
Question regarding Scangauge MPG readout & DIY device Gregte DIY / How-to 5 05-19-2008 04:58 PM
My fuel meter - first results... JohnnyGrey Instrumentation 8 05-04-2008 10:35 PM
School teams to compete in cross country MPG Challenge - Possible $1,000,000 prize ericbecky EcoModding Central 9 03-22-2008 09:15 PM



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