Author Topic: Acceleration enrichment query  (Read 42426 times)

Offline Tony C

  • Hero Member
  • *****
  • Posts: 650
  • BHP: 8
    • Capriracing
Re: Acceleration enrichment query
« Reply #30 on: August 24, 2007, 05:43:29 pm »
that looks very interesting mate,
im still thinking about turbo (single or twins) or a super charger,
But its a lack of funds at the moment :(

not had mine on the rollers yet so not sure what mines at,
be handy having someone on hand who knows and has tuned with the vems more than what i have to advise/correct what i have now.

Vems Ecu, Twin Plenum efi and N2o
13.314 @ 104.39 mph (10/06/07 3.9 v8)
Sponsored by: www.caprisport.com & www.interpart.biz
Web site: http://www.capriracing.co.uk

Vems Firmware: V1.1.74

Offline cliffb75

  • Global Moderator
  • Full Member
  • *****
  • Posts: 167
  • BHP: 10
Re: Acceleration enrichment query
« Reply #31 on: August 24, 2007, 06:31:38 pm »
For the kind of engines these ECU's are fitted to...

You wouldn't be insinuating that my old Rover is agricultural woud you? ;) ;)

BTW are you still up for that dyno time?  Not done anything about it yet since the new inlet manifold is still not finished...

Well I wasn't, but now that your mention it........ ;D

No, what I mean is that these are generally 'special use' vehicles, which only have to comply with SVA / MOT emissions regs. We tend not to be too worried about fuel economy (though obviously we don't want to throw money down the exhaust if we can help it) so basically we only have one aim and that is driveability. That means we can get away with a simpler approach and a less than perfect calibration (from an emissions and fuel economy point of view) than an OEM engine.

Still up for the dyno day. Just give me a bit of notice where and when.

Intake system looks good. :)

Not sure how you've set the ignition timing at the moment but could there be more to come from there too? Although I would agree that from the graphs you've shown it looks like you are air limited.

Are you also changing the cam. Do you have any way of adjusting the timing of it (vernier pulley)?

 :)

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: Acceleration enrichment query
« Reply #32 on: August 24, 2007, 07:56:16 pm »
The cam is already changed.  It should produce peak torque MUCH higher up the rev range.

Yes, I have a vernier pulley of sorts.  It allows 2 degree increments.

Ignition is pretty close to ideal based on a couple of other people's runs.  Maybe there's another 5 bhp from this, but that's about it.

Offline antonch

  • Jr. Member
  • **
  • Posts: 67
  • BHP: 4
Re: Acceleration enrichment query
« Reply #33 on: August 24, 2007, 10:13:12 pm »

Perhaps air inertia is not a brilliant analogy, since in reality the air has to keep stopping and starting every time the valve opens and closes. But in a conceptual sense it works for me to think that lower loads there is less air and hence less inertia, therefore the rate of change can be faster, which means the potential for a larger error for a given time period.



What conceptually makes sense is fine when you try to understand something. But if you use the wrong model then you don't really understand how the system works.  The driving force for mass transfer in this case is a pressure differential between cylinder and manifold. I still fail to see how inertia plays any role in here. When you talk about inertia I think of pressure waves sloshing back and forth in the runner due to resonances.

I take your point about the sensor - but that isn't the issue. The problem is that we have to make a calculation for the injected pulsewidth before the injection occurs. Rob can probably correct me on the actual numbers, but for example, say the ECU is set up to trigger at 60 degrees BTDC. So at that point the ECU measures the MAP, looks up the appropriate VE site, and multiplies it by req_fuel to calculate the injection pulsewidth. This needs to be done fairly early in order to cover large pulsewidths at high load. If we use a fixed injection start strategy then we can calculate later, but if we use a fixed end angle then we obviously need some headroom.

Because we do all this based on an angle, there is obviously a larger time between calculation of pulsewidth and valve opening at low speeds than at high speeds. Therefore at low speeds, and low loads, there is the possibility for the load to continue increasing after the point at which the calculation for the injection pulsewidth was made. You are right that we could (and do) continue to measure the load, but the amount of fuel to be injected has alredy been decided by the time the valve opens, because the injection has probably already occurred by that point.

