I'm interested in intercepting switch signals with a microcontroller or similar for modding purposes. I've done some projects with microcontrollers, but have never used an opto-isolator. Could an opto-isolator be integrated onto an existing switch in a switch matrix for the purposes of intercepting a switch hit? I guess it would be a matter of whether or not the switch matrix is outputting enough power to activate the opto.
There would also be an issue of the constant strobing of matrix, potentially making a closed switch look like a lot of open and close events, but that could maybe be handled with a debounce setting in the microcontroller.
I may just go ahead and order some and experiment, but wondered if anyone knew for sure if it could work or maybe if someone has a better way of reading switches from the game's matrix with a separate circuit.
What would the ideal way to wire them in be? Would it be a matter of wiring the LED side of the opto-isolator in parallel with (or in place of) the existing diode that's wired into the switch?
The more basic solution is, of course, adding a 2nd switch that gets activated at the same time as the game's switch, but mounting 2nd switches seems like it will be a huge pain if I want to have a lot of them.
Any advice from those more technically savvy than me is appreciated.
Thanks!