MEGAsquirt A place to collectively sort out this megasquirt gizmo

MS2 Boost control - Am I missing something?

Thread Tools
 
Search this Thread
 
Old 05-18-2015, 02:46 PM
  #41  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,493
Total Cats: 4,080
Default

seems really high for the I value, you shouldn't be over like 40-50 on any value--MAYBE D. that's what causing it.

start I at 0 and increase until it can hold the target to redline--its long term tracking.


aidandj gets props for the drop shadowed screenshot.
Braineack is offline  
Old 05-18-2015, 02:47 PM
  #42  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Did you tune basic mode first?
aidandj is offline  
Old 05-18-2015, 02:49 PM
  #43  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

Wait a miniute, I'm dumb. I meant P, not I. I have I and D set at zero right now, I've been following this, starting at 150 and working down.



To Tune PID:

1. Set Integral and Differential Gains to 0% - To make tuning the Proportional gain easier, set the Integral and Differential gains to 0%.

2. Set Proportional gain to 150% and slowly lower - While tuning Proportional gain, higher numbers mean slower boost climb and lower final boost. For safety, start with a very high gain (150% should be sufficient). Find the RPM that typically spools quickly, and fully and quickly depress the accelerator. Note how much boost is reached. If boost overshoots the target, increase the Proportional gain. Otherwise, reduce the Proportional gain and try again. Do this until boost reaches the target with little or no overshoot.

3. Tune the Integral Gain - The next step after the target is reached consistently is to tune the Integral gain. Starting from the RPM used to tune the P-gain, fully depress the accelerator and watch the boost as the engine climbs through the RPM range. As the engine accelerates through the rev range, the boost will probably creep away from the target. Keep increasing the I gain until the controller adequately maintains the target with minimal oscillation.

4. Tune the Derivative Gain - If overshoot cannot be tuned out with the P gain on a quick acceleration, increase the D gain until the overshoot is minimized. Care must be taken when increasing the D gain as too much D gain can over-dampen the effects of the P and I gains.

No basic mode, does that slider do anything in PID mode? In MS2 that's all you get with basic AFAIK.
deezums is offline  
Old 05-18-2015, 02:51 PM
  #44  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Here is an example of just basic mode:

Name:  cKYzKg8.png
Views: 107
Size:  167.3 KB
aidandj is offline  
Old 05-18-2015, 02:52 PM
  #45  
Junior Member
 
Mech5700's Avatar
 
Join Date: Jan 2014
Location: Port Saint Lucie,FL
Posts: 476
Total Cats: 12
Default

Originally Posted by deezums
I think this run was at I125 or I130 or thereabouts, I was starting to subtract a bit form each run to get the overspool I want before I went home for the night. Do you have an initial overshoot, or at least one tuned out?

Need to go back out again, more tuning

Do you remember where you were getting this T3 to spool Scott? I'm pretty impressed for a <$200 5K+mi turbo.
No initial overshoot. I also have the lower limit delta at 27kpa. If it is lower than that, it will want to overshoot. I don't think the EBC can react quick enough to prevent overshooting with a lower delta, especially if you stab the throttle in a higher gear.
Mech5700 is offline  
Old 05-18-2015, 02:53 PM
  #46  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

With the new code it does pretty well

Here is my best pull from this morning with a 20kpa delta

Peaks at 189. Max 192.

Name:  Acgk4yD.png
Views: 108
Size:  77.8 KB
aidandj is offline  
Old 05-18-2015, 02:55 PM
  #47  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Also, is it still set as 100%=less boost? That won't work.
aidandj is offline  
Old 05-18-2015, 03:05 PM
  #48  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

Nah, that's been inverted again. 100%=allofit
deezums is offline  
Old 05-18-2015, 03:08 PM
  #49  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

OK good.

Also the slider is active in advance mode. Remember that.
aidandj is offline  
Old 05-18-2015, 03:09 PM
  #50  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Originally Posted by Braineack
aidandj gets props for the drop shadowed screenshot.
OSX. Cmd+shift+4 then space bar.
aidandj is offline  
Old 05-18-2015, 03:11 PM
  #51  
Junior Member
 
Mech5700's Avatar
 
Join Date: Jan 2014
Location: Port Saint Lucie,FL
Posts: 476
Total Cats: 12
Default

