BMG121 & BGM11S Battery monitoring on
I have a problem using BGM121 & BGM11S
I used Battery voltage is 3.0V
I referenced document "AN0021" & "Reporting Battery Voltage over BLE",
and example code " Battery-monitor-Example"
but I could not exactly understand AN0021 & "Reporting Battery Voltage over BLE"
1) According to AN0021 page 22-23
AVDD Voltage=3.0, => VFS=6.0 ( as TABLE 3.10)
so I applied the following
6/4096 = 1.465 mV step. at "adc.c" file
and batteryVoltagePct = (batteryVoltage/3000.0)*100 at "main.c" file
but this is not exactly.
Could you help me what is wrong?
Thanks for your help.
Oct 28 2017, 4:23 PM