MEGAsquirt A place to collectively sort out this megasquirt gizmo

Preferred Method of EBC Tuning MS3 1.4.1

Thread Tools
 
Search this Thread
 
Old 04-27-2017, 05:51 PM
  #21  
Senior Member
iTrader: (1)
 
Bronson M's Avatar
 
Join Date: Feb 2015
Posts: 1,104
Total Cats: 217
Default

Say what?!? 200 is LESS responsive than 0? Can anyone confirm this?
Bronson M is offline  
Old 04-27-2017, 05:51 PM
  #22  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

According to Ken its now a standard PID control. So more P is more coefficient.
aidandj is offline  
Old 04-27-2017, 05:54 PM
  #23  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Basic mode is
P: 100
I: 100
D: 100
aidandj is offline  
Old 04-27-2017, 06:09 PM
  #24  
Junior Member
iTrader: (1)
 
leboeuf's Avatar
 
Join Date: May 2013
Location: Sandia Park, NM
Posts: 451
Total Cats: 50
Default

Lol, I know its freeware so I can't complain too much... but I like the "don't RTFM, sift through my rambling forum posts"
Does Ken ever explicitly state if they're still arbitrarily inverting things or not?

From the manual:
2. Set Proportional gain to 100% 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 (100% 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 dramatically, increase
the Proportional gain. Otherwise, reduce the Proportional gain and try again. Do this until boost
reaches the target with a small amount of overshoot.
leboeuf is offline  
Old 04-27-2017, 06:15 PM
  #25  
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 believe that is incorrect in the latest firmware. But I could not tell you. It should be an easy test though
aidandj is offline  
Old 04-27-2017, 06:23 PM
  #26  
Senior Member
iTrader: (1)
 
Bronson M's Avatar
 
Join Date: Feb 2015
Posts: 1,104
Total Cats: 217
Default

I had a multi paragraph rant typed up on how tuning is made to be artificially hard......but I'll just thank those that are willing to share and start working on a better sticky post with links and explanations on the gotchas that aren't obvious to the beginner.
Bronson M is offline  
Old 04-27-2017, 06:30 PM
  #27  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

What you need to realize is msextra and all the firmware is done by 2 guys...In their spare time...After their day jobs. They have families, lives, etc. And I find it amazing that we have the documentation we do. I sure as hell couldn't produce that. Megasquirt was not meant to be perfect and super easy​ to use. It's a diy solution that has been commercialized. There are other platforms that promise that.
aidandj is offline  
Old 04-27-2017, 06:33 PM
  #28  
Senior Member
iTrader: (1)
 
Bronson M's Avatar
 
Join Date: Feb 2015
Posts: 1,104
Total Cats: 217
Default

Absolutely, I get that, but the folks that are making darn good money off of their efforts should be helping the community........all I see is them making money off of others hard work.
Bronson M is offline  
Old 04-27-2017, 07:40 PM
  #29  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default

Here are my present settings with results:

Slightly more over-boost on stab at 50 MAT than 70 MAT, but pretty good. I have not played a lot with D as usually PID need very little D, unless this is somewhat scaled. I have tried up to D=2 with no noticeable change. D is to get large Control Output very quickly when Variable is far from SP.



Note Control Lower Limit is set so high as to be non-existent, but if you look at log, the Control Output goes to max due to high P and I.



210 would use full SP duty, but I have not called for that much kPa yet.



Here are my actual targets. I drop at 7K to maybe help save my stock oil pump. Conjecture on my part as to why Mazda put 6500 rev limit on MSM.



See Control Output in green on 2nd chart maintaining the PV at SP. Look a few posts up for another log of Boost following throttle.

Note: There is not "standard" PID. Some controllers use P = Proportional Band, and bigger is smaller, some use Gain, and bigger is more. This is all Gains. Some use I is actually P*I. I think this is separate I in the equation.

Set bias table at typical values, like an Open Loop. In leboeur's case, he would want to set his bias table in the middle of his low land needs and high land needs. Then the PID corrects for the error between those bias outputs and the true needs of Boost-Target on a real time basis.
DNMakinson is offline  
Old 04-30-2017, 09:50 AM
  #30  
Junior Member
iTrader: (3)
 
fwman1's Avatar
 
Join Date: Mar 2008
Location: Alabama
Posts: 149
Total Cats: 5
Default

So DNMakinson, it looks like you are getting acceptable results with larger PID values, but your Delta is fairly high at 90. Do you recall how it behaved at lower Delta and the higher PID values? Did you try that combo?
Cats for sharing, btw.
fwman1 is offline  
Old 04-30-2017, 10:27 AM
  #31  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default

Originally Posted by fwman1
So DNMakinson, it looks like you are getting acceptable results with larger PID values, but your Delta is fairly high at 90. Do you recall how it behaved at lower Delta and the higher PID values? Did you try that combo?
Cats for sharing, btw.
It behaved similarly. I made it really high as to be ignored to help the overshoot. But, as I mentioned, DC still goes to max at punch, which is the purpose of that setting. So, seems to not matter with the rest of my set-up.
DNMakinson is offline  
Old 04-30-2017, 08:11 PM
  #32  
Elite Member
iTrader: (1)
 
sonofthehill's Avatar
 
Join Date: Apr 2014
Location: SF Bay Area, CA
Posts: 3,073
Total Cats: 550
Default

Not having used 1.4.1 yet, here's my

There is a small icon to the left of each parameter describing it. I think for each firmware, if you are in doubt, you should refer to that description in your project with your firmware.

Just to be a punk, I am re-tuning my EBC currently with a stiffer spring to hold more boost up top. My PID's are currently p34 i9 d136, MS2PNP 3.3.1 IIRC. I am not quite there yet and it took probably 30 or 40 good logs to get where I am.
sonofthehill is offline  
Old 04-30-2017, 08:40 PM
  #33  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default

Dear Son... What is the title of this thread?

You do have me inquisitive about high "D", though. I may try some and see results.
DNMakinson is offline  
Old 04-30-2017, 11:25 PM
  #34  
Elite Member
iTrader: (1)
 
sonofthehill's Avatar
 
Join Date: Apr 2014
Location: SF Bay Area, CA
Posts: 3,073
Total Cats: 550
Default

Originally Posted by sonofthehill
There is a small icon to the left of each parameter describing it.
Uh, is dis da title I said to be a punk
sonofthehill is offline  
Old 06-17-2017, 09:59 PM
  #35  
Junior Member
iTrader: (3)
 
fwman1's Avatar
 
Join Date: Mar 2008
Location: Alabama
Posts: 149
Total Cats: 5
Default

FYI
1.5.1 beta 3 was updated to include SD card logging for the clbc PID values (closed loop idle too). My tuner was able to use this info to finally sort out the non-responsive closed loop boost control.
fwman1 is offline  
Old 06-18-2017, 07:16 AM
  #36  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default

Originally Posted by fwman1
FYI
1.5.1 beta 3 was updated to include SD card logging for the clbc PID values (closed loop idle too). My tuner was able to use this info to finally sort out the non-responsive closed loop boost control.
Just so I fully understand. Are you saying that it will actually plot the instantaneous values of the contribution to the output from the bias plus each of the three gain equations?

Could you post a log?
DNMakinson is offline  
Old 06-18-2017, 10:55 AM
  #37  
Junior Member
iTrader: (3)
 
fwman1's Avatar
 
Join Date: Mar 2008
Location: Alabama
Posts: 149
Total Cats: 5
Default

I still have not gotten the car back, but yes that is my understanding.

My tuner had been in contact with Matt from DIY, who helped make the logging of these values possible, so Props and Cats to Matt.

To be honest, my understanding of the PID formula inner workings is sketchy at best. From what he said, once my tuner had the values real time it only took four runs for him to get the CLBC to respond as you'd expect. I had personally seen many threads where folks had a hard time getting the CLBC to engage consistently, and those who had were having to deal with slow spool in some areas to get the overshoot under control in higher gears, or very rapid escalation of boost.

So, I apologize for the lack of detail, but I thought it would be good to let folks know this feature was available/coming. I will post more info once I have the car back.
fwman1 is offline  
Old 06-18-2017, 01:50 PM
  #38  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default

OK, thanks. My settings are 145, 190, 10 @ 469 slider. I agree that these are not sensible to me, but are giving decent results over time and temp.
DNMakinson is offline  
Old 08-06-2017, 12:42 PM
  #39  
Newb
 
Evolforce2's Avatar
 
Join Date: Aug 2008
Location: San Diego
Posts: 30
Total Cats: 0
Default

I used DNMakinson setting and it completely smoothed out my boost control (exception i have the slider setting down to 350). I am using the DIYautotune boost control valve set at 12lbs 185KPA with boost cut at 205KPA. Initially i was in open loop boost control which worked well, but kept hitting boost cut which i still cannot solve. I was initially hitting boost cut in closed loop with the slider at 470, but as i reduce the slider the tendency of hitting boost cut lessened. The boost cut still activates when i drop a gear on the freeway and stab the throttle WOT. I just not sure how to fix that problem yet. Thank you for this great information guys.
Evolforce2 is offline  
Old 08-06-2017, 12:45 PM
  #40  
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 DNMakinson
Just so I fully understand. Are you saying that it will actually plot the instantaneous values of the contribution to the output from the bias plus each of the three gain equations?

Could you post a log?
Megasquirt Support Forum (MSEXTRA) ? Data logging P, I, and D contributions to closed loop (View topic)
aidandj is offline  



All times are GMT -4. The time now is 11:18 AM.