Originally Posted by aidandj
OK good.

Also the slider is active in advance mode. Remember that.
If you have PID set so you have a decent boost plot, what would adjusting the slider do? What necessitates slider adjustments?
Mech5700 is offline  
Old 05-18-2015, 03:16 PM
  #52  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

You should use the slider first then use the PID.

Quotes from Ken, the dev:

Technically it [the slider] affects how sensitive it is to changes in input. The input and target get converted to a percentage, the more sensitive, the larger that percentage changes given a particular change in boost. Think of it as a gain that affects all three PID gains at the same time by the same amount.
Changing between 1 and 0 shouldn't make that much difference... All that says to me is that it's a lot too sensitive... The change I'm planning to do is basically at the end of the PID calcs there's a division that divides off all the extra digits (we control the valve in 1% increments, but the internal calculations start at .01% precision... when the PID gains are multiplied in, that essentially multiplies it to .0001 precision, then that gets divided off at the end). I may have done the math wrong, or even if I did it right it might be a little to sensitive to be practical. So I can add a 0 to the end of the divisor there which should reduce the sensitivity by 10x and make the slider actually useful again.
aidandj is offline  
Old 05-18-2015, 03:31 PM
  #53  
Junior Member
 
Mech5700's Avatar
 
Join Date: Jan 2014
Location: Port Saint Lucie,FL
Posts: 476
Total Cats: 12
Default

Originally Posted by aidandj
You should use the slider first then use the PID.

Quotes from Ken, the dev:
That's how I saw it, but when I had slider even at 0, I would still get wild oscillations. However, this was with delta at 14, and intervals at 20ms... it could have been those factors that made the slider ineffective.
Mech5700 is offline  
Old 05-18-2015, 03:32 PM
  #54  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

I had the same issue, there is now test code that basically desensitizes the slider, it made a huge difference for me.
aidandj is offline  
Old 05-18-2015, 07:17 PM
  #55  
Junior Member
 
Mech5700's Avatar
 
Join Date: Jan 2014
Location: Port Saint Lucie,FL
Posts: 476
Total Cats: 12
Default

Just for *****, here is a 4th gear pull from 55 mph, then shifting to 5th and goin a little more:

Name:  OjO7rvn.png
Views: 107
Size:  118.2 KB

Any idea what I can do to help lessen that dip after I get into 5th?

Here is the settings I currently run:

Name:  EH0YtMB.png
Views: 115
Size:  190.8 KB
Mech5700 is offline  
Old 05-18-2015, 07:21 PM
  #56  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Looks like too much I. That looks like integral windup to me. Also tune the slider if you can.
aidandj is offline  
Old 05-18-2015, 07:48 PM
  #57  
Junior Member
 
Mech5700's Avatar
 
Join Date: Jan 2014
Location: Port Saint Lucie,FL
Posts: 476
Total Cats: 12
Default

I was tuning I this morning, and the boost was getting more stable the higher "I" was.

Haven't really messed with the slider tho.

Was thinking possibly tweaking the initial boost duty in that particular area might help too.
Mech5700 is offline  
Old 05-18-2015, 07:50 PM
  #58  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Also try some D. That will slow the response and maybe help smooth the peak.
aidandj is offline  
Old 05-18-2015, 07:56 PM
  #59  
Junior Member
 
Mech5700's Avatar
 
Join Date: Jan 2014
Location: Port Saint Lucie,FL
Posts: 476
Total Cats: 12
Default

Side note: Target is 15psi, it peaks at 15.1, dips to about 14.1 and then stabilizes around 14.7~14.8 so the dip isn't that significant...

I'll try adding some D by what, 5 points at a time and see what happens?
Mech5700 is offline  
Old 05-18-2015, 07:58 PM
  #60  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Start with 1. Then 2 then add 3 etc. Make small changes. It should hopefully smooth the peak into a curve and not drop the duty so low.
aidandj is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Full_Tilt_Boogie
Build Threads
84
04-12-2021 04:21 PM
StratoBlue1109
Miata parts for sale/trade
21
09-30-2018 01:09 PM
Trent
WTB
2
10-01-2015 12:15 PM
shooterschmidty
Engine Performance
8
09-30-2015 10:28 PM



Quick Reply: MS2 Boost control - Am I missing something?



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