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

nRF51822 and battery low level detection

Hi,

I'm making my own prototype board using the nRF51822. this board is powered by a rechargeable battery lir2450 (3.6V): www.powerstream.com/.../Lir2450.pdf

i want to know how can i make the nRF51822 chip know when the battery is low. i want something indicating me that the battery is being emptied like, led, Buzzer... .

I was thinking about using one of the ADC input of the nRF51822 to measure the voltage battery and when the voltage drop to a certain threshold that's mean the battery level is low.

But this is won't work because the ADC reference voltage will drop also as its powered it by the same battery.

so i want to know if the nRF51822 have an internal low battery detection or something like that which let me know that the battery level is low ?

Best regards,

Parents
  • Hi

    You can use the nRF51's 1.2V internal voltage reference, Vbg. This voltage reference will not change when the battery is drained. Then you can connect Vdd directly to one of the analog inputs and use 1/3 prescaling. The prescaling will then divide your input voltage at 3.6V down to a maximum of 1.2V which is within the range of Vbg. Refer to the Reference manual v3.0 Chapter 31 for details about voltage references and prescaling.

    I have attached an example. It is based on the ble_app_hrs example in SDK 9. I have configured the ADC to use Vgb as reference voltage, measure voltage at AIN2 (P0.01) and to use 1/3 prescaler. You don't need any external components, just connect Vdd directly to AIN2. A timer updates the battery voltage value every second. To use the example extract the .zip-file to "your_SDK_9.0.0_folder\examples\ble_peripheral". Search for "//NORDIC" in main.c to find the changes I have made and further comments. Note that the ADC is sampling continuously and I have not cleaned up the code after making the changes to the battery service. So you need to do some cleanup on your own to optimize the example.

    Example: adc-battery-measurement

    Keep in mind that 3.6V Vdd is at the edge of what the nRF51 can handle. Refer to the Product specification v3.1, Chapter 7.

  • When battery is fully charged it will have 4.2V. Look at the datasheet at the end of page 4 to understand how voltage linked to state of charge. Also you will need to have power supply to reduce 4.2V to 3.6V or less to supply to nRF. It will affect the efficiency of the system. Upd: You probably think that while charging and applying 4.2V to the battery you can disconnect nRF from high voltage and when charger unplugged battery will have nominal voltage 3.6V. It is not correct. Battery will have 4.2V after charger unplugged

Reply
  • When battery is fully charged it will have 4.2V. Look at the datasheet at the end of page 4 to understand how voltage linked to state of charge. Also you will need to have power supply to reduce 4.2V to 3.6V or less to supply to nRF. It will affect the efficiency of the system. Upd: You probably think that while charging and applying 4.2V to the battery you can disconnect nRF from high voltage and when charger unplugged battery will have nominal voltage 3.6V. It is not correct. Battery will have 4.2V after charger unplugged

Children
No Data
Related