Forced Induction Superchargers | Turbochargers | Intercoolers

Is this erratic boost curve caused by PID settings?

Thread Tools
 
Search this Thread
 
Old May 17, 2022 | 06:58 AM
  #41  
Ratical's Avatar
Thread Starter
8 Second Club
20 Year Member
Photogenic
Liked
Loved
iTrader: (82)
 
Joined: Nov 2004
Posts: 998
Likes: 19
From: Rotterdam, New York
Default

Originally Posted by ddnspider
Nice to see good technical discussion on PID control in here. I've struggled lately learning PID control on a closed loop boost control system, but its cool stuff!
I was amazed when I originally asked multiple people local to me who had quick turbo cars, including tuners, how they set up their PID settings. The most common answer was, "I don't know, I just throw the same numbers XXXX has in their car and it works." This thread was an eye opener and helped a lot from where I started. I will use the same methods now with matching gate springs!
Reply
Old May 17, 2022 | 02:05 PM
  #42  
truckdoug's Avatar
9 Second Club
10 Year Member
Liked
Loved
Community Favorite
iTrader: (26)
 
Joined: Nov 2013
Posts: 6,389
Likes: 558
From: Portlandia
Default

tuning PID's is easy. just need to swing a black cat by the tail at midnight on a full moon and then read the assortment of voodoo chicken bones you've scattered out on the pentagram you've carved in the dirt
Reply
Old May 17, 2022 | 03:10 PM
  #43  
n2xlr8n66's Avatar
TECH Apprentice
iTrader: (3)
 
Joined: Jun 2021
Posts: 352
Likes: 151
From: Gadsden
Default

I deal with PID control in my work and often have to explain its function to folks much more educated than I am.
My way of learning is very visual, mind you, so this may not make sense to some. I also tend to oversimplify complex things, so please don't take this as me being patronizing.

Think of a range, lets say 1 to 5. That's the control range, or overall "gain".
Now make a set point, say 3, that you would like to maintain.
The P or proportional part of the control model considers that my desired value is in the middle of the gain range, with equal values on each side of the target (set point).
Let's say that upon approaching the setpoint (3), the control overshoots to 4. This is largely controlled by the I or integral portion. I think of this as how large of a change based on time and distance my control model makes (from my set point).
Lastly, the D or Derivative- this determines the rate of change or slope in reaching my setpoint. How fast in time it gets there (which can also cause "overshoot" or hysteresis).

I know there are many that can fully explain it mathematically much better, but that's my .02.
Reply
Old May 17, 2022 | 03:21 PM
  #44  
ddnspider's Avatar
10 Second Club
20 Year Member
Liked
Loved
Community Favorite
iTrader: (26)
 
Joined: Aug 2004
Posts: 14,628
Likes: 1,778
From: FL
Default

Originally Posted by n2xlr8n66
I deal with PID control in my work and often have to explain its function to folks much more educated than I am.
My way of learning is very visual, mind you, so this may not make sense to some. I also tend to oversimplify complex things, so please don't take this as me being patronizing.

Think of a range, lets say 1 to 5. That's the control range, or overall "gain".
Now make a set point, say 3, that you would like to maintain.
The P or proportional part of the control model considers that my desired value is in the middle of the gain range, with equal values on each side of the target (set point).
Let's say that upon approaching the setpoint (3), the control overshoots to 4. This is largely controlled by the I or integral portion. I think of this as how large of a change based on time and distance my control model makes (from my set point).
Lastly, the D or Derivative- this determines the rate of change or slope in reaching my setpoint. How fast in time it gets there (which can also cause "overshoot" or hysteresis).

I know there are many that can fully explain it mathematically much better, but that's my .02.
I followed your I and D, could you clarify your P? I was under the impression that the P is the first initial rapid change based on the delta error of measured vs. desired.
Reply
Old May 17, 2022 | 04:14 PM
  #45  
n2xlr8n66's Avatar
TECH Apprentice
iTrader: (3)
 
Joined: Jun 2021
Posts: 352
Likes: 151
From: Gadsden
Default

Originally Posted by ddnspider
I followed your I and D, could you clarify your P? I was under the impression that the P is the first initial rapid change based on the delta error of measured vs. desired.
Probably not, but I'll try-

P = how far the result is from your setpoint any instant. How far is key- that's why when my simple mind is setting up PID controls I think in terms of "how large is my range or "window" that I'm trying to control?".

Waaaay back when my instructor taught this using calculus, but my brain has seen better days, lol.
Reply
Old May 17, 2022 | 04:28 PM
  #46  
