- Sat Dec 30, 2023 3:05 pm
#66494
so simple maths says,
Normal tooth 12.7ms
Small tooth 8.5ms
difference is 4.2ms
if we take half the difference (2.1ms) and convert all of the above into percentages we get,
Normal tooth 100%
Small tooth 67% of the duration of a normal tooth
Difference between the two is 33%
Half way between the two is 84%
So if we find a tooth that who's duration is 84% or less of a full sized tooth we've got a small tooth. With teeth occurring every 90 degrees this doesn't sound like a robust tooth 1 detection strategy to me. Could potentially measure the gap between teeth so the gap has to over 116% and then the tooth less than 84% which complicates the code as we'd have to then decide what do we do if the gap is below and the tooth above the threshold or vis-versa.
If you think 84% works, let me know and i'll knock up some sample code based on missing tooth decoder to test.
Also, i'm picturing this as being very similar to a dual wheel setup conceptually. The trigger is the rising edge and all 8 teeth are spaced identically - this is like dual wheel. The difference is the 'secondary' isn't actually a separate wheel but a routine within dual wheel to reset the tooth counter.
Normal tooth 12.7ms
Small tooth 8.5ms
difference is 4.2ms
if we take half the difference (2.1ms) and convert all of the above into percentages we get,
Normal tooth 100%
Small tooth 67% of the duration of a normal tooth
Difference between the two is 33%
Half way between the two is 84%
So if we find a tooth that who's duration is 84% or less of a full sized tooth we've got a small tooth. With teeth occurring every 90 degrees this doesn't sound like a robust tooth 1 detection strategy to me. Could potentially measure the gap between teeth so the gap has to over 116% and then the tooth less than 84% which complicates the code as we'd have to then decide what do we do if the gap is below and the tooth above the threshold or vis-versa.
If you think 84% works, let me know and i'll knock up some sample code based on missing tooth decoder to test.
Also, i'm picturing this as being very similar to a dual wheel setup conceptually. The trigger is the rising edge and all 8 teeth are spaced identically - this is like dual wheel. The difference is the 'secondary' isn't actually a separate wheel but a routine within dual wheel to reset the tooth counter.