Tjoms99 / xiao_sense_nrf52840_battery_lib

A battery management library for the XIAO BLE and XIAO BLE Sense board using Zephyr.
Apache License 2.0
21 stars 3 forks source link

Optimizing power consumption #9

Open Tjoms99 opened 1 week ago

Tjoms99 commented 1 week ago

Summary

Addressing the issue of current draw by certain GPIOs when enabled, with a focus on optimizing power consumption.

Affected GPIOs

These three GPIOs are drawing current when enabled:

#define GPIO_BATTERY_CHARGE_SPEED 13
#define GPIO_BATTERY_CHARGING_ENABLE 17
#define GPIO_BATTERY_READ_ENABLE 14

Proposed Solution

When not in use, two of these GPIOs can be disabled to save power:

Details