Go Back   EcoModder Forum > EcoModding > EcoModding Central
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-20-2009, 11:42 AM   #1 (permalink)
EcoModding Lurker
 
Join Date: Jan 2009
Location: Houston
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Electronic Engine Control Algorithm. Is this Correct?

Is this pretty much how modern electronic engine control algorithms work?

The engine management control program's goal is to hold the air/fuel mixture at a constant target value as measured by the O2 sensors. The program is written as a closed loop feedback loop with feed forward. A regular feedback control would wait for the O2 sensors to move away from the target O2, then start changing fuel rate to get the O2 back to target. This control is relatively slow. Feed forward is provided by using a mass air flow sensor. The feed forward speeds up control. In fact, if the feed forward were perfect, there would be no reason for feedback.

The manufacturers want a certain target level of richness/leanness in the combustion chamber. They use O2 sensors to measure this, and decide on a target O2 level for the control program. You also have a starting air/fuel ratio target. So, you step on the throttle, the throttle plate opens, and the MAFS sees air flow, and uses the ratio target to set the fuel flow. The O2 sensor reading should be on target, but if it's not, it will change the air/fuel ratio setpoint.

It continues to work like this. As long as the O2 readings are at target, the algorithm maintains things at a constant air/fuel ratio. When the MAFS sees a change in air flow, fuel flow is changed per the current air/fuel target. This continues unless the O2 moves away from its target. At this point, the control program starts to change the air/fuel target.

A bunch of preset tuning factors are needed to coordinate all this stuff going on. These factors are a function of time delays and anticipated rates of change of the variables.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-20-2009, 02:10 PM   #2 (permalink)
Master EcoModder
 
Join Date: Jul 2008
Location: Silly-Con Valley
Posts: 1,479
Thanks: 201
Thanked 262 Times in 199 Posts
Nope, that's not really it.

The engine management figures out how much air the engine is taking in by using the MAP/MAF/whatever, the throttle position, intake air temp, and other sensors. It crunches those numbers to get an overall "how much air is going in" figure, and calculates a basic injector opening time. Other sensors, primarily the O2 sensor, then provide fine-tuning for that time value.

I do not know how much "authority" the O2 sensor feedback loop has, but it is definitely not the primary metering device. For one thing, most O2 sensors respond relatively slowly compared to the engine revolutions.

There are plenty of "special cases" built in, however. When the throttle goes from closed to more open, the engine adds extra "acceleration enrichment" so the engine doesn't bog or stumble when the throttle position changes. When the throttle is wide open, it adds "full throttle enrichment" for more power (after all, that's why most people push the pedal all the way down!). When the engine is cold, the mixture is also enriched because cold engines don't burn fuel as well as warmed-up ones.

In all of those cases, the engine goes "open loop" and ignores the O2 sensor feedback entirely. It just relies on the basic metering and temperature/RPM/whatever adjustments.

-soD
  Reply With Quote
Old 01-08-2010, 05:07 AM   #3 (permalink)
EcoModding Lurker
 
Join Date: Sep 2009
Location: New York
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by worstmechanic View Post
Is this pretty much how modern electronic engine control algorithms work?

Feed forward is provided by using a mass air flow sensor. The feed forward speeds up control. In fact, if the feed forward were perfect, there would be no reason for feedback.
so what are some symptoms or indications that the mass air flow sensor is not working properly? Thanks! I don't know much about engine control and stuff. Thanks!

Last edited by mikeross; 02-03-2010 at 10:38 PM..
  Reply With Quote
Old 01-08-2010, 11:45 AM   #4 (permalink)
Master EcoModder
 
Join Date: Mar 2009
Location: Northeast Ohio
Posts: 269

The Wife's Hot Rod - '09 Pontiac G8 GT
Last 3: 23.22 mpg (US)

Big Outback - '13 Subaru Outback 2.5i

Little Outback - '02 Subaru Impreza Outback Sport
Thanks: 0
Thanked 16 Times in 16 Posts
When mine went bad, when you would let off the throttle to come to a stop. When you went to go again the engine had stalled.

If you think yours may be going bad, they do make MAF sensor cleaner you can use.

Don
  Reply With Quote
Old 01-08-2010, 01:18 PM   #5 (permalink)
Banned
 
