Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   EGO versus Lambda correction (https://www.miataturbo.net/megasquirt-18/ego-versus-lambda-correction-17990/)

ZX-Tex 03-06-2008 10:56 PM

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 03-07-2008 09:49 AM

DOH! No one? So is this an 'I don't know' silence or a 'yeah that is right you stupid :noob:' silence?

richard_ha 03-07-2008 11:56 AM

Isn't lambda just a unit of measurement for EGO? So they are the same thing?

Braineack 03-07-2008 12:06 PM

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.

richard_ha 03-07-2008 12:58 PM

Just like to sat that when you mention EGO there, you are talking about "EGO Correction" as EGO just means Exhaust Gas Oxygen

Savington 03-07-2008 01:08 PM


Originally Posted by Braineack (Post 224875)

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 (Post 224875)
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)

Atlanta93LE 03-07-2008 01:11 PM


Originally Posted by Savington (Post 224893)
Will the EGO actually adjust the VE tables, or is that only Autotune?

No, just autotune.

ZX-Tex 03-07-2008 01:43 PM


Originally Posted by richard_ha (Post 224872)
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.

cjernigan 03-07-2008 02:08 PM

EGO settings in the below menu determine where the switchpoint is and basically the amount of change and frequency of the adjustments made.
http://i25.tinypic.com/2zi96w6.pnghttp://i27.tinypic.com/16gbzg8.png
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.
http://i26.tinypic.com/bdqqgg.pnghttp://i31.tinypic.com/2md0688.png
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.
http://i28.tinypic.com/k394x2.jpghttp://i29.tinypic.com/106czf6.png
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.)

ZX-Tex 03-07-2008 02:40 PM

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 :bigtu:

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.

Rushin 10-20-2010 12:17 AM

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.

richyvrlimited 10-20-2010 04:02 AM

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.

Rushin 10-20-2010 09:37 AM

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.

CRAIGO 10-20-2010 10:36 AM


Originally Posted by Rushin (Post 645729)
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.

Rushin 10-20-2010 12:14 PM

Thanks Craigo. Is there any way to increase resolution for the VE map with MSpnp?

richyvrlimited 10-20-2010 04:34 PM

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


All times are GMT -4. The time now is 10:27 PM.


© 2024 MH Sub I, LLC dba Internet Brands