Notices
ECU Flash

how-to: Log AFR from the LC-1 w/o a serial cable

Thread Tools
 
Search this Thread
 
Old May 7, 2008, 01:15 PM
  #61  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
I remembered what you'll need to do but I am in my car right now so gimme a few to get to my home computer to do some disassembly of our ROM.
Old May 7, 2008, 02:37 PM
  #62  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
Well, I tried it with the purple linear analog wire and the correct formula is x/255*10+9.6 and its pretty accurate too. I'm gonna look more into modding the front O2 sensor coding rather than pull my hair out with the white analog formula.
Old May 7, 2008, 02:52 PM
  #63  
Evolved Member
iTrader: (27)
 
dryad001's Avatar
 
Join Date: Nov 2003
Location: Oak Creek, WI
Posts: 2,123
Likes: 0
Received 1 Like on 1 Post
NM, you responded too quick
Old May 7, 2008, 02:52 PM
  #64  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
Originally Posted by dryad001
Jack, clear out your PM box. Your full

But to get what we were talking about

If I use this:
<table name="Rear O2 (ADC 0A) RAM variable" category="Rear_02" address="8409" type="1D" level="1" scaling="Hex16"/>
In Ecuflash I get 2089

If I use this:
<table name="Rear O2 (ADC 0A) RAM variable" category="Rear_02" address="8408" type="1D" level="1" scaling="Hex16"/>
In Ecuflash I get C820
Use this and change the value to 8409 in ECUFlash (don't forget to type in the "0x" first so ECUFlash knows its a hex value...so type in 0x8409 and you'll be all set):

Code:
<table name="Rear O2 (ADC 0A) RAM variable" category="Rear_02" address="3817A" type="1D" level="1" scaling="Hex16"/>
This is MUT request 08 so make sure you use that with your Evoscan table.

Last edited by Jack_of_Trades; May 7, 2008 at 02:58 PM.
Old May 7, 2008, 03:21 PM
  #65  
Evolved Member
iTrader: (27)
 
dryad001's Avatar
 
Join Date: Nov 2003
Location: Oak Creek, WI
Posts: 2,123
Likes: 0
Received 1 Like on 1 Post
Got it, thanks.
Old May 7, 2008, 09:33 PM
  #66  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
Just got this from Zeitronix:

It's a 6 order formula, which maybe useful depends what kind of arithmetics your logger can handle.

AFR = -0.3481V^6+3.4583V^5-12.813V^4+22.269V^3-18.043V^2+7.4273V+8.8711

Again, digital output is your friend

Here is my version for evoscan:
Code:
eval = -0.3481*(x/255*5)^6+3.4583*(x/255*5)^5-12.813*(x/255*5)^4+22.269*(x/255*5)^3-18.043*(x/255*5)^2+7.4273*(x/255*5)+8.8711
If anyone wants to work with this, give it a shot. I haven't tested it yet. But I think i did it correctly. It works in Excel for me.

Last edited by Jack_of_Trades; May 8, 2008 at 02:56 PM.
Old May 8, 2008, 06:39 AM
  #67  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
So the formula didn't work in evoscan. Does anyone know if evoscan can even multiply something to the 6th,5th,etc, power?
Old May 8, 2008, 09:29 AM
  #68  
Evolved Member
iTrader: (2)
 
logic's Avatar
 
Join Date: Apr 2003
Location: Berkeley, CA
Posts: 1,022
Likes: 0
Received 6 Likes on 5 Posts
I'm not sure what math expression parser he's using in EvoScan (or if he just rolled his own), so I can't say for sure. I see a few expressions like this in Data.xml though:
Code:
-0.00000001300*x*x*x*x*x+0.000006657*x*x*x*x-0.001341*x*x*x+0.1353*x*x-7.874*x+336.1
So, it looks like exponentiation isn't supported without explicitly writing it out, which works great if you only need x^6, but fails miserably when you need to calculate a power-of expression from a calculated expression.
Old May 8, 2008, 03:07 PM
  #69  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
Well, i did a pull and logged the raw bit values and just added the formula to my excel spreadsheet of my datalogging. It consistently reads roughly .2-.3AFR richer than the digital serial logging from the ZT-2. After re-installing evoscan v2.1, my AFR's in evoscan seem to be dead on so I'm gonna stick with the digital serial logging for now. I'm still all about modding the front O2 to use the wideband linear signal to do closed loop switching AND AFR logging at once.
Old May 14, 2008, 10:13 AM
  #70  
Evolved Member
iTrader: (26)
 
travman's Avatar
 
Join Date: Oct 2005
Location: Pittsburgh
Posts: 1,712
Likes: 0
Received 0 Likes on 0 Posts
Does anyone know if this can be done with the AEM wideband? Run the blue wire into the ecu and the black wire to ground (those are the 2 wires that go into the serial connector)?

