MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

43
MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, MegaMeet 2009 Atlanta GA

Transcript of MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

Page 1: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC.

MegaMeet 2009Atlanta GA

Page 2: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC.

Engine ControlsFUN-da-mentals

Bowling & Grippo

Page 3: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC.

BE A MAN!Take control of your engine…

Use you MegaSquirt!

Page 4: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

5

Take Control! Lets say you have this engine…..

…and you want to make it run…fast!

…but how do you control it?

Page 5: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

6

Take Control! You will need the following three things:

Fuel

Air

Ignition

Page 6: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

7

Take Control! And you have to mix the Air and the Fuel in just the right amount for best results.

Its like making the perfect Gin and Tonic:

Note that Al Grippo prefers more of the Hydrocarbon (Gin – CH3CH2OH) than Diluent (Tonic)… he’s just that way….

Recipe:3 Ounces Gin4 Ounces Tonic

Page 7: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

8

Take Control – Its in the Ratios! For fuel and air to form combustion there needs to be specific ratios of each.

For a given Hydrocarbon (that’s gasoline) there needs to be a proper amount of oxygen (in the air).

The most efficient form of combustion is when the ratios are in Stoichiometric proportions… all this means is that all of the hydrocarbon reacts with all of the oxygen, producing water and carbon dioxide.

If you have too much air and not enough fuel, there will be excess oxygen (lean)

If you have too much fuel and not enough oxygen then there will be leftover hydrocarbons, CO, H2, etc. (rich).

Page 8: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

9

Take Control – Simpler is Better! The AIR-FUEL ratio is just the ratio of the air to the fuel:

Another way to quantify is with Lambda:

Still another way is the Equivalence Ratio (my favorite):

A F RM A SS O F A IR

M A SS F O F F U E L _ _

_ _

A F RA F R sto ich

1

Page 9: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

10

Page 10: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

11

Take Control of Your Hydrocarbon OK – lets start with the fuel, this one is the easy parameter to control!

An electromechanical valve known as a Fuel Injector does the work for you…

If you apply 12 volts to the terminals the internal valve (pintle) opens and lets fuel flow.

Take away the 12 volts and the valve shuts down tight… no fuel flows.

Extremely simple device!

Page 11: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

12

Injector Guts and Glory

Page 12: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

13

Take Control of Fuel The fuel flow thru the injector is governed by the following

mechanical arrangement:

Page 13: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

14

Take Control – Equations are cool! The fuel flow thru the injector is governed by the following

equation:

m C P Pf In jec to r fue lra il m an ifo ldfue l

Mass RateOf Fuel

InjectorCoefficient

FuelDensity

Pressure DifferentialAcross Injector

Page 14: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

15

Take Control – Simpler is Better! Since we are dealing with one fuel type and one injector, and since the fuel regulator keeps the pressure differential the same for all operating conditions, the previous equation can be reduced to:

Fuel_Flow = Inj_Flow_Rate * Pulsewidth

This means that the amount of fuel that flows depends on the Injector Flow Rate and the Open Pulsewidth… its really simple Note that for small pulsewidths the fuel injector open time starts to dominate and fuel flow is no longer linear – so keep out of this region (this means you)!

Page 15: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

16

Page 16: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

17

Page 17: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

18

All About AIR OK, we know all about fuel and how it is controlled. It’s the easy part…

Determining the amount of air the engine is sucking in is much, much harder.

Airflow characteristics change all of the time due to: RPM

Temperature

Pressure

Composition

You gotta know how much air entered the engine in order to match up the proper amount of fuel…..

Page 18: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

19

Mass Air Estimation So, how does the fuel controller determine the amount of air that the engine breathes?

In other words, we need to know the Mass of the Air flowing into the cylinders.

There are three predominant methods used to do this: Speed Density (SD) – uses air density, volume, and engine speed to infer the mass air.

Mass-Airflow Meter (MAF) – measures airflow directly with dedicated sensor.

Alpha-N (A/N) – estimates mass air from throttle position and engine speed.

