Notices
MEGAsquirt A place to collectively sort out this megasquirt gizmo

DIYPNP install: inital tuning

Thread Tools
 
Search this Thread
 
Old Nov 10, 2011 | 07:32 AM
  #441  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
Default

Originally Posted by gslender
Sure - just surprised that similar cars can have wildly differing settings for timing given that I can't even get the CAS to support a value of -15 degrees for the trigger angle?
well if i rotated my cas i might need a trigger angle of +16.5
Old Nov 14, 2011 | 06:09 AM
  #442  
Greg G's Avatar
Thread Starter
Junior Member
 
Joined: Jun 2007
Posts: 411
Total Cats: 0
Default

I redid my idle valve test and made a scatter plot:



Fixed timing at 10 for the whole test.

I think everyone should test their own idle valves and figure out the duty range where the change in RPM is linear. And make sure the valve is only working in that area. Otherwise, closed loop calculations will be wrong. The bottom value is important because that will be most involved during idle.

I will retest the lower end of the spectrum. My cams were making it hard to get a stable reading at low RPMs.

Anyway, again, it is a useful test that everyone should do. It also determines your values for minimum and maximum valve duty and the corresponding RPMs, so you can enter realistic values into your setup.
Attached Thumbnails DIYPNP install: inital tuning-1114iactest.png  

Last edited by Greg G; Nov 14, 2011 at 07:44 AM.
Old Nov 14, 2011 | 07:23 AM
  #443  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
Default

but the idle valve isn't linear... and it's affected by temp.
Old Nov 14, 2011 | 07:41 AM
  #444  
Greg G's Avatar
Thread Starter
Junior Member
 
Joined: Jun 2007
Posts: 411
Total Cats: 0
Default

There's a band where it is linear. And yes it's affected by temp...so you add MAT correction

Name:  118matcorrection.png
Views: 144
Size:  152.8 KB
Old Nov 14, 2011 | 08:09 AM
  #445  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default

Originally Posted by Braineack
but the idle valve isn't linear... and it's affected by temp.
Exactly, but a portion of the valve's cycle is linear so you setup the valve's 'closed' position to be above it's lower non-linear region, and vis versa for the open value.

Ergo you're only using the linear portion of the valves operation.
Old Nov 14, 2011 | 09:38 AM
  #446  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
Default

good point. Just make sure that when it's cold you can close the valve enough, the upper range really isn't an issue.
Old Dec 2, 2011 | 06:15 AM
  #447  
Greg G's Avatar
Thread Starter
Junior Member
 
Joined: Jun 2007
Posts: 411
Total Cats: 0
Default

Found a scientific way to determine the correct AC idle up. Did an idle valve test with AC on!



I also did it with headlights, it was plus 5 more duty%!
Old Dec 2, 2011 | 04:10 PM
  #448  
JasonC SBB's Avatar
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Good stuff!
Old Dec 22, 2011 | 04:06 AM
  #449  
Greg G's Avatar
Thread Starter
Junior Member
 
Joined: Jun 2007
Posts: 411
Total Cats: 0
Default

So with 3.2.1 gslender v2 release, idle is now pretty much solid.



I just don't understand why the AC electrical load has a bigger impact than the fan load, when the fan voltage drop is deeper! Not really a big deal, since it's a 30-40 rpm drop for a split second...but we've gotten this far by me not being satisfied eh?
Attached Thumbnails DIYPNP install: inital tuning-1217solididle.png  
Old Dec 22, 2011 | 10:21 AM
  #450  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
Default

wow. congrats!
Old Dec 22, 2011 | 11:13 AM
  #451  
JasonC SBB's Avatar
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Nice idle! It's come a looong way. In the beginning of the thread, folks said, "can't idle an a/w s/c setup, you have to get a dual throttle body!"
Old Dec 22, 2011 | 06:52 PM
  #452  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default

What Jason said, epic progress fellah
Old Mar 10, 2012 | 10:23 PM
  #453  
Greg G's Avatar
Thread Starter
Junior Member
 
Joined: Jun 2007
Posts: 411
Total Cats: 0
Default

Bump for 2012!

Latest gslender FW here:
http://www.msextra.com/forums/viewto...p?f=91&t=44289

This is what my MAP, MAPDOT, Tps, and tpsDOT look like with the new oversampling feature turned on, lag factors at 100%! Tested a prerelease version without the extra tpsDOT smoothing- so smooth as it may look now, it will get even smoother! The dynamic dashpot seems to be working- it ramps down to the IVT table value, allowing a smoother transition from throttle lift to CL idle.



