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-02-2008, 07:10 AM   This thread is in the EcoModder Project Library | #1 (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
For the latest info, please go to the wiki
http://ecomodder.com/wiki/index.php/MPGuino

The information in this post is no longer being maintained

MPGuino is part of the OpenGauge instrumentation effort, which was created to make available efficiency instrumentation of all sorts. MPGuino specifically is a Miles Per Gallon gauge for fuel injected vehicles that is based on the arduino platform with some extra circuitry for monitoring the fuel injectors and the speed sensor in the vehicle.

This is the workspace for the mpguino release one, where we can sort out the final issues. The first post here will be updated with diagrams till someone runs with the wiki parts. The change log will be posted at the end of the posts as changes occur. This does require some electronical and a minute bit of automotive skill to identify and utilize the hookup points and assemble the electronics so proceed at your own risk.

I do ask that once we get this reasonably stable that users contribute to the knowledge base of how to install it in a specific car and what parameters worked well for that car so that new users can hopefully just lookup the vehicle specifics, or add theirs once they figure out the proper parameters.

Current status: In vehicle testing in progress... We are still working out the bugs in the software and possibly the hardware. The source code is available from here , just copy and paste it into the arduino ide( Arduino - HomePage ).

Some of the skills required
Identifying the right injector leads with a volt meter.
Identifying the vss with schematics/ECU diagrams/online tools.
Identifying battery power source with a schematic and/or voltmeter.
Soldering.
Chasing a wire or two through the firewall.
Possibly making updates to the circuit if we can't find a software solution to any problems that are exposed, etc.)
Being able to reprogram the device when we do find software solutions, or new features.


Parts List:
2 5.1v zener diodes
1 2n3906 PNP Transistor
1 220 ohm resistor
2 100k resistors
3 tactile switches
1 freeduino arduino clone (any arduino can probably be made to work)
i.e. an iduino: http://spiffie.org/kits/iduino/ or a Freeduino
1 LCD (others might work as well, check pinout and chipset, etc).
16x2 LCD Module While Characters Blue Backlight
Or a green one from sparkfun or mouser
(a number of folks like the green ones better)

Note: If you would rather work with the CPU directly and can figure out how to program it from arduino IDE then have a at the schematic in this thread:
http://ecomodder.com/forum/showthrea...html#post32427 and skip the wiring diagram below because you will need to build the whole thing from scratch.


Wiring diagrams:
For the arduino style boards:
LCD is upside down in this diagram. All seems to be working well in the hardware department.


For the iDuino style boards:
Will need to procure a 7805 voltage regulator a 1n4004 diode, a 330 uf cap and a .1uf cap.


For the do it yourselfer:
refer to the diagrams in the http://ecomodder.com/forum/showthrea...html#post32427 thread


Prototype:
Here is the prototype I'm using (serial freeduino and 16x2 blue lcd hot glued to a piece of thick balsa, with a component board for the transistors/etc. and any extra wire smashed out of the way)



And here is a model built from scratch


Screens:
1. Instant MPG/Speed
Current MPG/Distance

2. Instant MPG/Speed
Tank MPG/Distance

3. Large font instant MPG

4. Large font current MPG

5. Large font tank MPG

6. Current MPH, MPG, Miles, Gallons

7. Tank MPH, MPG, Miles, Gallons

8. Instant Raw Data (very useful for connection troubleshooting)
Injector open seconds, Injector open microSeconds,
Injector pulse count, Vehicle Speed Sensor pulse count

9. Current trip Raw Data
Injector open seconds, Injector open microSeconds,
Injector pulse count, Vehicle Speed Sensor pulse count

10. Tank trip Raw Data
Injector open seconds, Injector open microSeconds,
Injector pulse count, Vehicle Speed Sensor pulse count

11. CPU Monitor
Max CPU %utilization, Tank running Time mm.ss,
Free Memory (bytes)

There is also a setup screen that displays the first time the program is run and by pressing all three buttons at once. It walks you through the following setup variables. Use left and right buttons to select the digit you wish to change or the OK or Cancel (XX) items. Use middle button to rotate the current digit or select OK or XX if that is where the cursor is. Selecting OK will save the currently displayed value to the current variable and advance to the next variable. Selecting XX will just advance to the next variable.

Contrast - This comes up first on a brand new run and changes on the screen are immediate so if you can't see anything try pressing middle button a few times.