No one method is perfect – we will address each method, their strengths and weakness.

Page 19: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

20

Mass Air Estimation - SD Speed density infers (or makes an educated estimation) on the amount of air that the engine ingests for each cylinder.

It uses the following facts:

1. Air has MASS – a “tin can”-full of air actually weighs something. How much it weights depends on how much volume you have trapped and its density.

2. Air mass within a volume (like the tin can) can be estimated if you know the pressure, volume, and temperature – this is called the Ideal Gas Law (its not just the law… its ideal!)

3. The engine cylinder, when its at the bottom of the stroke, is just like an empty tin can – it has a volume.

4. At certain conditions, the intake manifold pressure is darn-near the same as the cylinder pressure, and cylinder is max volume. Good place to sample….

Page 20: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

21

Volume of Tin CanVd = 3.14159*(bore/2)^2*Stroke

(It’s also the displacement divided by the number of cylinders…)

Page 21: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

22

How do you know how much the air weighs (mass) in the tin can?

What if the can was filled with ball bearings?

Think of air molecules as a bunch of ball bearings... If we know how much a ball weighs and the number of balls we can figure it out!

Page 22: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

23

Lots of ball bearings in a volume is Dense

Fewer ball bearings in a volume is Less Dense…

Page 23: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

24

Mass of air molecule is given by its molecular weight.

Molecular mass is one molecule of air relative to the unified atomic mass u which is equal to 1/12 of the mass of one atom of Carbon-12

Mass of Air = 28.964 g/mole

Don’t worry about the “Mole” word above, this is just a unit representing the amount of something – just like the word

“Dozen” means “12 of” something…..

Avagadro’s number = 6.022 x 1023

Page 24: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

25

Mass Air Estimation - SD Density is equal to the number of molecules divided by the volume:

DnV

Density

Number of Molecules

Volume

Great! We know the volume V of the cylinder… but how do we know the number of air molecules n that are inside?

There is an ideal way to find out!

Page 25: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

26

Mass Air Estimation - SD The Ideal Gas Law:

Pressure P V nR TVolume

NumberOf Moles

Universal Gas Constant

Temperature

This says that the pressure in the cylinder multiplied by the cylinder volume equals the number of molecules of air multiplied by a constant and by the temperature

We can re-arrange the equation and solve for the number of moles “n”……

Page 26: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

27

Mass Air Estimation - SD

P V nR T If you pick the right kind of R constant (Specific Gas Constant), then this equation is the mass of air at a given pressure, volume, and temperature.

R is .287 kJ/(kg*K) for dry air

P is Pressure in KPa

T is Temperature in deg Kelvin = Deg C + 273

nP VR T

Page 27: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

28

Mass Air Estimation - SD

Lets use variables that represent what we measure on a real engine:

MP V

R Tm an B T C

m

Mass of Air in Cylinder

Pressure in Manifold Volume of CylinderAt Bottom of Stroke

Gas Constant

Temperature ofIntake Manifold

Page 28: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

29

Mass Air Estimation - SD We infer the pressure of the cylinder from measuring the pressure in the manifold. The best point to measure this is at the point where the intake valve just closes. Here’s why:

The piston is at the bottom of its stroke. At this point the volume is maximum and is the trapped volume when the intake valve closes and seals off the chamber (a closed tin can). This trapped volume of mass air is what we are trying to match up with mass fuel.

At BTC the piston moves the slowest in its stroke compared to crankshaft motion. This means the volume is not changing as much. So gas flows slow down (and even changes direction back and forth) to the point where the pressure in the manifold (MAP) is very close to the pressure in the cylinder - within 1KPa from tests done at M.I.T.

It is important to sample the MAP at the same point in the engine cycle.

Page 29: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

30Data from MS Forum user MYK777 under SynchroMAP thread.

Single cylinder, MAP pressure curve vs. crankshaft

MAP SampleRegion

Page 30: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

31

Mass Air Estimation - SD But – there is a monkey wrench thrown at us in all of this… its call

