My try at CL boost control = Success! Fully detailled inside

General support questions and announcements for MS3. See also www.ms3efi.com for MS3 information

Moderators: daxtojeiro, muythaibxr, jsmcortina

My try at CL boost control = Success! Fully detailled inside

Postby pit_celica » Wed Sep 14, 2011 6:31 pm

Hi,

I've tried CL boost control recently and I've detailled the whole process in an Excel sheet and I've done some screenshot of each boost curve corresponding to a PID settings. This way, you can follow the reasoning between each PID changes and how it relates in real-world data. Download the *.zip file using the link down the post.

My settings :

MS3+MS3X v1.1.2

DIYAutotune boost control solenoid
Plumbing : external wastegate type as per DIYAutotune diagrams
Frequency : 19.5 Hz
Output polarity : Inverted
Control interval : 20 ms
Closed duty : 0%
Open duty : 100%
Boost control lower limit : 100%

Before trying CL boost control, follow these steps :

-Enable OL boost control and be sure that you are getting more boost as you lower the duty cycle in the Boost duty table.
-Try to tune the Boost duty table so you can have a nice boost curve near the boost target you are chasing and be sure you have good AFR and no knock at these high loads/high RPM because you will likely overboost while tuning PID settings. This is why overboost settings need to be activated.
-Read and understand the Boost Control section in the MS3 manual at least 2 times so you know how each settings are used.

I hope this thread will help future CL boost control user to understand a little more how PID settings are acting on the boost and boost duty cycle curves.

Finally, please note that my PID settings aren't perfect and need some fine-tuning, but I'm happy with the results so far.

_______________________________________________________________________________________________________________________________________

EDIT (2012-08-31) :

Here's the new *.zip file that include my latest tuning for boost control.

http://uploading.com/files/get/37325be2 ... low-up.zip

The reason for this is that I've discovered that I wasn't reaching the boost target when the boost was increasing really fast (think going through 2-3-4 gears in WOT). Follow the Excel file to understand the tuning process. My tuning process involve a run from 2000RPM to redline in 3rd gear at WOT and a run going through the gears 2-3-4 as fast as I can at WOT for each PID setting. Please note that when I shift, engine RPM goes from redline to about 5000-5300 RPM.

I'm now at P=50, I=100 and D=50. With these settings, during the 3rd gear 2000-redline WOT run, I have an initial overshoot at 225kPa but the boost is glued to the target within ±3kPa from 4500 to 7400 RPM. During the 2-3-4 fast gear change WOT run, the boost is overshooting in 2nd gear at 221kPa, then it stick to the target until redline. When going into 3rd gear, the target is reached perfectly without any overshoot and stick to the target at ±4kPa. When going into 4th gear, the boost is coming so fast that the PID isn't making the boost reaching the target initially (undershoot at 200kPa) and then the I term is making the boost climbing up to the target in a fast manner (sticking to the target at ±4kPa from 5500RPM to redline).

Because a picture worth a thousand of word, see the attached pictures for the 3rd gear run and the 2-3-4 fast gear change run for the P=50, I=100 and D=50.

Here are my conclusions so far about CL boost control :

1- Playing with the P term will influence the moment when the boost duty will start to increase when the boost is increasing. Big P number make the boost duty coming up sooner when the MAP is increasing and vice-versa.
2- Increasing P will reduce initial overshoot and vice-versa.
3- Increasing I will slightly increase initial overshoot. If the target isn't reached initially, a bigger I term will make the boost climbing to the target faster. Too much a I term will make the boost oscillating after the initial overshoot.
4- The D term will reduce the oscillating effect of a large I number. Too much D term lead to huge oscillations in the boost duty. It takes some large D number to reduce the initial overshoot.
5- I've varied the Control Interval from 30ms to 10ms without seeing any changes in boost control performance. Smaller Control Interval will lead to higher oscillation of the boost duty.
6- You can limit the maximal boost duty by setting the Open Duty at a number lower than 100%. It is useful if you do not reach the target initially because the boost is climbing faster. But this is not a good solution because it prevent the PID code to do his job if a smaller boost target is wanted later.
7- You want some sort of initial overshoot to have a good control. If the target isn't reached initially, the I term will try to get the boost to the target, but it will take some time.
8- Initial overshoot will be bigger in higher gear (4th, 5th) for a given PID setting compared to a 3rd gear run because the boost is climbing much more slowly and the P term is supposed to react to (current_error - last_error). When boost is climbing slowly, (current_error - last_error) isn't a big number so the P term do not have the same impact as in 3rd gear. The inverse is also true : you will get less overshoot when boost is climbing faster (like in 2nd gear).

The following are the thing I would like to test/tune/perfect in the following rounds of tuning :

-Reduce initial overshoot in 3rd gear 2000-redline WOT run at something around 215kPa.
-Make sure that initial overshoot isn't too big in higher gears (4th or 5th gear from 2000 RPM to redline at WOT)
-Try a higher and/or lower target with a constant PID setting and see the results.
-Try a boost target map that has a varying target vs RPM to see how the PID react.
-Play with the Boost Control Lower Limit to see what impact it has for a constant PID setting.


