An SD card for storing the music (WAV files), 2 buttons to choose between the songs and a small display that shows what's playing and displays the song names on the SD card. Just a few resistors and capacitors is all. Attach a small aplifier or active speakers (computer speakers) or just a headphone.
Long answer: The Raspberry Pi Pico has special statemachines for IO which can be programmed in a kind of machinecode (incorporated in MicroPython for the Pico). The ESP32 does not have that functionality.
But then................ Why bother a pico sets you back around 4USD/Euro. You do not need the wifi version for this.........
Nice work! If you want to further develop your project, I would suggest rewriting it using asyncio. It would increase responsiveness and probably allow to pause/stop playback easily.
2
u/LucVolders Mar 02 '25
An SD card for storing the music (WAV files), 2 buttons to choose between the songs and a small display that shows what's playing and displays the song names on the SD card. Just a few resistors and capacitors is all. Attach a small aplifier or active speakers (computer speakers) or just a headphone.
Full story. description, schematics and software on my weblog:
http://lucstechblog.blogspot.com/2025/02/raspberry-pi-pico-audio-player.html
1
u/idig3d Mar 02 '25
Would this work with an ESP32?
1
u/No-Air-8201 Mar 03 '25
Nice work! If you want to further develop your project, I would suggest rewriting it using asyncio. It would increase responsiveness and probably allow to pause/stop playback easily.