How to use Line In on nRF5340 Audio DK to record audio?

Hi,

I have a piezo microphone with analog output and would like to record from it using the Line In AUX on nRF5340 Audio DK.

Currently, I am using the break out pins from the AUX and sampling analog signal using SAADC. However, the sampling rate is not stable and not high enough.

I tried using the advanced mode of the SAADC driver from this example. I can run it independently but I cannot make it work with the this sd card feature that I have used successfully in other projects. The program crashes before executing the first line in main()

Could anyone let me know if there is a good way to record audio from Line In jack on the DK with consistent sampling rate, and somehow able to export the data to a PC? Thank you!

  • Hello,

    Thank you for your extreme patience with this - I have been out of office for some days, but now I am back.

    Currently, I am using the break out pins from the AUX and sampling analog signal using SAADC. However, the sampling rate is not stable and not high enough.
    Could anyone let me know if there is a good way to record audio from Line In jack on the DK with consistent sampling rate, and somehow able to export the data to a PC? Thank you!

    Which configuration are you currently using for you SAADC and TIMER setup, and what are your requirements to the sampling frequency of the SAADC?
    You mention that the sampling frequency is not stable and not high enough, could you elaborate on what you mean by this?

    The program crashes before executing the first line in main()

    Please share the error message / output log from the instance where this occurs.
    Is the build and flashing completing successfully, or are there any warnings?

    Best regards,
    Karl

Related