Idle issues with MSPNP and 01 miata
#21
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
Did you have your A/C on during the cranking? It sorta looks like the A/C compressor was on and it turned off when the dip happened, idle duty drops 10.2% instantly which matches the A/C compressor idle up duty. The closed loop idle handoff is fine and doesn't seem to be causing it. What also happens is your VVT Duty shoots way up (hits the 1800 column in the table) which allows in lots more air and doesn't help stability as well. That's why the VVT table I have has the 1500 column next to the 1600 column, stops it from advancing as soon as the RPM goes above 1k RPM, starts when it advances at 1500 so I usually don't hit that during idle or during startups.
You can check if the VVT is causing it by changing the coolant on value to something like 220C when testing hot starts so its disabled entirely.
You can check if the VVT is causing it by changing the coolant on value to something like 220C when testing hot starts so its disabled entirely.
#24
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
So, looks like it is the VVT settings. I got the car up past the 140 for the CLT temps, and then shut it off and turned it back on, and it made those oscillations. I then changed the activation temp to 220 degrees, started the car, and it started up just fine. The car did die again at 140 degrees for some reason...it hadn't done that before but this time it did again. I'm wondering if it could have something to do with the VVT table? I will have to try scaling it the way you mentioned and see what happens.
#25
You could try the VVT table I have on my tune and see if it works for you, has a bit more advance across the board and usually dyno's pretty good from what I can tell online. 29 advance at 1600 is nice too for power.
Hard to tell why it stalled without a log, could just be VVT related as well, no idea.
If you want to check the effectiveness of your PID settings for VVT, you can log both the VVT Target Angle and the VVT Actual Angle and see how fast it reaches the target and if it oscillates around the target.
Hard to tell why it stalled without a log, could just be VVT related as well, no idea.
If you want to check the effectiveness of your PID settings for VVT, you can log both the VVT Target Angle and the VVT Actual Angle and see how fast it reaches the target and if it oscillates around the target.
Last edited by HowPrayGame; 10-19-2020 at 08:01 PM.
#26
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
You could try the VVT table I have on my tune and see if it works for you, has a bit more advance across the board and usually dyno's pretty good from what I can tell online. 29 advance at 1600 is nice too for power.
Hard to tell why it stalled without a log, could just be VVT related as well, no idea.
If you want to check the effectiveness of your PID settings for VVT, you can log both the VVT Target Angle and the VVT Actual Angle and see how fast it reaches the target and if it oscillates around the target.
Hard to tell why it stalled without a log, could just be VVT related as well, no idea.
If you want to check the effectiveness of your PID settings for VVT, you can log both the VVT Target Angle and the VVT Actual Angle and see how fast it reaches the target and if it oscillates around the target.
#27
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
So with everything unchanged, here are my two logs. VVTLog1 is a hot start around 176 degrees. It looks like VVT starts to activate during startup. VVTLog2 is a start from around 134 degrees to 140 degrees where the car then shuts off. It looks like VVT starts activating around when the RPMs drop rapidly and then the car stalls out. What do you think?
#28
The log with the stall only seems to have 8 data fields logged so I can't really see what's happening. Total guess but sometimes the Neutral/Hold Duty value takes hold and commands the VVT to do stuff at idle even when its off, try changing it from the 39.6 or something your basemap has it as and try 19.6 instead. If the log has the duty jump to around that value then the car stalls that's probably it
#29
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
The log with the stall only seems to have 8 data fields logged so I can't really see what's happening. Total guess but sometimes the Neutral/Hold Duty value takes hold and commands the VVT to do stuff at idle even when its off, try changing it from the 39.6 or something your basemap has it as and try 19.6 instead. If the log has the duty jump to around that value then the car stalls that's probably it
#30
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
The log with the stall only seems to have 8 data fields logged so I can't really see what's happening. Total guess but sometimes the Neutral/Hold Duty value takes hold and commands the VVT to do stuff at idle even when its off, try changing it from the 39.6 or something your basemap has it as and try 19.6 instead. If the log has the duty jump to around that value then the car stalls that's probably it
#31
Uploaded tune still looks like it has Inj. Timing being modified by VVT Angle? Turn that off and it will fix the stall/weird behavior whenever VVT kicks on at your coolant temp of choice, its the Adjust Inj. Timing Based On setting like I have it in the last photo I uploaded.
You may want to change this setting under Closed Loop Idle settings from 1 second to 2 seconds on the PID delay, the car isn't following the crank to run taper it should with the IAC Valve, just going directly into closed loop so it drops pretty significantly. My car did that for a while before I figured out that low of a PID delay will negate the crank to run taper entirely resulting in a big dip right after startup.
Hitting VVT Advance during startup (in my experience) will do what you describe. I don't have anything too weird happen with my current table even though it sorta hits the 1600RPM column during startup. It looks like you are getting VVT advance around 1k RPM which may be due to your maximum/minimum VVT angles being set not perfectly (the ~275 and ~318 values), some calibration may be required there as well.
Something else to keep track off for a sharp drop off of RPM right after startup, my car will hit over-run fuel cut when I start the car hot and it results in immediately hitting 2k RPM > Dipping to 1400 RPM then tapering off to the target RPM as it normally does. You don't seem to have over-run enabled yet so that isn't an issue, if you want to get better fuel economy having fuel cut off when you aren't on the throttle is pretty nice for fuel economy.
You may want to change this setting under Closed Loop Idle settings from 1 second to 2 seconds on the PID delay, the car isn't following the crank to run taper it should with the IAC Valve, just going directly into closed loop so it drops pretty significantly. My car did that for a while before I figured out that low of a PID delay will negate the crank to run taper entirely resulting in a big dip right after startup.
Hitting VVT Advance during startup (in my experience) will do what you describe. I don't have anything too weird happen with my current table even though it sorta hits the 1600RPM column during startup. It looks like you are getting VVT advance around 1k RPM which may be due to your maximum/minimum VVT angles being set not perfectly (the ~275 and ~318 values), some calibration may be required there as well.
Something else to keep track off for a sharp drop off of RPM right after startup, my car will hit over-run fuel cut when I start the car hot and it results in immediately hitting 2k RPM > Dipping to 1400 RPM then tapering off to the target RPM as it normally does. You don't seem to have over-run enabled yet so that isn't an issue, if you want to get better fuel economy having fuel cut off when you aren't on the throttle is pretty nice for fuel economy.
#32
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
Uploaded tune still looks like it has Inj. Timing being modified by VVT Angle? Turn that off and it will fix the stall/weird behavior whenever VVT kicks on at your coolant temp of choice, its the Adjust Inj. Timing Based On setting like I have it in the last photo I uploaded.
You may want to change this setting under Closed Loop Idle settings from 1 second to 2 seconds on the PID delay, the car isn't following the crank to run taper it should with the IAC Valve, just going directly into closed loop so it drops pretty significantly. My car did that for a while before I figured out that low of a PID delay will negate the crank to run taper entirely resulting in a big dip right after startup.
Hitting VVT Advance during startup (in my experience) will do what you describe. I don't have anything too weird happen with my current table even though it sorta hits the 1600RPM column during startup. It looks like you are getting VVT advance around 1k RPM which may be due to your maximum/minimum VVT angles being set not perfectly (the ~275 and ~318 values), some calibration may be required there as well.
Something else to keep track off for a sharp drop off of RPM right after startup, my car will hit over-run fuel cut when I start the car hot and it results in immediately hitting 2k RPM > Dipping to 1400 RPM then tapering off to the target RPM as it normally does. You don't seem to have over-run enabled yet so that isn't an issue, if you want to get better fuel economy having fuel cut off when you aren't on the throttle is pretty nice for fuel economy.
You may want to change this setting under Closed Loop Idle settings from 1 second to 2 seconds on the PID delay, the car isn't following the crank to run taper it should with the IAC Valve, just going directly into closed loop so it drops pretty significantly. My car did that for a while before I figured out that low of a PID delay will negate the crank to run taper entirely resulting in a big dip right after startup.
Hitting VVT Advance during startup (in my experience) will do what you describe. I don't have anything too weird happen with my current table even though it sorta hits the 1600RPM column during startup. It looks like you are getting VVT advance around 1k RPM which may be due to your maximum/minimum VVT angles being set not perfectly (the ~275 and ~318 values), some calibration may be required there as well.
Something else to keep track off for a sharp drop off of RPM right after startup, my car will hit over-run fuel cut when I start the car hot and it results in immediately hitting 2k RPM > Dipping to 1400 RPM then tapering off to the target RPM as it normally does. You don't seem to have over-run enabled yet so that isn't an issue, if you want to get better fuel economy having fuel cut off when you aren't on the throttle is pretty nice for fuel economy.
#33
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
Wanted to give you another update. So I changed the Inj timing to "Off" and then increased PID delay to 2 seconds. That didn't fix it, so I did as you said and went through a VVT calibration. The way I did it was setting the duty % under "test" to 100, then the min and max angle to 0. Revved the car to around 3k to 4k RPM, took a datalog, and recorded down the highest value as my max. I then did the same but put the duty % to 0 under "test". Recorded this as my minimum. After turning off the test and putting my new min and max values, that seemed to have fixed the issue! However...I'm now experiencing a very slight fast dip in idle RPM after revving the engine. I revved the engine in place to around 4k RPM, and then noted the behavior. After revving to 4k RPMs, the idle then "dips" around 1k to 760 RPM, and shoots back up to around 930-940 RPM. I took a datalog, and you can see this occur starting from 5.6 seconds to 6.9 seconds. I've uploaded my datalog along with my newly revised tune.
I want to say again, thank you for helping me out and giving me advice; I really appreciate it! I think we are getting close to a decent idle!
I want to say again, thank you for helping me out and giving me advice; I really appreciate it! I think we are getting close to a decent idle!
#34
Looks like a really good return to idle, that little dip should be fixed by raising the closed loop idle initial value table a tad so it hits a bit higher than 850 RPM (900ish is good) and then can settle down to your target idle gently.
Just for some insight, I am looking at if your car is currently in closed loop idle during the dip (Status 2 = 128) and it is not, and the IAC Duty % seems to match your closed loop idle initial value table. Raising the area of the table it is referencing (850 RPM X between 170/190CLT) should hold the idle slightly above 850 until closed loop idle kicks in and can bring it down to target. That should make it close to OEM idle, maybe even better. Can't recall how my OEM ECU idled, its been a while.
Just for some insight, I am looking at if your car is currently in closed loop idle during the dip (Status 2 = 128) and it is not, and the IAC Duty % seems to match your closed loop idle initial value table. Raising the area of the table it is referencing (850 RPM X between 170/190CLT) should hold the idle slightly above 850 until closed loop idle kicks in and can bring it down to target. That should make it close to OEM idle, maybe even better. Can't recall how my OEM ECU idled, its been a while.
#35
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
Thanks! So just for a bit of clarification, if I raised these values in the 850 RPM column and experimented with different values in this part of the table, it may help with that small dip I'm experiencing? Sorry, I know its a bit of a noob question.
EDIT: Sorry, just realized what you are saying! You meant the values from 170 to 190 CLT at 850 RPM.
EDIT: Sorry, just realized what you are saying! You meant the values from 170 to 190 CLT at 850 RPM.
#37
I think it's actually the higher cells you want. If you go look at a datalog you can see a "closed loop target RPM" value while even while not in closed loop idle. It is usually higher than the final target idle RPM, probably because of dashpot adder, mine so happens to be 1138 RPM most of the time.
To get it to start out with more duty cycle so it tapers into a lower idle smoother you should adjust whatever cells you have megasquirt targeting. 1138 or the 1100 row in my case.
Truth told, megasquirt probably never uses the 850 RPM cells, or much of anything but the highest RPM rows. It will have entered closed loop at a higher target and so grabbed an initial value to start modifying much earlier. Once it's done that it won't use the table again. You might be able to scale the table so it has more higher RPM cells, too. Might make it more consistent when it's cold and the target RPMs would then usually be a lot higher since the base target idle while cold is usually 1100RPM+
To get it to start out with more duty cycle so it tapers into a lower idle smoother you should adjust whatever cells you have megasquirt targeting. 1138 or the 1100 row in my case.
Truth told, megasquirt probably never uses the 850 RPM cells, or much of anything but the highest RPM rows. It will have entered closed loop at a higher target and so grabbed an initial value to start modifying much earlier. Once it's done that it won't use the table again. You might be able to scale the table so it has more higher RPM cells, too. Might make it more consistent when it's cold and the target RPMs would then usually be a lot higher since the base target idle while cold is usually 1100RPM+
#39
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
I think it's actually the higher cells you want. If you go look at a datalog you can see a "closed loop target RPM" value while even while not in closed loop idle. It is usually higher than the final target idle RPM, probably because of dashpot adder, mine so happens to be 1138 RPM most of the time.
To get it to start out with more duty cycle so it tapers into a lower idle smoother you should adjust whatever cells you have megasquirt targeting. 1138 or the 1100 row in my case.
Truth told, megasquirt probably never uses the 850 RPM cells, or much of anything but the highest RPM rows. It will have entered closed loop at a higher target and so grabbed an initial value to start modifying much earlier. Once it's done that it won't use the table again. You might be able to scale the table so it has more higher RPM cells, too. Might make it more consistent when it's cold and the target RPMs would then usually be a lot higher since the base target idle while cold is usually 1100RPM+
To get it to start out with more duty cycle so it tapers into a lower idle smoother you should adjust whatever cells you have megasquirt targeting. 1138 or the 1100 row in my case.
Truth told, megasquirt probably never uses the 850 RPM cells, or much of anything but the highest RPM rows. It will have entered closed loop at a higher target and so grabbed an initial value to start modifying much earlier. Once it's done that it won't use the table again. You might be able to scale the table so it has more higher RPM cells, too. Might make it more consistent when it's cold and the target RPMs would then usually be a lot higher since the base target idle while cold is usually 1100RPM+
#40
Junior Member
Thread Starter
Join Date: Feb 2017
Location: West Chester, PA
Posts: 114
Total Cats: -1
So something interesting happened. I started the car a few times after it warmed up, and it didn't happen this time. I didn't change anything, but it looks like its idling fine (although a little rough). I wonder what happened that its now stabilized. I guess I will see if it stays that way! Decided to take the car out for some auto tuning with VEAL, and noticed that coasting with no throttle applied while in gear causes the car to kind of jerk back and forth. I also probably need to play around with accel enrich, since it does go very lean when lightly applying throttle.