Hi,
I have a connector that can plug into two slightly different devices. I want to automatically detect which device it's plugged into. With one of the devices, there is -5V (yes, that's minus 5 volts) coming in on a pin. With the other device, that pin is not connected to anything. I can't connect the pin directly to a microcontroller, because -5V would damage it. What can I do to get a 0 or 1 signal to the MCU based on whether the -5V is there or not?
Thank you,
Bob