MEGAsquirt A place to collectively sort out this megasquirt gizmo

Closed loop boost control starting numbers

Thread Tools
 
Search this Thread
 
Old 04-01-2016, 02:14 AM
  #1  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default Closed loop boost control starting numbers

I've tuned open loop, ran this for 4 years. Max boost I look for is 12psi
Interested in trying closed loop but after several failed attempts thought it was worth asking for help.
I've a ms2 rev enhanced ecu, FM2 turbo set up on a 1.8.
Does anyone running a similar set up on closed loop boost control have a basic set of numbers I can start on ?
HeresJohnny is offline  
Old 04-01-2016, 02:21 AM
  #2  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

It's different for every setup. You need to tune.
aidandj is offline  
Reply
Leave a poscat -1 Leave a negcat
Old 04-01-2016, 07:48 AM
  #3  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default

Originally Posted by aidandj
It's different for every setup. You need to tune.
Ok, but ......

Is there at least a starting point?
PID values ?
I had these numbers but they were from another guys set up and the car keep overboosting cutting.
My open loop map is fairly good so I figure if I can get close with PID and start dropping P until it stops over boosting I'm heading in the right direction.

P=145
I=40
D=100

Do you start at 0-0-0 or 100-0-0 or 100- 50-0 ?
HeresJohnny is offline  
Old 04-01-2016, 11:26 AM
  #4  
Newb
 
abenson100's Avatar
 
Join Date: Jul 2013
Location: Alfred, Maine
Posts: 35
Total Cats: 3
Default

this may help or it may not
PID for Dummies - Control Solutions
abenson100 is offline  
Old 04-01-2016, 11:33 AM
  #5  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,501
Total Cats: 4,080
Default

I had these numbers but they were from another guys set up and the car keep overboosting cutting.

P=145
I=40
D=100

Do you start at 0-0-0 or 100-0-0 or 100- 50-0 ?
I'm surpirsed you even got past wastegate with those settings, sometimes tells me you dont even have your EBC plumbed/configured properly in the first place.

start at 100-0-0.
Braineack is offline  
Old 04-01-2016, 11:57 AM
  #6  
Moderator
iTrader: (1)
 
Girz0r's Avatar
 
Join Date: Jun 2014
Location: Austin, TX
Posts: 3,033
Total Cats: 324
Default

Originally Posted by Braineack
sometimes tells me you dont even have your EBC plumbed/configured properly in the first place.
Not sure if he was using those settings before or after he moved the EBC source to pipe before TB. Also known as 'B' from Joe's you don't need EBC thread.

Currently his setup is charge pipe before TB -> EBC -> Wastegate
Girz0r is offline  
Old 04-01-2016, 12:08 PM
  #7  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default

Originally Posted by Braineack
I'm surpirsed you even got past wastegate with those settings, sometimes tells me you dont even have your EBC plumbed/configured properly in the first place.

start at 100-0-0.
Just a quick question before I start, I've got boost protection set up. Works fine with my open loop tuning.
So here's what I had my settings at for open loop control
<br >

This is now my closed loop, just changed the PID settings to my starting numbers. Am I right in that's all I need to change to get started ?


<br >
Attached Thumbnails Closed loop boost control starting numbers-80-image_c108b1b3d94a4dce03a16d7df316f3b2fcceeb8d.jpeg   Closed loop boost control starting numbers-80-image_283b08b4a99b78e222efbf4258c60c8611785e84.jpeg  
HeresJohnny is offline  
Old 04-02-2016, 01:40 PM
  #8  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default

Followed the guide below with settings
P = 100
I = 0
D = 0

Held it at 2000rpm Wot runs in 3rd

No matter what I lowered P to nothing changed. Fairly slow spool up gets the wastgate.
The boost duty figure is changing but the same with any PID number.

Followed these guidelines:

Set Integral and Differential Gains to 0% - To make tuning the Proportional gain easier, set the Integral and Differential gains to 0%.
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.


Switched back over to open loop and all back to normal working from my OL boost control duty table spools upto target 10psi
HeresJohnny is offline  
Old 04-03-2016, 11:21 AM
  #9  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,501
Total Cats: 4,080
Default

