I'm using an Arduino Uno to read input from an NES controller (a simple 8-bit shift register). This is working just fine, but I'd like to be able to detect when the controller is disconnected to shut down the I/O polling, otherwise the ATmega reads a bunch of nonsense input from the floating input pins.
My main problem is that I am extremely not an EE, so I'm not quite sure how to go about doing that. The controller has 5 pins: Vcc (5V), ground, strobe (latch the 8 parallel inputs), clock (shift the bits out), and a data output pin. It looks like there's a pretty substantial voltage drop at the ground pin on the controller when no buttons are being pressed.
Essentially, I just need to detect when the Vcc-to-ground circuit is broken, and set one of the Arduino's input pins high or low accordingly. Doesn't matter which logic level represents disconnected, as the code can be easily adapted either way.
I've got a few hundred resistors of various sizes, a box of assorted NPN, PNP, and JFET transistors, and only a cursory understanding of how to use them. :)