Pages: [1]
Author Topic: Idle Speed Control PID help please  (Read 5943 times)
BoobieTrap
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 74


« on: April 05, 2019, 12:39:44 AM »

Can't seem to figure this out - been playing with idle PID, which has helped somewhat but still can't get it to work correctly. The car is heavily modified (1.8T 80mm throttle, RS4 MAF in 100mm housing, cams etc etc). I have the throttle maps sorted so that throttle airflow matches MAF airflow and the fueling is pretty much spot on.
Just can't work out why the ECU is reducing the ignition angle, which causes the RPM to decrease, even though the RPM is below requested RPM!
I am probably missing something simple but tracing through the idle PID section in a google translated FR is near impossible.

What should I be looking at to stop the ECU reducing the ignition angle to stop the RPM oscillations?
Logged
BoobieTrap
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 74


« Reply #1 on: April 08, 2019, 02:05:15 AM »

Well I sorted it anyway.
For anyone else wondering, it is possible to have a great idle at ~760 RPM (and part throttle driveability) with aftermarket cams (Badger5), 1000cc injectors (running at 6BAR FPR, equivalent to approx 1500cc), 4" MAF housing with RS4 MAF sensor, I.E. Intake manifold AND 80mm hemi throttle.
Attached is the log with o2 correction turned off (for tuning injectors), super stable and the log itself is the same for over 10 minute period.
I did have to really tune down warm up enrichment by factor of 4 (not sure if much higher fuel pressure puddles less?) and same for deceleration enleanment plus the injector dead times have to be perfect.

In the end I studied the FR in more detail and only changed the PID values for the Air path (which are DMLLRLMNN. DMLLRLMXN, PVLDNEZV, PVLDNEZ, also there is a D air path but on my file they were all set to 0 anyway), I divided those by 6 as on low throttle the throttle angle vs airflow values were about a 6th of the stock values.
The issue above was caused by the KFZWOP map, as the ECU was decreasing the load via the throttle, the KWFZOP map had decreasing angle values. This caused the spark angle to decrease, which made the RPM drop, so the ECU would re-open the throttle to compensate.
To fix it I increased the values in KFZWOP map at really low load/RPM values. This meant the the ECU could keep the spark angle the same as load decreased, not causing a drop in RPM.
Most likely KFZWOP  should be re-calibrated fully with the new cams but as I dont have access to a dyno I will just have to keep it stock in the higher load areas.

Next issue to solve is the drop in RPM when releasing the throttle, it drops way below the idle RPM before stabilizing...
Logged
prj
Hero Member
*****

Karma: +1072/-487
Offline Offline

Posts: 6045


« Reply #2 on: April 08, 2019, 03:06:42 PM »

With the ignition flying around that much this is not a "great" idle.
You have almost 20 degrees of ignition on idle, and this is not a solution to anything. I'd idle it with way lower ignition, as now there's not enough to properly counteract things like the power steering or AC turning on.
This is also the reason you have RPM breaks when it's coming down.

The way you did it is a giant hack, and not the correct way.

The correct way is:
1. Modify KFMSNWDK/KFWDKMSN to actually match your throttle characteristics (!). This is the prime reason you had negative advance and so on, because it was keeping the throttle too open for a given load. And then using ignition to back off torque. Most likely rl_w > rlsol_w all the time and it was trying to compensate.
2. Once that's done, yes adjust throttle PID.
3. Adjust torque reserve.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
BoobieTrap
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 74


« Reply #3 on: April 12, 2019, 06:08:30 AM »

Ok thanks for the feedback.
I have played further with KFMSNWDK/KFWDKMSN at below 1.5 degree angle and now my KFMSNWDK/KFWDKMSN are spot on (although they very pretty good before anyway).
I also increased torque reserve as you suggested and the ignition angle has decreased to 10* on average on idle. As expected this resulted in throttle plate angle of 1.57* (before it was 1.17 with the higher ignition angle). Although this may not be strictly necessary in my case, as I removed A/C and replaced the power steering pump with an electro hydraulic one (so I guess it still does have to compensate for the extra alternator load when turning steering wheel on idle).
Also I think my original issue was partly caused by KFWZOP map, I increased KFZW to compensate for the aftermarket cams but I did not increase KFWZOP. While this was OK on warm idle, on cold the the timing retardation map was interfering and causing some strange oscillations loops. Once I upped KFWZOP, the issues went away.