ddnspider's Avatar
10 Second Club
20 Year Member
Liked
Loved
Community Favorite
iTrader: (26)
 
Joined: Aug 2004
Posts: 14,628
Likes: 1,778
From: FL
Default

Originally Posted by n2xlr8n66
Probably not, but I'll try-

P = how far the result is from your setpoint any instant. How far is key- that's why when my simple mind is setting up PID controls I think in terms of "how large is my range or "window" that I'm trying to control?".

Waaaay back when my instructor taught this using calculus, but my brain has seen better days, lol.
so if the target is 3 and the measured is 4, it's the Ps job to make an instant adjustment of 1 to bring it back to target?
Reply
Old May 17, 2022 | 05:06 PM
  #47  
n2xlr8n66's Avatar
TECH Apprentice
iTrader: (3)
 
Joined: Jun 2021
Posts: 352
Likes: 151
From: Gadsden
Default

Originally Posted by ddnspider
so if the target is 3 and the measured is 4, it's the Ps job to make an instant adjustment of 1 to bring it back to target?
Not to sound like a wise acre, but...Yes, as long as your I and D (both can cause overshoot) are correct. It's a very much a relational thing- I tend to look at I as "how many steps and how fast" and D as "the response / acceleration rate to my target". If I'm controlling something unfamiliar, I usually stay on very conservative end of integral.

I hope this helps and doesn't actually confuse anyone.

Reply
Old Jun 2, 2022 | 09:46 AM
  #48  
Forcefed86's Avatar
8 Second Club
15 Year Member
Liked
Loved
Community Favorite
iTrader: (4)
 
Joined: May 2011
Posts: 8,485
Likes: 1,029
From: Wichita, KS
Default

Are there really no advanced “TEST” options for the Holley ECU for Boost control?

I’ve not worked with the Holley much at all, but was attempting to help a friend last week at the track. Using dome control and playing with PID as mentioned here.

All of my setups have been Mega Squirt based. In megasquirt software I can go into “test” and set each boost solenoid to operate on/off or at any freq/ I desire to test everything out. Is there nothing like this in the Holley software? Or did I simply miss it? To “test” I’d need to have IGN on and supply variable shop air to the map sensor?

Our issue was the setup would make 14lbs from 0-25 on the dome. Then anything over that it would jump to 30lbs. (S498 89/105 5.3 6.0 setup). Typical twin 4 port MAC setup w onboard air.
Reply
LS1 Tech Stories

The Best V8 Stories One Small Block at Time

story-0

Amazing '71 Camaro Restomod Is Modern Muscle Car Under the Skin

 Verdad Gallardo
story-1

6 Common C5 Corvette Failures and What's Involved In Repairing Them

 Pouria Savadkouei
story-2

Retro Modern Bandit Pontiac Trans AM Comes With Burt Reynolds' Autograph

 Verdad Gallardo
story-3

Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

 Pouria Savadkouei
story-4

Top 10 Most Powerful Chevy Trucks Ever Made!

 
story-5

Hennessey's New Supercharged Silverado ZR2 Has 700 HP

 Verdad Gallardo
story-6

Coachbuilt N2A Anteros Is an LS2-Powered C6 Corvette In Italian Clothes

 Verdad Gallardo
story-7

Awesome K5 Blazer Restomod Comes With C7 Corvette Power

 Verdad Gallardo
story-8

10 Camaros You Should Never Buy

 
story-9

10 LS Engine Myths That Refuse to Die

 Verdad Gallardo
Old Jun 2, 2022 | 10:05 AM
  #49  
TrendSetter's Avatar
TECH Addict
20 Year Member
Photogenic
Photoriffic
Shutterbug
 
Joined: Dec 2004
Posts: 2,177
Likes: 627
From: Florida
Default

Originally Posted by n2xlr8n66
Not to sound like a wise acre, but...Yes, as long as your I and D (both can cause overshoot) are correct. It's a very much a relational thing- I tend to look at I as "how many steps and how fast" and D as "the response / acceleration rate to my target". If I'm controlling something unfamiliar, I usually stay on very conservative end of integral.

I hope this helps and doesn't actually confuse anyone.
i havent really messed with PIDs at work, but i have at home on several quite varied applications, and ive found its basically backward terms on 'slow' vs 'fast' reacting systems. another thing ive played with that i never really see talked about much is the frequency. on one of my systems (dbw throttle motor control) i turned the frequency up and it completely changed how the entire system reacted. ive also done nested pid loops and oh wow does that get tricky.
pid stuff is fascinating but my last attempt for work i spent a couple days beating my head on the wall and ended up replacing the whole code block with an array of if elses and it works 10x better and more reliable ¯\_(ツ)_/¯
one thing i found interesting lately while poking around at a gm e39 is it has a 3d table for each of the pid terms in its throttle control. i have done real basic 1x3 kinda tables in the past but never anything that complex. i may try implementing a strategy like that some day. i should see if my haltech can do that....
edit: looks like the haltech can do it, pretty neat...



