CyberGene
AlexanderBunt I think 10mm is within the range of the CNY70, although I'm not sure what its range is but intuitively I'd avoid measuring longer distances than 10-20mm.
But I mean something else. In order for a velocity detection only at hammers for a piano to work correctly and not miss strikes, one needs to measure only the last 1-2mm of the hammer strike. Because it's possible for you to press the key until it reaches the escapement point and then throw it. The escapement distance is 1-2mm of the hammer. However the key-hammer leverage is 1:5 meaning the hammer travels 5mm for every 1mm of key travel. This means the hammer is very fast and if you have to measure only 1mm of its travel, you have to be very quick.
Now, if that distance was 10mm, you have more tolerance to measure the start and end. And then, since you will be measuring Carillon keys which are not leveraged, they will be much slower than a piano hammer.
Which is why I think you have much less critical requirement for a Carillion project compared to a piano. And is why I think even direct ADC from the CNY70 multiplexed from all its analog pins might turn out to work for you. Then everything will be in the code.



