Hi guys,
I've got a circuit that has a battery connect socket on, let's call it, 'left side' and battery charger IC output connected on 'right side'. The question is how to detect when battery is actually connected taking into account that IC charger is active and periodically ramps up voltage on 'plus' rail to 4.2V trying to detect battery itself? The only solution I was able to come to is to have not a two terminal battery connection, but three contact one and one of the contacts is simply shorted to ground, so when battery is plugged in - we definitely have BGND and I can use resistor divider to indicate that condition. But is there anything else that can be done? Thanks!