ttwrplus: Set battery charging current to 500mAh to limit PMU heating and max. capacity to 80% to extend lifetime by 2.5x-3x

Reference article: https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries
pull/193/head
Federico Amedeo Izzo 2023-08-05 10:45:08 +02:00 zatwierdzone przez Silvano Seva
rodzic 8e8daa78c8
commit e05d09f0fe
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -259,13 +259,15 @@ void pmu_init()
// Set constant current charge current limit
//! Using inferior USB cables and adapters will not reach the maximum charging current.
//! Please pay attention to add a suitable heat sink above the PMU when setting the charging current to 1A
PMU.setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_1000MA);
// NOTE: Charging current set to 500mAh to remove the need for a heat sink
PMU.setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_500MA);
// Set stop charging termination current
PMU.setChargerTerminationCurr(XPOWERS_AXP2101_CHG_ITERM_150MA);
// Set charge cut-off voltage
PMU.setChargeTargetVoltage(XPOWERS_AXP2101_CHG_VOL_4V2);
// NOTE: Target voltage set to 4.00V (80% charge) to extend battery lifespan of 2.5x-3x
PMU.setChargeTargetVoltage(XPOWERS_AXP2101_CHG_VOL_4V);
// Disable the PMU long press shutdown function
PMU.disableLongPressShutdown();