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

Low voltage detector on "ble_app_blinky" peripheral

Hello we have a projekt with periperal "ble-app-blinky" und central "ble_app_blinky_c".

how to do:
when the "peripheral" battery is below 2.3V then the led 4 on "central" must going on?

(In the moment we do it with a external voltage detector 2.3V from maxim.)

It is possible that you can send us the code?

Thank you very much for the answer.

Parents
  • Hi,

    You have at least three options:

    1. Use the ADC with the internal 1.2V reference voltage and Supply voltage with 1/3 prescaling as input. This is great since you don't need any external components. However, you will need to sample the input at regular intervals.
    2. Use the Low power comparator (LPCOMP) to trigger an event when an external voltage crosses a given threshold. This is great because you don't need to sample the input, but you will need an external reference voltage and probably a voltage divider.
    3. Use the Power-fail comparator (refer to the POWER chapter in the reference manual). No external components or software triggered sampling is required, but it doesn't work when the chip is in System OFF mode or when HFCLK is not running.
  • I don't have time to make an example for you, but there is an LPCOMP example in the SDKs that you can pretty much copy and paste into ble-app-blinky periheral example.

Reply Children
No Data
Related