Closed Loop Idle Working
Moderators: jsmcortina, muythaibxr
-
- Helpful MS/Extra'er
- Posts: 134
- Joined: Thu Sep 01, 2005 8:33 am
Closed Loop Idle Working
I got my closed loop idle setup tonight. I haven't been through a full warmup with it yet, but its working with the engine warmed up and is able to compensate for turning the A/C on and off. All of my settings are pretty low though which surprises me.
Open Duty : 35
Idle Valve Codes Duty: 80
Idle Activation RPM adder: 500
Idle activation TPS: 0
Min Duty for PID: 45
PID delay: 1
Proportional Gain: 5
Integral Gain : 1
Derivative Gain: 0
Watching the map signal on a datalog shows oscilation, but the idle is stable.
Am I getting this right?
Open Duty : 35
Idle Valve Codes Duty: 80
Idle Activation RPM adder: 500
Idle activation TPS: 0
Min Duty for PID: 45
PID delay: 1
Proportional Gain: 5
Integral Gain : 1
Derivative Gain: 0
Watching the map signal on a datalog shows oscilation, but the idle is stable.
Am I getting this right?
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
-
- Helpful MS/Extra'er
- Posts: 134
- Joined: Thu Sep 01, 2005 8:33 am
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
-
- Helpful MS/Extra'er
- Posts: 134
- Joined: Thu Sep 01, 2005 8:33 am
I upgraded to the new code and screwed around with my settings. I had it setup wrong the first time. Here are my new settings that work much better.
Open Duty: 80
Closed Duty : 20
Idle Activation RPM adder: 500
Idle Activation TPS threshold: 1
Dashpot adder : 1
Min duty for PID 40
PID delay 2
Prop. Gain 9
Integral Gain 1
Derivative Gain 2
PID lockout rpmDOT 50
PID lockout max decel 20
I still with the engine RPMs would fall to idle a little faster. I don't know if this is an issue with my setup or a setting in the code.
Open Duty: 80
Closed Duty : 20
Idle Activation RPM adder: 500
Idle Activation TPS threshold: 1
Dashpot adder : 1
Min duty for PID 40
PID delay 2
Prop. Gain 9
Integral Gain 1
Derivative Gain 2
PID lockout rpmDOT 50
PID lockout max decel 20
I still with the engine RPMs would fall to idle a little faster. I don't know if this is an issue with my setup or a setting in the code.
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
Yeah definitely increase the Integral Gain. For me, the “I” term is perfect at 4%. Also, set the “D” term to 0 and see how that works. If I understand PID right, the “D” term just slows down the “P” term as it gets closer to the target which isn't really necessary if the P and I terms are set up correctly. Of course everybody's setup is different but start with what I and Ken suggested and go from there.Maddog6961 wrote:Min duty for PID 40
PID delay 2
Prop. Gain 9
Integral Gain 1
Derivative Gain 2
I still with the engine RPMs would fall to idle a little faster. I don't know if this is an issue with my setup or a setting in the code.
-
- Helpful MS/Extra'er
- Posts: 134
- Joined: Thu Sep 01, 2005 8:33 am
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
-
- Helpful MS/Extra'er
- Posts: 134
- Joined: Thu Sep 01, 2005 8:33 am
I have a 2 wire bosch valve in my BMW 533i. I just ended up turning closed loop off because it was oscillating a lot and causing a lot of other strange behavior. I was running it at 78hz. I tried the 156, but my results did not change and I was not able to increase my P or I values at all. I did zero out my D value and that helped, but again, i just wasn't having much luck.
-
- Site Admin
- Posts: 8228
- Joined: Thu Oct 14, 2004 12:48 pm
The way it's usually recommended to tune is the following:
1) Increase P until it oscillates, then reduce it slightly
2) Increase I until it oscillates, then reduce it slightly
3) Increase D until it oscillates, then reduce it slightly
A lot of people skip #3 as it's not totally necessary. Also, the default settings may cause oscillation, on some engines as well, so if they do, I recommend restarting with values of 5,0,0 and following the steps above for P,I, and D.
Ken
1) Increase P until it oscillates, then reduce it slightly
2) Increase I until it oscillates, then reduce it slightly
3) Increase D until it oscillates, then reduce it slightly
A lot of people skip #3 as it's not totally necessary. Also, the default settings may cause oscillation, on some engines as well, so if they do, I recommend restarting with values of 5,0,0 and following the steps above for P,I, and D.
Ken