Adaptive PID reduction allows us to define a zone above and below target, within which a reduction factor is applies to the values of P, I, and D. This factor is set in a 2x5 curve. This allows the user to set aggressive PID values for a strong response far from target, but ramp it down as target is approached. Works very well in combination with AIA. The working theory is that, near target, the idle valve response is too coarse and too slow, so it's better kept relatively quiet, letting Adaptive Idle Advance do the fine tuning.

For those clamoring for an absolute dead zone, you can do just that!

Another nice feature is you can set it up to have an asymmetric response, more aggressive below target.

This log shows the effect of running 0 reduction factor- valve is much quieter than without. Sorry, the small movements are from my voltage correction, it should be even flatter. I am also running a rather small window size, maybe it should be larger fore more transition/ramp.



Status 5 indicates the value of P (so we can log Adaptive PID Reduction)- for the 50%, you see that the value of P (40) is reduced to 20 (at the bottom of the V). For the reduction factor of zero, we actually end up with a P value of zero at target! The width of the V and the clustering of the dots at the valley show how closely the RPMs stick to target. The red line up top shows no PID reduction applied.



Another small but nice improvement is the separation of the battery v from the temperature sensor filters (MAT & CLT). This lets me use heavier smoothing on CLT and MAT, and less on the battery voltage (for less lag and marginally faster --every bit helps-- voltage correction response.)
Attached Thumbnails DIYPNP install: inital tuning-310tpsaverage.png   DIYPNP install: inital tuning-310pidred0vs50vs100scatter.png  
Old Apr 14, 2012 | 02:21 AM
  #454  
Greg G's Avatar
Thread Starter
Junior Member
 
Joined: Jun 2007
Posts: 411
Total Cats: 0
Default

Beating that dead horse dead dead dead!

Here's where I am now.


Here's a pic of MS2/Extra 3.3.0b gslender 2.4.5 (prerelease), and how it all comes together to produce this OEM quality idle, even on my worst-case scenario setup
Old Apr 14, 2012 | 09:47 AM
  #455  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
Default

pretty impressive considering your setup, i think that speaks a lot.
Old Apr 14, 2012 | 10:31 AM
  #456  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default

Originally Posted by Greg G
Beating that dead horse dead dead dead!

Here's where I am now.


Here's a pic of MS2/Extra 3.3.0b gslender 2.4.5 (prerelease), and how it all comes together to produce this OEM quality idle, even on my worst-case scenario setup
a.mazing.

Great job Greg
Old Apr 14, 2012 | 11:58 AM
  #457  
JasonC SBB's Avatar
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Great work G & G!

It's a "nonlinear" PID multiplier, and nonlinear advance correction, not "adaptive".

Adaptive control systems self-learn and adjust their parameters on-the-fly as the system ages or otherwise changes:

http://en.wikipedia.org/wiki/Adaptive_control

Adaptive control is the control method used by a controller which must adapt to a controlled system with parameters which vary, or are initially uncertain. For example, as an aircraft flies, its mass will slowly decrease as a result of fuel consumption; a control law is needed that adapts itself to such changing conditions.

Last edited by JasonC SBB; Apr 14, 2012 at 12:31 PM.
Old Apr 14, 2012 | 06:03 PM
  #458  
gslender's Avatar
Junior Member
iTrader: (1)
 
Joined: Jun 2011
Posts: 178
Total Cats: 3
From: Australia
Default

Originally Posted by JasonC SBB
Great work G & G!

It's a "nonlinear" PID multiplier, and nonlinear advance correction, not "adaptive".

Adaptive control systems self-learn and adjust their parameters on-the-fly as the system ages or otherwise changes:

http://en.wikipedia.org/wiki/Adaptive_control
Thanks Jason. We won't put you in charge of marketing. I think we just took the literal meaning of the word, which is its ability to have advance values change and adjust in accordance to the changing rpm error.

G
Old Apr 15, 2012 | 12:53 PM
  #459  
JasonC SBB's Avatar
Elite Member
 
Joined: Jul 2005
Posts: 6,420
Total Cats: 84
Default

heheh, in which case, ALL feedback loops are adaptive!!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
tazswing
Race Prep
20
Oct 3, 2015 11:04 AM
The Gleas
MEGAsquirt
3
Oct 1, 2015 09:30 AM
viriiguy
General Miata Chat
5
Sep 28, 2015 07:39 PM




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