Author Topic: Power source selection  (Read 3310 times)

0 Members and 1 Guest are viewing this topic.

Offline p07gbarTopic starter

  • Newbie
  • Posts: 1
Power source selection
« on: May 28, 2012, 09:44:38 pm »
I've been gently scouring the Internet for a while looking and thinking about a power selection circuit after someone asked, then I came up to a problem:
Lots of boards give options for powering over USB or a barrel jack and therefore need a way to switch between: Arduino uses the op-amp as a comparator to switch a mosfet, but is it possible to use a mosfet just off the power rails or with single other transistors? The project I'm working on has quite tricky space and cost restraints so adding a op-amp seems kind of overkill.

I've thought of using diodes to simply give priority however I feel there must be a neater way...

Ideally I'd like to be able to draw about 300mA from the sources without anything getting too hot or magic-blue-smokey.

I tried a fairly simple solution on a circuit simulator of using a "self-on" mosfet (Source and gate connected) on the dominant barrel rail and a p-channel with gate connected to barrel rail as well on the USB rail. I don't really know enough about MOSFETs to tell if this was working and the circuit sim. seemed to basically function with no components...

Thanks in advanced for your help, I'm sorry to ask such a newbish question but the answer alludes me...
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5369
  • Country: nl
Re: Power source selection
« Reply #1 on: May 28, 2012, 09:51:07 pm »
Nothing wrong with diodes if you can afford the power drop, and otherwise you can always go old school: disconnect the USB power line when you insert the jack, like they do with battery/mains powered equipment  :)
Keyboard error: Press F1 to continue.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 11343
  • Country: nz
Re: Power source selection
« Reply #2 on: May 29, 2012, 01:57:24 am »
The common 1N5817 is about 0.32V drop at 300mA, that would make 4.68V available.
I've also put multiple 1N5817's in parallel before to get the drop under 0.3v.

There's also more specialized diodes like the LSM115J, which is 0.190V @ 300mA but a max of 15V
(That one is surface mount)
« Last Edit: May 29, 2012, 02:12:47 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf