Raspberry Pi Pico as .WAV-player: Ideas for performance improvements? #1672
-
Hi! Thanks so much for making Arduino Audio Tools. I love it! I've recently had a little project to turn a Raspberry Pi Pico board into a .wav player thing with the PCM5102A dac board. It took me some time to figure out but it's now working and fully documented in case anyone is interested: https://github.com/madskjeldgaard/pico-audio-player-firmware One major question though: I could not get this to work with the Pico running at normal clock frequency (130mhz) but had to overclock it to 270mhz to not have periodic dropouts in the audio being played. Is this to be expected? Or does anyone have ideas for improving the performance of the sketch? Ideally I would like to play sounds at higher quality than 44.1khz/16bit if anyone's got ideas for how I can achieve that with the Pico then I would love to hear it. I tried playing 96khz/16bit files with this setup but that resulted in dropouts unfortunately. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Also just generally: Any ideas on how to post the cpu usage of the Pico in this situation? On Teensy you have functions for this to help you figure out the performance but I can't find any thing for the Pico. |
Beta Was this translation helpful? Give feedback.
-
Did you try to identify where the bottleneck is ? You can use the MeasuringStream to measure the actual thruput. |
Beta Was this translation helpful? Give feedback.
Did you try to identify where the bottleneck is ?
If it is the SD card you can try to increase the SPI frequency...
You can use the MeasuringStream to measure the actual thruput.
I don't think cpu usage means anything in this context