Notices
ECU Flash

MAP averaging

Thread Tools
 
Search this Thread
 
Old May 16, 2008, 07:31 PM
  #16  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
yeah I was going to...

I figured it would change the WDGC to quickly otherwise...
Old May 16, 2008, 08:52 PM
  #17  
EvoM Guru
iTrader: (50)
 
mrfred's Avatar
 
Join Date: Mar 2006
Location: Tri-Cities, WA // Portland, OR
Posts: 9,675
Received 128 Likes on 96 Posts
Originally Posted by tephra
yeah I was going to...

I figured it would change the WDGC to quickly otherwise...
This might go back to how you thinking of doing averaging. Were you thinking of averaging the MAP sensor reading from each cycle through the ADC routine, or were you perhaps thinking of measuring the MAP sensor several times each time the CPU traverses the ADC routine? Maybe keep the original ADC read, and then add another ADC read in your add-on code. Then for each time through the code, you'd have two reads of the MAP sensor.
Old May 16, 2008, 09:40 PM
  #18  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
yeah well my averaging routine has the last 3 ADC readings stored in RAM.. not hard to expand that..

of course a lot of this will be trial and error - but my feeling is that the WG needs probably 1/10 sec to react to wgdc changes..
Old May 17, 2008, 04:10 AM
  #19  
Evolved Member
 
jcsbanks's Avatar
 
Join Date: May 2006
Location: UK
Posts: 2,399
Likes: 0
Received 5 Likes on 4 Posts
It depends on whether you think the "noise" is electronic/ADC or whether it is the pulsation due to the airflow from the inlet manifold through each inlet valve.
Old May 17, 2008, 04:19 AM
  #20  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
bit of both...

if you just so happen to sample the MAP when the pressure drops then you dont get a true representation of whats happening.

so if we avg it out a bit then that will smooth things a little..
Old May 17, 2008, 05:11 AM
  #21  
Evolved Member
 
jcsbanks's Avatar
 
Join Date: May 2006
Location: UK
Posts: 2,399
Likes: 0
Received 5 Likes on 4 Posts
You'll certainly need a slower response time and can get away with much more filtering if you use it to control boost rather than for fuelling/timing for transients.

Imagine a standard car at peak power running say 1500Hz on the MAF sensor. With an exponential averaging over 10 ticks then you still have a rate of 150Hz which is quicker than one engine revolution even at the RPM limiter.

For a boost controller I would suggest you want to update it every time the solenoid duty cycle is complete, otherwise you're wasting calculations. On most ECUs I've come across this is about 15Hz, so you do have ample filtering opportunities running it off the slow main loop.
Old May 17, 2008, 06:32 AM
  #22  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
mmm well once I start in ernest I will experiment with different loop timing...
Old May 24, 2008, 05:29 AM
  #23  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
right back on this topic. I hope to include this in my next patch, which will be out soon and have a this, 2byte->1byte load mod, as well as some fixes and cleanups.

so I want to finalise the averaging algorithm so I can release it.

without posting graphs, weighted 5pt, weighted 3pt, and normal 3pt (SUM/3) basically give the same result within a few pt's of a psi.

so in keeping with KISS principle (yes I know MrFred you said it at the beginning lol!)

I think I will just go with a regular 3pt average, ie =(LAST, NOW, NEXT)/3

So we lose one "future" map reading, but at the rate we run the avg routine and get new ADC data I don't think it will matter to the boost routines.

anyone have an objections?

ps the 2nd graph I posted on pg1 was "laggy" because I screwed up the plotting points :P hehe

Last edited by tephra; May 24, 2008 at 05:47 AM.
Old May 24, 2008, 05:31 AM
  #24  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
Old May 24, 2008, 06:25 AM
  #25  
Account Disabled
iTrader: (3)
 
dan l's Avatar
 
Join Date: Apr 2006
Location: USA
Posts: 1,029
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by jcsbanks
It depends on whether you think the "noise" is electronic/ADC or whether it is the pulsation due to the airflow from the inlet manifold through each inlet valve.

I believe it is intake manifold harmonics and normal pulsations as well. The intake manifold is pretty much a musical instrument with respect to vibrations.

I for one would like to see the normal jittery map signal and log this. I don't want my boost spike that I'm trying to tune out being lessened by the math. It would also be nice to have the option to turn the map averaging on/off. I'm still unsure if it will help or hurt when tuning the boost but I'd like to have the option to turn it on/off as with the rest of the tephra mods.

Thanks for the great features guys, so far your doing a great job of implementing things people need and with no bugs as far as I can tell.
Old May 24, 2008, 07:14 AM
  #26  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
yes option to enable/disable is in.

problem is that with the boost routines if you happen to run them on the spike (up or down) then the error correction goes haywire and starts changing WGDC needlessly..

also you will still be able to log both real and avg map signal, its just the avg will be used by the boost routines... (if enabled)
Old May 25, 2008, 07:15 PM
  #27  
EvoM Guru
Thread Starter
iTrader: (6)
 
tephra's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 9,486
Received 66 Likes on 42 Posts
ok I implemented a simple averaging algorithm ((last2 + last1 + last)/3) and this is the result:



Much smoother.

ps - Ignore my boost curve, its not tuned properly...

Last edited by tephra; May 25, 2008 at 07:23 PM.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
tephra
ECU Flash
282
Aug 20, 2019 03:56 AM
simonevo900
Project Cars / Build Threads
44
Jan 21, 2016 11:17 PM
Icetto
EvoM New Member / FAQs / EvoM Rules
10
Oct 7, 2013 07:25 AM
DrivelineSales
Vendor Announcements
16
Jun 20, 2011 04:51 PM
W_evo8
Evo Show / Shine
28
Aug 20, 2009 11:24 PM



Quick Reply: MAP averaging



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