Paul Lamar wrote:
Determining the shape of the intake pulse.
This is from Motorola AN318.rev2.pdf
http://www2.hibbertgroup.com/freescale/main
Should be real easy to hook this up to your intake manifold
and a hand held scope (rather than the microcomputer shown)
and monitor what is going on in your intake manifold at any RPM.
I am not sure what part numbers for pressure sensors
that will work here but the MPX5xxxx sensors should work for sure.
All you need is a cheap one chip 5 Volt voltage regulator from Radio
Shack. It should then work off the 12 volts in your car or
airplane.
BTW This is for all you assemble language programmers out there
doing your own EFI system design.
If memory serves me correctly... if you take eight 10 bit (1024
decimal)
equally spaced samples during the time the intake port is open
and add them up that is 8,192 or a 13 bit number. No problem as most
microcomputers deal in 16 bits these days. If you then shift
one bit right four times (same as dividing by four) you will
then be back to a 10 bit number which should be roughly proportional
to the
total amount of air in the intake port. No need for any floating point
math.
10 bits 1024
11 bits 2048
12 bits 4096
13 bits 8192
Oh so close. Paul is describing simple 16-bit integer statistics
("arithmetic mean" in this case). Right shifting is equivalent to
division by two, so if you sum a total of X (X is a multiple of two)
values, then you can right shift the sum by the log2(X) to compute the
integer average. Example:
Sum 2 integers
2 is 2^1 so
Right shift the sum 1 bit to compute the average
Another example:
Sum 4 integers
2 is 2^2 so
Right shift the sum 2 bits to compute the average
Unfortunately Paul wrote:
Sum 8 integers
8 is 2^3 so
Right shift the sum *4* bits . . .OOPS!
And then he compounded his error by saying "right shift four times" was
equivalent to "dividing by four", making it a double wrong statement:
it's equivalent to dividing by 16, that is 2^4, and Paul added *8*
samples so he should divide by *8* to compute the mean.
The real answer would be:
Sum 8 integers
8 is 2^3 so
Right shift the sum *3* bits
Yes, I am a professional programmer. :-)
No, I will not fix your installation of Windows XP/Office/... :-)
Russell Kent
It has been 30 years since I did this stuff Russell :) Thanks for the
corrections.
Please leave Russell alone he is one of our hidden assets. Big time :)
Paul Lamar
The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site.
http://www.rotaryeng.net
Copyright 1998-2005 All world wide rights reserved.