VSS Pulses/Mile - use this to adjust displayed speed/miles. If the speed/miles displayed on the mpguino is low then decrease this number by the percentage that it is off and vice versa for high readings. Most asian cars will be a multiple of 8204 and GM will be 10000, we are hoping users will contribute model specific data here.

MicroSec/Gallon - use this to adjust displayed fuel consumption. You may want to readjust this initially to get a ballpark MPG reading (after VSS Pulses/Mile is deemed accurate), then calibrate it with a couple fillups. If the mpguino displayed MPG is high or the displayed tank gallons is low at fillup then reduce MicroSec/Gallon by the percentage that the gallons are low or the displayed mpg is high. Like the vss pulses, this would benefit from user contributions about what values work for what specific cars.


Pulses/2 revs - not currently used, but a single injector on a 4 cylinder sequential system will make 1 squirt in 2 revolutions. Hope to be able to base RPM on this at some point.

Timout(microSec) - defaults to 7 minutes. If there are no injector or speed signals from the car and no buttons are pressed in that time then the display backlight turns off. When activity resumes the display will turn back on and the current trip will reset and the tank trip will be restored to the point of last activity.

Tank Gal * 1000 - not currently used, but defaults to 13300 or 13.3 gallons.

Injector DelayuS - Represents the mechanical delay of the injector in microseconds. Advanced topic.

Buttons:
Current button assignments as follows,
left: cycle through screeens in reverse
middle: cycle through pre-defined brightness settings
right: cycle through screeens forward
left+middle: tank reset
right+middle: current reset
left+middle+right: go to setup screen

Installation notes:
For Identifying where to tap into the fuel injector:
1. turn on the ignition, leave engine off.
2. Unplug an injector.
3. With a voltmeter, measure the voltage on each injector connection. One should be 12 volts and the other should be more like 0. You will want to tap into the one that is at 0 volts.

For finding the VSS hookup, there are several approaches, but at the bottom of
Technical Support is a tool that might help you identify the VSS wire location and color. Also here is another online source of ECU pinouts, I'm sure there are more: ECU Pin-out Diagrams :: Innovate Motorsports Application Notes

IMPORTANT, you must be very deliberate when hooking up the mpguino to your cars battery power. There have been several cases where people had to reflash their atmegas and it is noted in the datasheet that the flash memory can be corrupted if the power requirements are interrupted. So line up those pins and get it hooked up the first shot.

On my saturn I tapped into an injector ground lead, and used ground and battery voltage and speedo (possibly vss) signal from the ecu plugs.



Here are some shots of hooking up the prototype on a saturn. I got lucky with the splice clips on the power but had to trim the insulation (carefully) on the injector lead and vss lead and solder the connection. I also had the wrong vss lead, so don't go by color here. But it was straight forward, and pinching through an existing rubber grommet in the firewall with a piece of coathanger was easy so I could get to the injector tap.










Metro installation
FYI, here is the hookup points in a 98 metro
VSS:

Injector:



Source code:
Work in progress, just cut and paste into the arduino ide. Available from here

__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 10-10-2008 at 11:00 PM..
  Reply With Quote
The Following User Says Thank You to dcb For This Useful Post:
HANKENSTIEN (05-23-2012)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-02-2008, 09:00 AM   #2 (permalink)
FuelSipper
 
Join Date: Mar 2008
Location: Dallas, TX
Posts: 99

HondaHokie - '95 Honda Accord DX 4 door
90 day: 26.91 mpg (US)
Thanks: 0
Thanked 8 Times in 3 Posts
dcb, you are just a maverick with this project. Keep up the great work.

When I get free time I'll give it a go. One thing I will need help with is the VSS and Injector interface hookup with the car. I've never done anything like that before. I understand we are getting most of the pulses from the ECU. If anyone has a good howto on that setup would be great.
  Reply With Quote
Old 05-05-2008, 12:12 AM   #3 (permalink)
Dartmouth 2010
 
SVOboy's Avatar
 
Join Date: Nov 2007
Location: Hanover, NH
Posts: 6,447

Vegan Powa! - '91 Honda CRX DX
Team Honda
90 day: 66.52 mpg (US)
Thanks: 92
Thanked 122 Times in 90 Posts
Send a message via AIM to SVOboy Send a message via MSN to SVOboy Send a message via Yahoo to SVOboy
Keep up the great work man, when I'm out of school I'll be playing catch up and getting one running in my CRX.
  Reply With Quote
Old 05-05-2008, 12:43 AM   #4 (permalink)
nut
 
Coyote X's Avatar
 
Join Date: Dec 2007
Location: Southen West Virginia
Posts: 654

