Is it possible to detect if a charger in plugged in, and disable (or completely disconnect) any of the remaining circuit?
This image from Detecting When a USB Device Is Plugged In For Status LED provides an interesting idea to light up an LED when it is charging, but it uses way too many components for my use case.
I'm using a LiPo battery attached to a microUSB charging circuit. Assume that the non-battery circuit consist of a single op-amp. How would I disconnect or lower the power voltage beneath usability for the op-amp when the circuit is plugged in, without draining the actual battery charging part of the circuit?
Is the only option to use a mechanical switch?