Pavlo wrote:The frequency method will not work unless we have many more teeth or sample the teeth over a long time period. They are in effect the same method but in period measurement we are measuring the number of processor ticks between tooth events, while in the frequency method uses the number of tooth events between a fixed number of processor ticks. If you were to measure in the frequency domain at say 4000rpm (lowest reasonable critical downshift speed) that equates to 7.6 teeth per 1ms. So you will either measure 7 or 8 so your rpm value will come out as either 3684.21RPM or 4210.52RPM so we are accurate to within +/- 263.16Rpm!
...
And this is where a mathematician could come in handy.
Let's say you frequency is 4000.
Q> Which FFT bin does that show up in?
A> All of them... Some are many dB down depending on the windowing function you chose to use.
Let's say it is in the 4210.52 bin.
Now ignor the amplitude and look at the phase in that bin.
And wait (the tiniest amount of time, like a mS)...
And quickly look at the phase again.
how many degrees has it moved?
The d/dt of the phase
is the frequency.
Pavlo wrote:...
On the stock trigger the ECU does NOT know the position accurately if there is any sort of speed change over a whole 87deg of rotation. That is why the factory ECU for example uses one tooth in particular to trigger cranking ignition at 10deg BTDC, as in cranking the engine is subject to wild speed variations over a cycle, but the ECU knows to fire the ignition at a certain tooth event, not flexible for timing of course but you know it's always going to be accurate. We already have issues with timing scatter at startup on the M800 due to compression ratio and the stock timing pattern.
...
I am not sure I agree, but I do agree that even at a constant RPM the phase is wavering on most engines such that there is not a frequency but a beehive of speeds around the main frequency (RPM).
Pavlo wrote:...
During normal running all of the trigger deficiencies are not a problem, but we are looking at events where the speed is changing during a single rotation of the engine. However if the M800 could output the CAN as we wanted, then it would be a trivial matter of fitting a 36-1 or 12t crank trigger to ensure better accuracy at the point of measurement. Remember the point of measuring the speed directly is we want to output the RPM in the requested format and speed which the M800 simply cannot do.
...
I having recorded crank pickups and precessed them.
But I have not done that and compared the data with an M800 PRM and RPM-derivative.
If you can do a recording then it should be straight forward to work out if it is will work or not.
I think you would be surprised, and then you would know definitively the answer.
Or you can trust me that you can see the torsional vibrations of the crankshaft, which are significantly smaller (in phase) than whirling RPM rate.
What you do is to run the crank signal into a relatively high impedance resister and into one channel or the other of a lap-top or PC. Is you also get the cam signal that is generally helpful. Run the cam into the other channel.
I think I used a 10k resistor soldered to a 1k to ground to effect a divide by 10.
...and I had 50-60dB of SNR, when comparing the engine off signal with the engine running at the fundamental frequency.
At 6000 RPM you have 100RPS, and with 36teeth you have 3600 teeth/second.lets say you use 10 of those teeth to account for the missing ones. And the FFTs can be overlapped.
It would get difficult if you did not know the math or have the tools, but it is easy to find those sorts in todays world... Once you have the data captured then you could do both approaches and validate the concept.
I happen to know a good mathematician.
You could also simulate the crank signal and do the whole thing as a simulation, and you can add in noise and jitter.
In fact if you did that and presented the M800 with those signals you could test how well the M800's RPM and derivative worked, because you knew the answers
a-priori !
You will need to have that understanding at some point, so why get the M150 before you've worked it out?