When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Hi guys, I've installed a new MAC solenoid for my internally gated gt2871, I'm tuning the PID controller but it's really not behaving as it should. Below are my tuner studio settings as well as a part of the log that shows the boost duty and target.
Considering the parameters, especially the derivative set to: 0, Boost duty shouldn't have fallen as the MAP was below the target, both P and I gains should increase, not decrease. Tell me what I'm doing wrong.
The polarity is fine, it does rise and lower the boost as it should, but the derivative behaviour of the pid algorithm is not as it should be, only having coefficients for proportional and integrating while derivative is 0 it should first cross the boost target before lowering the duty.
also, my wideband died, but the map is fully tuned.
Hi guys, I've installed a new MAC solenoid for my internally gated gt2871, I'm tuning the PID controller but it's really not behaving as it should. Below are my tuner studio settings as well as a part of the log that shows the boost duty and target.
Considering the parameters, especially the derivative set to: 0, Boost duty shouldn't have fallen as the MAP was below the target, both P and I gains should increase, not decrease. Tell me what I'm doing wrong.
I tried to tune mine, Vlad gave me tips and told me how, and i just couldnt get it to work, either made 10 psi or 18+ psi, there was like no inbetween.
And when you finally get there, reducing P is actually more aggressive with this algorithm. Start at 100 and go down.
I've simulated the source code for boost control in Matlab, it doesn't add up to what's happening in the car, given the same exact variables the pid gives me 100% duty when simulatedin Matlab with the same data, while the car lowers from 100 to 85% duty...
However I think I'm gonna try and do it with initial duty table as it seems this is not an actual PID controller, but something similar.
I've simulated the source code for boost control in Matlab, it doesn't add up to what's happening in the car, given the same exact variables the pid gives me 100% duty when simulatedin Matlab with the same data, while the car lowers from 100 to 85% duty...
However I think I'm gonna try and do it with initial duty table as it seems this is not an actual PID controller, but something similar.
you simulated the MegaSquirt algorithm, or a traditional PID? MS does not use a traditional PID.
I tried to tune mine, Vlad gave me tips and told me how, and i just couldnt get it to work, either made 10 psi or 18+ psi, there was like no inbetween.
Correct. Even after dialing in a decent baseline in OL, then switching to CL and using extremely mild settings so all it has to do is adjust 1-2psi to hit targets, it still won't do it consistently and repeatedly.
Let's see if you can somehow figure it out. Also about PID: There were different FW versions for the ms2 over the years, and each had a different approach to how the PID settings worked. Just to further screw everything up for anyone trying to "solve" this now.
you simulated the MegaSquirt algorithm, or a traditional PID? MS does not use a traditional PID.
either way, good for you.
I used the original source code from ms2extra_misc.c file for my 3.4.2 firmware (latest stable). I might rewrite the pid that's there and try to substitute with a very simple "normal" PID algorithm.
MS2 EBC can be made to work, it just takes work. IMO you HAVE to start with open loop tuning of the initial duty table and open/closed duty fields for the solenoid. I feel like a broken record on this one, but the Boost Tolerance functin NEVER did anything that I considered beneficial.