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

Measuring SAADC with Timeslot API or Radio Notifications

Hello,

I recently saw this post:
https://devzone.nordicsemi.com/f/nordic-q-a/71940/low-power-mode-using-saadc-with-ble_app_beacon and I'm interested in the example for measuring the SAADC value with the radio notifications and/or using the Timeslot API. Can you please provide me with the example or guide me through the process of implementing it myself?

Thanks in advance.

Best,

KJ

  • Hi Kire

    I don't think Vidar implemented such an example, but I can check with him to be sure. 

    Are you just sampling the SAADC to measure the battery voltage?

    If so I would try it out based on the app_timer example Vidar provided in the case. Using timeslots or radio notifications to schedule the SAADC will complicate the firmware quite a bit, and I don't really think it is necessary for this use case. 

    Best regards
    Torbjørn

  • Hey,
    I want to use the SAADC peripheral to measure voltage when the radio peripheral is not used, for more accurate measures. It won't be the project that is described in the link that I posted. That link is just for reference. I want to see how using the SAADC when the radio peripheral is off (whether with radio notifications or timeslot API) can be achieved.
    Thanks in advance.

    Best regards,
    Kire

  • Hi Kire

    Vidar confirmed that we don't have an example for this specifically. 

    Still, it should be relatively straight forward to connect the sampling of the SAADC with the end event of the radio notification. 

    I found this old blog that goes through the radio notification feature in detail:
    https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification

    You should probably ignore the first part discussing how to set up the project, since it is based on a very old SDK, but the radio notification API itself should be the same in newer SDK's.

    Also, you probably don't want to sample the SAADC every time the radio is disabled, so I would recommend adding some separate timer that can schedule the sampling (for instance, set a timer to expire every 10 seconds, and sample the SAADC on the following radio notification end event after the timer expires). 

    Best regards
    Torbjørn

Related