Charge battery and play while device is on, charge battery while device is off. How can this be done? Answered
Working on a small project and I've hit a small bump. My device has internal batteries that I want to charge while it is plugged in and turned on, and then when I switch the device off, the batteries still charge while it is plugged in.
I'm using Li-ion and yes, I have a charging/protection circuit for them. So through that circuit, they can be hooked up normally. I also have a power regulator attached to the main device. So it can't get fried.
I'm hoping to accomplish this through a switch. Maybe DPDT? But I'm unsure how to wire it. I tried one way with a DPDT and it just stays on...