Diode to allow powering from battery or usb

Discussion in 'General Electronics Chat' started by jerseyguy1996, Mar 17, 2013.

  1. jerseyguy1996

    Thread Starter Active Member

    Feb 2, 2008
    Hello! The following schematic has a 3.3V switching buck/boost converter and a LiPo charger IC. I would like to make it so that when it is not plugged into a 5V usb power source the circuit will run off of the battery, but when it is plugged into the USB it will charge the battery and power the circuit from the 5V USB source. Will the diode D1 be sufficient to make this happen?

    1 by jg1996business, on Flickr