2.1MM female barrel "make" switch

Hi folks - I'm looking for a 3 pin breadboard female 2.1MM barrel jack for my project.

The catch is that I want it so the "insertion pin" is open when there is nothing inserted in the jack, and closed when something is inserted.

I THINK common 3 pin 2.1MM barrel jacks (like this https://www.amazon.com/gp/product/B074LK7G86/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1) have the insertion pin reversed - where the 3rd pin is closed when nothing is inserted in the jack.

Can anyone send a pointer to a place I can purchase the jack I want online? I looked on digikey but it wasn't obvious which/where I'd find it....

Will be hard to source - the point of the switch is to disconnect internal batteries when external power is provided - typically for when there's a set of alkaline cells in a piece of equipment.

Certainly such a thing would be available as a custom order, but I doubt its readily available.

What are you trying to do?

I have a circuit with a NodeMCU on it and an RF Transmitter. I want the optionality to power the whole thing via either microusb on NodeMCU or via barrel.

If I power via microusb, I need to connect power and gnd from transmitter to nodemcu.

If I power via barrel, I want to connect both nodemcu and transmitter to the barrel directly.

I was thinking that the power loop between barrel and transmitter should be switched off (i.e. broken) if no pin is inserted. But I guess maybe it doesn't matter since no pin will be inserted and the loop will not affect the power coming from the nodemcu to transmitter?

Perhaps a diagram would be clearer - or maybe two for the different power options? Many Arduino boards
have a switching circuit on them for automatically switching from Barrel/Vin to USB and back, this might
be a suitable approach for your case.

larrywal32:
If I power via microusb, I need to connect power and gnd from transmitter to nodemcu.

If I power via barrel, I want to connect both nodemcu and transmitter to the barrel directly.

No need to :wink: Like I said, Vin will contain a voltage when USB is used :wink: