MEGAsquirt A place to collectively sort out this megasquirt gizmo

EGO versus Lambda correction

Thread Tools
 
Search this Thread
 
Old 03-06-2008, 10:56 PM
  #1  
Elite Member
Thread Starter
iTrader: (15)
 
ZX-Tex's Avatar
 
Join Date: Dec 2007
Location: San Antonio, Texas
Posts: 4,847
Total Cats: 27
Default EGO versus Lambda correction

This is more of a confirmation than a question, just want to make sure I have this right after reading (and rereading, and rereading) the megasquirt and megatune manuals, as well as some threads here like this one
https://www.miataturbo.net/forum/sho...ght=ego+lambda

So I was confused as to the existence of EGO and Lambda as they both seem to be closed loop mixture control based on O2 sensor readings (WB02 in my case). I did not understand how both could run simultaneously without conflicting. But I think I get it now...

EGO is the 'simple' closed loop control that richens or leans the mixture to meet the EGO switch point set in the 'Exhaust Gas Settings'. This would work for narrow band sensors since they essentially only read lean-OK-rich. But EGO can also be used with a WBO2.

Lambda based closed loop control allows one to have variable O2 targets based on the 8x8 AFR Targets table (function of MAP and RPM). This is more sophisticated of course since you can richen the target mixture up for when you are in boost for example. When you set MS to 'Use Target Tables - Always' then it ignores the EGO target and only uses the AFR Targets. I also see the option to allow EGO closed loop control to run instead of the AFR targets if the TPS is below a certain setpoint.

So, at any given instant in time, the MS is only using EGO or Lambda. If you exceed the open loop threshold in the Open Loop Mode settings then neither EGO or Lambda are controlling anything.

So do I have it right?
ZX-Tex is offline  
Old 03-07-2008, 09:49 AM
  #2  
Elite Member
Thread Starter
iTrader: (15)
 
ZX-Tex's Avatar
 
Join Date: Dec 2007
Location: San Antonio, Texas
Posts: 4,847
Total Cats: 27
Default

DOH! No one? So is this an 'I don't know' silence or a 'yeah that is right you stupid ' silence?
ZX-Tex is offline  
Old 03-07-2008, 11:56 AM
  #3  
Junior Member
 
richard_ha's Avatar
 
Join Date: Jan 2007
Posts: 188
Total Cats: 0
Default

Isn't lambda just a unit of measurement for EGO? So they are the same thing?
richard_ha is offline  
Old 03-07-2008, 12:06 PM
  #4  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,490
Total Cats: 4,079
Default

the swtich point is meraly the voltage you reach 14.7....

a narrowband would have a switch point of .5 (half of 1v)

a wideband typically has a switch point of 2.25 (half of 5v)


lambda is your O2 reading. EGO is what you wanna do with it.

turn EGO off and you still get a lambda reading, it's just that MS doesn't do anything with it. Turn EGO on and you can alter your on-fly-on fueling based on real-time lambda readings.


if you turn off the targets table, EGO doesn't work. it's simply the map you base the adjustments off of.

say you read 16:1 AFR while cruising, and your targets table say you should be at 15:1, so your EGO kicks in and makes adjustments based on your table and your actual lambda reading.
Braineack is offline  
Old 03-07-2008, 12:58 PM
  #5  
Junior Member
 
richard_ha's Avatar
 
Join Date: Jan 2007
Posts: 188
Total Cats: 0
Default

Just like to sat that when you mention EGO there, you are talking about "EGO Correction" as EGO just means Exhaust Gas Oxygen
richard_ha is offline  
Old 03-07-2008, 01:08 PM
  #6  
Former Vendor
iTrader: (31)
 
Savington's Avatar
 
Join Date: Nov 2006
Location: Sunnyvale, CA
Posts: 15,442
Total Cats: 2,099
Default

Originally Posted by Braineack

a wideband typically has a switch point of 2.25 (half of 5v)
2.35v (2.25 is not half of 5 )



Originally Posted by Braineack
say you read 16:1 AFR while cruising, and your targets table say you should be at 15:1, so your EGO kicks in and makes adjustments based on your table and your actual lambda reading.
Will the EGO actually adjust the VE tables, or is that only Autotune?


(OH MY ECU ADJUSTS FUEL FOR ME)
Savington is offline  
Old 03-07-2008, 01:11 PM
  #7  
Elite Member
iTrader: (5)
 
Atlanta93LE's Avatar
 
Join Date: Sep 2006
Location: Marietta, GA
Posts: 2,195
Total Cats: 1
Default

Originally Posted by Savington
Will the EGO actually adjust the VE tables, or is that only Autotune?
No, just autotune.
Atlanta93LE is offline  
Old 03-07-2008, 01:43 PM
  #8  
Elite Member
Thread Starter
iTrader: (15)
 
ZX-Tex's Avatar
 
Join Date: Dec 2007
Location: San Antonio, Texas
Posts: 4,847
Total Cats: 27
Default

Originally Posted by richard_ha
Isn't lambda just a unit of measurement for EGO? So they are the same thing?
Yes I understand that part. Lambda and EGO are two different programming windows in Megatune, hence the question.
ZX-Tex is offline  
Old 03-07-2008, 02:08 PM
  #9  
Elite Member
iTrader: (13)
 
cjernigan's Avatar
 
Join Date: Oct 2006
Location: Atlanta, GA
Posts: 8,091
Total Cats: 7
Default

