Hi folks, not sure if I should post this in r/androiddev but I thought it’d be better if I start it here.
I have a console of 3 indicator LEDs, they are connected to their own modules so that when a module is turned on, the corresponding LED will be lit to indicate that that module is active, when the module is inactive the LED is off.
Now I want to keep track the usage of these 3 modules by an Android device instead of LEDs, my goal is in real time the Android device will know which module is active and which is inactive (for other purposes like logging or displaying on another screen). Could anyone advise me on how can this be done?
The wiring diagram seems to be simple – the hot wire was forked before it goes to the module, the other branch will go to the LED, so if there is power to the module, there will be power to the LED, thus lights it on. My idea is to use a module to detect the electricity from an input and will send a signal to the Android device to let it know which one is active. But I’m not sure if that’s the right convention.
Thank you guys
submitted by /u/tienlp
Original article: How can I detect electricity from a wire and send it to an Android device?