Click on our menu buttons immediately below to find MegaSquirt® information quickly:


Automatic Mixture Control for MegaSquirt-II

There is an adaptive learning algorithm called "Automatic Mixture Control" mode in the MegaSquirt-II code (V2.6+). It updates your VE table while you drive based on when you are at a stable vertex in the VE table and averages your ego correction. If it stays in this state long enough the VE table will automatically be updated, so the ego correction should quickly drop to 0. On a schedule which you can determine it will update the VE in flash - you can set this to be fairly frequent when the car is first being tuned, then set it to very seldom or never.

Automatic Mixture Control (AMC) allows MegaSquirt-II to adjust and make permanent changes to the VE table based on the exhaust gas sensor without a laptop computer attached, much like OEM ECUs.

Before automatic mixture control, there were a few ways to use EGO feedback to adjust the VE table:

Automatic mixture control (AMC) will work entirely internally, no laptop needs to be connected. AMC acts if:

Then the program will average the ego correction for a user specified period and then update the VE table in RAM by some user specified portion of the amount of the correction.

As a result, the average closed loop correction should gradually decrease to zero. A separate loop will check and burn flash with the updated VE table, according to again specifiable user inputs.

Because the AMC algorithm relies entirely on the EGO sensor/controller output, it is best used with a wideband controller that is known to be accurate and reliable. Narrow band sensors will work, but will operate only in the areas where EGO feedback is allowed, and only for stoichiometric mixtures.

Automatic Mixture Control is enabled from the 'Settings/Automatic Mixture Control' menu item in MegaTune. It can be set to:

There are a number of settings that affect the operation of AMC:

Note that if you want to save the changes made to a VE table manually, and not wait for the automated FLASH burn to save the changes, you must do a 'fetch/burn' cycle on the VE table.

Also note that if you enable AMC on the stim, it can pull the VE table 'out of shape', because the EGO input does not reflect the output pulse width. So be careful and watch the VE table to be sure it isn't mangled by AMC on the stim before you transfer those settings to your vehicle.



MegaSquirt® and MicroSquirt® controllers are experimental devices intended for educational purposes.
MegaSquirt® and MicroSquirt® controllers are not for sale or use on pollution controlled vehicles. Check the laws that apply in your locality to determine if using a MegaSquirt® or MicroSquirt® controller is legal for your application.
©2006, 2011 Bruce Bowling and Al Grippo. All rights reserved. MegaSquirt® and MicroSquirt® are registered trademarks. This document is solely for the support of MegaSquirt® boards from Bowling and Grippo.