MEGAsquirt A place to collectively sort out this megasquirt gizmo

Is your CL Idle Hit or Miss?

Old 06-02-2015, 09:22 AM
  #1  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default Is your CL Idle Hit or Miss?

For MS2 and MS3. Definitely applies to MS3 FW 1.3.4, and earlier.

Does your engine "randomly" not catch closed loop idle?
Sometimes after start, or just going to idle, does it sometimes drop RPM reall low or stall?

The problem may be the IDLE Delay(s) setting. This setting, (see pic below) must be set to at least "2", [not "0" or "1"] to function reliably.

According to muythaibxr over on MSEXTRA, this is a timing issue in the code.



Yeah to easier Image Upload
Attached Thumbnails Is your CL Idle Hit or Miss?-80-capture_75a43629978f32c98ec5f98820de7efa5c5a876a.jpg  
DNMakinson is offline  
Old 06-02-2015, 09:47 AM
  #2  
Junior Member
 
Chowcow's Avatar
 
Join Date: Jan 2012
Location: Calgary, AB
Posts: 151
Total Cats: -12
Default

I think I was experiencing this problem when I had it set below 3. Now i'm at 4 or 5 and it works well!
Chowcow is offline  
Old 06-02-2015, 09:50 AM
  #3  
VladiTuned
iTrader: (76)
 
18psi's Avatar
 
Join Date: Apr 2008
Posts: 35,821
Total Cats: 3,481
Default

YES!!

So wait, it needs to e HIGHER? ughhhhhhhhhhhhhhhhhhhhhhhhh

And here I've been messing with this for weeks thinking the lower the better, and also trying every setting under the sun trying to eliminate the "dip".

Basically with mine it happens every now and then. Not all the time, and not even often. At VERY specific situations it will either drop down to like 500-600 (never stalls), then "catches" itself and goes back up.

Or

It will drop down to 100rpm over target like it's supposed to, then slowly dip to 500-600, then "catch" about 1-2 seconds later.

It never stalls, and happens so randomly that I pretty much gave up trying to fix it cause there is almost no rhyme/reason to it, just does it once in a while and then is perfect each time after.

Thank you David, I will try this tonight
18psi is offline  
Old 06-02-2015, 02:12 PM
  #4  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default

Make sure you spend time on your initial duty table. Also try switching it to a MAT axis.
arghx7 is offline  
Old 06-02-2015, 03:08 PM
  #5  
VladiTuned
iTrader: (76)
 
18psi's Avatar
 
Join Date: Apr 2008
Posts: 35,821
Total Cats: 3,481
Default

So do you like initial duty more than "use last known"?
18psi is offline  
Old 06-02-2015, 08:32 PM
  #6  
VladiTuned
iTrader: (76)
 
18psi's Avatar
 
Join Date: Apr 2008
Posts: 35,821
Total Cats: 3,481
Default

*update: tried it, it seems to work

That's the good part. The bad part is that it bumped up my rpm quite a bit, so it was holding really high revs, so I had to decrease the valve dashpot adder.

The other bad part is now there's a VERY distinct transition between when it's holding just above target and then easing into the target. Like you'll let the rpm drop, it will hit 100rpm over, hold, and then BAM the drop from 950 rpm to 850 (my idle target) is really strong such that you can feel it.

I finessed a few things including getting the CL idle ve table and actual ve table to be closer in values to each other, adn that seemed to help.

More feedback soon as I try this out over the next few days.
18psi is offline  
Old 06-02-2015, 09:01 PM
  #7  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default

What is your PID Ramp to Target Times(s)? That should control how quickly, after the wait, that PID drives from the settle point to the target RPM.
DNMakinson is offline  
Old 06-02-2015, 09:06 PM
  #8  
VladiTuned
iTrader: (76)
 
18psi's Avatar
 
Join Date: Apr 2008
Posts: 35,821
Total Cats: 3,481
Default

I've tried everything from 2 (like you) to 10, and yes it changes the time, but still doesn't change the actual transition. What seemed to change the transition was lowering the dashpot adder to the valve and not raising the pid delay as high as 5, but keeping it at 3 max. Lastly I think I may have had an unrelated issue (the ve table was quite a bit higher than the idle ve table, and the shift during the switch would cause AFR to jump from 13.5-14.7). Again, maybe it's just my own ve table(s) issue.

Either way, now I can't get it to dip no matter what, which is very promising
We'll see
18psi is offline  
Old 07-10-2015, 08:54 PM
  #9  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default

