Toyota - 4Runner . org Forum


Go Back   Toyota - 4Runner . org Forum > Toyota 4Runner Forum > 4th Gen T4Rs

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 09-12-2004, 10:34 PM   #1 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
I finally got my MPG readout adjuster installed...

I filled the tank today and reset everything to see if this nutty idea of mine has even a chance of working. After a few miles of driving around, the MPG reading seemed to be in the neighborhood (~12% lower than normal) of what I was hoping to see. I'll keep close tabs on things for the next few tankfulls and see how it does with mixed highway/city driving and varying driving habits.

Here's a picture of the "adjuster" and a scope shot at idle that shows the change in pulse length (of fuel injector #1) that's sent to the MPG computer.
Attached Images
 

Last edited by Iowa4Runner; 09-12-2004 at 10:36 PM.
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Ad   #
Advertisement
 
 
Old 09-12-2004, 10:34 PM   #2 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
.

.
Attached Images
 
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-12-2004, 11:20 PM   #3 (permalink)
Cross Member
 
Join Date: Jun 2004
Location: Austin, TX
Posts: 103
Send a message via ICQ to CMiYC Send a message via AIM to CMiYC Send a message via Yahoo to CMiYC
Keep in mind... the MPG computer keeps a running average of the your MPG. Its calculation has no concept of "how many miles in this tank."

You (we) are comparing its readout to when we fill up the tank. When you divide your "Miles driven" by your "gallons filled", you're calculating a long term average.

Consider the following series.

1,2,3,3,3,4,3,2,1

The running average (n=1) is: 1.8

The overall average is: 2.44

It'll be interesting to see the results of what kind of adjustment you need. I wouldn't be surprised if a "constant" adjustment was still off...

Nice job, btw.
__________________
Black 2004 SE V8 2wd, for:
2003 Supra Launch SSV, for
Hyperlite Byerly 137 Biolite
CMiYC is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-12-2004, 11:34 PM   #4 (permalink)
Resident HID Expert
 
Vortec4800's Avatar
 
Join Date: Jun 2004
Location: Phoenix, Arizona
Posts: 383
Send a message via AIM to Vortec4800
/me wishes he was an EE
__________________
04 4Runner Sport 4x4 V8
Vortec4800 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 01:33 AM   #5 (permalink)
Registered User
 
rando's Avatar
 
Join Date: Feb 2004
Location: Redondo Beach, CA
Posts: 1,081
Nice work. I was just wondering what was happening with this project.

Are you going to post the schematic and uCode? I'd be interested in checking it out.
rando is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 01:52 AM   #6 (permalink)
Registered User
 
rando's Avatar
 
Join Date: Feb 2004
Location: Redondo Beach, CA
Posts: 1,081
Quote:
Originally posted by CMiYC
Keep in mind... the MPG computer keeps a running average of the your MPG. Its calculation has no concept of "how many miles in this tank."
Is this published somewhere?

Since the computer has access to the fuel pulses and speed sensors it would only need to keep a cumulative total of fuel consumption and distance traveled since it was last reset (until the counters overflow) to produce the long term average.

Can you explain how you came up with 1.8? Running averages of size (n) are usually computed by sliding a window of (n) points over your input sequence. For n=1, the running average is the same as the original sequence. Am I confused?
rando is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 07:48 AM   #7 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
Quote:
Originally posted by CMiYC
Keep in mind... the MPG computer keeps a running average of the your MPG. Its calculation has no concept of "how many miles in this tank."

You (we) are comparing its readout to when we fill up the tank. When you divide your "Miles driven" by your "gallons filled", you're calculating a long term average.

Consider the following series.

1,2,3,3,3,4,3,2,1

The running average (n=1) is: 1.8

The overall average is: 2.44
I'd agree that the MPG algorithm has no concept of "what's in the tank", it doesn't need to know that. It's different than the range calculation.

If you reset the MPG computer each time you fill the tank, you can check it's accuracy against miles/gallons because both averages use the same miles traveled and gallons used.

