I have a small module that charges 2S (8.4V) Li-ion batteries, by a DC 5V Input. It boosts the 5V input to the 8.4V needed for the 2S modules.
This module in particular, when no battery is attached, outputs 4.2V at the BAT+ and BAT- (GND), at it's idle state. When a battery module is attached it outputs the 8.4V and starts the charging protocol.
I want a MCU to "know" if a battery is attached or not, so I thought about using a 10k + 10k voltage divider between BAT+ and BAT-, and from the two resistors common point, add a wire to an MCU input, and sense the voltage by the MCU. If it's 4.2V, no battery attached. If it's more than that, a battery is attached.
Would this 10K + 10K voltage divider at BAT+ and BAT-(GND) interfere with the charging protocol? Is it safe to do that? Am I thinking right?
If it's possible, I read in this article below that it's possible to use two 10Mohms instead of two 10Kohms resistors in the voltage divider, adding a 0.1uF capacitor between the lower part of the divider (the input pin of the MCU and GND). The current draw would be 0.42uA if connected forever at the Bat's terminals. I don't need fast measurements. They'll be done once each 5 seconds.
Measuring battery without draining
If it's not the right way, is there another way for me to sense this voltage change without interfering with the charging process? I wanted few components, so two resistors seemed the simplest way.
Attached is a picture of the charging module and its Chinese datasheet