Anyway, I am still fighting the issue where the revs undershoot on throttle release (even with the increased torque reserve). The controller is closing the throttle to 0.8* but at this angle there is no airflow (because I do not have PCV valves EVAP etc). I have set all the additional airflow values to 0 in the map (e.g. MSNDKO) and I have set KFMSNWDK/KFWDKMSN to 0 for all opening below 1*. So I do not understand why it still closes it below 1.6*. How can I stop this from happening?? I have tried to play with KFMIOP/IRL but this causes some other unwanted behaviour when pulling away.

Logged
golfputtputt
Sr. Member
****

Karma: +6/-4
Offline Offline

Posts: 367


« Reply #4 on: August 22, 2019, 01:51:06 PM »

...replaced the power steering pump with an electro hydraulic one...

How did you do this and make steering work properly? Did you use it to take advantage of the anti-torque steer functions in VAG e-steering racks?
« Last Edit: August 22, 2019, 03:33:07 PM by golfputtputt » Logged
dream
Full Member
***

Karma: +3/-3
Offline Offline

Posts: 92


« Reply #5 on: September 07, 2019, 04:57:44 PM »

Can't seem to figure this out - been playing with idle PID, which has helped somewhat but still can't get it to work correctly. The car is heavily modified (1.8T 80mm throttle, RS4 MAF in 100mm housing, cams etc etc). I have the throttle maps sorted so that throttle airflow matches MAF airflow and the fueling is pretty much spot on.
Just can't work out why the ECU is reducing the ignition angle, which causes the RPM to decrease, even though the RPM is below requested RPM!
I am probably missing something simple but tracing through the idle PID section in a google translated FR is near impossible.

What should I be looking at to stop the ECU reducing the ignition angle to stop the RPM oscillations?


I am in the exact same problem. I have the RS4 MAF on my S3 1.8t, scaled it, but got the same oscillations. I already whooped around with KFWDKMSN which already made it better already. I found out in another thread that KFMSNWDK also needs some modifications so I already did that but I need to test it right now.
My car is also pretty modified with performance cams, dahlback intake etc. etc.

I also increased (advanced) ignition timing at idle because I was seeing -12 atdc most of the time, but I would never pull it more than 12-14 for idle. (also I dont care much if its running a bit rough at idle because of the cam overlap timing)

With the ignition flying around that much this is not a "great" idle.
You have almost 20 degrees of ignition on idle, and this is not a solution to anything. I'd idle it with way lower ignition, as now there's not enough to properly counteract things like the power steering or AC turning on.
This is also the reason you have RPM breaks when it's coming down.

The way you did it is a giant hack, and not the correct way.

The correct way is:
1. Modify KFMSNWDK/KFWDKMSN to actually match your throttle characteristics (!). This is the prime reason you had negative advance and so on, because it was keeping the throttle too open for a given load. And then using ignition to back off torque. Most likely rl_w > rlsol_w all the time and it was trying to compensate.
2. Once that's done, yes adjust throttle PID.
3. Adjust torque reserve.

Thanks for pointing Prj. I just checked my log again and as you are saying rl_w > rlsol_w.

FWIW here 2 logs from where I begun today and where I already am, I noticed when modifying KFWDKMSN it already stabilized a bit more but still has the drop to 600 rpm and the bump to 1600 rpm once in a 2-3 secs instead of going up and down from 600 to 1500 every second, I will calibrate like Prj just adviced and will give an update here when I am on it again.
« Last Edit: September 07, 2019, 05:03:43 PM by dream » Logged
dream
Full Member
***

Karma: +3/-3
Offline Offline

Posts: 92


« Reply #6 on: September 08, 2019, 03:08:21 AM »

Btw I also recalculated KISRM because iirc KISRM is for the volume of the intake (from tb until intake valves) vs the engine volume. My engine also has oversized pistons in it (which isnt much) but still adds 23cc in the end to the whole engine volume.

