Subject: analog tach for EFI
From: rotaryeng
Date: 2/6/2014, 7:28 AM
To: AAA-rotaryeng


One of the pieces of info you need for an EFI is the RPM
of the engine. The required fuel flow is a function of the RPM,
the manifold pressure and the intake air temperature.

The usual way is to use a timer in the computer chip to
determine the time between a CAS signal and the next CAS signal.
CAS stands for Crank Angle Sensor. You have to invert that to get
the RPM. Another way is feed the CAS pulse into a counter in the computer and
read and reset the counter in a known time period. That usually requires
a real time clock hardware interrupt.


That is tricky to write the software to do that.
It is easier to convert the tach signal to a voltage and feed
that into an analog to digital channel. This takes way less computer
time and number of instructions. A simple read of the analog channel
and you have the RPM.

You also need to detect  the magnetic CAS sensor signal with a zero crossing
circuit. Fortunately there is a low cost chip to do both.

It is called the LM1518. It puts out a nice 100 usec wide
pulse controlled by a resister capacitor combination on pin 14.
Two jobs with one part.

Here is the simple schematic. The amount of charge (voltage) on
the capacitor is proportional to RPM as it is being fed a fixed
width pulse. The capacitor value controls the build up rate
of the voltage. I'll let you know what that is after I run
some test. Maximum analog voltage for the ARM BASIC chip is 3.3Volts.
Use a zener across the cap to make sure it never exceeds this value.


Paul Lamar

Can a mass airflow sensor take the place of both the  manifold pressure
and the intake air temperature (or even all three, as flow is proportional to RPM)?
C. Smith

Absolutely and I highly recommend it. It just cost a bit more.
The whole system will work better as there are no guesses on
the part of the programmer as to the mathematical relationship of
the various parameters in involved.

Your system will be tuned faster. To keep cost down look in a scrap yard
for a mass air flow from an engine with about the same HP as the rotary.
Mostly V8's.

If your MAF sensor puts out too much voltage at max HP on a cold day you can
use a voltage dividing circuit  (trim pot) to adjust it to 3.3 Volts maximum.

Then use a 3.3 volt zener to be sure you don't kill your ARM BASIC chip.

Paul Lamar