<p>
Originally Posted by arghx7
Make sure you spend time on your initial duty table. Also try switching it to a MAT axis.
</p><p>I have switched over to MAT. Here are my settings:</p><p><img src="http://cimg2.ibsrv.net/gimg/www.miataturbo.net-vbulletin/806x727/80-idle_targets_da798da3bba9d8d5277334430543481f57761 bba.png" title="" /><br /><br />This is working well for me. I set the Initials with heater fan on high and lights on, roughly maximum load, to be able to catch. Then with low load, RPM settles a little higher until CL brings it down.</p><p>Also running 9% adder on A/C (with 275 RPM add because I like it to work at traffic lights)&nbsp;and 3.5% dashpot.</p><p>&nbsp;</p>
DNMakinson is offline  
Old 07-11-2015, 06:45 AM
  #10  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default Is your CL Idle Hit or Miss?

Good to hear
arghx7 is offline  
Old 07-16-2015, 09:18 AM
  #11  
Senior Member
 
elior77's Avatar
 
Join Date: Nov 2012
Location: Israel
Posts: 650
Total Cats: -481
Default

Originally Posted by arghx7
Make sure you spend time on your initial duty table. Also try switching it to a MAT axis.
+++++1
elior77 is offline  
Old 07-16-2015, 10:55 AM
  #12  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,484
Total Cats: 4,076
Default

I never had issues cause I sepnt more than 3 minutes "tuning".


fun fact: I took this video in the drive through of McDonalds.
Braineack is offline  
Old 07-16-2015, 11:41 AM
  #13  
VladiTuned
iTrader: (76)
 
18psi's Avatar
 
Join Date: Apr 2008
Posts: 35,821
Total Cats: 3,481
Default

Fun fact: it's easy to talk like a boss when you haven't even tuned a miata in years.
Whone 'nother ball game when it's flawless 99% of the time and has weird inconsistencies every once in a blue moon.
18psi is offline  
Old 07-16-2015, 11:53 AM
  #14  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,484
Total Cats: 4,076
Default

i do quite enjoy it up here...
Braineack is offline  
Old 07-17-2015, 07:45 AM
  #15  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

<p>
Originally Posted by 18psi
Whone 'nother ball game when it's flawless 99% of the time and has weird inconsistencies every once in a blue moon.
</p><p>&nbsp;</p><p>+11ty billion</p>
richyvrlimited is offline  
Old 07-17-2015, 08:13 AM
  #16  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