Volumetric Efficiency, or VE.

What is VE??

V Em

PR T

a

m an

m an

What the &*^% is this?

Page 31: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

32

Mass Air Estimation - VE The piston in the cylinder acts like a volumetric pump – i.e. the piston causes a volume change and hence a corresponding pressure change.

Due to various factors, the amount of fresh air that enters the cylinder is not what the cylinder is capable to actually suck in (i.e. gas transfer due to volume change).

In simple terms, VE is:

VE = Mass of gas that actually gets in

Mass of gas the cylinder is capable of holding

Denominator comes from the air density based on manifold pressure and temperature

Page 32: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

33

Mass Air Estimation - VE The VE is an efficiency (usually in percent/100, or unitless) this is an indicator on how well the cylinder fills with new air every time the cylinder draws down.

Larger VE values means more air (mass) enters cylinder compared to smaller VE values.

It is possible to have VE values greater than 100%, this just means the air is more dense than what the theoretical numbers on the denominator indicate.

There are different reference points for VE – for example the use of ambient air pressure/temperature instead of manifold. MegaSquirt uses manifold-referenced values.

But … what drives the changes in VE?

Page 33: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

34

Lets go to the tin can with ball bearings analogy again….

What if part of the can was filled with rocks and gravel?

The gravel displaces the amount of ball bearings that get in – and gravel does not burn…

The gravel is known as Residual Gas

Page 34: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

35

Mass Air Estimation - VE VE is largely influenced by residual gas left from the previous combustion event. One would think that the piston would expel all gas during the exhaust…. Think again…

Residual gas is the “leftover” exhaust gas that displaces good fresh air.

However, during the valve overlap period the intake manifold pressure is often less than the exhaust pressure – and this causes a backwards flow of exhaust gas.

Additionally, exhaust backpressure can affect residual gas – and this can be altered by barometric pressure, turbo wastegate, VVT changes, etc.

Page 35: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

36

VE change from wastegate operation due to backpressure change

Per Andersson Thesis 934

Page 36: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

37

Page 37: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

38

Mass Air Estimation - VE Other players in VE:

Fuel vapor pressure – remember that fuel also take up space.

Charge heating in the manifold/cylinder can change the air density – lower mass air flow rates give longer time for the air to “heat up”.

Sonic flow thru throttle plates (isentropic).

“Induction ram effects”

All of this means that the amount of new air that gets into the cylinder is scaled by VE.

VE can be mapped as a function of engine speed and manifold pressure.

Page 38: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

39

Mass Air Estimation - VE The earlier equation is now modified with the VE term:

MP V

R Ta vm an B T C

m

Volumetric Efficiency, as function of RPM and Pman

Page 39: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

40

Mass Air Estimation - Rate Note that in all of the above we have been viewing the cylinder in terms of one engine fill cycle. This view is simple to understand and visualize.

On a running engine there are lots of cylinders filling up, and the faster the engine runs the more filling that happens.

Here is a relation that converts mass air (Ma) into terms of mass air flow (MAF):

M A FM N

R P M

a cylinders2 6 0*

Page 40: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

41

MegaSquirt Fueling We now have all of the pieces required for determine the amount of fuel required to match the air filling the cylinder at a ratio we define.

A lot of the variables are constants, like cylinder volume, injector flow rate, and the like. And – everything is either multiplied or divided together, we are dealing with scale factors and ratios.

What MegaSquirt does is define a variable called REQ_FUEL that pulls all of the non-changing pieces together into one number.

All of the previous equations are at work but simply restructured in order to apply simple scale factors.

Page 41: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

42

MegaSquirt Fueling Definition of REQ_FUEL is the amount of time (milliseconds) the injector needs to be open to deliver

the proper amount of fuel specified by the given air-fuel ratio, at 70 DegF, MAP of 100KPa and VE of 100%:

Page 42: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

43

Page 43: MegaSquirt and MegaSquirt Logo are trademarks of BG Soflex, LLC. MegaMeet 2009 Atlanta GA.

44

Transient Enrichments