Last edited by TrendSetter; Jun 2, 2022 at 10:11 AM.
Reply
Old Jun 2, 2022 | 10:08 AM
  #50  
TrendSetter's Avatar
TECH Addict
20 Year Member
Photogenic
Photoriffic
Shutterbug
 
Joined: Dec 2004
Posts: 2,177
Likes: 627
From: Florida
Default

Originally Posted by Forcefed86
To “test” I’d need to have IGN on and supply variable shop air to the map sensor?
as far as i know, mostly yes. if you have a pro dash you can use virtual switches to activate and deactivate, or use tps to activate it, then sit with the car on engine off pushing on the gas pedal to cycle it.

Our issue was the setup would make 14lbs from 0-25 on the dome. Then anything over that it would jump to 30lbs. (S498 89/105 5.3 6.0 setup). Typical twin 4 port MAC setup w onboard air.
this sounds like it is less bc pid and more how the engine is reacting and not possible to test off the track.
Reply
Old Jun 2, 2022 | 11:16 AM
  #51  
rotary1307cc's Avatar
8 Second Club
15 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (5)
 
Joined: Jan 2007
Posts: 2,790
Likes: 123
Default

The static pressure tests are laughable and don't count for much
​​​​​​
looks all perty and nice then you make a pull and it's ****..... Welcome to the WG feedback making large swings in dome volume
You want to know the easiest thing you can do to perty much make the tuning idiot proof? Add volume
I can run p from nothing to 99 and still hold stability
Reply
Old Jun 2, 2022 | 01:13 PM
  #52  
Forcefed86's Avatar
8 Second Club
15 Year Member
Liked
Loved
Community Favorite
iTrader: (4)
 
Joined: May 2011
Posts: 8,485
Likes: 1,029
From: Wichita, KS
Default

Where is it best to add volume? between the dome and the MAC valve? How much volume we talk'n? -thks!
Reply
Old Jun 2, 2022 | 02:04 PM
  #53  
rotary1307cc's Avatar
8 Second Club
15 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (5)
 
Joined: Jan 2007
Posts: 2,790
Likes: 123
Default

Pop can size is good, say like a old AC dryer works well.

dome sensor installed in tank

.Solenoids feed the tank.

Line from tank to dome.

Say with the gate shut you have 100 units volume
With the gate wide open 50 units.
You can see as the wastegate moves this greatly changes the volume taxes the loop.

Typically seen when you let Boost slam in you see dome overshoot Target even if you have the PID very aggressive and the vent noid wide open can't control it.

Now let's say you add a 300 unit tank
With wastegate closed you now have 400 units... With the wastegate wide open you have 350 units...
.

You can see how this greatly reduces the impact of the gate feedback.
Solenoid feedback and everything



​​​​​​
Reply
Old Jun 2, 2022 | 02:11 PM
  #54  
rotary1307cc's Avatar
8 Second Club
15 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (5)
 
Joined: Jan 2007
Posts: 2,790
Likes: 123
Default

Don't let anyone tell you it will be slow either
here is a static test on my car, all this is located inside my car with a lot of volume and a single line that's about 8 ft long that goes up to my dome
This test really doesn't show you important stuff like I said, it just shows you speed still


Reply
Old Jun 2, 2022 | 02:21 PM
  #55  
rotary1307cc's Avatar
8 Second Club
15 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (5)
 
Joined: Jan 2007
Posts: 2,790
Likes: 123
Default

And here is good one of actual function.
.
Note the dome stability.....there is zero filtering on that.
.
It's a good one to show you the potential one of the system, where I had to pedal and how it all responds
.
.

​​​​​​

