RIP
AlexanderBunt And what do you think about pressure sensors, like the FSR402? My concern with these things are that they won't last long, cince there are many hits on them. But maybe this will work very nice; No need to worry about travel distance from the key here…
I would not use them for the same concern you stated but that's just me. After all also LED have a finished life, so even "our" sensors may degrade and die with time.
AlexanderBunt I like the last idea you got. I think there is enough space to do this. So for my concern: you mean putting a CNY70 for example at the side of a key, and then a strip of (for example 2 black and 2 white) stipes on the side of the key. Then measure the time between the sensor switching from black(far) to white(close).
I think there is also a sensor needed which registers that the key 'hits' the bell, to give the 'note on' signal. That combined with the velocity of the sensor at the side of the key will be a solution maybe. But then, you need a double of inputs (104)… and thats too much for a regular board.
It obviously depends on how much you want to design on your own versus as much you want to reuse from someone else. If you are not too much opposed in the latter, I believe your best bet is one of the things that Jay, stem_piano or I are doing (with the help of many others who AFAIK are not getting into the hw yet). Once you use these sensors to detect the position (of hammer or key in the piano's case) you can do many things with just one sensor per key. Note: this is different from what CG did with the comparators, which basically used the optical sensors as fancy touchless switches.
Also you may want to check for inspiration wrt what others do by lurking https://www.kvraudio.com/forum/viewforum.php?f=180 -- I don't think there is anything super-exciting for this purpose there, but that's with the lens of my interest, not yours.
Well, it's a pretty dull post, sorry that's the best I can do in between commits to my own repo 🙂



