Notices
MEGAsquirt A place to collectively sort out this megasquirt gizmo

MS2 Boost control - Am I missing something?

Thread Tools
 
Search this Thread
 
Old May 18, 2015 | 02:46 PM
  #41  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
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.
Old May 18, 2015 | 02:47 PM
  #42  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

Did you tune basic mode first?
Old May 18, 2015 | 02:49 PM
  #43  
deezums's Avatar
Thread Starter
Elite Member
iTrader: (3)
 
Joined: May 2014
Posts: 3,146
Total Cats: 206
From: Kansas
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.
Old May 18, 2015 | 02:51 PM
  #44  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

Here is an example of just basic mode:

Name:  cKYzKg8.png
Views: 239
Size:  167.3 KB
Old May 18, 2015 | 02:52 PM
  #45  
Mech5700's Avatar
Junior Member
 
Joined: Jan 2014
Posts: 476
Total Cats: 13
From: Port Saint Lucie,FL
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.
Old May 18, 2015 | 02:53 PM
  #46  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
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: 242
Size:  77.8 KB
Old May 18, 2015 | 02:55 PM
  #47  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

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

Nah, that's been inverted again. 100%=allofit
Old May 18, 2015 | 03:08 PM
  #49  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

OK good.

Also the slider is active in advance mode. Remember that.
Old May 18, 2015 | 03:09 PM
  #50  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

Originally Posted by Braineack
aidandj gets props for the drop shadowed screenshot.
OSX. Cmd+shift+4 then space bar.
Old May 18, 2015 | 03:11 PM
  #51  
Mech5700's Avatar
Junior Member
 
Joined: Jan 2014
Posts: 476
Total Cats: 13
From: Port Saint Lucie,FL
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?
Old May 18, 2015 | 03:16 PM
  #52  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
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.
Old May 18, 2015 | 03:31 PM
  #53  
Mech5700's Avatar
Junior Member
 
Joined: Jan 2014
Posts: 476
Total Cats: 13
From: Port Saint Lucie,FL
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.
Old May 18, 2015 | 03:32 PM
  #54  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

I had the same issue, there is now test code that basically desensitizes the slider, it made a huge difference for me.
Old May 18, 2015 | 07:17 PM
  #55  
Mech5700's Avatar
Junior Member
 
Joined: Jan 2014
Posts: 476
Total Cats: 13
From: Port Saint Lucie,FL
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: 240
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: 256
Size:  190.8 KB
Old May 18, 2015 | 07:21 PM
  #56  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

Looks like too much I. That looks like integral windup to me. Also tune the slider if you can.
Old May 18, 2015 | 07:48 PM
  #57  
Mech5700's Avatar
Junior Member
 
Joined: Jan 2014
Posts: 476
Total Cats: 13
From: Port Saint Lucie,FL
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.
Old May 18, 2015 | 07:50 PM
  #58  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
Default

Also try some D. That will slow the response and maybe help smooth the peak.
Old May 18, 2015 | 07:56 PM
  #59  
Mech5700's Avatar
Junior Member
 
Joined: Jan 2014
Posts: 476
Total Cats: 13
From: Port Saint Lucie,FL
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?
Old May 18, 2015 | 07:58 PM
  #60  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,643
Total Cats: 1,870
From: Beaverton, USA
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.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Full_Tilt_Boogie
Build Threads
84
Apr 12, 2021 04:21 PM
StratoBlue1109
Miata parts for sale/trade
21
Sep 30, 2018 01:09 PM
Trent
WTB
2
Oct 1, 2015 12:15 PM
shooterschmidty
Engine Performance
8
Sep 30, 2015 10:28 PM




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