Go Back   EcoModder Forum > EcoModding > DIY / How-to
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 05-12-2008, 11:58 AM   #1 (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
Question regarding Scangauge MPG readout & DIY device

Question regarding Scangauge MPG readout. I do not have one and have never even seen one so I can only assume what the mpg display is showing. My question is, what does the instantaneous MPG reading look like? I will assume it is fairly constant if driving a constant speed, constant throttle, flat road etc. But if you tromp on the accelerator I assume the readout will drop very sharply, fairly quickly. If you then decelerate (let off the pedal completely) I would expect that the readout would rise very high very quickly. If you then slip it into neutral but while still moving fast I would expect the readout to be extremely high.

So, is this in the ballpark of what the MPG display shows or am I way off base? Also, what might be a typical mpg readout if you floor the gas pedal while moving slowly (30 mph) in high gear?

What would be the readout if you were moving fast (75 mph) and let off the pedal completely, or even shift to neutral?


The reason I ask is that I'm planning to build an FE gauge for my non-OBDII 4 cyl Sonoma. It will take the fuel injector's pulse-width-modulated signal and change that to a voltage which increase with the width of the injector ON time. It will also take the 50% duty cycle square wave of the VSS (will use a 555 timer IC to configure a frequency to voltage converter) which will output a voltage relative to vehicle speed.

Both of these voltages, speed and fuel injector duty cycle, will be input to an op-amp. The speed voltage will go to the non-inverting input and the injector voltage will go to the inverting input. The output of the op-amp will increase as speed increases but it will decrease as injector duty cycle increases. Thus a higher speed will show better mpg but at the same time more fuel going thru the injectors will counter act the speed's increased reading.

What I expect to see will be a constant voltage while cruising, flat road, constant speed. If I increase throttle I expect the voltage to drop, at least until the vehicle speeds up to match the increased fuel/air the engine is now receiving.

I expect that it will take a bit of speeding up and slowing down to find the "highest voltage" on my display, thus signifying optimum MPG for the conditions I'm driving in.

For me the building of the electronics is the fun part of the project even if it does not turn out to be a very useful device in the end, but to the point; does all of this sound reasonable with regard to my assumptions on what the scangauge MPG meter tells you?


Last edited by Gregte; 05-12-2008 at 12:03 PM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-12-2008, 03:11 PM   #2 (permalink)
Ex-lurker
 
i_am_socket's Avatar
 
Join Date: Apr 2008
Location: Jersey
Posts: 571

Skeeter - '05 Toyota Corolla LE
90 day: 35.55 mpg (US)
Thanks: 2
Thanked 8 Times in 6 Posts
You might be interested in checking out the OpenGauge/MPGuino project. Might save a little R&D on your part.
__________________
  Reply With Quote
Old 05-12-2008, 03:40 PM   #3 (permalink)
Master EcoModder
 
Join Date: Apr 2008
Location: Earth
Posts: 303

Pushrod - '02 Chevrolet Cavalier
Thanks: 0
Thanked 8 Times in 4 Posts
Sorry man, but such a design would have been state of the art in the 70's. Integrators and analog circuitry shouldn't really be relied upon for a task like this. Also, it can't really give you trip mpg. You should look into developing for AVR microcontrollers. Check avrfreaks.net for a starting point.
  Reply With Quote
Old 05-12-2008, 04:31 PM   #4 (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 JohnnyGrey View Post
Sorry man, but such a design would have been state of the art in the 70's. Integrators and analog circuitry shouldn't really be relied upon for a task like this. Also, it can't really give you trip mpg. You should look into developing for AVR microcontrollers. Check avrfreaks.net for a starting point.
Yes, you are right on all counts. But, I do not know how to write computer code and I also do not want any expense such as buying micro controllers, displays or dedicated laptop computers or PDAs.

Indeed I have looked at the OpenGauge/MPGuino project.

I already have all the components needed for building about anything with analog electronics. I am just looking to build a meter that will tell me if I am at optimum throttle and speed with respect to the wind, hills, temperature, etc.

However, I could reconsider, so your suggestion is not out of my realm of thinking yet.
  Reply With Quote
Old 05-19-2008, 02:51 PM   #5 (permalink)
amateur mech. engineer
 
