How to connect the third contact in the DC barrel

dcpcb-design

I was reading this question post What to do with third contact in DC barrel plug with only two input contacts about the third connector of the DC Barrel, and said that you can know if the DC Plug is connected or not. How can you know that? Did the third pin give you ground or voltage? For example if I have an also a USB connector to give some priority to one of the connections.

Best Answer

If no plug is inserted, the third pin will contact the middle pin. You can put a bias on it from e.g. a battery, and detect presence of an external supply that way.