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

Multiple signals from SAADC at different intervals

Problem:

I am trying to measure two voltages from the SAADC. I have built my application on the ble_app_uart__saadc_timer_driven__scan_mode example. It is using one SAADC channel to measure one voltage. I want to measure two different voltages, but I cannot figure out how. One is a sensor, and the other is battery level. 

Changes in default example:

  1. Sampling frequency increased from 4Hz to 1kHz
  2. Little bit of post processing and filtering on the SAADC measurements
  3. Bluetooth timeout and disconnect responses modified

What changes do I have to make to read multiple signals? Any help with this would be greatly appreciated. 

Thanks in advance

Parents
  • Hello,

    I am trying to measure two voltages from the SAADC. I have built my application on the ble_app_uart__saadc_timer_driven__scan_mode example. It is using one SAADC channel to measure one voltage

    I am not sure that I understand what you mean here; the example you are referring to demonstrates the SAADC in scan mode - sampling on 4 different channels ( 4 different inputs ).
    Please see the saadc_init function in the example's main file to see how you may set up multiple channels for sampling.
    If you connect your sensor to channel_0 (AIN4) and battery to channel_1(AIN5) in the unmodified example, you should get measurements of them both.

    I feel like I might have misunderstood your question here, if so, please do not hesitate to let me know!

    Best regards,
    Karl

Reply
  • Hello,

    I am trying to measure two voltages from the SAADC. I have built my application on the ble_app_uart__saadc_timer_driven__scan_mode example. It is using one SAADC channel to measure one voltage

    I am not sure that I understand what you mean here; the example you are referring to demonstrates the SAADC in scan mode - sampling on 4 different channels ( 4 different inputs ).
    Please see the saadc_init function in the example's main file to see how you may set up multiple channels for sampling.
    If you connect your sensor to channel_0 (AIN4) and battery to channel_1(AIN5) in the unmodified example, you should get measurements of them both.

    I feel like I might have misunderstood your question here, if so, please do not hesitate to let me know!

    Best regards,
    Karl

Children
Related