DIYPNP install: inital tuning
#262
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
While waiting for the updated code, I went ahead and added a second air solenoid wired to turn on with AC signal (again, the AC compressor is on a 1 second delay relay, effectively giving me a feedforward mechanism of sorts).
Now the extra air is more pronounced. From idle of 1050, when AC switch is turned on, the 2 solenoids raise the idle to ~1290, AC clutch engages. RPMs drop to ~900-1000 with just 1 big dip. Minimal overshoot, settles at ~1050-1100 idle. Fairly solid. And I haven't tuned the PID settings yet!
![Name: 620abvalves.png
Views: 60
Size: 19.9 KB](https://www.miataturbo.net/attachments/megasquirt-18/188088d1501218218-diypnp-install-inital-tuning-620abvalves.png)
This picture shows the difference with the 2 extra air solenoids vs the single solenoid (ghost lines). Not the stability of the RPMs and the stark difference in idle valve duty!
![Name: 6201vs2valves.png
Views: 74
Size: 32.1 KB](https://www.miataturbo.net/attachments/megasquirt-18/188089d1501218218-diypnp-install-inital-tuning-6201vs2valves.png)
The idle valve duty only responds to the initial big dip, then is pegged at minimum duty, so it's actually now fighting to bring the idle down, which is much better than the other way! I think my hysteresis settings should be reduced, that's probably another factor. The idle variation almost equals my hysteresis settings...
I think I can safely reduce the idle target to 900 now...turning on the headlights will still upset the balance, but I expect the improved code to take care of that, and perhaps even reduce the initial droop even further...
Now the extra air is more pronounced. From idle of 1050, when AC switch is turned on, the 2 solenoids raise the idle to ~1290, AC clutch engages. RPMs drop to ~900-1000 with just 1 big dip. Minimal overshoot, settles at ~1050-1100 idle. Fairly solid. And I haven't tuned the PID settings yet!
![Name: 620abvalves.png
Views: 60
Size: 19.9 KB](https://www.miataturbo.net/attachments/megasquirt-18/188088d1501218218-diypnp-install-inital-tuning-620abvalves.png)
This picture shows the difference with the 2 extra air solenoids vs the single solenoid (ghost lines). Not the stability of the RPMs and the stark difference in idle valve duty!
![Name: 6201vs2valves.png
Views: 74
Size: 32.1 KB](https://www.miataturbo.net/attachments/megasquirt-18/188089d1501218218-diypnp-install-inital-tuning-6201vs2valves.png)
The idle valve duty only responds to the initial big dip, then is pegged at minimum duty, so it's actually now fighting to bring the idle down, which is much better than the other way! I think my hysteresis settings should be reduced, that's probably another factor. The idle variation almost equals my hysteresis settings...
I think I can safely reduce the idle target to 900 now...turning on the headlights will still upset the balance, but I expect the improved code to take care of that, and perhaps even reduce the initial droop even further...
Last edited by Greg G; 06-20-2011 at 01:42 AM.
#263
Boost Czar
![](/mt2011/images_td/ranks/supporter1.gif)
![](/mt2011/images_td/ranks/admin.png)
iTrader: (62)
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,688
Total Cats: 4,113
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
now you need to time the solenoid opening better, it's happening too early. You want to make the leak start as the a/c opens up so they cancel each other out.
the second ghosted log makes me wonder about your AFRs, the spark angle and idle valve are locked solid, but its hunting around like a bitch still...makes me think the fuel needs fine tuning.
the second ghosted log makes me wonder about your AFRs, the spark angle and idle valve are locked solid, but its hunting around like a bitch still...makes me think the fuel needs fine tuning.
#266
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
The good news is, I got the changes made in ms3 and ms2.
More good news is I tested them in ms3 and they work.
The bad news is I left my USB->Serial converter that I use with the MS2 at work all weekend, and I'm not going back to the office until tomorrow. So I should have the ms2 changes tested tomorrow evening.
Ken
More good news is I tested them in ms3 and they work.
The bad news is I left my USB->Serial converter that I use with the MS2 at work all weekend, and I'm not going back to the office until tomorrow. So I should have the ms2 changes tested tomorrow evening.
Ken
#270
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
![Name: 620iatidle.png
Views: 82
Size: 120.0 KB](https://www.miataturbo.net/attachments/megasquirt-18/188073d1501218192-diypnp-install-inital-tuning-620iatidle.png)
Attached are the relevant logs for your perusal. And the MSQ. Lemme know if there's anything to tweak. Quick before Ken posts the updated MS3 code and you get all distracted on me
![Thefinger](https://www.miataturbo.net/images/smilies/thefinger.gif)
#271
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
The good news is, I got the changes made in ms3 and ms2.
More good news is I tested them in ms3 and they work.
The bad news is I left my USB->Serial converter that I use with the MS2 at work all weekend, and I'm not going back to the office until tomorrow. So I should have the ms2 changes tested tomorrow evening.
Ken
More good news is I tested them in ms3 and they work.
The bad news is I left my USB->Serial converter that I use with the MS2 at work all weekend, and I'm not going back to the office until tomorrow. So I should have the ms2 changes tested tomorrow evening.
Ken
Thanks for the quick work on the fix!
![Makeout](https://www.miataturbo.net/images/smilies/makeout.gif)
#275
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
![Name: 620pwidle.png
Views: 81
Size: 97.5 KB](https://www.miataturbo.net/attachments/megasquirt-18/188057d1501218164-diypnp-install-inital-tuning-620pwidle.png)
![Idea](https://www.miataturbo.net/images/smilies/sign0184.gif)
Here's the stable one:
![Name: 620ve3idle2.png
Views: 76
Size: 186.7 KB](https://www.miataturbo.net/attachments/megasquirt-18/188058d1501218164-diypnp-install-inital-tuning-620ve3idle2.png)
Here's the one with oscillations. Note the 4 cells used to calculate VE compard to the previous one using 2 cells.
![Name: 620ve3idle.png
Views: 74
Size: 184.7 KB](https://www.miataturbo.net/attachments/megasquirt-18/188059d1501218164-diypnp-install-inital-tuning-620ve3idle.png)
So do I make the lower row richer, or the upper row leaner, or average them out? Any other areas in the VE table standing out? This is VEtable 3, which is used when AC is on (hardware trigger along with spartktable 3). EDIT: I think this shows I need to richen the lower rows.
![Name: 620ve3idle3.png
Views: 75
Size: 187.1 KB](https://www.miataturbo.net/attachments/megasquirt-18/188060d1501218164-diypnp-install-inital-tuning-620ve3idle3.png)
Hmm..so my wanting finer resolution in the idle zones actually hurt me in this case! I should pay more attention to the transitions between idle cells, since there is less room for the software to interpolate the values between cells.
Last edited by Greg G; 06-20-2011 at 06:34 PM.
#276
Boost Czar
![](/mt2011/images_td/ranks/supporter1.gif)
![](/mt2011/images_td/ranks/admin.png)
iTrader: (62)
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,688
Total Cats: 4,113
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
whats odd is it's showing it's fueling at 49-50% VE, but your maps in that area doesn't ask for that amount.
but i realize you're oscillations, now looking at the logs, aren't bad at all.
looks like we are talking +/-50RPM, min the and max RPM is really exaggerating the oscillation. Had that been on a normal log I wouldn't even had seen it.
but i realize you're oscillations, now looking at the logs, aren't bad at all.
looks like we are talking +/-50RPM, min the and max RPM is really exaggerating the oscillation. Had that been on a normal log I wouldn't even had seen it.
#277
![Default](https://www.miataturbo.net/images/icons/icon1.gif)
The reason I decided to switch VE tables was to get the correct fueling at idle for the spark tables. Previously, switching just the spark tables, I was a bit rich with the AC off and a bit lean with the AC on...
![](https://www.miataturbo.net/images/smilies/smile.gif)