I think you are confusing accuracy that i was referring to with the update rate. I was referring to the accuracy of the measured cam phase in relation to the crank phase. As long as you need this data accurately only once per crank revolution, 1 tooth is enough.Admin wrote: I should also add that because of the other things I mentioned, the tooth count in them is usually small, and thus the gaps between the teeth get larger, and consequently the ability for the engine to accelerate and change rpm between the EMS's only way of knowing about it is much greater.
If you put fine teeth in so that that accuracy is there, then the jitter and play etc cause even more pronounced effects.
Essentially my algorithm of measuring this phase difference would be:
- have hardware interrupt on both triggers (duh)
- timestamp every crank tooth
- in the event of encountering an f/r or r/f edge on cam wheel, timestamp it and compare to the timestamps of the previously triggered crank teeth (within a certain history window) to determine the phase shift in terms of time difference.
- using an averaged RPM (or RPM history for past teeth for more accuracy) determine the phase difference in terms of angle. Add some fudge-factor for the valvetrain slack (as a function of the crank or cam position) and we get what we need.
(my point is that IMO number of crank teeth doesn't matter unless you want accurate phase shift determination more than once every crank revolution, which i believe is excessive and not needed)