Join Date: Feb 2008
Location: california
Posts: 1,329
Thanks: 24
Thanked 161 Times in 107 Posts
Quote:
Originally Posted by mikeross View Post
so what are some symptoms or indications that the mass air flow sensor is not working properly? Thanks! I don't know much about engine control and stuff. Thanks!
Check engine light, stalling, lack of power, poor thottle response, very poor cold running.
  Reply With Quote
Old 01-08-2010, 01:25 PM   #6 (permalink)
Pokémoderator
 
cfg83's Avatar
 
Join Date: Dec 2007
Location: Southern California
Posts: 5,864

1999 Saturn SW2 - '99 Saturn SW2 Wagon
Team Saturn
90 day: 40.49 mpg (US)
Thanks: 439
Thanked 530 Times in 356 Posts
some_other_dave -

Quote:
Originally Posted by some_other_dave View Post
...

There are plenty of "special cases" built in, however. When the throttle goes from closed to more open, the engine adds extra "acceleration enrichment" so the engine doesn't bog or stumble when the throttle position changes. When the throttle is wide open, it adds "full throttle enrichment" for more power (after all, that's why most people push the pedal all the way down!). When the engine is cold, the mixture is also enriched because cold engines don't burn fuel as well as warmed-up ones.

In all of those cases, the engine goes "open loop" and ignores the O2 sensor feedback entirely. It just relies on the basic metering and temperature/RPM/whatever adjustments.

-soD
In my experience, except for cold-starts, my ECU/PCM almost never leaves closed-loop. Maybe this is another benefit of how we drive. I can datalog, so I should double-check this. Would you make the claim that even when the ECU/PCM reports it's in closed-loop, it may not actually *be* in closed-loop?

What do you think of these explanations? :

Tips on Reading Gauges; Air-Fuel Ratio Monitor
Quote:
The stoichiometric (STOICH) air/fuel ratio is the chemically correct ratio, theoretically all of the oxygen and all of the fuel are consumed. The mixture is neither rich nor lean. However, due to the fact that combustion is never perfect in the real world, there will always be a small amount of oxygen left in the exhaust. This small amount that is left is what the oxygen sensor measures. The smaller the amount of oxygen that is left in the exhaust, the richer the A/F ratio is, and the higher the oxygen sensor voltage is. The on-board computer or Powertrain Control Module (PCM) monitors the voltage from the oxygen sensor. If the PCM sees an oxygen sensor voltage greater than .450V, it immediately starts to reduce the amount of fuel that is metered into the engine by reducing the on time to the fuel injectors. When this happens, the A/F ratio starts to go in the lean direction, and the oxygen sensor voltage starts to go down. When the voltage drops below .450V, the PCM immediately starts to increase the fuel metered to the engine by increasing the on time to the fuel injectors to produce a richer A/F ratio. This occurs until the oxygen sensor voltage goes above .450V. This repeating cycle happens very fast (many times per second). The PCM is said to be in closed loop. It is constantly monitoring the oxygen sensor voltage and adjusting the on time of the fuel injectors to maintain a stoichiometric A/F ratio. This A/F ratio produces the lowest harmful exhaust emissions, and allows the catalytic converter to operate at peak efficiency, therefore reducing the exhaust emissions further.

Since the oxygen sensor output is non-linear and very sensitive at the stoichiometric A/F ratio it will cause the A/F meter LED's to bounce back and forth rapidly. A very small change in A/F ratio causes a large change in oxygen sensor voltage as can be seen on the graph. This causes the A/F ratio meter LED's to rapidly cycle back and forth, and is normal operation when the PCM is in closed loop and trying to maintain a stoichiometric A/F ratio. The oxygen sensor is very accurate at indicating a stoichiometric A/F ratio. It is also very accurate at indicating an A/F ratio that is richer or leaner than stoichiometric. However it can not indicate what exactly the A/F ratio is in the rich and lean areas due to the fact that the oxygen sensor output changes with the oxygen sensor temperature and wear. As the sensor temperature increases, the voltage output will decrease for a given A/F ratio in the rich area, and increase in the lean area as shown on the graph.

During wide open throttle (throttle opening greater than 80% as indicated by the throttle position sensor) the A/F ratio will be forced rich by the PCM for maximum power. During this time the oxygen sensor outputs a voltage that corresponds to a rich A/F ratio. But the PCM ignores the oxygen sensor signal because it is not accurate for indicating exactly what the A/F ratio is in this range. The PCM is now in open loop, and relies on factory programmed maps to calculate what the on time of the fuel injectors should be to provide a rich A/F ratio for maximum power. The A/F ratio meter should indicate rich during this time.
What do you think of this? :

