SDK 14.2 SAADC and SDK17.02 SAADC

Hi,

   I have used "es_battery_voltage_saadc" in SDK 14.2 to read the voltage of battery, now I'm using SDK 17.02, but there is no es_battery_voltage_saadc.

Is there a better way to read the voltage of battey in  SDK17.02?

 

Parents Reply Children
  • Taylor said:
    Thanks for you reply Karl.

    No problem at all, I am happy to help!

    Taylor said:
    We are using Li-Battery .Actually, we just need to get the voltage of battery(3.6-4.2V). 

    In that case I highly recommend that you read through and follow the Lithium-ion battery measurement guide that I linked in my previous comment. Lithium-ion battery voltages can not be applied directly to the nRF52810 pins, since this exceeds it absolute maximum ratings and may therefore damage the chip.

    Taylor said:
    In my application, I create a timer to get the voltage, so we don't use the SAADC_PPI example.

    Sure. The method demonstrated in the SAADC example is primarily aimed at precisely periodic measurements. When you are not using the PPI peripheral to trigger sampling your sampling will have to wait for the CPU to be available, which would make periodic measurements miss their timing. In your case, where you only want to take a measurement every now and then, without any hard real-time constraints, it is fine to have the CPU trigger the sampling directly.

    Best regards,
    Karl

Related