By the way, how did you get 1.8 with n=1 in your example above?
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 07:54 AM   #8 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
Quote:
Originally posted by rando
Nice work. I was just wondering what was happening with this project.

Are you going to post the schematic and uCode? I'd be interested in checking it out.
Thanks, I'll post everything later today when I get home from work. It'll be a little embarrassing though, my "algorithm" is caveman simple.

Later....
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 10:41 AM   #9 (permalink)
Registered User
 
rando's Avatar
 
Join Date: Feb 2004
Location: Redondo Beach, CA
Posts: 1,081
Quote:
Originally posted by Iowa4Runner
Thanks, I'll post everything later today when I get home from work. It'll be a little embarrassing though, my "algorithm" is caveman simple.

Later....
Cool thanks! Don't worry about the algorithm. Based on the description of what you originally planned to do, I expected it to be simple. I presume you just take readings from a counter in your MCU to determine the pulse length. You then divide the count by 1.12 (or some integer math approximation) and output your fixed pulse while counting down.

Simple things are good. Simple things that work are even better!

Also, did you find a source of harness pins? Cut wires? Disassembled the trip computer and did some soldering?

Last edited by rando; 09-13-2004 at 10:50 AM.
rando is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 01:15 PM   #10 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: Boulder, CO
Posts: 217
Send a message via AIM to Pribilof
Nice work. I'll be interested to see how this affects the readout over a full tank.
__________________
'04 4Runner Limited V6 4WD (Black / Grey)
OME 885 / 896; C.B.I Offroad Tire Carrier
Alpine / Boston Acoustics sound system
Other toys in the garage...
Pribilof is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 02:32 PM   #11 (permalink)
Registered User
 
Join Date: May 2003
Location: Wilmington, Delaware
Posts: 36
Quote:
By the way, how did you get 1.8 with n=1 in your example above? [/B]

Start with 1 and average that with the second number (2) for a running average of 1.5. Then average that (1.5) with the next number, and so on....
YZThumper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 06:51 PM   #12 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
Quote:
Originally posted by YZThumper
Start with 1 and average that with the second number (2) for a running average of 1.5. Then average that (1.5) with the next number, and so on....
Ahh... I get it now.
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 07:20 PM   #13 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
Here's the schematic:

Because the country I live in is overrun with lawyers and adults who never grew up, I should at least attempt to provide a warning about implementing this device. I make no guarantees of any kind regarding this device. Installation of this device requires modification of the vehicle's wiring which may void all warranties and create hazardous situations. Such hazards include, but are not limited to, significant vehicle damage, personal injury, and death.
Attached Images
 

Last edited by Iowa4Runner; 09-18-2004 at 08:30 AM.
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 07:21 PM   #14 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
Here's the microcontroller code:
Attached Files
File Type: txt code.txt (1.3 KB, 207 views)
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2004, 07:41 PM   #15 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 465
Quote:
Originally posted by rando
I presume you just take readings from a counter in your MCU to determine the pulse length. You then divide the count by 1.12 (or some integer math approximation) and output your fixed pulse while counting down.

Simple things are good. Simple things that work are even better!

Also, did you find a source of harness pins? Cut wires? Disassembled the trip computer and did some soldering?
The algorithm increments a 16 bit counter and turns on the output to the MPG computer when the injector is open. Once the injector closes, the counter decrements at an adjustable rate of 8 times the count up rate. Once the counter hits zero it turns off the pulse to the MPG computer. All it does is make the fuel injector pulse to appear ~12% longer than it really is.

As for the wiring... I'm ashamed to say I did cut one wire. The dashed line in the schematic shows the original path of the injector signal before I got my hands on it. I can restore the wiring to near mint condition with minimal effort if needed.
Iowa4Runner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:19 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
***This site is an unofficial Toyota site, and is not officially endorsed, supported, authorized by or affiliated with Toyota. All company, product, or service names references in this web site are used for identification purposes only and may be trademarks of their respective owners. The Toyota name, marks, designs and logos, as well as Toyota model names, are registered trademarks of Toyota Motor Corporation***Ad Management plugin by RedTyger