To make a voltage regulator from the LED circuit ... 5 V on the TL431 when the output sees 3.6 V, the voltage which a LiFePO4 battery is basically done charging. To see the TL431 in action here ...
Some results have been hidden because they may be inaccessible to you