Hi ak,What is the external battery charger output voltage?
Also, again, what is the part number of the opamp. You show a part powered by 4 V trying to process a signal of 4.2 V. There are *very* few opamps that can do that.
Your understanding might be correct if R1 and R2 were diodes.
ak
ThanksIt looks like:
When there is no charger and is a batter; The motor current is monitored.
When there is a charger and no battery; The motor current is monitored.
Then there is a charger and a battery; The battery charging current and the motor current are mixed together.
Do you want to only watch the motor current?
Do you want to watch the battery charging current?