Mass air flow: Difference between revisions

From S4wiki
Jump to navigation Jump to search
 
(86 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==General information==
==General information==

A mass air flow (or MAF) sensor placed just before the intake manifold measures the instantaneous rate of air entering the combustion chamber. This is done using a thin wire or film suspended in the air stream.
A mass air flow (or MAF) sensor placed just before the intake manifold measures the instantaneous rate of air entering the combustion chamber. This is done using a thin wire or film suspended in the air stream.


Line 11: Line 10:


==S4 specific information==
==S4 specific information==
The B5 S4's Bosch Motronic ME7.1 ECU uses a mass air flow based fuel injection system. During [[open loop]] (engine warm-up and wide open throttle) operation, the MAF tells the ECU how much fuel to deliver to keep the [[air fuel ratio]] at an optimal level (also known as [[stoichiometric]]).
The B5 S4's Bosch Motronic ME7.1 ECU uses a mass air flow based fuel injection system. During [[open loop]] (for example, during engine warm-up and wide open throttle) operation, the MAF tells the ECU how much fuel to deliver to keep the [[air fuel ratio]] at the desired level. Generally, [[open loop]] fuel ratios are not stoichiometric, so narrow band O2 sensors can not be used for this. Thus, for proper functioning, MAF readings are critical for proper [[open loop]] behavior; there is no way for ME7.1 to detect if the fueling is off.


Unlike wideband O2 sensor equipped cars, the ME7.1's narrow band 02 readings are ignored during open loop operation. The [[O2 sensor]]s (along with MAF readings) are used to determine fueling only during [[closed loop]] operation (idle and partial throttle). Note that since MAF readings are also used during closed loop operation, [[long term fuel trim]]s (or LTFTs) may be affected by faulty or incorrectly tuned MAF setups, including the use of [[blow off valve]]s (or BOVs).
Unlike wideband O2 sensor equipped cars, the ME7.1's narrow band O2 readings are ignored during open loop operation. The [[O2 sensor]]s (along with MAF readings) are used to determine fueling only during [[closed loop]] operation (idle and partial throttle). Note that since MAF readings are also used during closed loop operation, [[long term fuel trim]]s (or LTFTs) may be affected by faulty or incorrectly tuned MAF setups, including the use of [[blow off valve]]s (or BOVs).


===Temperature (IAT) effect on MAF readings===
===Temperature (IAT) effect on MAF readings===

Because of their design, both the Bosch and Hitachi MAF correct for ambient temperature, so the ECU does not use the IAT sensor in its load calculations.
Because of their design, both the Bosch and Hitachi MAF correct for ambient temperature, so the ECU does not use the IAT sensor in its load calculations.


Line 27: Line 25:
===Bosch vs. Hitachi===
===Bosch vs. Hitachi===


B5 S4s and RS4s came with [[Generations | several different types]] of MAF sensors
B5 S4s came with [[Generations | two different types]] of MAF sensors - Bosch (078 906 461B) and Hitachi (06C 133 471A); both are film-type MAFs. Each has totally different signal characteristics and are not compatible, even if properly rewired. [[A-Box]]/[[B-Box]] cars (MY2000) came with Bosch MAFs. [[H-Box]]/[[J-Box]] (MY2001), [[M-Box]]/[[L-Box]] (MY2001.5), and [[T-Box]]/[[AA-Box]] (MY2002) cars came with Hitachi MAFs.
* Bosch 078 906 461B (S4)
* Bosch 077 133 471K(X) (RS4)
* Hitachi 06C 133 471A

All are film-type MAFs. Each has totally different signal characteristics and are not compatible, even if properly rewired. [[A-Box]]/[[B-Box]] cars (MY2000) came with Bosch MAFs. [[H-Box]]/[[J-Box]] (MY2001), [[M-Box]]/[[L-Box]] (MY2001.5), and [[T-Box]]/[[AA-Box]] (MY2002) cars came with Hitachi MAFs.


{| class="wikitable"
{| class="wikitable"
Line 45: Line 48:
|}
|}


In order to switch between the two, you must have the correct version of ECU. Changing from one "box" to another is as easy as unplugging one ECU and plugging in another. Some tuners offer "flash" upgrades where an ECU can be reprogrammed via the [[OBD-II]] port. However, changing ECU boxes may also require a [[cluster recode]].
Changing from one "box" to another is as easy as unplugging one ECU and plugging in another. Some tuners offer "flash" upgrades where an ECU can be reprogrammed via the [[OBD-II]] port. However, changing ECU boxes may also require a [[cluster recode]] and a MAF conversion.


List of needed parts to convert a Bosch [[MAF]] to a Hitachi MAF:
==Logging/tuning/trouble shooting==
{| class="wikitable"
! Part number || Qty|| Description
|-
|06C 133 471A ||1 ||Hitachi MAF with housing (add “X” to part number for remanufactured)
|-
|1J0 973 705 ||1 ||Housing (aka plug)
|-
|4A0 906 102 ||1 ||Grommet (aka boot)
|-
|000 979 131A ||3|| Wires with connectors
|-
|357 972 741 ||5|| Weather seals for wires into the housing
|-
|111 971 940A ||5|| Weather sealed butt connectors as used by VW/Audi as the OEM way to repair a wiring break.
|}


AWE has excellent [http://awe-tuning.com/media/pdf/RSK04_27T_fueling_UPDATE_2.0.pdf instructions] on how this is done.
===Maximum logged values===

* VAGCOM limit seems to be 318ish on M/T-box, 335ish for M-box, high 320s for A box.
==Logging/tuning/trouble shooting==
* RS4 sensor maxes at 364.08 on VAGCOM, but people have documented higher readings with ECU Explorer (Mark P for example).


===Signal conditioning===
===Signal conditioning===
Line 61: Line 79:
**the ECU reads roughly <math>16*(V-0.5)^2</math> g/sec. Although the voltage to grams/sec conversion is independant of IAT, it appears as though the ECU has a correction factor that goes up with RPM.
**the ECU reads roughly <math>16*(V-0.5)^2</math> g/sec. Although the voltage to grams/sec conversion is independant of IAT, it appears as though the ECU has a correction factor that goes up with RPM.
* can "tweak" measured maf values by using a piggyback [http://www.splitsec.com/products/conditioner.htm signal conditioner]
* can "tweak" measured maf values by using a piggyback [http://www.splitsec.com/products/conditioner.htm signal conditioner]
* Bosch is similar, but convex shaped transfer function?
* difference in polarity between bosch/hitachi?
* Bosch is 0V -> max air flow, 4.5V -> zero air flow, 4.5V-5V -> negative air flow?


===MAF housing diameter===
===MAF housing diameter===
Line 72: Line 89:
** voltage goes down with diameter?
** voltage goes down with diameter?
** MAF reading therefore down with square of diameter and with crossectional area
** MAF reading therefore down with square of diameter and with crossectional area
* more air means we need more fuel - larger injectors, higher pressure FPR
* more air means we need more fuel - larger [[fuel injectors]], higher pressure FPR
* how to determine MAF housing diameter vs injector size and fuel pressure (fuel flow).
* how to determine MAF housing diameter vs injector size and fuel pressure (fuel flow).


=== Effect on Velocity ===
=== Effect on Airflow ===
A strong S4 running stock K03s, MAF, and fueling uses approximately 260 g/sec of air


One way to determine how big a housing to use for a MAF value is by simply comparing cross sectional areas using percentages.
To calculate velocity, we convert the g/sec into <math>m^3/sec</math> (volume of air per second) by dividing by 1225 <math>g/m^3</math> (density of air at sea level).


We then divide by the cross sectional area of the housing (<math>(pi x D/2)^2</math>).
Cross sectional area is given by <math>A = \pi r^2 = \pi (\frac{D}{2})^2</math>


where D is the MAF housing diameter in mm. (e.g. 88mm, 90mm, etc.)
So we get [http://www.google.com/search?q=260%2F1225+m%5E3%2Fsec+%2F%28pi+*+%28%2873%2F2%29mm%29%5E2%29++in+mph%3D&btnG=Search <math>(((260/1 225) (m^3)) / sec) / (pi * (((73 / 2) * mm)^2)) = 113.437141 mph</math>]


Since the stock cross sectional area is <math>A_{stock} = \pi (\frac{73}{2})^2</math> (73 being the stock MAF housing size in mm), the increase in MAF (g/s) in % <math> = (\frac{A}{A_{stock}}-1) 100 = ({(\frac{D}{73})}^2-1) 100</math>
=== Effect on Airflow ==
{| class="wikitable" style="background:lightgrey"
Increase in MAF (g/s) in % = <math>((X/Y)-1) x 100</math>
|+ Various modded MAF housing diameters
!MAF || Diameter || Deviation || Measured airmass || True airmass
|-
|AWE ||85mm*|| +35.6% || rowspan="4" | 364 g/sec ||493 g/sec
|-
|ASP ||85mm || +35.6% || 493 g/sec
|-
|Custom||88mm || +45.3% || 528 g/sec
|-
|ASP ||90mm || +52.0% || 553 g/sec
|}


*AWE actual dimensions are 77mm (inlet) to 100mm at sensor. It reads roughly equivalent to an 84mm-86mm MAF, but the response isn't exactly equivalent at all airflow magnitudes.
<math>X = 3.1415 x (A/2)^2</math>


=== Effect on Velocity ===
where (A) is the new MAF Housing diameter in mm. (ex.: 88mm, 90mm, etc.)


Velocity is a good way to approximate the maximum airflow that can be measured by a sensor, because it is independent of the housing's cross sectional area.
<math>Y = 3.1415 x (73/2)^2</math>


A strong S4 running stock K03s, MAF, and fueling uses approximately 260 g/sec of air.
73mm being the stock MAF Housing size in mm.

To calculate velocity, we convert the g/sec into <math>m^3/sec</math> (volume of air per second) by dividing by 1225 <math>g/m^3</math> (density of air at sea level).

We then divide by the cross sectional area of the housing (<math>(D\pi/2)^2</math>).

So we get [http://www.google.com/search?q=260%2F1225+m%5E3%2Fsec+%2F%28pi+*+%28%2873%2F2%29mm%29%5E2%29++in+mph%3D&btnG=Search <math>(((260/1 225) (m^3)) / sec) / (pi * (((73 / 2) * mm)^2)) = 113.437141 mph</math>]




{| class="wikitable" style="background:lightgrey"
{| class="wikitable" style="background:lightgrey"
|+ Various MAF housing diameters
|+ Various stock MAF housing diameters
!- || Diameter || Change in airflow ||
! ||MAF|| Diameter || Max airflow || Velocity
|-
|-
|Stock||73mm|| -
|Stock ||S4 ||73mm||220 g/sec||96 mph
|-
|-
|RS4||83mm|| rowspan='2'| +35.6%
|Stock ||RS4 ||83mm||320 g/sec||108 mph
|-
|-
|Chipped ||S4 ||73mm||260 g/sec||113 mph
|D-Flo||83mm
|-
|-
|Stage 2+ ||S4 ||73mm||280 g/sec || 122 mph
|ASP||85mm || +35.6%
|-
|-
|VAGCOM limit||RS4||83mm||364.08 g/sec||122 mph
|Custom||88mm || +45.3%
|-
|-
|Stage 3- ||S4 ||73mm||310 g/sec|| 135 mph
|ASP||90mm || +52.6%
|-
|-
|5V at sensor||S4 ||73mm||337 g/sec||147 mph
|AWE||100mm (stepped up from 77mm)|| N/A || more or less equivalent to ~84mm
|-
|5V at sensor||RS4||83mm||499 g/sec||168 mph
|}


* VAGCOM limit seems to be 318ish on M/T-box, 335ish for M-box, high 320s for A box.
* Sensor value absolute maximums are 364.08 on VAGCOM and 499 on ECUx.
* S4 stock MLHFM ends at 1213.1 kg/hr, or 337 g/sec
* RS4 stock MLHFM ends at 1996.1 kg/hr. With MLOFS, that is 1796.1, or 498.9 g/sec
* Note that some programs scale g/sec readings, so what ECUx/VAG-COM reports can't always be trusted.

=== Using the maximum velocity ===

As you can see, the maximum velocity measured by both the Hitachi and Bosch sensors is approximately 160mph. We can use this value to determine what size housing we need to measure a given maximum amount of air mass with a given sensor.

{| class="wikitable" style="background:lightgrey"
|+ Various modded MAF housing diameters using a Hitachi MAF
!MAF || Diameter || Velocity || Measured airmass|| True airmass
|-
|AWE || 85mm* || rowspan="4" | 160mph || rowspan="4" | 367 g/sec || 497 g/sec
|-
|ASP || 85mm || 497 g/sec
|-
|Custom|| 88mm || 533 g/sec
|-
|ASP || 90mm || 558 g/sec
|}
|}

*AWE actual dimensions are 77mm (inlet) to 100mm at sensor. It reads roughly equivalent to an 84mm-86mm MAF, but the response isn't exactly equivalent at all velocities.

===MAF and [[load]]===
{{Load}}


===MAF and fueling===
===MAF and fueling===
Line 130: Line 192:


[[Category:Tuning]]
[[Category:Tuning]]
[[Category:Mass airflow sensors]]

Latest revision as of 19:24, 11 October 2020

General information

A mass air flow (or MAF) sensor placed just before the intake manifold measures the instantaneous rate of air entering the combustion chamber. This is done using a thin wire or film suspended in the air stream.

Hot wire MAF

A hot wire MAF is composed of a thermistor wire and an ammeter. Since the MAF wire is a "positive k" thermistor, the hotter it gets, the higher its resistance. The colder it gets, the lower its resistance, and the more current that passes through the wire. However, the more current flowing through the wire, the hotter it gets (similar to an electric heater). This sets an upper stable limit of current, since as the resistance of the wire increases, the less current that flows through it. This "stable" point changes depending on how much air is flowing past the wire, providing cooling. The more air flowing past the wire, the more current the wire can allow through before it heats up enough to offset the current. Therefore, at any given time, the amount of air flowing through the MAF is proportional to the amount of current flowing through the wire in the sensor.

Hot film MAF

Hot film maf.png

A hot film MAF is comprised of a diaphragm with a heating zone and two symmetrically arranged temperature sensors on either side of the heating zone. A control circuit maintains the heating zone at a constant overtemperature above ambient such that the downstream sensor reads a lower (but constant) temperature. The more air that blows past the upstream sensor, the cooler it is when compared to the downstream sensor. Thus, the difference in temperature (ΔT) between the upstream and downstream temperature sensor is proportional to the amount (and direction) of air mass flowing over the membrane. A thin film MAF can also detect a reverse flow of air, which may happen during high load factors. Reverse flow pulses from the pistion generate waves in the air upstream of the throttle body, and should not be allowed to affect the meter's readings.

S4 specific information

The B5 S4's Bosch Motronic ME7.1 ECU uses a mass air flow based fuel injection system. During open loop (for example, during engine warm-up and wide open throttle) operation, the MAF tells the ECU how much fuel to deliver to keep the air fuel ratio at the desired level. Generally, open loop fuel ratios are not stoichiometric, so narrow band O2 sensors can not be used for this. Thus, for proper functioning, MAF readings are critical for proper open loop behavior; there is no way for ME7.1 to detect if the fueling is off.

Unlike wideband O2 sensor equipped cars, the ME7.1's narrow band O2 readings are ignored during open loop operation. The O2 sensors (along with MAF readings) are used to determine fueling only during closed loop operation (idle and partial throttle). Note that since MAF readings are also used during closed loop operation, long term fuel trims (or LTFTs) may be affected by faulty or incorrectly tuned MAF setups, including the use of blow off valves (or BOVs).

Temperature (IAT) effect on MAF readings

Because of their design, both the Bosch and Hitachi MAF correct for ambient temperature, so the ECU does not use the IAT sensor in its load calculations.

Both types of thin film MAF keep the heating element at a constant overtemperature above ambient, so the ΔT between the upstream and the downstream sensor will always give a "cooling capacity" of the mass of air passing over the film. By holding the overtemperature constant, the "cooling capacity" is linear with the air mass passing over the film, regardless of IAT.

IAT effect on timing and fueling

However, IAT does play a role in adjusting the base timing and fueling maps. Unfortunately, those adjustments are done before any correction factor (ignition retard) that comes from the knock control function, so IAT related timing adjustment values are not visible to tools like VAGCOM or ECUx. In general, the higher the IAT is above approximately 50°C (~120°F), the more timing will be pulled and the more fuel will be added.

Bosch vs. Hitachi

B5 S4s and RS4s came with several different types of MAF sensors

  • Bosch 078 906 461B (S4)
  • Bosch 077 133 471K(X) (RS4)
  • Hitachi 06C 133 471A

All are film-type MAFs. Each has totally different signal characteristics and are not compatible, even if properly rewired. A-Box/B-Box cars (MY2000) came with Bosch MAFs. H-Box/J-Box (MY2001), M-Box/L-Box (MY2001.5), and T-Box/AA-Box (MY2002) cars came with Hitachi MAFs.

A-Box/B-Box/S8/RS4
aka Bosch
H/J/M/L/T/AA-Box
aka Hitachi
pin color wire color wire
1 blank/unused none violet/grey +5V
2 green/yellow +12V (ign/bat) green/yellow +12V (ign/bat)
3 black/green ground black/green ground
4 violet/grey +5V green signal
5 green signal blank/unused none

Changing from one "box" to another is as easy as unplugging one ECU and plugging in another. Some tuners offer "flash" upgrades where an ECU can be reprogrammed via the OBD-II port. However, changing ECU boxes may also require a cluster recode and a MAF conversion.

List of needed parts to convert a Bosch MAF to a Hitachi MAF:

Part number Qty Description
06C 133 471A 1 Hitachi MAF with housing (add “X” to part number for remanufactured)
1J0 973 705 1 Housing (aka plug)
4A0 906 102 1 Grommet (aka boot)
000 979 131A 3 Wires with connectors
357 972 741 5 Weather seals for wires into the housing
111 971 940A 5 Weather sealed butt connectors as used by VW/Audi as the OEM way to repair a wiring break.

AWE has excellent instructions on how this is done.

Logging/tuning/trouble shooting

Signal conditioning

MAF V vs g per sec.png
  • For the Hitachi MAF
    • 0-0.5V means negative air flow?
    • 0.5V is zero air flow?
    • 5.0V is maximum reading.
    • the ECU reads roughly g/sec. Although the voltage to grams/sec conversion is independant of IAT, it appears as though the ECU has a correction factor that goes up with RPM.
  • can "tweak" measured maf values by using a piggyback signal conditioner
  • Bosch is similar, but convex shaped transfer function?

MAF housing diameter

  • MAF signal has an absolute top end reading of 5 volts. So have to scale MAF if we want more HP (since more HP means more air will be passing through MAF).
  • To keep the signal under 5 volts for the maximum air flow, we have to make the diameter larger. This will make the signal smaller for a given air mass flow.
  • For a given mass air flow:
    • air velocity goes down with cross sectional area
    • cooling capacity goes down with cross sectional area or diameter?
    • voltage goes down with diameter?
    • MAF reading therefore down with square of diameter and with crossectional area
  • more air means we need more fuel - larger fuel injectors, higher pressure FPR
  • how to determine MAF housing diameter vs injector size and fuel pressure (fuel flow).

Effect on Airflow

One way to determine how big a housing to use for a MAF value is by simply comparing cross sectional areas using percentages.

Cross sectional area is given by

where D is the MAF housing diameter in mm. (e.g. 88mm, 90mm, etc.)

Since the stock cross sectional area is (73 being the stock MAF housing size in mm), the increase in MAF (g/s) in %

Various modded MAF housing diameters
MAF Diameter Deviation Measured airmass True airmass
AWE 85mm* +35.6% 364 g/sec 493 g/sec
ASP 85mm +35.6% 493 g/sec
Custom 88mm +45.3% 528 g/sec
ASP 90mm +52.0% 553 g/sec
  • AWE actual dimensions are 77mm (inlet) to 100mm at sensor. It reads roughly equivalent to an 84mm-86mm MAF, but the response isn't exactly equivalent at all airflow magnitudes.

Effect on Velocity

Velocity is a good way to approximate the maximum airflow that can be measured by a sensor, because it is independent of the housing's cross sectional area.

A strong S4 running stock K03s, MAF, and fueling uses approximately 260 g/sec of air.

To calculate velocity, we convert the g/sec into (volume of air per second) by dividing by 1225 (density of air at sea level).

We then divide by the cross sectional area of the housing ().

So we get


Various stock MAF housing diameters
MAF Diameter Max airflow Velocity
Stock S4 73mm 220 g/sec 96 mph
Stock RS4 83mm 320 g/sec 108 mph
Chipped S4 73mm 260 g/sec 113 mph
Stage 2+ S4 73mm 280 g/sec 122 mph
VAGCOM limit RS4 83mm 364.08 g/sec 122 mph
Stage 3- S4 73mm 310 g/sec 135 mph
5V at sensor S4 73mm 337 g/sec 147 mph
5V at sensor RS4 83mm 499 g/sec 168 mph
  • VAGCOM limit seems to be 318ish on M/T-box, 335ish for M-box, high 320s for A box.
  • Sensor value absolute maximums are 364.08 on VAGCOM and 499 on ECUx.
  • S4 stock MLHFM ends at 1213.1 kg/hr, or 337 g/sec
  • RS4 stock MLHFM ends at 1996.1 kg/hr. With MLOFS, that is 1796.1, or 498.9 g/sec
  • Note that some programs scale g/sec readings, so what ECUx/VAG-COM reports can't always be trusted.

Using the maximum velocity

As you can see, the maximum velocity measured by both the Hitachi and Bosch sensors is approximately 160mph. We can use this value to determine what size housing we need to measure a given maximum amount of air mass with a given sensor.

Various modded MAF housing diameters using a Hitachi MAF
MAF Diameter Velocity Measured airmass True airmass
AWE 85mm* 160mph 367 g/sec 497 g/sec
ASP 85mm 497 g/sec
Custom 88mm 533 g/sec
ASP 90mm 558 g/sec
  • AWE actual dimensions are 77mm (inlet) to 100mm at sensor. It reads roughly equivalent to an 84mm-86mm MAF, but the response isn't exactly equivalent at all velocities.

MAF and load

MAF and fueling

  • how lemmi fueling (pri/second/accell/decel)
    • affects open loop fueling (MAF vs injector duty)
    • affects closed loop fueling (LTFTs)
    • see also Lemmiwinks.

Bad MAF

  • Unplugging the MAF will result in the ECU thinking it is broken. Some think this will prevent the ECU from ever going open loop, some think that the ECU can go open loop, but the MAF signal is simply ignored.
  • The Audi 2.7t self study guide (page 50) says "If the air mass meter fails, the air mass is calculated on the basis of a characteristic curve (throttle valve angle and engine speed)"
  • Is the MAP used in "characteristic curve" calculations?
  • If so, what does the ECU do in the case where it thinks the MAP is dead?