Tech - Closed Loop
Quote:
Closed Loop
In closed loop operation the ECU uses one or more oxygen sensors as a feedback loop in order to adjust the fuel mixture. This gives the name ‘closed loop’ from the closed feedback loop. The ECU won’t run in a closed feedback loop all the time, so ‘open loop’ is used to describe the operation of the ECU when the mixture is not being adjusted in this way (usually when the engine is cold or when running under high load).

In closed loop operation the ECU uses the oxygen sensor to tell if the fuel mixture is rich or lean. However, due to the characteristics of the oxygen sensor it can’t tell exactly how rich or lean, it only knows that the mixture is richer or leaner than optimum. The ECU will enrich the mixture if the oxygen sensor shows that the mixture is lean, and lean the mixture if it looks rich. The result of this is that the mixture will swing back and forward around the stoichiometric point.
...
OBD II Engines
OBD II engines use one oxygen sensor before the catalytic converter, and one oxygen sensor after the catalytic converter. The function of the second oxygen sensor is to determine if the catalytic converter is functioning. It does this by looking at the difference between the two oxygen sensors. If the catalytic converter is functioning correctly there will be a reduction in the exhaust oxygen content as carbon monoxide and carbon dioxide is catalyzed in the converter.
CarloSW2
__________________

What's your EPA MPG? Go Here and find out!
American Solar Energy Society
  Reply With Quote
Old 01-08-2010, 02:46 PM   #7 (permalink)
Master EcoModder
 
Join Date: Jul 2008
Location: Silly-Con Valley
Posts: 1,479
Thanks: 201
Thanked 262 Times in 199 Posts
Quote:
Originally Posted by cfg83 View Post
In my experience, except for cold-starts, my ECU/PCM almost never leaves closed-loop. Maybe this is another benefit of how we drive. I can datalog, so I should double-check this. Would you make the claim that even when the ECU/PCM reports it's in closed-loop, it may not actually *be* in closed-loop?
I suspect that is primarily due to the way we drive. If you mashed your throttle pedal all the way down, you would likely see the engine management go open-loop, at least for a second or two. (I know the duration of acceleration enrichment is a tunable parameter in Megasquirt, and is often in the "several seconds" range.)

I would assume that any reporting that the ECU does of open/closed loop state would be accurate, as the state is maintained inside the ECU itself. There may be other factors affecting the indication (e.g., the OBDII bus only updates information every second, and the state is only open-loop for a half-second at a time) but I'd expect it to be reasonably accurate.

--The two articles you quote from match my experience and reading on this subject pretty well. Note that these are all describing the "Narrow Band" O2 sensor; the "Wide Band" type can actually tell how far off of "stoichiometric" you are, which gives more tuning options. (Which is why that type of sensor is often used in vehicles that use lean-burn technology.)

-soD
  Reply With Quote
Old 01-08-2010, 06:18 PM   #8 (permalink)
Master EcoModder
 
mwebb's Avatar
 
Join Date: Jul 2009
Location: New York
Posts: 513

no nickname , it's just a car - '04 volkswagen golf tdi
Thanks: 2
Thanked 101 Times in 74 Posts
fuel trim
short term fuel trim
long term fuel trim

LTFT is adjusted to keep STFT bouncing or cycling on zero
equal amounts up and down

if LTFT gets past a certain value , the system codes for rich or lean condition depending

if MR MAF sensor reports incorrectly LTFT adjusts to keep system at stoich to the limit described above


  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
Honda IACV explained TomO Off-Topic Tech 16 12-21-2015 01:49 AM
1992 Metro sedan needs a new engine - What/Where/How - advice appreciated greatly! Crono EcoModding Central 26 11-18-2008 01:42 AM
New 2-stroke Diesel engine, cool link to Engineering TV metromizer General Efficiency Discussion 14 11-17-2008 08:05 PM
Coasting experiment: engine on VS engine off on a fixed route = 12.9% gain MetroMPG Hypermiling / EcoDriver's Ed 6 02-22-2008 08:38 AM
Basic EcoDriving Techniques and Instrumentation SVOboy Instrumentation 2 11-17-2007 11:38 AM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com