Pages: 1 2 3 [4] 5 6 7
Author Topic: Boost PID tuning for noob  (Read 61408 times)
Dave9n3
Sr. Member
****

Karma: +26/-0
Offline Offline

Posts: 288


« Reply #45 on: December 01, 2016, 10:34:59 AM »

Not sure whether you guys deem it worthwhile but I'm thinking of making some very small adjustments to the derivative function of the PID to try and get the little overshoot (when actual meets requested) in check. the s4 wiki leads me to believe i'll need to slightly raise the values I  KFLDRQ2 to cure it.

One axis I have RPM and the other is hPa which from what I've read is 'ground pressure' which goes from 100 -700hPa. Am I right in saying I should only need to tweak the values for the 700hPa row at the say 2 rpm figures where I am seeing the overshoot. Finally, is there a quick way to calculate how much I should increase them by. I guess i could bump them up a small amount and do lots of logging and revisions but if theres another way that'll mean i only have to do half the amount of revisions that would be good to know  Tongue
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Online Online

Posts: 12268


WWW
« Reply #46 on: December 01, 2016, 11:23:12 AM »

The wiki is kind of wrong. You should be able to fix 99% of over/undershoot with IMX. I have edited it accordingly.

Also, the pressure input to Q1/Q2/Q3 is always lde, not "ground pressure", as is also noted in the Tuning page.
« Last Edit: December 01, 2016, 11:26:29 AM by nyet » Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Dave9n3
Sr. Member
****

Karma: +26/-0
Offline Offline

Posts: 288


« Reply #47 on: December 01, 2016, 11:31:41 AM »

IMX seemed good for sorting undershoot, I bumped up the values ever so slightly at certain points and got the boost closer to requested. However when i tried dropping the values around the area of overshoot it didn't seem to do much but shift the overshoot along in the rev range.

I'll have another go though, maybe I didn't reduce the values in IMX enough to see a proper change.
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Online Online

Posts: 12268


WWW
« Reply #48 on: December 01, 2016, 05:59:07 PM »

You may get undershoot followed by overshoot... At that point tweaking q2 might be needed... Increase imx until just about all undershoot is gone, then change q2. Also, because of the way pids work, a bit of overshoot is inevitable.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Dave9n3
Sr. Member
****

Karma: +26/-0
Offline Offline

Posts: 288


« Reply #49 on: December 17, 2016, 12:01:23 PM »

I've made some changes to IMX and removed a fair bit of the undershoot and feel fairly happy now - though i need to drop ldrxn a tad maybe since I think even with 95% DC i'll not hit the requested boost higher up in the rev range. It's not severely out though.

I'm wondering if its maybe time for me to adjust the differential term of the PID to tame the overshoot and ripple (i think that's what the subsequent undershoot is called) I've attached a log and some pictures lde included in the log.

So if tweaking the PID may cure it, I'd be needing to increase some values in KFLDRQ2. Using lde to help me determine which row or rows i need to change values in, as well as rpm - would I be right making these changes at the rpm's just before the overshoot occurs rather than at the RPM of overshoot as presumably that's too late for me to see the desired changes occur?

In dummy terms do I need to reduce the speed at which I am approaching my set-point (desired boost) the closer I get to it, to reduce my error? and that could be achieved by increasing the D term? Please excuse my lack of correct terminology, I'm just trying to get a half decent grasp of why I might tweak KFLDRQ2 rather than just doing it because.

log attached, the IMX i'm currently using and a screen shot of boost and lde.
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Online Online

Posts: 12268


WWW
« Reply #50 on: December 18, 2016, 03:01:37 AM »

I max is still too high.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
armageddon
Sr. Member
****

Karma: +20/-3
Offline Offline

Posts: 348


« Reply #51 on: December 19, 2016, 02:08:56 PM »

and perhaps increase requested from 2000 rpm to 3000 to make things happier
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Online Online

Posts: 12268


WWW
« Reply #52 on: December 19, 2016, 02:47:15 PM »

agreed.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Dave9n3
Sr. Member
****

Karma: +26/-0
Offline Offline

Posts: 288


« Reply #53 on: December 19, 2016, 03:15:08 PM »

Thanks Nyet for your previous comment, I pulled a fair amount out of IMX and now have no overshoot. Got a slight dip but maybe that'll be fixed if I increase requested in that area?

If I bump up IMX a tad where i see the dip and increase requested hopefully i'll end up with a fairly smooth looking line.
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Online Online

Posts: 12268


WWW
« Reply #54 on: December 19, 2016, 06:37:47 PM »

I don't like that your request is so close to actual during spool.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
ktm733
Hero Member
*****

Karma: +18/-9
Offline Offline

Posts: 660



« Reply #55 on: December 19, 2016, 08:39:56 PM »

I don't like that your request is so close to actual during spool.
Can you explain why? For learning purposes
Logged
Dave9n3
Sr. Member
****

Karma: +26/-0
Offline Offline

Posts: 288


« Reply #56 on: December 24, 2016, 11:57:05 AM »

I've since increased req on spool as you suggested, why did you suggest this? was it to stop any intervention if I came too close to actual on spool?

I've also noticed in all my logs that IMAX doesn't follow anywhere near WGDC, this doesn't seem right  Huh
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Online Online

Posts: 12268


WWW
« Reply #57 on: December 24, 2016, 12:06:08 PM »

I've since increased req on spool as you suggested, why did you suggest this? was it to stop any intervention if I came too close to actual on spool?

To make sure PID is stable during spool - P should be big enough to provide 95% wgdc, and I should have had had enough time for full windup so it is riding IMX before peak boost.

Quote
I've also noticed in all my logs that IMAX doesn't follow anywhere near WGDC, this doesn't seem right  Huh

See above regarding integrator windup. Also don't forget there are other terms (P and D) and the LDRL table as well.

Also, this isn't really the place for me to explain integrator windup; it would take me forever, and I don't know your math background. You'll need to do your own learning regarding PIDs.

As an exercise, though, under what conditions would you expect wgdc to EXACTLY follow IMX?

« Last Edit: December 24, 2016, 12:10:12 PM by nyet » Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Dave9n3
Sr. Member
****

Karma: +26/-0
Offline Offline

Posts: 288


« Reply #58 on: December 24, 2016, 01:04:25 PM »

Would IMX be the same as WGDC on spool until just before peak boost? since you'd want to be at 95% WGDC on spool up until the point where requested meets actual and it then needs to control to become in line with requested?

Would it also be the case at 'steady state' that you'd like WGDC to be in line with IMX?

Hopefully i'm not way off the mark with what I said there though I fear I'm likely wrong  Undecided
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Online Online

Posts: 12268


WWW
« Reply #59 on: December 25, 2016, 04:55:51 AM »

Not even close Sad

I am not sure how much time i want to spend here Sad

Anyway:

P result + I result + D result goes into ldrl, and comes out as wgdc.

I result is limited by IMX if the integrator is completely wound up.

The rest of the answer to my quiz follows from that reasoning, but I fear it would take me way too long to get you to understand PIDs. You really need to do some independent learning first. It would take me way too much work to teach you everything you need to know.
« Last Edit: December 25, 2016, 04:58:43 AM by nyet » Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Pages: 1 2 3 [4] 5 6 7
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.037 seconds with 17 queries. (Pretty URLs adds 0s, 0q)