I understand what you are saying but lets take a look on the order of time scales here. How fast can an average person "punch" the throttle? How long does it take to fill the manifold? My guess that this takes on the order of 200ms or so. If you have a large turbo this number can increase significantly.
At even speeds of 2000 revolution per minute, the time per revolution is on the order of ~10ms or so.

If none of the fuel would ever condense on the port's surface, you wouldn't need acceleration enrichment. As you would be able to precisely calculate how much you need.

Thanks for the explanation of boundry layer effects. I'd not heard that explanation before, but it makes sense. But is that the reason why AE isn't needed at high speed, or is it the reason that a larger quantity of wall film is required at high loads, or more probably high airflows. If you've got any more information on this I'd be interested to know about it  :)

I think your last statement shows that you think more like me that we should be given the ability to calibrate the system if we choose, which means a more complex strategy. But the VEMS team approach seems to be more of a 'minimum calibrateable' approach, on the basis that if the box isn't there, someone can't put the wrong numbers in it. Therefore we need to find a balance somewhere in the middle, and the first part of that is to be realistic about what we actually need for the kind of engines this system will be fitted to, and for the kind of end users that we will see. In reality, if we put a fully featured system out there most tuners would simply ignore 80% of the boxes as it would be simply too expensive for them to map it. Some of them would use them and get good results, and some would put semi-random numbers in them and end up blaming the ECU for the poor transient control. So from that point of view I can see the VEMS team point of view that in some cases simpler is better - up to a point ;D

For the kind of engines these ECU's are fitted to, we really don't need the very fine level of control that OEM's need. Therefore a more generic curve shape with only 2 or 3 calibrateable parameters does make sense.

I like to tinker and perfect things. I think this is where you are coming from as well. However, I understand what the VEMS team is trying to do. The less detail the better. I don't quite remember the mission statement--can't find the wiki at the moment. But its all about purpose. Autronic units do a lot of the calculations in the background so you don't have to. Which is a nice thing.

You could have a complex model with a predefined map. If a user wants to mess with it, its up to him. If he doesn't, it wouldn't work perfect but my guess is that it'd work.

I am eager to see how the new simpler model will work out.

Offline cliffb75

  • Global Moderator
  • Full Member
  • *****
  • Posts: 167
  • BHP: 10
Re: Acceleration enrichment query
« Reply #34 on: August 25, 2007, 10:49:48 pm »
I see what you're saying. You're right that the driving force is pressure differential. I simplify the thing in my head to being equivalent to f=ma, where f= atmospheric pressure which is constant, m= load, and therefore 'a' decreases with increasing load. I guess in reality you're right that actually m is relatively constant and f decreases since the differential pressure reduces - kind of the same effect really, i.e. 'a' reduces as load increases.

I'm also simplifying the whole thing as we are concerned with load increasing over a number of cycles, therefore the airflow isn't smoothly increasing, since it has to keep stopping and starting as valves open and close, but then air is compressible and therefore we get pressure pulsations as stuff happening - it gets too complicted for my little brain, so I try and simplify it back to something more basic that appears to fit the evidence.

As far as the time scales are concerned, and the error that causes, I know for example that I have a log from Friday showing it took 145ms to open the throttle from 0 - 100% on a 0-60 test. Unfortunately I didn't have MAP logging fast enough to be useful. Maybe dnb could enlarge his dyno run which shows TPS and MAP as an example?

But lets do a quick calculation using your numbers. Say we are at idle - 1000rpm and 25kPa, and we 'punch' the throttle to WOT, 100kPa. It takes 200ms to fill the manifold. Thats 0.375kPa/ms. But the manifold filling isn't linear (my dodgy inertia analogy again) - it flattens off as we approach 100kPa, so in reality the pressure rise is greater during the first few moments. Still, lets take 0.375 for now.

Next, lets assume we calcuate the injection PW at 60 degrees before valve opens. At 1000rpm, thats 10ms before the valve opens.

So, 0.375*10 = 3.75 kpa error between the calculation and the actual load at the point the valve opens. depending on where in the cycle we opened the throttle thats up to a 15% error for that injection, before we even consider the additional fuel required for the wall film.

