Notices
Evo X Engine Management / Tuning Forums Discuss the major engine management systems.

Logging Wideband AFR via Rear O2 ECU ADC Input

Thread Tools
 
Search this Thread
 
Old Aug 26, 2009, 08:44 PM
  #31  
Evolved Member
iTrader: (4)
 
xPRimNT's Avatar
 
Join Date: Feb 2008
Location: Edmonton, Alberta
Posts: 610
Likes: 0
Received 0 Likes on 0 Posts
Done.

Here's a little (actually, not little at all) How To in case anyone else wants to do it.

https://www.evolutionm.net/forums/ev...ml#post7441923
Old Oct 31, 2009, 04:50 PM
  #32  
Evolved Member
iTrader: (11)
 
Fourdoor's Avatar
 
Join Date: Oct 2003
Location: Rosedale, IN
Posts: 2,702
Likes: 0
Received 4 Likes on 4 Posts
Originally Posted by tephra
ok so to get the ADC into voltage its:

V = 5 * ADC / 1023

So your final formula will be:

AFR = 2.375 * (5 * ADC / 1023) + 7.3125

What ROMID are you - I will tell you what your ADC memory address is for the rear02 so you can put it all in evoscan
Just a math question here....

IF V= 5 * ADC / 1023 doesn't it follow that V = ADC / 204.6 (none repeating decimal)??? or is there a problem in Evoscan using decimals for anything other than addition and subtraction?

IF the V=ADC / 204.6 IS valid then we can further reduce the formula thus:

AFR = 2.375 * (5 * ADC / 1023) + 7.3125 then AFR = (ADC / 86.15) + 7.3125 ?

The 86.15 IS a rounding up of a repeating decimal, so I understand why that may cause problems.... but in the first section to calculate V itself, 204.6 is NOT a rounded number... so why can't we use it?

Don't get me wrong, I will use the formula as stated to avoid any problems I don't know about... just curious as to what those problems might be

Keith

PS: We actually type "x" instead of "ADC" in the formula's correct?
Old Oct 31, 2009, 06:06 PM
  #33  
EvoM Guru
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
yes you CAN reduce the math down... but generally i leave it since its easier to understand whats going on
Old Oct 31, 2009, 06:28 PM
  #34  
Evolved Member
iTrader: (11)
 
Fourdoor's Avatar
 
Join Date: Oct 2003
Location: Rosedale, IN
Posts: 2,702
Likes: 0
Received 4 Likes on 4 Posts
Originally Posted by tephra
yes you CAN reduce the math down... but generally i leave it since its easier to understand whats going on
Cool beans! I was just curious on that one

Now, something I really need is the address in the 2010 Ralliart ROM for the rear O2 sensor. Since I have it setup (appears set up correctly) and am getting garbage for data I have to conclude that it is not the same as the address for the 2009 Ralliart. Without the correct address the wire hookup and formula don't do much good

Here is my ROM:

http://norcalmotorsports.org/users/b...M_55590006.zip

Thanks,

Keith
Old Nov 2, 2009, 07:24 AM
  #35  
Evolved Member
iTrader: (11)
 
Fourdoor's Avatar
 
Join Date: Oct 2003
Location: Rosedale, IN
Posts: 2,702
Likes: 0
Received 4 Likes on 4 Posts
Using this formula: AFR = 2.375 * (5 * ADC / 1023) + 7.3125 I get 100% crap for results 8.xxx at idle with very little variation on a blip of the throttle... so I checked out the raw data (x alone) I was getting from the wide band sensor. At idle it hovers around 130!

Just on a hunch, instead of using V=5*x/1023 I looked at the formula for the stock rear O2 sensor, and it was x* 0.01952

Using the formula (2.375*x*.01952)+7.3125 resulted in 13.5 at idle, and reasonable variations on a blip of the throttle. I can't watch both the wide band gauge AND the computer screen at the same time very well, but they seem to track with Evoscan reading 1 point of A/F ratio richer than is reported by the wide band gauge itself.