so you could go to 0-0-0 and not get any boost above wastegate?
Braineack is offline  
Old 04-03-2016, 02:07 PM
  #10  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default

Originally Posted by Braineack
so you could go to 0-0-0 and not get any boost above wastegate?
I'll give it a go tonight, hadn't realised it would make any difference after dropping it so much with no effect.
HeresJohnny is offline  
Old 04-03-2016, 03:33 PM
  #11  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,501
Total Cats: 4,080
Default

yeah youll need to drop P closer to 15-10 or so before you start seeing boost going above the wastegate and approach the target.
Braineack is offline  
Old 04-04-2016, 02:25 PM
  #12  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default

Originally Posted by Braineack
yeah you'll need to drop P closer to 15-10 or so before you start seeing boost going above the wastegate and approach the target.
That worked, ended at 10.0.0 and it hit the target. Dropped 8.0.0 and it overshot.
Then started tweaking I and went to 10.05.0 and it overshot
Went to 10.02.0 and it overshot
Went to 10.01.0 and it didn't seem to change anything
Ended up back at 10.0.0

Log attached
Attached Files
File Type: msl
10_modified.msl (39.9 KB, 157 views)
HeresJohnny is offline  
Old 04-04-2016, 02:30 PM
  #13  
Moderator
iTrader: (1)
 
Girz0r's Avatar
 
Join Date: Jun 2014
Location: Austin, TX
Posts: 3,033
Total Cats: 324
Default

Glad to see the progress...

Girz0r is offline  
Old 04-04-2016, 04:53 PM
  #14  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default

Logging - Can anyone confirm if my goal is to get my MAP to be matched with the my Boost Target, as much as possible. If that's correct how close should I be aiming for, whats achievable ? Thanks
HeresJohnny is offline  
Old 06-08-2016, 12:49 PM
  #15  
Newb
 
jbbenzo48's Avatar
 
Join Date: Apr 2016
Posts: 2
Total Cats: 0
Default

Brain - can you elaborate on this:
higher numbers mean slower boost climb and lower final boost.
Every PID controller I've ever tuned (I work in controls for a living) uses P gain such that it is being multiplied by the instantaneous error Kp*(target boost - actual boost) for this case. Increasing P in all the other controllers I use should INCREASE boost response (more adjustment for a given error should result, ultimately, in overshoot and oscillation conditions)...Why is it reverse in this case?

I have an email out to Matt at DIY about it and so far he has told me it is a PID Type C controller but I'm not finding much on it, even in the source code!

Any help is appreciated here.
jbbenzo48 is offline  
Old 09-26-2017, 08:53 AM
  #16  
Junior Member
Thread Starter
 
HeresJohnny's Avatar
 
Join Date: Dec 2011
Posts: 75
Total Cats: 3
Default

Got back onto this after a year hill climbing the car in England.
Found an old thread from Braineack and did the following:

1) Ran some WOT runs in 2nd gear with no boost control to get the wastegate pressure which on mine is 9psi (approx 165 MAP)
2) Set the boost control to closed loop and the rate to 40
3) Set the boost target table to a higher pressure than wastgate - 185 MAP (approx 12 psi)
4) Set P.I.D to 200.0.0
5) Ran 2nd gear pulls nice and steady and allowed boost to build the revs
6) Checked the log to see if the MAP was getting close to target boost.
7) Repeated steps 5 & 6 and reduced P until it overshot slightly.... on mine it was 11.0.0
8) Next step I believe is to increase I until it maintains the boost target better, oscillation to be tuned out with D. Will try again at the weekend.

What I like about the open loop is that it appears to give a consistent boost level through the gears and doesn't fluctuate by +2 psi dependent on ambient temps.
Previously if my target was 14psi I had to tune this for 4th gear pulls which gave me about 11psi in 2nd gear. Seems not to vary with closed loop.
HeresJohnny is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Herbst
DIY Turbo Discussion
11
05-13-2017 09:55 PM
Ruined_miata
General Miata Chat
6
03-13-2016 09:33 AM
frenchmiata
Engine Performance
1
03-05-2016 07:52 PM
RUSS_1995
WTB
1
03-05-2016 10:35 AM



Quick Reply: Closed loop boost control starting numbers



All times are GMT -4. The time now is 12:43 AM.