<p>I dunno if anyone is interested, but I wrote this guide for another forum for tuning idle on MS3</p><p>&nbsp;</p><p>It's pretty wordy though, and no TL<img alt="" src="images/smilies/biggrin.gif" title="big grin" />R, apologies for that.</p><p>&nbsp;</p><p>
</p><p><strong>Tuning Idle MS3 &ndash; First steps &amp; Info</strong></p><p>First off before you tune your&nbsp;idle&nbsp;valve, you need to ensure that your VE (fuel) and Ign (timing) tables are at a bare minimum sensible.</p><p>&nbsp;</p><p>By sensible I mean in the idle and fast idle, (fast idle being up to 3000rpm when manipulating the throttle when stationary), areas are hitting a stable AFR. If you want to pass a British MOT then this AFR with petrol needs to be 14.7:1 (or Lambda 1 for any&nbsp;fuel&nbsp;type&nbsp;if you prefer using Lambda).</p><p>&nbsp;</p><p>I&rsquo;m making some assumptions in this guide.</p><p>You&rsquo;re using a basemap from DIYAutotune/MSLabs and can reliably enter closed loop idle</p><p>You have a dashboard on TunerStudio with appropriate indicators setup so you know when you enter closed loop idle.</p><p>Your car starts and runs etc, but your idle isn&rsquo;t &lsquo;perfect&rsquo;</p><p>&nbsp;</p><p>I recommend using the&nbsp;<em>initial values</em>&nbsp;table for closed loop. I used to recommend the last known good value setting. But after extensive use found it&rsquo;s flaws irritating, &nbsp;I now prefer to use the initial values table. If you prefer to use the last known setting just skip the section on tuning the initial values table.</p><p>&nbsp;</p><p><em>A stable AFR and Ignition timing is essential for a stable idle</em>. Unstable AFRs cause the engine speed to fluctuate, as does raising and lowering the ignition timing. You&rsquo;ll end up in a catch22 situation with the closed loop PID routine trying to stabilise a naturally wavering idle &ndash; The PID routine will never win this fight as the beed of air reacts much slower than changing fuel &amp; altering timing.</p><p>&nbsp;</p><p>That&rsquo;s not the point of closed loop idle. CL it&rsquo;s there to maintain a consistent idle speed due to external variables i.e. temperate, engine load etc.</p><p>&nbsp;</p><p>The&nbsp;idle&nbsp;valve&nbsp;should only be used to compensate for changing external conditions. It shouldn&rsquo;t be expected to keep a badly tuned engine running smoothly.</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><strong>First Steps</strong></p><p>I have found that the best way to tune this is to first take the&nbsp;idle&nbsp;valve&nbsp;moving about under closed loop mode out of the equation. You can do this a number of ways, this is one way:</p><p>Switch the&nbsp;idle&nbsp;valve&nbsp;to &lsquo;Open loop (Warmup)&rsquo; mode.</p><p>Start the car and warm it up.</p><p>As the car warms up you&rsquo;ll need to adjust the open loop table to keep the idle at an appropriate speed.</p><p>Once the car is warmed up, remove as much electrical load as possible, i.e. turn off the interior fan, radio, any lights etc.</p><p>If you have A/C make sure that&rsquo;s turned off.</p><p>&nbsp;</p><p>If you find the idle is too high/low in open loop mode then adjust the open loop curve until it&rsquo;s close to what you want your target idle to be. I&rsquo;d suggest aiming for 850 &ndash; 900rpm</p><p>&nbsp;</p><p>If your idle is hunting at this point the cause is either the fuel or ignition timing, the most likely cause is fuel. We know it can only be one of these two things as we&rsquo;ve deliberately set the&nbsp;idle&nbsp;valve&nbsp;to a static position</p><p>&nbsp;</p><p>Now go to your VE table and in the 4 bins which are being used &ndash; or if the idle is hunting what they should be &ndash; set them to the same or very similar values at a rich-ish mixture i.e. an AFR or 13:1.</p><p>&nbsp;</p><p>You should find that the idle stabilises. If the idle is still hunting, take a look at your&nbsp;Ignition&nbsp;advance&nbsp;table, chances are you need to set the 4 bins that you idle in to the same&nbsp;ignition advance.</p><p>&nbsp;</p><p>I strongly recommend setting your&nbsp;ignition&nbsp;advance&nbsp;when you&rsquo;re idling to 10deg BTDC. The reasons for this will become obvious later, but briefly you need to leave yourself a &lsquo;reserve&rsquo; of ignition timing to catch additional loads.</p><p>&nbsp;</p><p>Typical idle map is around 30Kpa &ndash; if you&rsquo;re idling significantly different to this you&rsquo;re either using IRTB&rsquo;s or you have a serious vacuum leak.</p><p>&nbsp;</p><p>For reference, this is my personal VE &amp; Ign table.</p><p>&lt;insert picture example of timing &amp; fuel table around idle&gt;</p><p>&nbsp;</p><p>Now you should have a nice steady idle when the car is warm. Before we continue, we need to check the&nbsp;idle valve&nbsp;settings are correct for your car. The&nbsp;idle valve&nbsp;on an MX5 is a PWM valve, (Pulse Width Modulation), that means that it&rsquo;s turned on and off at various speeds to bleed air into the engine. 0% Duty Cycle (DC) means the valve isn&rsquo;t being actuated at all and 100% means it&rsquo;s just on. The valve will generally not start letting air in until around 30%DC and will fail to add additional air around 70%.</p><p>&nbsp;</p><p>Use the Idle test mode to work out what the closed and open values are. Simply start the test at 40%DC and then lower it until the idle speed stops dropping, that&rsquo;s your closed idle DC number, raise it until the idle speed stops increasing, that&rsquo;s your open idle DC number.</p><p>&nbsp;</p><p>Whilst at this point, you need to ensure that the car will still idle and not stall when at the closed idle DC%, do this by turning the bleed valve on the&nbsp;throttle&nbsp;body&nbsp;so the car is at about 450 &ndash; 500rpm with the idle DC at the closed value.</p><p>Once completed exit the idle test mode.</p><p>&nbsp;</p><p>&nbsp;</p><p>The next job is to ensure that the engine can cope with additional loads without any input from the closed loop idle code. The more the engine can look after itself, the less work the closed loop code has to do and the nicer your engine will behave.</p><p>&nbsp;</p><p><em>Typically you&rsquo;d aim for Stoich (14.7:1 with petrol) at idle, however depending on what injectors you have fitted though this may not be possible. If you find you have idle instability as you reach 14.7:1 but it&rsquo;s fine at richer mixtures, you may have to settle for a slightly richer idle. Feel free to lean out to stoich at this point if you wish.</em></p><p><em>N.B. if you have stock injectors fitted, a stable Stoich idle is perfectly possible to achieve, if you have old style injectors i.e. RX7 (Bosch EV1&rsquo;s), then this will be difficult. Running a slightly faster idle can help immensely i.e. 1000rpm and this is still a valid idle speed for an MOT emissions test. Fully sequential injection also helps, so if you have an early 1.6, and EV1 injectors it&rsquo;s well worth the modifications to move to fully sequential injection.</em></p><p>&nbsp;</p><p><strong>Idle RPM Timing Correction</strong></p><p>MS3 has a nice feature called &lsquo;Idle RPM Timing Correction&rsquo; this manipulates the ignition timing to raise/lower the idle speed to keep it hitting the closed loop idle speed target. Engines react much faster to ignition changes than to airflow changes, so by using this you can catch any additional loads much better than relying solely on the&nbsp;idle valve.</p><p>&nbsp;</p><p>This is why it&rsquo;s important to not set the idle timing to a high number; if you do you don&rsquo;t have any timing advance left to work with. Additionally high timing at idle can cause high CO emissions during an MOT (I think it&rsquo;s CO emmissions).</p><p>&nbsp;</p><p>You need to configure this setting so that it engages at a different time to your closed loop idle PID loop. If they engage at the same time, they both react to what the engine needs to hit the target idle which can cause undesirable behaviour. i.e. don&rsquo;t use PID idle activation, use the setting &lsquo;use normal activation&rsquo;</p><p>&nbsp;</p><p>The setting is found under the &lsquo;Idle Advance Settings&rsquo; screen. The actual table has its own screen.</p><p>&nbsp;</p><p>&lt;Insert picture of Idle RPM Timing Correction settings&gt;</p><p>&nbsp;</p><p>Tuning this is easy, once the option is turned on you&rsquo;ll notice an indicator on TunerStudio go green to indicate the setting is engaged. If it&rsquo;s not tweak the activation settings until it engages. If you don&rsquo;t have an indicator in TS, add one!</p><p>Now with the engine idling, add some load, i.e. turn the interior fans on. You&rsquo;ll note that the engine speed drops. Adjust the curve so at that load more&nbsp;ignition&nbsp;advance&nbsp;is added. You&rsquo;ll notice that the revs rise back to the target idle. Keep adding more loads and tweaking the timing.</p><p>&nbsp;</p><p>Add and remove loads suddenly and watch as the engine responds. You should be able to hit your target rpm with no changes in airflow and very little idle speed movement when adding and removing small/medium loads.</p><p>If you want to test heavier loads, try holding the power&nbsp;steering&nbsp;at the&nbsp;lock stops. If you have&nbsp;electric&nbsp;windows, try holding 1 or both switches up when the windows are already fully up.</p><p>&nbsp;</p><p>Also try revving the car up, then turning the fans on full and turning on your headlights, then letting the engine return to idle. Correctly tuned the car should not stall and any dips below target rpm will be minimized.</p><p>&nbsp;</p><p><strong><em>Now</em></strong>&nbsp;you can tune the closed loop&nbsp;idle valve.</p><p>
</p>
richyvrlimited is offline  
Old 07-17-2015, 08:13 AM
  #17  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