Now there are a lot of assumptions in there I know, but I'm just trying to make the point that although 10ms doesn't sound like much, in engine terms a lot can happen in that time.

I'll try and get some real data to show the effect :)

Offline Sprocket

  • Hero Member
  • *****
  • Posts: 867
  • BHP: 29
Re: Acceleration enrichment query
« Reply #35 on: August 25, 2007, 11:15:48 pm »
Are you TOTALLY sure your VE & lambda maps are correct?  (I'm not questioning ability here, but it's really easy to overlook something if you are trying to map alone or based on datalogs alone)

AE is only intended to make the richening effect of this into a "step" response (ie an instantanious change from say lambda=1.0 to lambda=0.88) to throttle, instead of a more gradual rise.  It isn't there to ensure you hold a rich mixture during the car itself accelerating.  (Perhaps "acceleration enrichment" is the wrong phrase - I like Cliff's "tip-in".) 

Can you put up a plot of RPM, MAP, TPS, Lambda & pulsewidth against time for a couple of your acceleration tests?   Or better yet, chop them out of a log file and put them in an excel sheet.

Appologies if I'm giving you lessons in removing the innards of eggs without breaking the shells... ;) ;)

Hi mate, sorry for the delay in getting back to this, but life's been a little fast paced recently for me to do anything.

I think I understand the theory that acceleration enrichment is there to compensate for the wall films that dry out with sudden throttle openings. the injector is reponding to what happened earlier via feedback from the lambda sensor. With sudden throttle openings a transient lean condition exists that the lambda sensor has not yet seen and cannot compensate for and the engine stumbles. The acceleration enrichment simply adds fuel to prevent this short lean period in relation to the amount the throttle is opened and only exists for the period that it would take for the lambda to feedback. It does not last the duration that the engine is accelerating.

Update, I spent a good two to three hours doing laps between two roundabouts on the dual caridge way just up the road from home. Its ideal as there is a layby on each side almost halfway between each roundabout. I set the low numbers to what i knew was good from previous MSQ's, with low duration times. Starting at 0.3s duration and working up. anyway, cutting a long story short i achieved good results at 1.2s in nearly every situation except for the odd time that i get a flat spot acompanied by a reguar judder (rich missfire?) I can sometimes generate this situation, it would apear to only hapen at low RPM high throttle rates and then backing off ever so slightly, or a double bump of the throttle would sometimes cause this, sudden acceleration minor pause and then a little more.

I think that the agorythm is seing two seperate acceleration events, adding the PW to PW yet the actaul MAP has not changed signifficantly to justify the extra fuel so a overly rich situation occurs.

I am thinking in my situation where I have a huge wall film to compensate, that fairly large values are needed on sudden throttle transients. Low rpm 100kpa happens at less than 100% TPS, i recon it could be in the region of 60 - 70%. Accelerating from cruse 15%TPS to 60% 100kpa, AE is fine and If at the point of 100kpa the throttle is depressed further, thereby going from 60%tps to 100%tps, more AE is added thereby causing an overly rich condition, yet there is no difference in MAP, wall films have not changed. It all happens very quickly, LOL. I'll try find some logs.

I can stall the engine from idle by quickly blipping the throttle, the engine just dies, its flooded!

While there, i think i may have found a bug in the software? If the engine has stalled and you try and restart without resetting, in some instances, the engine backfires and blows the filter clean off the injection manifold, LOL, its funny but its not if you know what i mean :P. I believe this is because as the engine stalls, it can counter rotate, the primary triger is counting teeth in both directions and gets VERY lost. Is it not a simple matter to reset the primary trigger algorythms when zero RPM is seen? Yes granted you can switch the ignition off and back on, but surely this is not a complicated thing to work in? Something to think about if its not already been addressed? I think i will post this seperately so it gets full exposure, for discussion ;)

This is one reason i suggested trying the MAP based AE as it only adds PW when MAP changes the configured amounts??? TPS based for Alpha N and pressure based for MAP? this would make sense? :-\

