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

Play audio snippet via nRF51/52

I am working on a device which also needs to give audio feedback to the user. The app on the mobile phone needs to send a wav (or similar) file (mono, speech) to the device and the device needs to play it through a small speaker.

Is this possible with the nRF51/52 and if so can you direct me in what is needed for it to get it working (DAC, amplifier, how to transfer the data, (external)buffer/memory needed, etc?)

Thanks in advance!

Parents
  • We do not have any recommendations when it come to audio playback. This is not a common use-case for the nRF51. However there are several thread on DevZone that ask similar questions, such as this one.

    I think you have already listed the main components you need:

    • DAC
    • Amplifier
    • External memory

    The nRF52 has I2S, which may be the best option for communicating with the DAC, depending on which DAC you choose. You should use EasyDMA so that you do not experience dropouts of the audio when the CPU is busy doing something else. I2C and SPI are other alternatives.

    A alternative for very basic sounds can be to use the PWM peripheral on the nRF52.

Reply
  • We do not have any recommendations when it come to audio playback. This is not a common use-case for the nRF51. However there are several thread on DevZone that ask similar questions, such as this one.

    I think you have already listed the main components you need:

    • DAC
    • Amplifier
    • External memory

    The nRF52 has I2S, which may be the best option for communicating with the DAC, depending on which DAC you choose. You should use EasyDMA so that you do not experience dropouts of the audio when the CPU is busy doing something else. I2C and SPI are other alternatives.

    A alternative for very basic sounds can be to use the PWM peripheral on the nRF52.

Children
Related