Now how do I come up with a correction factor? Is it as simple as making the formula (2.375*x*.01952)+8.3125 instead of (2.375*x*.01952)+7.3125 or is that way too simple?

Keith

PS: Any clue as to why mine is so different please let me know!
Old Nov 2, 2009, 07:32 AM
  #36  
Evolved Member
iTrader: (11)
 
Fourdoor's Avatar
 
Join Date: Oct 2003
Location: Rosedale, IN
Posts: 2,702
Likes: 0
Received 4 Likes on 4 Posts
Originally Posted by Fourdoor
Using this formula: AFR = 2.375 * (5 * ADC / 1023) + 7.3125 I get 100% crap for results 8.xxx at idle with very little variation on a blip of the throttle... so I checked out the raw data (x alone) I was getting from the wide band sensor. At idle it hovers around 130!

Just on a hunch, instead of using V=5*x/1023 I looked at the formula for the stock rear O2 sensor, and it was x* 0.01952

Using the formula (2.375*x*.01952)+7.3125 resulted in 13.5 at idle, and reasonable variations on a blip of the throttle. I can't watch both the wide band gauge AND the computer screen at the same time very well, but they seem to track with Evoscan reading 1 point of A/F ratio richer than is reported by the wide band gauge itself.

Now how do I come up with a correction factor? Is it as simple as making the formula (2.375*x*.01952)+8.3125 instead of (2.375*x*.01952)+7.3125 or is that way too simple?

Keith

PS: Any clue as to why mine is so different please let me know!
Doing a bunch of math checks, my formula before the addition at the end is off from yours by almost exactly a factor of 10. In other words, if your formula read V=50*ACD/1023 instead of V=5*ACD/1023 it would match my formula almost 100%

I think this may be because the address I have for the rear O2 sensor is single byte instead of 2 byte, is this correct? Do you have the 2 Byte address for the rear O2 sensor on the 2010 Ralliart? The single byte address is 23808681.

Thanks,

Keith

Last edited by Fourdoor; Nov 2, 2009 at 07:48 AM.
Old Aug 4, 2011, 06:01 AM
  #37  
Newbie
 
3vo|3oost's Avatar
 
Join Date: Sep 2009
Location: West Virginia
Posts: 27
Likes: 0
Received 0 Likes on 0 Posts
logging wideband via rearO2 formula

Im trying to get my wideband to read correctly through the rear O2 sensor. My formula in evoscan under the tephra v7 mod ROM, shows up as "WBO2" 10.00+(16.99-10.00)*x/255... for some reason at idle it is logging around 13.3-13.5 and I know its supposed to be around 14.7. Can someone help me with my formula? I have a glowshift wideband gauge that reads from 20-10 a/f so would I have to change my formula to 19.99-10.00 instead of 16.99-10.00? Or do I need to change the scale of my 255 to 350 since I have the big maps conversion. Thanks
Old Aug 5, 2011, 08:18 AM
  #38  
EvoM Community Team
iTrader: (15)
 
fostytou's Avatar
 
Join Date: Sep 2006
Location: Aurora, IL
Posts: 3,143
Received 6 Likes on 6 Posts
Originally Posted by 3vo|3oost
Im trying to get my wideband to read correctly through the rear O2 sensor. My formula in evoscan under the tephra v7 mod ROM, shows up as "WBO2" 10.00+(16.99-10.00)*x/255... for some reason at idle it is logging around 13.3-13.5 and I know its supposed to be around 14.7. Can someone help me with my formula? I have a glowshift wideband gauge that reads from 20-10 a/f so would I have to change my formula to 19.99-10.00 instead of 16.99-10.00? Or do I need to change the scale of my 255 to 350 since I have the big maps conversion. Thanks
10+(20-10)*x/255

...should get you closer, but ideally you would want to verify that no noise is throwing off the reading a bit by logging a digital signal from the gauge if it has one. You could also try to feed it voltage to confirm, but thats a bit more complicated.

