cosmicboy
Junior Member level 2
Hi folks,
I have a battery powered circuit that also has a USB connection and I am looking for a way to disconnect the battery and power the board from USB when the USB is plugged in.
The simplest way I can think of accomplishing this is by using a SPDT switch (something like a sn74lvc1g3157 perhaps?) but one problem of this approach is, how do I power the switch?
This is a little block diagram of what I am trying to achieve:
**broken link removed**
So when there is USB Power the circuit is powered from the USB bus and when it is unplugged the circuit is powered from the battery.
I am sure someone must have thought about this before so could you give me some pointers?
Thanks!
I have a battery powered circuit that also has a USB connection and I am looking for a way to disconnect the battery and power the board from USB when the USB is plugged in.
The simplest way I can think of accomplishing this is by using a SPDT switch (something like a sn74lvc1g3157 perhaps?) but one problem of this approach is, how do I power the switch?
This is a little block diagram of what I am trying to achieve:
**broken link removed**
So when there is USB Power the circuit is powered from the USB bus and when it is unplugged the circuit is powered from the battery.
I am sure someone must have thought about this before so could you give me some pointers?
Thanks!