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

How i use battery service level measurement?

Hello,

I am using NRF52832 boars s132 and sdk is 13.1. I have developed my application is read analog accelerometer valie and send to mobile apps. Now i want to also battery indicator in my android apps. So how i can use battery service with my existing BLE UART code. Noe i use sdk proximity example but it hows battery update level within 120sec. But due this adc my accelerometer channel adc is not work. So sir please tell me how i can merge battery service example with my code. Is it possible to check battery and update also without using ADC. Please tell me or give some references example code. Now on my current application i use 12 bit ADC with 3 channels and 2.4 Adc reference. With high sampling rate. Please let me know how i check my device battery in Android apps.

Thanks in Advanced.....

Parents
  • Hi Vishb! So you are developing an Android application that reads analogue accelerometer data from the nrf52832 development kit and shows these values on your phone, right? Check out this case. Might be helpful. But first off, I would like to ask what you mean by battery indicator? Are you referring to battery voltage or state of charge (%)? If you mean state of charge, you can download the Nordic Thingy Android app from Github. The newest version of the Thingy app shows the state of charge of the Thingy. I don't expect that you have a Nordic Thingy, but this could be a very good starting point, as the Android Thingy app is written in Java and not in C.

Reply
  • Hi Vishb! So you are developing an Android application that reads analogue accelerometer data from the nrf52832 development kit and shows these values on your phone, right? Check out this case. Might be helpful. But first off, I would like to ask what you mean by battery indicator? Are you referring to battery voltage or state of charge (%)? If you mean state of charge, you can download the Nordic Thingy Android app from Github. The newest version of the Thingy app shows the state of charge of the Thingy. I don't expect that you have a Nordic Thingy, but this could be a very good starting point, as the Android Thingy app is written in Java and not in C.

Children
No Data
Related