Changing the 255 to 350 is definitely not correct... not sure where you got that from. The x/255 represents a bitwise value of the full range that can be represented by the input. This number should *always* be 255 so that 0 volts = 0 (0.00)and 5 volts = 255 (1.00). If the range is linear that means that [base] + (range * percentage of range) will be the correct AFR value.
Old Aug 6, 2011, 07:15 AM
  #39  
Newbie
 
3vo|3oost's Avatar
 
Join Date: Sep 2009
Location: West Virginia
Posts: 27
Likes: 0
Received 0 Likes on 0 Posts
Thanks for the help! I tried the formula and it seems to be reading correctly... I dont have a digital output on my wideband gauge, but for now I will use this... 10.00+(20.00-10.00)*x/255
Thanks again!
Old Aug 11, 2011, 09:05 AM
  #40  
Newbie
 
FLAT4's Avatar
 
Join Date: Aug 2008
Location: Miami
Posts: 8
Likes: 0
Received 0 Likes on 0 Posts
Hy Dsm Riders... I have this problem with my evoscan an Aem Uego reading...

Im trying to get my wideband to read correctly through the rear OEM O2 sensor imput, i cut the white wire on my ecu from the OEM rear O2 pin 73 on my evo 9, and tap to the white wire from the uego, i have teprha V7 88580714 ROM and i enable the rear O2 simulation option and flash it back, the rear O2 is still in place, no removed yet, no mut table chance since its getting the reading from the Oem O2 sensor mut 3C table 8409, i use evoscan V 2.7 0090 and i use this formula 10+(20-10)*x/255on the WBO2 eval and the reading its off by aprox 2.6 afr, so what do i need to check it out? I tried sevarl times with different formulas and i cant log it just right

Anyone who can point me in the right direcction would be great...

Thanks in advance
Old Aug 11, 2011, 09:17 AM
  #41  
EvoM Guru
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
wrong forum/thread but thats ok

what is the range that the UEGO presents for 0-5v?

edit - if your in Miami, why are you using 8858? shouldn't you use 8859?

Last edited by tephra; Aug 11, 2011 at 09:25 AM.
Old Aug 11, 2011, 09:47 AM
  #42  
Evolved Member
iTrader: (3)
 
SiliconTek's Avatar
 
Join Date: May 2009
Location: Autocrossing Somewhere
Posts: 501
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by tephra
what is the range that the UEGO presents for 0-5v?
0-5v analog output Gasoline values from 10 to 20:1 AFR
0-5v analog output E85 values from 6.6 to 13.2 AFR
0-5v analog output Ethanol values from 6.14 to 12.3:1 AFR
0-5v analog output Methanol values from 4.4 to 8.8:1 AFR
0-5v analog output Lambda values from .68 to 1.36:1
Old Aug 11, 2011, 09:50 AM
  #43  
EvoM Guru
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
can you log MUT3C with just "x" as the Eval...

that will give you a better idea of whats going on...
Old Aug 11, 2011, 09:56 AM
  #44  
Newbie
 
FLAT4's Avatar
 
Join Date: Aug 2008
Location: Miami
Posts: 8
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by tephra
wrong forum/thread but thats ok

what is the range that the UEGO presents for 0-5v?

edit - if your in Miami, why are you using 8858? shouldn't you use 8859?
Sure, Actually im outside of miami area right know and my evo its and AUSDM ...

The uego its sending 1.8v with the igtion switch on, and with the engine runing its sending 1.1 and 1.2 volts

Thanks in advance...
Old Aug 11, 2011, 09:58 AM
  #45  
Newbie
 
FLAT4's Avatar
 
Join Date: Aug 2008
Location: Miami
Posts: 8
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by tephra
can you log MUT3C with just "x" as the Eval...

that will give you a better idea of whats going on...
Sure i will make that chance on the evoscan right know and let you know


Quick Reply: Logging Wideband AFR via Rear O2 ECU ADC Input



All times are GMT -7. The time now is 09:21 PM.