MEGAsquirt A place to collectively sort out this megasquirt gizmo

ITT: MS3 1.4.0+ and Closed Loop EBC

Thread Tools
 
Search this Thread
 
Old 09-28-2017, 08:59 AM
  #101  
Senior Member
iTrader: (1)
 
Bronson M's Avatar
 
Join Date: Feb 2015
Posts: 1,106
Total Cats: 217
Default

I feel like a temp modifier is needed, I see pretty drastically different settings needed when heat soaked on track vs. cool on the street. I've resorted to blocking off intercooler flow to recreate the temps I see on track.
Bronson M is offline  
Old 09-28-2017, 09:02 AM
  #102  
Retired Mech Design Engr
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 857
Default

Originally Posted by pdexta
Those pulls look great.

Have you guys run your settings at different ambient temps? I've been happy with my new settings, until a couple nights ago I went out when it wasn't obnoxiously hot and humid (like 80 degrees instead of 95) and picked up 10kpa pretty much across the pull. The EBC was dropping duty cycle, but it still wasn't doing enough. I feel like I'm going to be back to starting over in a few months when it cools down.

Maybe it's time for me to dive into Advanced mode.
Here is my plan to pre-test settings, which I plan to do tomorrow.

Set up all. Then multiply all of the Bias values by 0.8 and see if the PID actually compensates for imperfect target. If boost drops, the PID is not effective and I'm really running an open loop on the bias table. If PID pushes the output to hold boost, then it is doing it's job.

Pretty sure I'm going to conclude that we really do need massive slider, as in 450+, to get the PID to actually do something.

Will report back.
DNMakinson is offline  
Old 09-28-2017, 09:39 AM
  #103  
Elite Member
iTrader: (17)
 
pdexta's Avatar
 
Join Date: Aug 2007
Location: Knoxville, TN
Posts: 2,949
Total Cats: 182
Default

Originally Posted by Bronson M
I feel like a temp modifier is needed, I see pretty drastically different settings needed when heat soaked on track vs. cool on the street. I've resorted to blocking off intercooler flow to recreate the temps I see on track.
YES! All this PID trigonometry stuff is pretty silly when you're just going to ignore one of the major components of the equation. Something like the MAT Air Density Table for EBC Duty Cycle would be killer.
pdexta is offline  
Old 09-28-2017, 12:38 PM
  #104  
Retired Mech Design Engr
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 857
Default

I think you guys are missing the point of closed loop control. The purpose is to allow changes in the system to be corrected for, altering the control output (Boost Duty) to make the Process Variable (Boost) return to SetPoint (Target).
DNMakinson is offline  
Old 09-28-2017, 12:41 PM
  #105  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Yes. But they are not the first people with temperature issues. Because the bias duty table is always in effect throughout a pull, it is another factor that can be pulling the control loop in the wrong direction. In the old code it was only the PID control loop controlling boost. With the new method the bias table is a part of it. Which means if temperature affects needed duty cycle, then we should have a temp modifier for the bias table.

I actually ran into this when first testing the bias duty control loop. When it was in beta.

Megasquirt Support Forum (MSEXTRA) ? Boost control duty temperature compensation (View topic)
aidandj is offline  
Old 09-28-2017, 12:44 PM
  #106  
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.

Megasquirt Support Forum (MSEXTRA) ? More advanced closed-loop boost entry (View topic)
aidandj is offline  
Old 09-28-2017, 12:53 PM
  #107  
Elite Member
iTrader: (17)
 
pdexta's Avatar
 
Join Date: Aug 2007
Location: Knoxville, TN
Posts: 2,949
Total Cats: 182
Default

I get the point of closed loop: target what boost I tell you to target. It's just dumb to ignore a very obvious variable that has a huge impact on that closed loop.

