I have 5 to 1 HDMI switch that I lost it's remote.BUT the switch provides manual button that can CIRCULATE the 5 inputs. Each input selected has it's LED marked with Input 1....5
So, by pressing the button I can switch between INPUTS to select which HDMI device I want for output.
NOW, I want to avoid the manual operation. I located the button 2 pins One 5 v and the other GND
When I press the button the 5V goes to ground and the INPUT LED MOVES TO THE NEXT input.
What I want to do is to have arduino do the 5V to GND AND determine WHICH input it is at.
Once Arduino detected which LED is ON, it display it's ID.
Let me iterate:
The box has a button when I press it once a LED with ID is ON so I know that that input is selected for output ( TV). If I keep pressing the same button I go to the next input and thus circulate through the 5 inputs until I decide which one I want for output.
The wiring will be ONE to emulate the button, and 5 pins to detect which LED is HIGH
and then the display wiring which will be I2c
This is a poor-man schematic.