Air Flow Meters – DIY The basics Air Flow Meters (AFMs) have been widely used in EFI systems since the 1970’s. The simplest AFMs are basically a hinged flap with a spring return. More air pushing past the flap causes more opening of the flap, and a change in voltage from a potentiometer attached to…

Written by


Air Flow Meters – Everything You Need To Know For DIY EFI

Air Flow Meters – DIY

Air Flow Meter, Mafless Tune, DIY EFI, Aftermarket ECU

The basics Air Flow Meters (AFMs) have been widely used in EFI systems since the 1970’s. The simplest AFMs are basically a hinged flap with a spring return. More air pushing past the flap causes more opening of the flap, and a change in voltage from a potentiometer attached to the flap. Importantly, these meters measure volume of air passing through. The signal needs to be corrected for air density before the fuelling amount is calculated. Given the air mass flow rate, injector sizing and target air fuel ratio, the injector pulse width can be calculated. This is EFI in a nutshell. Most modern EFI systems use the mass measuring hot-wire AFM. These are also called air mass meters to distinguish them from volume measuring devices, and have the advantage of no moving parts. They work by the control circuit passing a current through a hot wire suspended in the airflow. The control circuit senses a drop in the temperature of the hot wire when the airflow increases, and allows more current to flow to bring the temperature back to a set point. The amount of current flowing is the basis for estimating the mass airflow. In this post, let’s take a look at a typical hot wire AFM with a simple 0-5V output. The 5WK97012 is a very common AFM made by VDO and other OEMs. I found this AFM installed in my Z18XE powered Holden Astra.

Air Flow Meter, Arduino Fuel Injection, DIY EFI, Turbocharging
I have done plenty of DIY EFI work in the past with speed-density based EFI systems that use a manifold absolute pressure (MAP) sensor as the primary load input. Working with an AFM was new territory, and I didn’t have a spec sheet for the meter. Of course I could have just fitted a MAP sensor and been done with it, but the Rabbit DIY ECU I wanted to install is a budget DIY system that I want to work with the OEM sensors to avoid extra costs.

DIY graphing your AFM on the road

The most important thing to know about an AFM is the output curve. Usually the output is a voltage that changes with a change in air mass flow. You can gain a lot of info by simply driving the car before you modify it, and measuring the voltage output at different engine speeds. The only problem is you need to go wide open throttle and have a pretty good idea of the volumetric efficiency (VE) of your engine. You can safely estimate 0.8 for a 2-valve head and 0.9 for a 4-valve head. Let’s skip the maths and get right to a good equation that estimates g/s airflow for an engine of litres capacity D, volumetric efficiency VE and running at RPM R – mass flow (g/s) = (R x VE x D) / 98 mass flow (g/s) = (R x VE x D) / 98. For my 1.8L Z18XE engine, this gives a wide open throttle mass flow of 107 g/s at 6500 rpm. By going wide open throttle at varying RPMs, measuring and recording the RPM and AFM voltage output, you can get a pretty good AFM curve as a starting point.

Graphing your AFM with a DIY flow-meter

So what happens if your project isn’t running and you don’t have the datasheet for your AFM? One method that works for me is a DIY flow-meter using a hobbyist anemometer.

Air Flow Meter, DIY Fuel Injection, Arduino, Aftermarket ECU, ECU Reflash

This low cost unit from Jaycar gives a nice big back-lit m/s output. If we can mount it right at the centre of our DIY flow-meter tube, and draw air through the tube and AFM, we should be able to calculate the mass flow g/s. Measuring the g/s and AFM voltage output at different airflow rates gives us all the data we need to build our AFM output curve. In the spirit of DIY, we will use 4 inch PVC pipe for our DIY flow-meter tube and a variable speed vacuum cleaner for airflow! It is important that the PVC pipe is at least a few feet long, and that the anemometer is positioned half way length wise and centrally within the pipe cross-section, as shown here.

Air Flow Meter, DIY EFI, DIY ECU, Fuel Injection, Aftermarket EFI

Why is this important? You might notice the inlet of your AFM has a mesh grille a bit like a honeycomb. Turns out that the grille helps the smooth the airflow. Making sure the airflow is smooth (laminar flow) is important when measuring flow – especially within a tube.

DIY Electronics, Fuel Injection, Aftermarket EFI, Performance Tune, Performance Chip
When the flow is laminar, the measurement of flow is more reliable. But the downside is that the flow varies along the cross section of the pipe. Fastest at the centre-line, and zero at the walls. Our DIY flowmeter is far from perfect because it measures the flow ‘mostly’ at the centre-line, and also obstructs the flow a little. Doing a bit of maths to factor this in tells us that the velocity measured by the anemometer will be around 1.25 times more than the average velocity, so we will use a ‘fudge factor’ of 0.8 in our calculations (1/1.25). Here we will use:

1. An air density value of 1225 grams per cubic metre

2. Pipe area A = pi x radius x radius / 4 (0.0083 square metres for 4 inch PVC pipe)

3. Flow (metres cubed per second) = velocity V x area A 4.

Our laminar flow ‘fudge factor’ of 0.8 After doing the maths, this gives us a mass flow equation g = 1225 x 0.8 x V x A g = 1225 x 0.8 x V x A. Great! So now we can connect our DIY flow-meter to our AFM and finally to the vacuum cleaner and take some measurements. For example, when the AFM is 2.6V, the anemometer output is 2.9 m/s. So g = 1225 x 0.8 x 2.9 x 0.0083 = 23.6 g/s. Varying the airflow allowed me to collect about 10 data points. This method isn’t perfect – my vacuum cleaner maxed out at 5.8 m/s which isn’t the AFM maximum flow. But the data recorded was good enough to produce the curve below.

DIY Fuel Injection, Rabbit ECU, Performance Modification, Turbocharging, Mafless Tune

The blue points are the data calculated from the DIY flow-meter. The red points are the final curve points I programmed into the Rabbit DIY ECU.
How did it work out? So what have we achieved here? I was able to produce an output curve for an AFM with no data-sheet and without running it on an engine. Once I actually ran the car with this curve programmed into the ECU, it ran pretty well! To be honest there were a few points where the AFR was a bit off (I used the GP-meter 6.0 for measuring AFR). Around 16:1 at idle caused a poor idle and some rich spots around 14:1 at mid load. But for the most part, the AFR was pretty close to 14.7 – not bad for a DIY effort with a $50 hobbyist anemometer! It didn’t take much driving to notice that AFM tuning is not quite like speed density tuning. AFMs have some characteristics that cause the AFR to vary a lot during throttle movements. And how much airflow when cranking? The AFM isn’t very good at that either. Next post: How to deal with AFM downsides.

Next post: How to deal with AFM downsides.


Leave a Reply

Your email address will not be published. Required fields are marked *