Here is the current setup, that has 3mm infrared leds and phototransistors paired, so that they can be plugged in or out separately, if it is needed. IR components are press fitted.
Parts holding them are 3d-printed, also press fitted to the base, as they would be very tricky to machine, because every pair has to have different height, corresponding to that string.
Meaning, that the led's and phototransistors "eyes" should be at the very same level with the string, to create a maximum "disturbance" in the infrared light, that travels from the led to the receiving phototransistor, providing the output:
Hopefully bit more clearer picture, as in the above pic, the ends of the IR components have been painted to prevent the "shine through" -effect:
There are plenty of configurations, of how the IR components could be arranged. At the moment, I use the horizontal one, because the string doesn't disappear from the IR beam, when bending it.
Vertical one cuts out immediately, unless there are multiple IR component pairs for each string.
For testing purposes, I'll try to make every consisting parts, and stages as "modular" as I can.
This earlier contraption has practically the same configuration of components, as above, but they are all part of... one part.
Addition to that, I used superglue to secure them in place. All seemed jolly good, until I tested the outputs. There was nothing to write home about.
Closer inspection revealed, that all the IR component's "eye" -surfaces had gone dull, because of the cyanoacrylate fumes

.
As one might guess, none of those parts are "serviceable" anymore.
Fortunately basic IR components aren't that expensive, neither is the PLA for the 3d-printer.
Next comes the "interfacing" with a guitar, while testing. I haven't yet found a way to "surface mount" all the possible electronics, without disturbing the guitar's delicate, inner self.
If one wants to take the step, to test out the concepts mentioned, be sure to have a sacrificial guitar, that doesn't mind the few extra holes drilled through it.
I think the interfacing is very important, to assure, that the IR components stay in place during all the tests.
I made a cavity to the back of the guitar, to have enough space for two small circuit boards. I used paint to attach aluminum foil to the surface, just in case, that the grounding is needed:
There are 12 holes, that go through the wood:
That way, there is something to attach the phototransistor's leads, instead of them moving wildly around. Longer leads belong to the IR leds, and are wired in series, instead of earlier, parallel configuration.
--------------------------------------------------------------------
Feeding the IR leds is somewhat confusing for me. While wired parallel, there was big differences between their interaction with phototransistors, so much that every one of them required "tuning", and still didn't deliver other than unwanted noise for the receiving component.
Series config offered pretty much the same results. All that was done using plain DC for the leds.
Seems that it wasn't enough to keep the phototransistors busy enough, to keep them from observing the background noises.
More on that in the next posting.