CyberGene
luns The "hammer" sensors I'm aware of are at the shank, or rather the flange. These move much slower than the hammer itself, and on the same order as the key, so in a certain sense, numbers for the velocity measurement end up quite similar to doing key-based sensing.
Hi and welcome š
It doesnāt matter where the sensors are because Iām measuring the duration between two sensor activations and those two points are set based on where the actual hammer tip is, the first point 2mm before stop rail and the second point at stop rail. So, I know that the actual tip of the hammer traveled 2mm for a certain time and thatās the real velocity Iām measuring and using. Sure, the linear velocity of the shank where the optical sensors are, is lower than the tip of the hammer but even if I measured it, it wouldnāt matter because I would be measuring the same duration. I would use a shorter distance which would lead to lower velocity but even in that case it wouldnāt matter since itās the relative velocity that matters and needs to be mapped into a range of 0-127.
But other than that I agree with you about the resolution and the waste of an ADC if used to simulate what the trimpots and the comparators do in my solution.





