This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Battery service with 12v Lithium ion battery

Hello,

I am new to nrf51822 BLE. I am using MDBT40 (nrf51822 series). Complete project is powered by 12V, 2500 Mah lithium ion Battery pack. I want to monitor battery level using battery service provided in nordic examples. Please let me whether I am in right direction. I am planning to step down 12V to 3.3V and connect input voltage (3.3V) directly to one of the analog inputs. So 3.3V corresponds to 12V of battery which will be 100% battery. Based on correspondence I can get other voltage levels. Please guide me whether I am correct?

Thank you

  • You are correct, as long as you were going to use a resistor divider for "stepping down" the voltage from 12V to 3,3V. You will have to interpolate this low voltage to state of charge for your lithium battery. Then, you have to just write this state of charge to battery service via:

    ble_bas_battery_level_update (ble_bas_t * p_bas, uint8_t battery_level)
    

    This should be everything you need for your use case.

Related