Q:

Battery management

I am currently charging a battery for a tablet with a Samsung charger. This charger can deliver up to 2A (below I put a picture of this charger). I would like to indicate by two leds when the battery is charged or not. Then I found the charging module TP4056-42 that manages the charging of the battery and indicates through the LEDs the charge. This module can provide up to 1A for the battery. I wonder if you have problems with the diagram below. Since the charger I will connect in the module supplies 2A and the module 1A. Diagram below.

simulate this circuit – Schematic created using CircuitLab
Samsung charger

A:

If you're going to use TP4056 a module like this one:

Then yes that is how you would use it.
Connect USB to the input jack or connect a 5 V supply between IN+ and IN-
Connect the battery between BAT+ and BAT-
Done!
That's how I use these modules.
Optionally you could change the "122" resistor to change the charging current. See the TP4056 datasheet for details.

