I'm currently creating a small device to operate on a CR2032 battery when it is disconnected and a USB power when it is connected. I want the device to be powered by USB when it is connected, without any interruption in the power feed. So my question is: how to switch from battery to USB one the device is connected?

I thought to connect two diodes and a PNP transistor to turn the power based on the battery as soon as the USB is connected. But I wonder if this circuit consume many current when the USB is disconnected (consumption must be very low)?

The circuit : Circuit with diodes and PNP transistor

If you have any solution which will consume less current please tell it to me !

  • \$\begingroup\$ There are several posts regarding this topic. You may want to search a bit. \$\endgroup\$ – Rev1.0 Apr 3 '16 at 17:25

You don't need the transistor, it is sufficient to use one diode for each power source. Try to use Schottky diodes so the power wasted on the diode will be minimal

|improve this answer|||||
  • \$\begingroup\$ Thanks for answer. If i use only Schottky diodes, will the CR2032 be disconnected (no power waste) and will the power source be switched without interruption ? \$\endgroup\$ – Thomas C Apr 3 '16 at 16:38
  • \$\begingroup\$ Yes to both questions \$\endgroup\$ – Claudio Avi Chami Apr 3 '16 at 17:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.