This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Difference between battery measurement on ble_app_hrs and ble_app_proximity

Hello

I am working on the NRF51DK i would like to monitor the battery percentage and notifythe value over the air to the user and aslo alert the user if the battery levels fall below the certain percentage so i started testing the battery example on the SDK where the ble_app_proximity example always showing 100percent irrespective of whatever changes have been made on the program and i tried with the ble_app_hrs example it is showing the battery value (depending upon the charge present on the cr2032battery) i dont understand why the proxmity example always showing 100percent ? and how the ble_app_hrs is working? so i request can anyone give me some brief information about this point so that i can able to understand and proceed further for my application

Thank you

Parents
  • So, looking at the examples from SDK10 and 11. The proximity example is actually using the ADC to measure the battery voltage. While the heart rate example is using a sensor simulator to update the battery value. Please look for the ble_bas_battery_level_update function.

  • Thank you so much for your kind reply i gone through those examples and i ahve tested with the battery CR2032(3v) where in the ble_app_hrs example showing 94 percent (for battery and 81percent (via USB supply) but in the ble_app_proximity example it is always showing 100percent irrespective of supply provided by battery or USB can you help me what should i do in order to measure the correct abttery level ? it is advisable to use ADC measurement or battery sensor simulator?

Reply
  • Thank you so much for your kind reply i gone through those examples and i ahve tested with the battery CR2032(3v) where in the ble_app_hrs example showing 94 percent (for battery and 81percent (via USB supply) but in the ble_app_proximity example it is always showing 100percent irrespective of supply provided by battery or USB can you help me what should i do in order to measure the correct abttery level ? it is advisable to use ADC measurement or battery sensor simulator?

Children
No Data
Related