Sam
Attachments
P=50 I=100 D=50 3rd gear.png
P=50 I=100 D=50 3rd gear.png (31.57 KiB) Viewed 1014 times
P=50 I=100 D=50 2-3-4.png
P=50 I=100 D=50 2-3-4.png (34.88 KiB) Viewed 1014 times
Last edited by pit_celica on Fri Aug 31, 2012 3:02 pm, edited 2 times in total.
pit_celica
Master MS/Extra'er
 
Posts: 401
Joined: Tue Jul 18, 2006 3:12 pm

Re: My try at CL boost control = Success! Fully detailled in

Postby Mario » Wed Sep 14, 2011 10:25 pm

That is great! Thanks for logging all your work :)
1967 Bug 2276 Turbo MS3X Ls2 coils full seq fuel and spark
11.537 @ 115.74mph
236hp & 245ft/lb
The Dub Shop
My Gallery
Megasquirt for life!
Mario
Experienced MS/Extra'er
 
Posts: 217
Joined: Sun Jan 30, 2005 11:13 pm
Location: Monroe, Wa.

Re: My try at CL boost control = Success! Fully detailled in

Postby HidRo » Thu Sep 15, 2011 1:31 am

The explanation of how Closed Loop boost control works is impressive!
With this, I believe that anyone can learn how to tune CL.
I guess this would be a good article in the msextra documentation.

Congrats and thank you! :yeah!:
Image
Golf II + 1.8T 20V + MSII V3.0 http://eight620vt.tk/
HidRo
Super MS/Extra'er
 
Posts: 865
Joined: Mon Dec 28, 2009 4:56 pm
Location: Portugal

Re: My try at CL boost control = Success! Fully detailled in

Postby Peter Florance » Thu Sep 15, 2011 3:09 am

What a great resource
Thanks!
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Check your grounds: http://www.msextra.com/doc/general/grounding.html
User avatar
Peter Florance
Super MS/Extra'er
 
Posts: 3206
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA

Re: My try at CL boost control = Success! Fully detailled in

Postby zmanco » Sat Nov 26, 2011 10:10 am

Is the boost control algorithm in MS2 the same as in MS3?
Daniel
'73 240Z
Castle Rock, CO USA
zmanco
Experienced MS/Extra'er
 
Posts: 297
Joined: Mon May 28, 2007 2:16 pm

Re: My try at CL boost control = Success! Fully detailled in

Postby muythaibxr » Sat Nov 26, 2011 11:50 am

the base algorithms are the same, but the ms3 has extra features such as gear-based boost targets, etc.
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
muythaibxr
Site Admin
 
Posts: 6982
Joined: Thu Oct 14, 2004 12:48 pm

Re: My try at CL boost control = Success! Fully detailled in

Postby xrattiracer » Sun Nov 27, 2011 12:28 am

indeed that is good stuff.
I have very little chances to do closed loop tuning with my own car, so this kind of stuff is very useful to me. im not making crazy power levels, but i still have a hard time finding a place where i can do repeated runs in a gear higher than 2nd. and things just happen too quickly in 2nd to do some of the tuning. it really makes me wonder how differently the numbers end up being for different setups, and if there is a default that would work fairly well for most people. the aftermarket boost control boxes seem to work out of the box on a wide variety of configurations...
xrattiracer
Experienced MS/Extra'er
 
Posts: 177
Joined: Fri Aug 01, 2008 2:25 pm

Re: My try at CL boost control = Success! Fully detailled in

Postby muythaibxr » Sun Nov 27, 2011 6:46 am

All the aftermarket ones I have tried still require some tuning, and even after tuning aren't that consistent.

Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
muythaibxr
Site Admin
 
Posts: 6982
Joined: Thu Oct 14, 2004 12:48 pm

Re: My try at CL boost control = Success! Fully detailled in

Postby pit_celica » Fri Aug 31, 2012 3:05 pm

I've updated the first post and the attachments to include my latest boost control tuning comments/conclusion. Feel free to comment!

Sam
pit_celica
Master MS/Extra'er
 
Posts: 401
Joined: Tue Jul 18, 2006 3:12 pm

Re: My try at CL boost control = Success! Fully detailled in

Postby 9secz » Sat Sep 01, 2012 9:42 am

Thanks for sharing all your research! So far I have not figured out how to grab your zip file without installing the host site download manager. I've tried Chrome and Firefox browsers, and wget. Anybody know the secret?

Edit: NVM, I finally got the zip file, but not before having to close some bonus full-screen popups.

Jeff
9secz
Helpful MS/Extra'er
 
Posts: 128
Joined: Sun Jun 13, 2010 10:33 am
Location: NorCal USA


Return to MS3 General Support

Who is online

Users browsing this forum: piledriver and 1 guest