<p>x2 posts as it hits the word limit</p><p>&nbsp;</p><p>
</p><p><strong>Tuning the PID routine</strong></p><p>Turn on closed loop idle</p><p>Turn on last known good value &ndash; I just use this for tuning the PID routine when the initial values table isn&rsquo;t configured yet.</p><p>Set target idle values you&rsquo;re happy with (suggest 850 &ndash; 900 when warm, ~1400 when stone cold)</p><p>Ensure you have an indicator on your TunerStudio Dashboard to indicate when CL PID is active</p><p>Set the Tuning mode to Advanced</p><p>Set the P and I values to 100, set the D to zero.</p><p>Set the Tuning mode to basic</p><p>Now move the slider to close to zero, and slowly move it to higher numbers until your idle hits your target rpm. You&rsquo;ll find that when you&rsquo;ve gone too far the idle will oscillate, just back off the sensitivity slider in this case.</p><p>Once you&rsquo;re happy with the sensitivity, blip the throttle and let the idle settle again to make sure it PID re-engages and your idle returns to target.</p><p>Set the tuning mode to Advanced.</p><p>Now start adding load to your engine, i.e. if you have PAS turn the&nbsp;steering&nbsp;wheel, for lots of load, hold it against the&nbsp;lock&nbsp;stops.</p><p>&nbsp;</p><p>If the idle takes a long time to react then adjust the &lsquo;I&rsquo; until it reacts how you&rsquo;re happy. You&rsquo;ll likely need to add &lsquo;P&rsquo; as well.</p><p>&nbsp;</p><p>If you find that you can get the idle to react fast, but remains unstable adding some D will help to dampen the response.</p><p>This is all a balancing act, but you don&rsquo;t need it to be hyper sensitive to changes. If you have it that sensitive then changing external conditions will cause you grief.</p><p>&nbsp;</p><p>Try blipping the throttle and seeing where the idle settles to before entering the PID loop, you want it a few 100rpm higher than the target. The&nbsp;Dashpot&nbsp;adder is what adds this additional idle DC%</p><p>&nbsp;</p><p>I&rsquo;d recommend having the PID Ramp To Target Time at 2 seconds and the PID Delay at least 1 second, any faster and IME the idle can misbehave by dropping the idle DC too far.</p><p>&nbsp;</p><p>Leaving the last known good value on is your choice, but I prefer the initial values table now as the last known value can mean high idles when the last known value was from starting the car when cold etc.</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><strong>Tuning the Closed Loop initial values table</strong></p><p>The first thing you need to do is to ascertain what idle DC% does what with relation to the engine speed, you can do this by dataloging the car idling from cold . Then load the log and in MLV use the scatterplot function to map idle DC against intake temp. Where you have lots of hits for each temp is the DC number you want to enter into the initial values table</p><p>Or you can do it manually</p><p>&nbsp;</p><p>First change the&nbsp;idle valve&nbsp;to &lsquo;Open loop (Warmup)&rsquo;, then start your car, you need to be quick to get the cold values, so it might take a few days of cold starts if you&rsquo;re slow!</p><p>&nbsp;</p><p>Next go to the&nbsp;idle valve&nbsp;test mode.</p><p>&nbsp;</p><p>Keep open in a window the &lsquo;Closed loop idle initial values&rsquo;</p><p>&nbsp;</p><p>Set the PWM Idle Duty% to a low-ish figure i.e.35% and start the test. This will set the&nbsp;idle valve&nbsp;to&nbsp;35%DC.</p><p>&nbsp;</p><p>Not look at the coolant temp and move the&nbsp;idle valve&nbsp;to a DC that&rsquo;s close to the target idle speed for that temp, once you have the number enter it in the initial values table.</p><p>&nbsp;</p><p>Keep doing this until you have the initial values table filled out. You might need to wait for the weather to get really cold to get some values, but take a &lsquo;best guess&rsquo; for now.</p><p>&nbsp;</p><p>Once complete you can end the&nbsp;idle valve&nbsp;test.</p><p id="99">
</p>
richyvrlimited is offline  
Old 08-21-2015, 01:52 AM
  #18  
