Hi Mike,
thank you so much for your answer: It already helped a lot.
I read a couple things about MUXes already, but it all seemed pretty complex. I haven't worked with them so far, so I hesitated to go for it. But powering the photo transistors with a 74138s sounds great (if I'll be able to make it work
)!
Sorry for being so unspecific - here's what I'm doing:
I'm working on a device that people can connect to with a smartphone app. The device will have (about) 24 points where people can physically touch it. Each touch point has a status LED and a proximity sensor (I chose photo transistors because I think those are the cheapest option to recognize that a hand or foot covers the surface).
Based on a routine selected in the smartphone app, the device will tell users, which points have to be touched (status LEDs of these points are yellow). Once the user touches these points, the LEDs will turn green and the app starts it's routine. So I need to access only the two (or four) sensors of the touch points that are
activated by the app.
I need the sensors (photo transistors) to measure how long a certain point has actually been touched, to calculate success rates and optimize the routine structure and duration (all done by smartphone app) based on these metrics.
Although the photo transistor will be either uncovered or mostly covered, I chose not to simply use a photo diode because I want my device to work in different light environments. So I thought if I'd use a photo transistor, I could add an algorithm that detects brightness changes instead of making a decision on an absolute HIGH / LOW value. Am I right with this assumption?
There has to be a switch to turn on/off the board (I guess I don't need another button for pairing because it shall automatically enter pairing mode once it's turned on). Or do you think it should have a pairing button too?
Any tips? What would you do differently?
Thanks for your great help,
Markus