We have closed loop idle right? So why bother adding AC idle up? Because it's a variable that screws up our idle, same thing MAT is doing to our closed loop boost targets. If something has a huge affect on a closed-loop target, and it's already a variable we're logging, it makes no sense to ignore it simply because we can try to correct for it after it screws up our target.
pdexta is offline  
Old 09-28-2017, 12:56 PM
  #108  
Retired Mech Design Engr
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 857
Default

Aidandj. I understand what is being said, and I may end up conceding, but my entire goal is to have sufficient control that when temps get cold, targets will remain hit.

If the CL is not good enough for that, then the Bias Table was a mistake.

I will add one more step to my experiment described above, repeat the test in open loop (set-up, or whatever it is called).

If I change my bias table by 0.8, should that not represent the effect of the differential from 50F to 110F? If not, what is the expected change that should be tested? (seriously, after the 0.8, I was going to try the other direction of 1.25X. I think I'll lower my targets at the start of the test.
DNMakinson is offline  
Old 09-28-2017, 01:01 PM
  #109  
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 don't think bias table was a mistake. But I think it's still a work in progress.
aidandj is offline  
Old 09-28-2017, 01:13 PM
  #110  
Retired Mech Design Engr
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 857
Default

Originally Posted by pdexta
I get the point of closed loop: target what boost I tell you to target. It's just dumb to ignore a very obvious variable that has a huge impact on that closed loop.

We have closed loop idle right? So why bother adding AC idle up? Because it's a variable that screws up our idle, same thing MAT is doing to our closed loop boost targets. If something has a huge affect on a closed-loop target, and it's already a variable we're logging, it makes no sense to ignore it simply because we can try to correct for it after it screws up our target.
More time, more adjustments. I understand your idle and MAT correction concept as I was also going to use that in an illustration as well.

Also note if the issue is MAT or Intake Temps. We do have MAT available, but I suspect it that boost is more changed by Intake.

Anyway, I'll run my test, publish results, and you can determine if the control loop will likely accommodate the temperature affects.

EDIT:
Originally Posted by Bronson M
I feel like a temp modifier is needed, I see pretty drastically different settings needed when heat soaked on track vs. cool on the street. I've resorted to blocking off intercooler flow to recreate the temps I see on track.
How drastic? Were you adjusting only the bias to accommodate, or the PID settings. Seriously, this is fact finding, not fault finding.
DNMakinson is offline  
Old 09-28-2017, 01:32 PM
  #111  
Elite Member
iTrader: (17)
 
pdexta's Avatar
 
Join Date: Aug 2007
Location: Knoxville, TN
Posts: 2,949
Total Cats: 182
Default

I'm targeting 210kpa, bias duty table at 25% DC, on 2 different logs I see:

210kpa @ 26% DC and 132 deg MAT
220kpa @ 23% DC and 94 deg MAT

This is on "basic" mode, so hopefully tuning advanced will give better results. It seems pretty weak that it's only pulling 2% duty cycle from the bias table even when overshooting the target by 10kpa.
pdexta is offline  
Old 09-28-2017, 08:05 PM
  #112  
Senior Member
iTrader: (1)
 
Bronson M's Avatar
 
Join Date: Feb 2015
Posts: 1,106
Total Cats: 217
Default

Originally Posted by aidandj
Boost by gear ignores your target table and just goes to that kpa for each gear.

Boost settings, boost table switching, pick blend table.

Probably can't do what you want easily
Tried the blend table and simply set that table to 0% in 1st gear and 100% in all subsequent gears..... Bingo boost by gear using the tables. Once I step up my power game I might make 2nd gear 50%.
Bronson M is offline  
Old 09-28-2017, 09:29 PM
  #113  
Elite Member
iTrader: (1)
 
Leafy's Avatar
 
Join Date: Jun 2012
Location: NH
Posts: 9,479
Total Cats: 104
Default

Originally Posted by aidandj
Yes. But they are not the first people with temperature issues. Because the bias duty table is always in effect throughout a pull, it is another factor that can be pulling the control loop in the wrong direction. In the old code it was only the PID control loop controlling boost. With the new method the bias table is a part of it. Which means if temperature affects needed duty cycle, then we should have a temp modifier for the bias table.

I actually ran into this when first testing the bias duty control loop. When it was in beta.

Megasquirt Support Forum (MSEXTRA) ? Boost control duty temperature compensation (View topic)
Bias pulling the loop in the wrong direction is what I just ran into with the MZR VVT. the "hold" duty cycle changes from like 65% at idle to 40% above 4krpm. and keeps changing. Its so bad the VVT PID loop cant compensate for it and I ended up with something totally weird for the PID loop like having the hold dutycycle setting turned off and running the P term maxed out with a good bit of I. Its still not perfect but its better than anything I could get with a hold duty cycle set.

I know the subarus have an intake air temp modifier for the bias table for their closed loop boost control.
Leafy is offline  
Old 09-30-2017, 03:19 PM
  #114  
Retired Mech Design Engr
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 857
Default

As promised, I made a bunch of runs with various levels of bias. All runs with target at 180kPa from 4K up, at ambient of 70F
Runs 1, 2, 3 are with my normal settings of P=165, I= 190, D=10, and slider at 470.
Run 1 with Bias at 33, which will yield 180kPa at ambient of 90 degrees.
Run 2 with Bias at 26, which would normally yield about 168kPa
Run 3 with Bias at 53, which would normally yield about 190kPa

Runs 4, 5, and 6 are duplicates of 1,2, and 3; except Slider at 300.




1-Pull



1-Stab



2-Pull



2-Stab



3-Pull



3-Stab



4-Pull



4-Stab



5-Pull



5-Stab



6-Pull



6-Stab

Evaluation:
At the 70F ambient, the actual Duty for most of each pull ranges from 28 to 31 when hitting target. Hence runs 2 and 5 were pretty much right. The ability of the PID loop to continue to control worked pretty well at 1 and 4, with bias at 33. The PID with 470 slider pulled the output to about 28, very close, or a correction possible of about 6% DC.

However, runs 3 and 6, where the bias was "off" by 27%, the PID was only able to control down 10% to 43 from 53 with slider at 470. The throttle punch resulted in quite a lot of overshoot and boost cut activated.

Looking at the punches 1 and 4, notice that with the 470 slider, Boost Duty goes to 75% (max) at first, whereas it does not at 300 slider. Hence with the lower sensitivity, some delta correction might be needed. In this case, spool time was the same.

Observe pulls 2 and 5. With the low slider, the Boost DC stays at 31, and there is no driving to target.

Conclusions: This test seems to indicate that a sluggish PID will try to drive the boost to target by adjusting the Boost Duty by up to 5%, whereas a more aggressively set PID will try to drive the boost to target by adjusting the Boost Duty by up to 10%.

In the end, it also appears that whether the setting is high slider with lots of output changes, or low slider and little movement of the output, the actual boost is similar. In other words, on the pulls 3 and 6: 3 with 470 Slider ran 193kPa at 43% BDC, and 6 with 300 Slider ran 195kPa at 48% BDC.

So, I do think that pdexta has a good chance to control the temp range stated in post 111, if tuned aggressively, but I do not have conclusive evidence.

Last edited by DNMakinson; 09-30-2017 at 03:49 PM.
DNMakinson is offline  
Old 10-04-2017, 02:24 PM
  #115  
Newb
 
RichieVee's Avatar
 
Join Date: Sep 2015
Posts: 20
Total Cats: -21
Default

How much are you guys charging megasquirt for your development/testing time?
RichieVee is offline  
Reply
Leave a poscat -2 Leave a negcat
Old 10-04-2017, 02:26 PM
  #116  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,501
Total Cats: 4,080
Default

ask how much "megasquirt" pays their developers...
Braineack is offline  
Old 10-04-2017, 03:09 PM
  #117  
VladiTuned
Thread Starter
iTrader: (76)
 
18psi's Avatar
 
Join Date: Apr 2008
Posts: 35,821
Total Cats: 3,481
Default

EL OH EL

that's all I'll say
18psi is offline  
Old 10-04-2017, 03:19 PM
  #118  
Elite Member
iTrader: (17)
 
pdexta's Avatar
 
Join Date: Aug 2007
Location: Knoxville, TN
Posts: 2,949
Total Cats: 182
Default

Originally Posted by DNMakinson
As promised, I made a bunch of runs with various levels of bias.
Thank you for taking the time to experiment and share your results, that certainly looks promising for resolving issues with temperature variances. I'm going to steal your PID settings and see how they work for me. There have been hints of slightly cooler weather lately, so hopefully I can find some time to test it out.

I've settled on a 365 setting on the slider, even though I'm not totally sure what I'm adjusting, it has seemed to work the best so far. It's reassuring that my best results on the slider has fallen right between your test points.
pdexta is offline  
Old 10-04-2017, 03:27 PM
  #119  
Elite Member
iTrader: (17)
 
pdexta's Avatar
 
Join Date: Aug 2007
Location: Knoxville, TN
Posts: 2,949
Total Cats: 182
Default

Originally Posted by RichieVee
How much are you guys charging megasquirt for your development/testing time?
Pretty awesome that we have a platform that allows us all to share data that ultimately pushes the whole community forward and benefits everyone.

I've got an Uprev tuner on my G35 and it's terrible. It's got major issues that should be easy to resolve with software tweaks, but nobody knows anything, nobody is willing to share anything, nobody will/can answer questions, and it's all closely guarded, crappy, proprietary data that you're just stuck with.
pdexta is offline  
Old 10-08-2017, 12:57 AM
  #120  
Elite Member
iTrader: (17)
 
pdexta's Avatar
 
Join Date: Aug 2007
Location: Knoxville, TN
Posts: 2,949
Total Cats: 182
Default

I tried running DNMakinson's Advanced settings (P=165, I= 190, D=10) and it was less accurate than basic method for me. No big surprise there, but I guess it was worth a shot. Up until this point I don't think anyone has discussed tuning for advanced settings. If anyone has suggestions, explanations, or even theories of what I'm supposed to be doing I'd love some guidance. I do recall reading that basic mode uses settings of 100 for all 3 PID settings. I tried to start with that as a baseline, left I & D at 100, and started off with adjusting "P". I made 3 pulls with P at 80, 100, 120. All pulls looked identical, no relevant data gathered.

I feel like under normal conditions Basic mode is too good for me to continue tuning Advanced mode. I'm wondering if I need to mess up my Bias Duty table in order to force PID to really work to hit target. Dropping 3-4% off duty cycles on my whole map will force PID to start making changes and I think that's where changes to advanced mode will really start to show up. That's the direction I'm heading as of now at least.

P80:
Name:  MSTDUe7.png
Views: 69
Size:  10.1 KB

P100:
Name:  09MLJcY.png
Views: 70
Size:  9.4 KB

P120:
Name:  ixbO7L3.png
Views: 71
Size:  10.5 KB


Virtual Dyno of the pulls (If nothing else at least I demonstrated how consistent and repeatable Virtual Dyno is):
Name:  eaUqtrS.png
Views: 69
Size:  74.1 KB
Attached Thumbnails ITT: MS3 1.4.0+ and Closed Loop EBC-p80.png   ITT: MS3 1.4.0+ and Closed Loop EBC-p100.png   ITT: MS3 1.4.0+ and Closed Loop EBC-p120.png   ITT: MS3 1.4.0+ and Closed Loop EBC-ebc-p-adjustment.png  
pdexta is offline  


Quick Reply: ITT: MS3 1.4.0+ and Closed Loop EBC



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