Join Date: May 2008
Location: New York City
Posts: 112

Sporty Accord - '88 Honda Accord LX-i
90 day: 23.25 mpg (US)

Dad's Camry - '01 Toyota Camry CE
90 day: 22.81 mpg (US)

Artie's Camry - '98 Toyota Camry
90 day: 37.3 mpg (US)
Thanks: 0
Thanked 17 Times in 4 Posts
You wanted to know how many MPG you get when you floor the accelerator. Try this formula I made. It is for engines running on gasoline.

MPG=74000 x VE/(ER x R x L)

VE: Volumetric efficiency, normally varies from 0.3 to 1, depending on RPM and throttle position. It could exceed 1 if the engine has a turbocharger or supercharger.
ER: Equivalence ratio, equivalent to 14.7/(A/F ratio). Should be close to 1.
R: engine revolutions per mile or revolutions per minute at 60 MPH in this gear
L: Liters of engine displacement

It should be close. Adding ethanol to gasoline would reduce the result because more of it is needed to mix with a certain amount of air.

For the MPG while coasting, try this one.

MPG=MPH/GPH

GPH=L/6 when idling at about 700 RPM

MPG=6 x MPH/L at 700 RPM idle

or

MPG=4200 x MPH/(L x RPM) to calculate at any idle speed

This is only an approxamation. If you have an unusual engine configuration (like a racing camshaft for example) this may not be accurate.

If you have a 2.0 L engine you should expect your coasting MPG to be about three times your speed in MPH.
  Reply With Quote
Old 05-19-2008, 05:58 PM   #6 (permalink)
Master EcoModder
 
Join Date: Apr 2008
Location: Earth
Posts: 303

Pushrod - '02 Chevrolet Cavalier
Thanks: 0
Thanked 8 Times in 4 Posts
Quote:
Yes, you are right on all counts. But, I do not know how to write computer code and I also do not want any expense such as buying micro controllers, displays or dedicated laptop computers or PDAs.
Honestly, AVR development is quite cheap. I develop for two chips primarily, the Tiny2313 and the Mega162. The former costs about $2.50 and the latter, about $4. I program them with a parallel port cable I built for under $10 from radioshack parts. You sound like you're good with electronics and have a decent EE background. If you can solder, understand a datasheet, convert between binary, hex and decimal, you can probably program AVR in assembler.

Assembler isn't as hard as people make it out to be. You've got a very limited amount of instructions with a very simple syntax. In fact, I have fewer syntax errors in assembly than I do in C because it's so simple. The difficulty in assembly comes from the fact that you must explicitly tell the device what to do, and how to create complex functions with simple commands. For example, you might have to write your own multiplication or division routine.

Where in C you can say a = b+3; the equivalent AVR code would look like
Quote:
.EQU A=0x0100 ;Set an alias for the location of A in RAM (for readability purposes)
.EQU B=0x0101 ;Set an alias for the location of B in RAM

LDS R16, B ;Load B into register 16
LDI R17, 3 ;Load 3 into register 17
ADD R16, R17 ;Add register 17 (3) onto register 16 (B) and store in register 16
STS A, R16 ;Store the result (register 16) into the A's RAM location
So you see, it's not terribly difficult, and if you can understand op-amps and read a datasheet, you can surely wrap your mind around this. Development is very cheap and if you already have a computer, no dedicated hardware is needed. I use my bedroom workstation for development. Check youtube for "AVR Project" for some cool ideas. Tell me this isn't crazy:


  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scangauge II Question (suddenly seeing inflated MPG numbers) awillard69 Instrumentation 7 04-17-2008 01:04 AM
Basic aero question (can dents hurt MPG?) reformed Aerodynamics 5 04-14-2008 09:59 PM
What to do when the ScanGauge shows your SUV gets horrible MPG? Ditch the ScanGauge! MetroMPG Hypermiling / EcoDriver's Ed 10 02-14-2008 06:26 PM
question about scanguage - how to make an OBD2 tool do MPG calcs jazzie604 DIY / How-to 8 01-31-2008 10:10 PM
Highest MPG on your ScanGauge Who The Lounge 7 01-13-2008 11:00 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