self tune?

For discussing MicroSquirt (TM) configuration and tuning of fuel parameters (including idle valves, etc.).
Forum rules
Forum rules
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
65looter
Experienced Squirter
Posts: 157
Joined: Mon Mar 27, 2006 5:56 am
Location: London
Contact:

self tune?

Post by 65looter »

Can or will the Microsquirt provide a self tune option in the future?
Bruce Bowling
Site Admin
Posts: 285
Joined: Mon Feb 16, 2004 4:25 pm
Location: Baltimore, MD

Re: self tune?

Post by Bruce Bowling »

65looter wrote:Can or will the Microsquirt provide a self tune option in the future?
Automatic Mixture Control is in the V2.8xx code, see:

http://www.megamanual.com/ms2/amc.htm

All of the base code functionality for MicroSquirt/MS-II is listed here:

http://www.megamanual.com/mt28.htm

- Bruce
65looter
Experienced Squirter
Posts: 157
Joined: Mon Mar 27, 2006 5:56 am
Location: London
Contact:

Post by 65looter »

WOW, thanks Bruce.
I didn't see that one, that's a neat feature.

I'm going back to :RTFM: ....lol

Thanks for the help.
kib_norway
MegaSquirt Newbie
Posts: 17
Joined: Fri Jan 13, 2006 6:59 am
Location: Oslo, Norway

Re: self tune?

Post by kib_norway »

I have enabeled the Automatic Mixture Control (microsquirt 2.89(?)) but I cannot see any changes to my VE table.

I see when connected to PC/MT that the ego correction does a whole lot of work - however, after riding quite a long ride, and then reconnects to MT and does a "fetch" of my VE, it still is unchanged.

The settings are (if I remember right)

FLASH Update on
Step Size (%): 10
Minimum VE Change (%): 1
Vertex Tolerance (RPM): 300 (My rpm bins are spaced by 600 rpm steps)
Vertex Tolerance (kPa): 10 (My MAP bins are spaced by 5 and 10 kpa steps)
Table Change Interval (sec): 5
Flash Update Interval (sec): 15
Update After (events): 2

Now... what would it take for this setup to make changes to my VE table? I am quite sure that I am not on WUE (i have leds to indicate wue and accel enrich) and the accel enrich goes on for just blinks at a time.

Are there other settings somewhere I need to activate to make this self tune?

Please advice :-)
grippo
MegaSquirt Guru
Posts: 921
Joined: Mon Feb 16, 2004 6:55 pm

Re: self tune?

Post by grippo »

If you will post your msq I can try it on the bench.
kib_norway
MegaSquirt Newbie
Posts: 17
Joined: Fri Jan 13, 2006 6:59 am
Location: Oslo, Norway

Re: self tune?

Post by kib_norway »

Hi, will post it in a couple of hrs...

Thanks :-)
kib_norway
MegaSquirt Newbie
Posts: 17
Joined: Fri Jan 13, 2006 6:59 am
Location: Oslo, Norway

Re: self tune?

Post by kib_norway »

Hi,

Here is the msq. Let me know if it makes sense...

I have 3 possible theories:

1. For how long time should one have to drive with the self tune to flash activated before seeing any changes? I have driven approx30 mins only...

2. If the values in the VE table is to far out for the EGO correction to be able to correct it- will it still try to update the VE table inthe right direction? I.e. if EGO correction is limited to 50%, and the VE is 60% rich, will the self tune to flash still try to lean out VE value?

3. - and - just one thought - if there are comm problems between MT and US when fetching a table, would I get an error message? I have a prolific usb/serial converter, and I've read here that these can be tricky... will buy a pcmcia serial port tomorrow...


BTW, the bike allready seems way stronger in the midrange than it was with the carb - and it's still not tuned in. Very good! :-)
Attachments
megasquirt200905272120.msq
(25.07 KiB) Downloaded 51 times
grippo
MegaSquirt Guru
Posts: 921
Joined: Mon Feb 16, 2004 6:55 pm

Re: self tune?

Post by grippo »

I tried your msq on the bench last night and had no problem getting the ve table to update once I increased the coolant temp to be above operating temp = last temp in coolant correction table. Unless this happens, there will be some warmup correction and this will keep the ego closed loop correction from operating. There are many other factors also involved in when this operates, as the code snippet below shows.

Ego must be in closed loop, which itself requires a bunch of conditions as shown in the second code snippet.


// check criteria for being in AMC mode
if(ego_cloop && (bad_ego_flag < 3) && (outpc.warmcor == 100) &&
(outpc.tpsfuelcut == 100) && (outpc.tpsaccel == 0) && <-------- no decel/ accel
(outpc.fuelcor == 100)) { <------ no flex fuel corr

------------------------------------

if( (inpram.EgoOption == 0) || <------- criteria for NOT being in ego closed loop
(outpc.rpm < inpram.RPMOXLimit) ||
(outpc.engine & 0x30) || // engine accel/ decel
(outpc.clt < inpram.EgoTemp) ||
(outpc.tps > inpram.TPSOXLimit) ||
(outpc.kpa > inpram.MAPOXLimit) ||
(outpc.seconds < 30)) {
outpc.egocor1 = 100;
outpc.egocor2 = outpc.egocor1;
// get ego1,2 from sensor
switch_page(1,5,6); // get_adc
ego_cloop = 0;
egopstat = 0; // out of ego closed PID loop
goto EGO_RETURN;
}

ego_cloop = 1;
kib_norway
MegaSquirt Newbie
Posts: 17
Joined: Fri Jan 13, 2006 6:59 am
Location: Oslo, Norway

Re: self tune?

Post by kib_norway »

Hi,

I have been riding 150-200 km, and I now see that the VE map updates at some bins. So - it works.

However, what if the VE map at some pints are way off, so that the ego correction (50% or 80% or whatever I set it to) do not manage to the correct AFR properly?

Will the self tune lean out the VE map when this happens, or will it just ignore those places in the map, since the ego correction is "out of range"?
grippo
MegaSquirt Guru
Posts: 921
Joined: Mon Feb 16, 2004 6:55 pm

Re: self tune?

Post by grippo »

The self tuning will eventually bring you to the target, it just doesn't do it at once. It only allows maximum changes at any one time, but the next time you will be closer so you won't need as much change.

But I would never just blindly tune to an AFR target table. Where did you get it ? How do you know it is right ? How do you know that whoever generated the table had the same objectives you have ? Some people want performance, some economy, some emissions, some just smooth riding. You should bring your table in manually the way you want it, then the ego values at those points become your AFR target table. Then you can use self tune every once in a while to keep your engine there.

You should not have flash update on all the time. There is a limit to how many times you can burn flash (somewhere between 10K and 100K times) so if you had a very fast update rate with only a small change in ve required, and a jumpy ego readback, you could in theory do 1000s of burns in a few weeks.
Post Reply