I have a battery ruining a circuit. I want to have it so that I can charge the battery with a small battery charging board I bought, but I need to know how to run the same circuit from the usb (which is available on board) while disconnecting the battery to charge until the charger is disconnected. Battery is 3.7v and usb is of course 5v I need help designing a circuit for this an solution with an ic to make it simple would be nice but simple components wouldn't hurt either