Offline Sprocket

  • Hero Member
  • *****
  • Posts: 867
  • BHP: 29
Re: Acceleration enrichment query
« Reply #36 on: August 25, 2007, 11:29:44 pm »


I designed these to see if I could squeeze a bit more air in the engine: 


I hope you are not intending to expose those blue silicon hoses to Manifold depression?? if that is indeed where I think they are installed and not reinforced?? :-\

I know two people who did and i was oing the same route, untill my welder said hang on. LOL, it was so obvious once it was pointed out.

Offline antonch

  • Jr. Member
  • **
  • Posts: 67
  • BHP: 4
Re: Acceleration enrichment query
« Reply #37 on: August 27, 2007, 12:15:42 am »
I see what you're saying. You're right that the driving force is pressure differential. I simplify the thing in my head to being equivalent to f=ma, where f= atmospheric pressure which is constant, m= load, and therefore 'a' decreases with increasing load. I guess in reality you're right that actually m is relatively constant and f decreases since the differential pressure reduces - kind of the same effect really, i.e. 'a' reduces as load increases.

I'm also simplifying the whole thing as we are concerned with load increasing over a number of cycles, therefore the airflow isn't smoothly increasing, since it has to keep stopping and starting as valves open and close, but then air is compressible and therefore we get pressure pulsations as stuff happening - it gets too complicted for my little brain, so I try and simplify it back to something more basic that appears to fit the evidence.

As far as the time scales are concerned, and the error that causes, I know for example that I have a log from Friday showing it took 145ms to open the throttle from 0 - 100% on a 0-60 test. Unfortunately I didn't have MAP logging fast enough to be useful. Maybe dnb could enlarge his dyno run which shows TPS and MAP as an example?

But lets do a quick calculation using your numbers. Say we are at idle - 1000rpm and 25kPa, and we 'punch' the throttle to WOT, 100kPa. It takes 200ms to fill the manifold. Thats 0.375kPa/ms. But the manifold filling isn't linear (my dodgy inertia analogy again) - it flattens off as we approach 100kPa, so in reality the pressure rise is greater during the first few moments. Still, lets take 0.375 for now.

Next, lets assume we calcuate the injection PW at 60 degrees before valve opens. At 1000rpm, thats 10ms before the valve opens.

So, 0.375*10 = 3.75 kpa error between the calculation and the actual load at the point the valve opens. depending on where in the cycle we opened the throttle thats up to a 15% error for that injection, before we even consider the additional fuel required for the wall film.

Now there are a lot of assumptions in there I know, but I'm just trying to make the point that although 10ms doesn't sound like much, in engine terms a lot can happen in that time.

I'll try and get some real data to show the effect :)

That's pretty interesting. Never thought about it like that. Today I made a few pulls anyway so I have some datalogs. Actually, I wouldn't be surprised if most ECU's perform the fueling calculation once every revolution. I think only someone from the development team can answer that for us.

Some data for you from a pretty fast roll-on the throttle at 2000rpm:
10% TPS -> WOT took ~430ms
58kpa -> 101 kpa took ~210ms
The gradient for MAP increase is almost linear. Actually looks like a 2nd order system if you ever studied microcontrollers.

This suggests that your assumptions are correct. I actually heard of a system that 'guesses' your manifold pressure based on the TPS sensor data. Could this be why?

Offline Sprocket

  • Hero Member
  • *****
  • Posts: 867
  • BHP: 29
Re: Acceleration enrichment query
« Reply #38 on: August 27, 2007, 06:58:27 pm »
Here is the problem i now suffer, sometimes.

Its a funny one. I recon its rich, yet the Lambda reads lean. A missfire dumpuing oxygen into the exhaust giving this 'lean' condition.

Anyway, i narrowed it down to hard acceleration then back off slightly. I experience a flatspot acompanied by regular juddering (missfire) and the LCD reports lambda as ??? (rich) there is also an aroma of raw fuel.


Help please, what can i do to work round this?


Offline cliffb75

  • Global Moderator
  • Full Member
  • *****
  • Posts: 167
  • BHP: 10