The only thing I coudnt find out is how much bigger the Dahlback racing intake manifold is from the stock one. I have calculated and came to an 2,861 liters for the stock manifold so I used 3,0 liters for the Dahlback one.
After recalculating I came on a different KISRM.

Not sure if this is relevant, but taking everything in trying to make the machanisms work.
Logged
prj
Hero Member
*****

Karma: +1072/-487
Offline Offline

Posts: 6045


« Reply #7 on: September 10, 2019, 02:22:26 AM »

You are changing things without having any clue how they work.
KFWDKMSN and the inverse are not "tuneable" they are the flow characteristics of the throttle. You set them to what the manufacturer specifies and you're done.
They also have absolutely nothing to do with the MAF. It is a totally different flow model, in no way connected.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
dream
Full Member
***

Karma: +3/-3
Offline Offline

Posts: 92


« Reply #8 on: September 11, 2019, 01:12:52 AM »

KFWDKMSN and the inverse are not "tuneable" they are the flow characteristics of the throttle. You set them to what the manufacturer specifies and you're done.
Just read your older post in another thread and the FR and I understand where KFWDKMSN and the inverse KFMSNWDK and only regards to the pass-trough of the hole with the blade in it.
Since I have not mounted a bigger throttle yet I am going have to leave it stock.

They also have absolutely nothing to do with the MAF. It is a totally different flow model, in no way connected.
I guess I gave the idea that the MAF is connected with the map KFWDKMSN, but that's not what I ment.

The issue where I am at is that since I have scaled the MAF (and connected, because I was running mafless) I got these same oscillations as BoobieTrap shown above.
Logged
golfputtputt
Sr. Member
****

Karma: +6/-4
Offline Offline

Posts: 367


« Reply #9 on: September 11, 2019, 08:08:37 PM »

Just read your older post in another thread and the FR and I understand where KFWDKMSN and the inverse KFMSNWDK and only regards to the pass-trough of the hole with the blade in it.
Since I have not mounted a bigger throttle yet I am going have to leave it stock.
I guess I gave the idea that the MAF is connected with the map KFWDKMSN, but that's not what I ment.

The issue where I am at is that since I have scaled the MAF (and connected, because I was running mafless) I got these same oscillations as BoobieTrap shown above.

I had the same cyclical oscillations but only on warmup. To do a quick check, I swapped injectors to the previous ones I had. My problem went away which Nyet proposed was wall film model related....There are a lot of components to ESUK and I've been reading it for a while.

Perhaps you are dealing with issues of wall wetting as well.
Logged
dream
Full Member
***

Karma: +3/-3
Offline Offline

Posts: 92


« Reply #10 on: November 02, 2019, 02:18:53 PM »

I had the same cyclical oscillations but only on warmup. To do a quick check, I swapped injectors to the previous ones I had. My problem went away which Nyet proposed was wall film model related....There are a lot of components to ESUK and I've been reading it for a while.

Perhaps you are dealing with issues of wall wetting as well.

During warming up I dont have any issues. I needed to pull some on the coldstart but that is fixed.

Anyway I've been working through the PID controller and gave me positive results.
The little oscillations in the log is because of the interrupt by steering and putting heater on and off.

I've been reading trought the FR how to adjust the PID controller. Now that has been fixed I can focus on other things now.
Strange thing is that they say in the FR to adjust the whole map at once (For the PID with 0,5 'grenzverstärkung'), but when I look to stock values i see they performed differend values for the PID adjustment. And by that I mean different values at certain rpm, I wonder why they did this is not according the FR says iit does.
Also in my file they did not touch the derivative section but they are talking about it in the FR you need to set it to 1 and start with the P from the bottom.(I left it stock because set this according FR resulted in big idle oscilations for me).
« Last Edit: November 02, 2019, 10:48:17 PM by dream » Logged
dream
Full Member
***

Karma: +3/-3
Offline Offline

Posts: 92


« Reply #11 on: November 02, 2019, 10:27:28 PM »

FWIW here my log of the last adjustment.
Logged
Pages: [1]
  Print  
 
Jump to:  

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