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

Setting Thingy52 Audio rate

The customer's goal is to play a tone on an external speaker with a data rate of 11.05KHz.

The "default" demo code for the Thingy52 @ https://github.com/NordicSemiconductor/Nordic-Thingy52-FW has a PWM driver that runs at 8KHz. 

 In drv_speaker.c SEQ_REPEATES is define as 7 with a comment indicating a 8kHz sample rate. It not clear what changing this define would do the sample rate. Can you example this?

What is the recommended methodology to achieve a playback sample rate of 11.05 KHz?

BTW - REPEATES should be REPEATS.

Cheers,

Jeff

 

Related