Re: Acceleration enrichment query
« Reply #39 on: August 27, 2007, 09:16:16 pm »

Its a funny one. I recon its rich, yet the Lambda reads lean. A missfire dumpuing oxygen into the exhaust giving this 'lean' condition.


This is one of the unfortunate things about a rich misfire - it does exactly what you have described and shows lean on the lambda trace since the O2 sensor cannot see the raw fuel. Rob has noted a similar effect on another engine, and used an HC analyser to help verify the problem

Looking at your trace it appears that on a tip out you are not using decel fuel shut off or decel enleanment. Therefore you are going rich. Its not clear to me if the step to lean just after this is due to you getting back on the throttle before the full tip in, of if it because you are getting misfire on the overrun.

So, try the following

Perform you tip ins from a longer light load cruise conditions so that everything is stable before you start. This will tell you if the problem is purely tip in related or has some element of the previous overrun involved.

Try using decel fuel cut or reducing the VE table on the overrun load line to minimise the richness during the decel.

The pulsewidth trace for the last tip in is interesting too. Where does that huge increase come from that suddenly drops away (where the '400' is shown). Is this from accel fuel or closed loop lambda or a bit of both? May be worth turning closed loop off for a few tests to see what goes on when you are not involving the controller.

 :)

Offline cliffb75

  • Global Moderator
  • Full Member
  • *****
  • Posts: 167
  • BHP: 10
Re: Acceleration enrichment query
« Reply #40 on: August 27, 2007, 09:35:15 pm »

I actually heard of a system that 'guesses' your manifold pressure based on the TPS sensor data. Could this be why?

Yep. We call it 'predicted load' and its calculated based on the TPS, MAP and MAF data, which feed into the aircharge model for the engine to predict the airmass that will be waiting when the valve opens so that we calculate the correct basic fuelling. This is imortant since we complivate things further by hving things like inlet and exhaust fully variable VVT, inlet manifold switching (different lengths), which may (and often do) also change during the transient, so we need to predict their effect before they actually happen. The approach is pretty similar in both DENSO and Bosch systems I've worked with. The additional fuel for changes to wall wetting then comes from a seperate model. This is all fed into the injector calculation along with the target lambda value, and the correct PW calculated.

The nice thing about modern stuff I work with is that they are torque based control systems - i.e. the throttle pedal is 'fly by wire', and generates a request for an amount of torque. We can then open the throttle blade at a rate we choose, normally for driveability reasons to avoid driveline shunt, but that means we can slow down the airpath, hence allowing us to predict the load much better and hence have more control over the fuelling. :)

For your testing, try letting the car drive along at idle in the highest gear it will take (3rd or 4th usually, depending on the engine size/car mass) and then stamp on the throttle. The inertia of the car will hold the revs pretty steady and you are left with purely a load transient. Also try a similar thing, but holding the throttle just out of idle control. Shouldn't be a huge difference butmay be smoother as the ignition timing won't move as you exit idle. At the other end of the scale, try some aggressive throttle blips out of gear, but be careful with your rev limit - use the rev limiter if you can to protect the engine.

Offline Sprocket

  • Hero Member
  • *****
  • Posts: 867
  • BHP: 29
Re: Acceleration enrichment query
« Reply #41 on: August 27, 2007, 10:10:31 pm »
Cliff, over run fuel cut is switched on, just not bellow 2000rpm

over run Lambda set to 1.00, but dont forget that there is a huge wall film on the TBI manifold, so sudden negative throttle changes will caus a rich period.

The first event you can see i backed off so the missfire period was short. the second event i did not back off, and drove through it. EGO only comes back on at the end of that large PW event.

RPM is high at 4500 at the point of acceleration and my thought is that the fast throttle rate activating the largest AE bin,TPS going from 14% to 58% and MAP going from 14kpa to 95kpa. The large PW event is the same duration as the set duration period, yet the PW is too much. The car drives and feels excellent other than this and its not every time, maybe could do with a little more PW on some acceleration events, but its not too far off, I get close to getting it sorted and then it starts going te other way with no happy medium, LOL.

I think i may revisit the AE bin numbers, the 2 7 20 and 40. I dont think the 40 is big enough resulting in this situation?

