Joined
·
11,480 Posts
Had someone ask me to throw this together. Figured it would be pretty straightforward.
Auto tune on a Megasquirt comes pre programmed, auto-tune to only tune to 14.7 AFR and only under vacuum. If you want to use the autotune feature of your MS then you need to do a few alterations to set it up with your wideband.
If you have your MS running on the wideband already you can start from here.
1) Go into your C:\Program Files\MegaSquirt\car1\mtCfg\custom.ini
Then, determine which processor your MS is running. In my case its MS_1 so, Im going to go under #if MS_I and change some settings seen here.
I will go over the red dots top to bottom
If MS_1 then run the following parameters
1) turn autotune on
2) leave corrector at egoCorrection
3) Set your low and high RPM limits that you want it to tune
4) Set your low and high kPa limits that you want it to tune
5) Set your low and high VE limits that you want it to tune
6, 7) Set your sensitivity by detrmining how close RPM and kPa must be to a vertex before it will tune
8) Set how often you will allow it to tune a point on your VE table
9) Set the gain that you will allow it to tune by (.5 = It moves by a half percent each time it makes a change)
10) Set the window that you will allow it to tune (5 = up to 5% before it will not tune in one direction any more)
So save the custom.ini and exit.
2) Go to your Megatune program. Go More Settings > Lambda AFR Settings
Turn 8X8 AFR Taget on for VE table 1 (or whatever VE table you wish to use.)
After you do that, you will notice under More Settings > AFR Targets for VE Table 1 is now avalible.
Once you are in there, You need to cross refrence a Voltage/AFR in the documentation that came with your wideband unit.
You will then enter values into the table so that above 100Kpa you will be tuning twords a 11.5-12 AFR, and below 100 Kpa you will be tuning to a 14.7 (but you need to input the correct voltage for the Target VE table.)
Here is a table that I threw together By crossrefrencing the analog voltages with the gasoline AFR.
.39 V ~ 10.75 AFR
.47 V ~ 10.95 AFR
.63 V ~ 11.25 AFR
.71 V ~ 11.4 AFR
.78 V ~ 11.56 AFR
2.25 V ~ 14.5 AFR
So you can see im going to be tuning twords a 14.5 in vacuum at all RPMS, and tuning in the 11's under boost (a little richer under high boost / high rpm)
You can then go to Tuning > Ve Table 1 Then Tools > Autotune
The red dot will now chase the green dot around and tune to the target AFR you have set it to. It will only do so much tuning (depending on the parameters you entered in your custom.ini). Every so often you will want to go File > Burn to ECU so it resets the autotune variables and it will continue tuning.
You may have to do some final tweaking after the autotune, but you should be pretty set
Let me know if you have questions, I will add to this how to if needed.
Auto tune on a Megasquirt comes pre programmed, auto-tune to only tune to 14.7 AFR and only under vacuum. If you want to use the autotune feature of your MS then you need to do a few alterations to set it up with your wideband.
If you have your MS running on the wideband already you can start from here.
1) Go into your C:\Program Files\MegaSquirt\car1\mtCfg\custom.ini
Then, determine which processor your MS is running. In my case its MS_1 so, Im going to go under #if MS_I and change some settings seen here.

I will go over the red dots top to bottom
If MS_1 then run the following parameters
1) turn autotune on
2) leave corrector at egoCorrection
3) Set your low and high RPM limits that you want it to tune
4) Set your low and high kPa limits that you want it to tune
5) Set your low and high VE limits that you want it to tune
6, 7) Set your sensitivity by detrmining how close RPM and kPa must be to a vertex before it will tune
8) Set how often you will allow it to tune a point on your VE table
9) Set the gain that you will allow it to tune by (.5 = It moves by a half percent each time it makes a change)
10) Set the window that you will allow it to tune (5 = up to 5% before it will not tune in one direction any more)
So save the custom.ini and exit.
2) Go to your Megatune program. Go More Settings > Lambda AFR Settings
Turn 8X8 AFR Taget on for VE table 1 (or whatever VE table you wish to use.)

After you do that, you will notice under More Settings > AFR Targets for VE Table 1 is now avalible.
Once you are in there, You need to cross refrence a Voltage/AFR in the documentation that came with your wideband unit.
You will then enter values into the table so that above 100Kpa you will be tuning twords a 11.5-12 AFR, and below 100 Kpa you will be tuning to a 14.7 (but you need to input the correct voltage for the Target VE table.)
Here is a table that I threw together By crossrefrencing the analog voltages with the gasoline AFR.
.39 V ~ 10.75 AFR
.47 V ~ 10.95 AFR
.63 V ~ 11.25 AFR
.71 V ~ 11.4 AFR
.78 V ~ 11.56 AFR
2.25 V ~ 14.5 AFR
So you can see im going to be tuning twords a 14.5 in vacuum at all RPMS, and tuning in the 11's under boost (a little richer under high boost / high rpm)

You can then go to Tuning > Ve Table 1 Then Tools > Autotune
The red dot will now chase the green dot around and tune to the target AFR you have set it to. It will only do so much tuning (depending on the parameters you entered in your custom.ini). Every so often you will want to go File > Burn to ECU so it resets the autotune variables and it will continue tuning.
You may have to do some final tweaking after the autotune, but you should be pretty set
Let me know if you have questions, I will add to this how to if needed.