Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The RP2040 can output 24 bit (or technically 32-bit), 48kHz stereo audio over I2S. Combine that with a DAC like the PCM1502 (which has plenty of dev boards) and you've got yourself a high quality audio setup.

I have a Rust crate for outputting I2S data, or retrieving it from something like a mic or ADC. You can hook it up to DMA and make your audio go brrrr

https://github.com/bschwind/rp2040-i2s



I should probably also link an example usage, playing noise to help with sleeping:

https://github.com/bschwind/sleep-machine/blob/main/src/main...


I once built a player with a MAX98357 I2S Amp that could drive a small speaker, it was fun.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: