Hi all, I'm prototyping something which could be powered from a 30VDC battery or 24VDC power barrel jack. I'm trying to find the simplest way to take power from the power jack if present, otherwise draw from the battery. It seems like a switched power jack is ideal for this. Whichever source is selected would then feed into a DC/DC converter module that provides a consistent stable rail for the system. These are discrete components connected via wire, not a PCB. All of the components are selected, and I'm trying to ensure I wire it correctly.
I'm confident the center pin of the power barrel goes to the DC/DC VIN terminal, the shell of the barrel goes to the DC/DC GND terminal, and the switch lead for the barrel is attached to the battery return (switch is normal-close). So when a plug is inserted it breaks the battery return's circuit. I'm less sure how to tie the battery positive into the system - I believe it would also be connected to the DC/DC VIN terminal. But should I use a diode? If so, how do I select the right type and parameters? And what's the best way to incorporate one into a wired circuit - just solder a through-hole component inline?
Thanks.