This is out on the street where i really need to manipulate power accurately.
.
Also note that I am running in map mode... My target boost is actual Target boost (which is silly everybody doesn't in my opinion, even if you zero out and make the second controller inactive)

.
.

​​​​​
Reply
Old Jun 2, 2022 | 09:04 PM
  #56  
rpturbo's Avatar
TECH Addict
15 Year Member
Photogenic
Liked
Loved
iTrader: (47)
 
Joined: Nov 2008
Posts: 2,423
Likes: 225
From: A-Town, Ill side
Default

I'll throw a small post in here. I don't have really any experience to speak of tuning P.I.D., but having went through Holleys Tier 3 training semi recently, they do teach that and provide a hands on working setup you have to use in front of the class while they manipulate it and make you figure it out. With that said, this is the basis on how they teach P.I.D.:

They compare each term, to a suspension setup/part so you can kind of visualize how each works. I can not copy, upload, or reproduce their manual, but my notes are my own.

If you think of the P term as the spring rate
And the I term as the load leveler/overload spring
Finally the D term as the shock absorber

If your P term is too low, you probably won't reach full boost The I term is going to add or vent to get you on target, a small value will be much slower to react and a large term will operate more quickly.
The D term reacts to how quickly the feedback is changing, and tries to put the brakes on to slow things down a bit. You can move a shock in and out slowly by hand but if you hit it hard, it will take much more effort.

The TRL is the Target Rate Limiter, if it is too low, the P term will be lazy and slow to react.

Basically, if you have your safeties setup to protect yourself, you should be able to really make big swings on these, to get you where you need to be. Once you have a general idea, and again, as long as your have yourself covered, you should be able to swing these 50% and see if it's better or worse, and then change the value again by 50% and within a few swings, get yourself headed in the right direction.

Here is a hand drawn picture, showing the desired target, and how each term kind of reacts. I hope this helps someone.

Reply
Old Jun 3, 2022 | 06:55 AM
  #57  
TrendSetter's Avatar
TECH Addict
20 Year Member
Photogenic
Photoriffic
Shutterbug
 
Joined: Dec 2004
Posts: 2,177
Likes: 627
From: Florida
Default

thats good info, thanks.
another thing of note, is it seems like behind the curtains these pid algorithms are all implemented a little differently. holley has their nested loop algorithm for the dominator which is what gave me the idea to implement a similar strategy on a personal project. its a clever idea but ive never tuned on a holley before.
Reply




All times are GMT -5. The time now is 06:59 PM.

story-0
Amazing '71 Camaro Restomod Is Modern Muscle Car Under the Skin

Slideshow: This heavily modified 1971 Camaro mixes classic muscle car styling with a fifth-generation Camaro interior and modern LS3 power.

By Verdad Gallardo | 2026-05-12 18:06:42


VIEW MORE
story-1
6 Common C5 Corvette Failures and What's Involved In Repairing Them

Slideshow: From wobbling harmonic balancers to failed EBCMs, these are the issues that define long-term C5 ownership and what repairs typically involve.

By Pouria Savadkouei | 2026-05-07 18:44:57


VIEW MORE
story-2
Retro Modern Bandit Pontiac Trans AM Comes With Burt Reynolds' Autograph

Slideshow: A modern Camaro transformed into a retro icon, this limited-run "Bandit" build blends nostalgia with brute force in a way few revivals manage.

By Verdad Gallardo | 2026-04-21 13:57:02


VIEW MORE
story-3
Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

Slideshow: Cadillac didn't just crash the high-performance luxury vehicle party, it showed up loud, supercharged, and occasionally a little unhinged...

By Pouria Savadkouei | 2026-04-16 10:05:15


VIEW MORE
story-4
Top 10 Most Powerful Chevy Trucks Ever Made!

Slideshow: Top ten most powerful Chevy trucks ever made

By | 2026-03-25 09:22:26


VIEW MORE
story-5
Hennessey's New Supercharged Silverado ZR2 Has 700 HP

Slideshow: Hennessey has turned the Silverado ZR2 into a 700-hp off-road monster with supercharged V8 power and a limited production run.

By Verdad Gallardo | 2026-03-24 18:57:52


VIEW MORE
story-6
Coachbuilt N2A Anteros Is an LS2-Powered C6 Corvette In Italian Clothes

Slideshow: A one-off sports car that looks like a vintage Italian exotic-but hides a C6 Corvette underneath-just sold for the price of a new mid-engine Corvette.

By Verdad Gallardo | 2026-03-23 18:53:41


VIEW MORE
story-7
Awesome K5 Blazer Restomod Comes With C7 Corvette Power

Slideshow: A heavily reworked 1972 K5 Blazer swaps its off-road roots for a low-slung street-focused build with modern V8 power.

By Verdad Gallardo | 2026-03-09 18:08:45


VIEW MORE
story-8
10 Camaros You Should Never Buy

Slideshow: There are thousands of used Camaros on the market but we think you should avoid these 10

By | 2026-02-17 17:09:30


VIEW MORE
story-9
10 LS Engine Myths That Refuse to Die

Slideshows: Which one of these myths do you believe?

By Verdad Gallardo | 2026-01-28 18:10:11


VIEW MORE