Battery indicator connected with bi-colored LED.
I need to make a system that indicates when a 3.7V battery is connected to a 5V source or not. When the battery is NOT connected a red LED stays on, when the battery is connected the red LED turns off and the green LED is on. I do not want to show a low battery or something like that, I need to show through the LEDs if the battery is ON or not, just that. Below what should be the circuit, but do not know how to make the connections to make the system work as I want.