EGO settings in the below menu determine where the switchpoint is and basically the amount of change and frequency of the adjustments made.

Lambda AFR Targets are used by EGO, the adjustments made are based upon these tables. The are enabled in the Lambda AFR Settings menu as shown.

This target table is what EGO uses to base it's adjustments off of. When running closed loop it will make use the step size and authority to adjust the VE table to try and hit the target value. This table is shown in volts, do not use it as it is very lean. AEM UEGO's use volts but the LC1s use AFR values instead.

All of this is ignored when in open loop.
This is how I understand all of this anyway.
(Do not copy or use these settings, these images are used just to show which menu i'm talking about. These settings will most definitely cause major issues and possible engine damage.)
cjernigan is offline  
Old 03-07-2008, 02:40 PM
  #10  
Elite Member
Thread Starter
iTrader: (15)
 
ZX-Tex's Avatar
 
Join Date: Dec 2007
Location: San Antonio, Texas
Posts: 4,847
Total Cats: 27
Default

OK late lunch today so I can respond

Thanks for the screen shots Chad, fantastic. I was going to do this myself this evening but you beat me to it

OK I think that answers my question. In the 'Lambda Sensor Targets' window if you set the 'Use target tables' to 'always' it will ignore the 'EGO switch point' in the 'EGO Control' window, and use the set points from the 'AFR Targets' table instead. However it still uses other parts of the 'EGO Control' window, like 'Controller Step Size' and 'Controller Authority'.

From the MS extra software manual "If you are using a WideBand Lambda then the AFR Target Table is another option (an 8x8 table), if using the table then the EGO switch point is ignored."

Furthermore, if you use the 'Change EGO Limit above (KPa)' setting you can override the 'Controller Authority' value (in the 'EGO Control' window ) to the value entered in the 'Change EGO Limit'.

From the manual "You can now change the Ego Limit depending on the MAP KPa so the ECU can have a larger authority during cruising and a smaller authority when accelerating hard. If you don't want it to change simply put 255 in the KPa setpoint."

OK I think I have it straight?

BTW I know that this does not permanently alter the VE table, it just does on-the-fly tweaks to try to meet the AFR targets. It is more of a fine-tune than a general tune tool. I'll have all this disabled when I am doing the initial VE tuning (open loop). I just want to know how it works should I choose to enable it later on. If you were wondering I am not planning on using closed loop control via EGO to compensate for a poorly set up VE table.

I also understand that even when running open loop (EGO disabled) that MS will still measure and display the WBO2 readings. This is an important fact for datalogging.

This MS programmability is really cool. Once you understand all it can do, it really is pretty sweet.

Last edited by ZX-Tex; 03-07-2008 at 03:03 PM.
ZX-Tex is offline  
Old 10-20-2010, 12:17 AM
  #11  
Senior Member
iTrader: (3)
 
Rushin's Avatar
 
Join Date: Jul 2008
Location: Minneapolis, MN
Posts: 963
Total Cats: -1
Default

Bumping this thread. Trying to figure out how to adjust lambda sensor targets and Ego control so I get more closed loop on the fly adjustment. Just not sure where to even start.

What i want to achieve is less leaning at crusing. I set my initial VE table to pretty much what i want but I get some surging and leaning when crusing.
Rushin is offline  
Old 10-20-2010, 04:02 AM
  #12  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

If it's surging when cruising it's too lean, or too advanced add a bit of fuel, or trim a bit of timing.

Using EGO corrections to fix this is bad form, they should be used for minor corrections in fuelling, not corrections of your VE table due to bad tuning.
richyvrlimited is offline  
Old 10-20-2010, 09:37 AM
  #13  
Senior Member
iTrader: (3)
 
Rushin's Avatar
 
Join Date: Jul 2008
Location: Minneapolis, MN
Posts: 963
Total Cats: -1
Default

Adding fuel helps whic makes sense. What is good timing when cruising? I realize that cruising requires a bit more timing because fuel burns slower at high vacuum.
Rushin is offline  
Old 10-20-2010, 10:36 AM
  #14  
Junior Member
 
CRAIGO's Avatar
 
Join Date: Oct 2008
Location: Manchester, UK
Posts: 272
Total Cats: 0
Default

Originally Posted by Rushin
I realize that cruising requires a bit more timing because fuel burns slower at high vacuum.
That's a whole different thread but most guys on here run between 33-40 degrees of advance during motorway/highway cruise.
CRAIGO is offline  
Old 10-20-2010, 12:14 PM
  #15  
Senior Member
iTrader: (3)
 
Rushin's Avatar
 
Join Date: Jul 2008
Location: Minneapolis, MN
Posts: 963
Total Cats: -1
Default

Thanks Craigo. Is there any way to increase resolution for the VE map with MSpnp?
Rushin is offline  
Old 10-20-2010, 04:34 PM
  #16  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

Increase resolution? No, it's hardware limited, (there's not enough memory for bigger tables)

If you're desperate for more bins, just move other more redundant ones around to suit.

I run 40deg at cruise
richyvrlimited is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
bigmackloud
Miata parts for sale/trade
19
01-08-2021 11:24 AM
Frank_and_Beans
Supercharger Discussion
13
09-12-2016 08:17 PM
iparnell
MEGAsquirt
2
09-13-2015 07:04 PM
Motorsport-Electronics
ECUs and Tuning
0
09-05-2015 08:02 AM



Quick Reply: EGO versus Lambda correction



All times are GMT -4. The time now is 12:09 PM.