Author Topic: Isolating battery input from dc jack input on a PCB  (Read 4896 times)

0 Members and 1 Guest are viewing this topic.

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Isolating battery input from dc jack input on a PCB
« on: August 03, 2016, 01:03:11 pm »
I want to design a PCB which gets powered from 6xAA batteries or a 9v wall adapter. I am wondering how to isolate these 2 supplu inputs from eachother, so that only one should work? I was thinking about some diodes but how?  |O

 
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12855
Re: Isolating battery input from dc jack input on a PCB
« Reply #1 on: August 03, 2016, 01:14:03 pm »
The usual approach is to simply connect the battery negative via the switched contact on the jack.  When the DC jack plug is inserted the batteries are automatically disconnected.
 
The following users thanked this post: sean87

Offline Buriedcode

  • Super Contributor
  • ***
  • Posts: 1611
  • Country: gb
Re: Isolating battery input from dc jack input on a PCB
« Reply #2 on: August 03, 2016, 01:15:06 pm »
Several options.  The most common for battery/DC jack powered devices is to use the DC socket's normally closed switch to route the ground of the battery to the ground of the circuit.  When a plug is plugged in, this is disconnected and the outer connection of the DC plug is connected to circuits ground - disconnecting the battery.



Other options are, use a diode on each power input with their cathodes connected - the higher voltage supply with be the one that powers the circuit.  The downside with that is, you'll lose ~0.6V (~0.2-0.4V for schottky diodes) of the battery voltage, which for portable applications just reduces battery life/efficiency.

https://tangentsoft.net/audio/cmoy/bitmaps/diode-or-bridge.png


More complicated (but still straightforward) options are to use a P-channel MOSFET on the battery input, with its gate pulled down to ground with a resistor.  The gate can be pulled 'high' (so the FET is off) when power is applied to the DC jack, using transistors to invert the signal.



Like i said, many ways to do this, its a question of efficiency, cost, but by far the most common is using a DC socket with switch:
 
The following users thanked this post: sean87

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: Isolating battery input from dc jack input on a PCB
« Reply #3 on: August 03, 2016, 03:41:09 pm »
The usual approach is to simply connect the battery negative via the switched contact on the jack.  When the DC jack plug is inserted the batteries are automatically disconnected.

Several options.  The most common for battery/DC jack powered devices is to use the DC socket's normally closed switch to route the ground of the battery to the ground of the circuit.  When a plug is plugged in, this is disconnected and the outer connection of the DC plug is connected to circuits ground - disconnecting the battery.



... ...

Like i said, many ways to do this, its a question of efficiency, cost, but by far the most common is using a DC socket with switch:

The switched socket has been around for decades.  Easy solution with effective isolation of the batteries when the adapter plug is inserted.  Not fancy, just effective.
 
The following users thanked this post: sean87

Offline johnkenyon

  • Regular Contributor
  • *
  • Posts: 123
  • Country: gb
Re: Isolating battery input from dc jack input on a PCB
« Reply #4 on: August 05, 2016, 02:31:35 pm »
The switched socket has been around for decades.  Easy solution with effective isolation of the batteries when the adapter plug is inserted.  Not fancy, just effective.

With the added advantage that for many power connectors you get the functionality for free, or for no more than pennies compared to an unswitched connector.
 
The following users thanked this post: sean87


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf