Skip to main content
Dana Myers
Senior
December 28, 2021
Question

STM32WL End Client: GetBatteryLevel() measures Vref+, which isn't likely the actual battery level

  • December 28, 2021
  • 0 replies
  • 586 views

Using the STM32WL firmware V1.1, the end-client framework implements GetBatteryLevel() by reading VREFINT and determining what Vref+ is tied to. Assuming that Vdda is tied to Vdd, this measures the Vdd rail. Given motes likely use Lithium cells with LDO regulation, this isn't generally useful. I suggest an alternative in the FW package to configure an analog input used to sense actual battery voltage via a divider.

This topic has been closed for replies.