Metro XFi - '93 Geo Metro XFi Convertible
90 day: 62.17 mpg (US)

DR650SE - '07 Suzuki DR650SE
90 day: 55.26 mpg (US)
Thanks: 0
Thanked 37 Times in 26 Posts
Send a message via MSN to Coyote X
Makes me wish I would have already ordered the supplies for this so I could test it out
__________________


  Reply With Quote
Old 05-05-2008, 10:25 AM   #5 (permalink)
FuelSipper
 
Join Date: Mar 2008
Location: Dallas, TX
Posts: 99

HondaHokie - '95 Honda Accord DX 4 door
90 day: 26.91 mpg (US)
Thanks: 0
Thanked 8 Times in 3 Posts
dcb, what are you using for the ground connection. Are you going back to the *duino?

Also we probably are going to need to look at hooking up a battery since you mentioned that might be the preferred method. It will require some more parts but I don't think it will be much.

Here is a link to the Arduino site with 9V battery setup.

http://www.arduino.cc/playground/Lea...BatteryAdapter
  Reply With Quote
Old 05-05-2008, 02:43 PM   #6 (permalink)
MP$
 
diesel_john's Avatar
 
Join Date: Jan 2008
Location: SW Ohio
Posts: 595
Thanks: 5
Thanked 19 Times in 14 Posts
Send a message via MSN to diesel_john
Smile

Quote:
Originally Posted by larrydag View Post
When I get free time I'll give it a go. One thing I will need help with is the VSS and Injector interface hookup with the car. I've never done anything like that before. I understand we are getting most of the pulses from the ECU. If anyone has a good howto on that setup would be great.

Normally the injectors will all have a red wire, this is not the wire you want, it is 12v power. You want the other wire going to an injector, the one that is grounded by the ECU to turn on the injector.
Does this help, should I take some pics. Also detailed text attached.
Attached Thumbnails
Click image for larger version

Name:	conndiagram.gif
Views:	1392
Size:	5.5 KB
ID:	942  
Attached Files
File Type: txt MPGComputer3-23-08text.txt (2.9 KB, 372 views)

Last edited by diesel_john; 06-16-2008 at 11:43 AM..
  Reply With Quote
Old 05-05-2008, 02:59 PM   #7 (permalink)
FuelSipper
 
Join Date: Mar 2008
Location: Dallas, TX
Posts: 99

HondaHokie - '95 Honda Accord DX 4 door
90 day: 26.91 mpg (US)
Thanks: 0
Thanked 8 Times in 3 Posts
diesel_john, that looks great. I was thinking to just use pinouts from the ECU. Is that possible also?
  Reply With Quote
Old 05-05-2008, 05:46 PM   #8 (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
(edit, despite the below, I'm going to tap the injector lead directly)
I'm planning on starting at the ECU, but it requires knowing what is where on a particular ECU, which may require some decent documentation or some probing around with a multi meter. Here is a late 90s saturn s-series, with 4 hookup points (vss, injector 1, battery, ground) for example:
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 05-10-2008 at 11:39 PM..
  Reply With Quote
Old 05-06-2008, 12:46 AM   #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 269 Times in 212 Posts
Update, I put a board together to hold the extra components (3 transistors, misc resistors, etc) no luck with the brightness control so far
Edit: lowering the 100k resistor to 430 ohms fixed that
Edit: I looked up the 2n3906, and it looks like extreme limit of base current would have the the minimum value for the resistor at 86 ohms. 100 ohms would give you a little safety cushion.




__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 05-06-2008 at 10:45 AM..
  Reply With Quote
Old 05-06-2008, 06:24 AM   #10 (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'm running out of excuses to not just try this The component board is secure for now, the wires will get trimmed to length later. The injector signal goes to the leftmost blue terminal block and the vss goes to the one next to it. Car battery voltage goes to the external power jack. The other terminal blocks are ground and 5v for convenience (not enough ground and 5v pins to go around). Note: for the arduino connections, I just tin the ends of the wires with solder so they fit snugly in the pin sockets when pushed in, takes a little practice.


__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 05-06-2008 at 06:55 AM..
  Reply With Quote
The Following User Says Thank You to dcb For This Useful Post:
touring21 (07-31-2012)
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
My kingdom for a giant, heated workspace MetroMPG The Lounge 14 12-12-2010 10:08 AM
Motorcycle manufacturers beginning to release MPG info MetroMPG Motorcycles / Scooters 1 04-03-2008 06: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