We need to know the exact engine RPM at all times because of the inductive ignition
coil on plug. These coils cannot tolerate being on all the time like the old fashion
coil. They burn up. They need to be turned on only about 4 milliseconds before a
spark is needed so the current can be built up in the coil and store magnetic energy.
When the coil is turned off the field collapses and the spark is created.
At low RPM the coil would be on for about 150 milliseconds during one revolution of
the engine. At 8000 RPM it only takes about 7.7 milliseconds to make one rev. Still
...we have to leave the coil off half the time.
If the PIC timer is supplied with pulses from one of the microcontroller input pin,
then it turns into a counter. The quickest way to do this is have a lot of pulses
generated in one revolution of the engine. There are about 100 teeth on the flywheel
so that is the best thing to use. A low cost anti lock brakes sensor can look at the
flywheel teeth and send these pulses to a microcontroller input pin. If we count them
for only .018 seconds we can achieve acceptable resolution. at 400 RPM we are getting
666 pulses per second so the count would be 12. At 8000 RPM we are getting 13,333 per
second so the count would be 239. Perfect for an 8 bit counter that can count to 256.
With BASIC we can divide these numbers into 1 and get a number that is proportional
to RPM. .0833 at low RPM and .00418 at high RPM. To summarize we have come up with a
digital tach that updates about 55 times a second. Important when an engine is
rapidly accelerating.
The difficulty of this problem is why B&G left the ignition control out of the early
megasquirt EFI's. It will only worked with the big and heavy old fashion coils that
were on all the time and only turned off briefly to fire the plugs.
Paul Lamar
--
The Rotary Engine News Letter. Powered by Linux.
ACRE NL web site.
http://www.rotaryeng.net
You Tube key word PaulLamar2
Copyright 1998-2012 All world wide rights reserved.