Newb
 
jtsoldier's Avatar
 
Join Date: Sep 2014
Location: Christchurch, NZ
Posts: 27
Total Cats: 1
Default

Oh my ******* God...

Between DNMakinson's posts (including switching to MAT initial duty table from last known good) and richyvrunlimited's guide (actually, I googled the original just for readability's sake - credit to Mr Slow) my idle just automagically turned from being a surging piece of **** to something gloriously reliable (exaggeration: PID could still use work).

Put some time into cold starts idle duty the following night (it's winter here), and managed to get that quite reliable too.

May of killed two very big birds.

Cheers guys.
jtsoldier is offline  
Old 09-08-2015, 05:34 PM
  #19  
Retired Mech Design Engr
Thread Starter
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 856
Default Possible Resolution?

<p>
Originally Posted by Braineack
i do quite enjoy it up here...
</p><p>Much as I hate to encourage Brain, I did play (work really hard) a bit more. Thought, why have the delays at all?&nbsp;So, I got the MAT table pretty good, so CL caught even with lights and fan on high, then set Idle Delay and Delay to target both to zero. Now, instead of RPM coming to 1100, staying there 3-4 seconds and then moving to 800; things just sort of move at varying quickness right down to the target. Sometimes (I suppose due to no Idle Delay, CL will start at about 1500 RPM, but no matter, it still moves right down to target. I suppose I could fool it by staying in gear until 1000 RPM and have the CL try to regulate speed... well I have tried that, and things still don't mess up.</p><p>And the circle is complete.</p>
DNMakinson is offline  
Old 09-09-2015, 05:19 AM
  #20  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

<p>I'd undo that circle and add a delay in of 1 second. There's a bug which will mean that the initial value isn't used and you'll either suffer from awful idle dip, or it'll just stall.</p><p>See post number 1 in this very thread.</p><p>For reference, I used to do the exact same thing and ran with delays of zero. I've since added in small delay of 1 for both as the stalls got tiresome</p>
richyvrlimited is offline  

Thread Tools
Search this Thread
Quick Reply: Is your CL Idle Hit or Miss?



All times are GMT -4. The time now is 04:42 PM.