Just curious if there is a solution rather than logging the aem through a diy serial connector?

Basically I am working on tuning a car with a aem wideband and we cant get the serial cable to work - its wired correctly, and the computer is recognizing the usb to serial adapter (dynex) but evoscan just comes up with an error every time......

I am going to try flashing the V5 94170014 patch (he has 94170008 currently and the 14 is supposed to work) on his ecu for the rear O2 sim and thought maybe we can ditch the serial and log the aem through the ecu instead?

Any help would be appreciated!!
Old May 18, 2008, 11:09 PM
  #71  
Evolved Member
iTrader: (17)
 
dudical26's Avatar
 
Join Date: Nov 2005
Location: NNJ
Posts: 2,544
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by Jack_of_Trades
Well, i did a pull and logged the raw bit values and just added the formula to my excel spreadsheet of my datalogging. It consistently reads roughly .2-.3AFR richer than the digital serial logging from the ZT-2. After re-installing evoscan v2.1, my AFR's in evoscan seem to be dead on so I'm gonna stick with the digital serial logging for now. I'm still all about modding the front O2 to use the wideband linear signal to do closed loop switching AND AFR logging at once.
Just go get this straight - the analog values where the same as the digital values once you re-installed EvoScan?

If that is the case why do you still want to stick the digital value? (aside from the difficulty of converting the analog value with EvoScan)
Old May 19, 2008, 07:30 AM
  #72  
EvoM Guru
Thread Starter
iTrader: (50)
 
mrfred's Avatar
 
Join Date: Mar 2006
Location: Tri-Cities, WA // Portland, OR
Posts: 9,675
Received 128 Likes on 96 Posts
Call up AEM to ask what signal sent through the blue wire you mention. If its a voltage betwee 0 and 5 volts and they can give you the correlation between voltage and AFR, then you are in business.

Originally Posted by travman
Does anyone know if this can be done with the AEM wideband? Run the blue wire into the ecu and the black wire to ground (those are the 2 wires that go into the serial connector)?

Just curious if there is a solution rather than logging the aem through a diy serial connector?

Basically I am working on tuning a car with a aem wideband and we cant get the serial cable to work - its wired correctly, and the computer is recognizing the usb to serial adapter (dynex) but evoscan just comes up with an error every time......

I am going to try flashing the V5 94170014 patch (he has 94170008 currently and the 14 is supposed to work) on his ecu for the rear O2 sim and thought maybe we can ditch the serial and log the aem through the ecu instead?

Any help would be appreciated!!
Old May 19, 2008, 01:39 PM
  #73  
Account Disabled
iTrader: (3)
 
dan l's Avatar
 
Join Date: Apr 2006
Location: USA
Posts: 1,029
Likes: 0
Received 0 Likes on 0 Posts
I have my LC1 set to 10-16 AFR and 0-5 volts. I noticed that the analog voltage is on par with my digital output from the LC1 but reacts a few hundredths of a second quicker.
Old May 19, 2008, 03:25 PM
  #74  
EvoM Guru
Thread Starter
iTrader: (50)
 
mrfred's Avatar
 
Join Date: Mar 2006
Location: Tri-Cities, WA // Portland, OR
Posts: 9,675
Received 128 Likes on 96 Posts
Originally Posted by dan l
I have my LC1 set to 10-16 AFR and 0-5 volts. I noticed that the analog voltage is on par with my digital output from the LC1 but reacts a few hundredths of a second quicker.
My observation too. I think that if the wideband controller grounds are done properly, the analog out works great.
Old May 19, 2008, 04:38 PM
  #75  
Evolved Member
iTrader: (17)
 
Jack_of_Trades's Avatar
 
Join Date: Jun 2007
Location: Opelika,AL
Posts: 3,523
Likes: 0
Received 2 Likes on 1 Post
Originally Posted by dudical26
Just go get this straight - the analog values where the same as the digital values once you re-installed EvoScan?

If that is the case why do you still want to stick the digital value? (aside from the difficulty of converting the analog value with EvoScan)
Cuz I'd rather wait until one of these disam geniuses figures out how to mod the front O2 code so we can use the 0-5v linear analog output to control the closed loop operation with an ECUFlash adjustable switching point. Just like the 1G DSM guys have already done. This way I'm using this input for 2 things while also freeing up another ADC input. Win win. The zeitronix .15-3.27 volt NON-linear analog output isn't all that accurate and I don't feel confident using it but the 0-5v linear output I would definitely use. Unfortunately, thats the same wire that I am currently using for my narrowband simulated output set to 15.5AFR for closed loop. If I wasn't already using it, I'd have that permanently hooked up.


Quick Reply: how-to: Log AFR from the LC-1 w/o a serial cable



All times are GMT -7. The time now is 07:58 AM.