The NES controller is a simple parallel-in-serial-out chip with clock, latch and data pins exposed, as well as 5 V and GND through its connector.
The thing is (and I already researched but I haven't found any "good" methods) I'd like to detect when it is plugged in.
I'm not good in electronics.
I've seen a solution adding a transistor, but wouldn't it be possible to add a resistor from controller's GND pin to an input, so it acts kind of a pull-down, and you can read the voltage coming from that GND pin?
Is there any solution?
Also I've seen a possible solution using a 5 V Zener diode, but I don't know how I would connect it.
My idea is to have a pin to sense it, as other solutions suggest powering the Arduino with a transistor so when current is drawn by the controller Arduino is powered, but I need Arduino to be powered always as I'll have 2 controller ports on the same board, and I need to enable/disable joysticks in my PC programatically.