Can only do but try

When you talk about deceleration enleanment, where do I configure this, i cannot find anything in Megatune to do such

Offline rob@vems.co.uk

  • Hero Member
  • *****
  • Posts: 3115
  • BHP: 49
    • VEMS Forum
Re: Acceleration enrichment query
« Reply #42 on: August 28, 2007, 08:39:36 am »
40 is the speed at which you open the throttle, I've been told that this is already a faster rise than you'd ever see, the values suggested provide a spread of breakpoints that should provide a tunable range from slow throttle opening (across bins 1 to 5), medium (5 to 20) and fast (20 to 40), anything faster than 40 will be enriched with the value at 40
There is no decel enleanment in the current firmware, such a thing did exist but badly configured systems caused more problems with lean running (and suggested that damage could be done to an engine) that it was dropped in favour of the overrun fuel cut.

It has been suggested that you will see some improvements with the accel enrichment in 1.1.26 which I can convert your configs to and test on my test bench.

Offline cliffb75

  • Global Moderator
  • Full Member
  • *****
  • Posts: 167
  • BHP: 10
Re: Acceleration enrichment query
« Reply #43 on: August 28, 2007, 09:11:32 pm »
Right then, a quick log I took today especially for you guys  ;)

I'm slightly nervous about posting it, as it may well create as many questions as answers, but here goes.

This is an aggressive throttle blip from idle with the car fully warm and in neutral. Its a large capacity V engine with a supercharger, and using the latest generation DENSO EMS with full torque based control. The channels are logged at a 1ms rate, which in the case of the throttle and pedal signals is actually faster than they are being processed (the raw input is seen quite quickly but the % converted variable that I chose to log is updated every 8ms, hence the steps)



The important bits.

This was about as fast as I could stamp the pedal. Closed to fully open takes 70ms
The time to get from 30kPa to atmospheric pressure is around 200ms, but....
There is a significant delay (around 90ms) before anything happens in the manifold
This means that the fastest rate of change of MAP is actually around 1kpa/ms
The engine speed has barely risen from idle speed before the MAP has reached atmospheric.

Now the slightly more tricky bits....
The throttle plate initially opens to 20% very quickly, and then holds at a level. In fact, you can see that this doesn't have a significant impact on the MAP at first. This is your introduction to the concept of 'effective wide open throttle', which means that at low airflows you only need to open the throttle a small amount for it to stop being a restriction. In this case 20% is effective WOT, and anything over this makes no difference. As revs and MAP begin to rise, so the throttle is required to open more in order to avoid choking the flow, which you can see it doing. The EMS does this in order to minimise response time to keep the best control - i.e. if the pedal is released again the throttle will instantly start to close and be a restriction, rather than having a 20 or 30ms delay. This is important for things like auto box gear shifts or traction control events where torque has to be reduced and reinstated very quickly and accurately to be 'seamless'.

Once things get moving and the engine speed starts to rise you can see the charger starts doing its stuff and boost increases past atmospheric. But the really difficult bit (for transien fuel comp) is past by now, so we don't really care (hence I've cropped the log).

Lastly you can see the MAP curve, and how it takes a bit to get going (inertia) and slows down as it approaches atmospheric (less delta P). However this is all a bit clouded by the throttle moving and the charger being attached, so this is by no means the same shape of curve for every engine. Upstream pipework, throttle size, plenum and runer volumes etc will all play their part in the particular shape of this curve for your engine.

So if you perform that same test with PW and lambda being logged, having already measured the lambda transport delay so that you can offset it correctly, you can look at calibrating transient fuelling in the most logical way  :)

Hope thats useful  :-\

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: Acceleration enrichment query
« Reply #44 on: August 29, 2007, 01:27:55 am »
That's how I've been trying to do it, but usually working without too many tools... ;)
(In the graphs I've posted, I haven't corrected for the lambda transit but I do know what it is)

It also explains nicely why the TVR is much happier when you are more gentle with the throttle and why my friend's extremely modded Griff totally changed (for the better) when he fitted bigger springs to close the throttle quicker.

Plenty to think about...