Post topics, source code that relate to the Arduino Platform

User avatar
By Lythy
#59049 Hi,

I nearly got to what I needed for a project by simply connecting a PCM5102 board and stripping out the web parts of this great project ->

viewtopic.php?f=11&t=11790,

but the WAV playback seems to have issues with buffering in the way I've modified it... so close! I don't need to stream, I only need a single MP3 on the flash.

Has anyone successfully played an MP3 that's loaded on the ESP flash, outputting to I2S, preferably with Arduino IDE?

Doing it all on the ESP would be amazing.

thanks
L

NodeMCU 12-E
+
PCM board = http://www.banggood.com/PCM5102-DAC-Dec ... 80430.html
User avatar
By gdsports
#59102 Playing an MP3 file is harder than playing a WAV file. The MP3 file contains compressed audio that must be decompressed before it is converted to analog audio. A DAC does not decompress MP3 data so it will not work. A DAC does play uncompressed WAV PCM audio.

Fortunately, the VS1053 chip is available on breakout boards.

This project is similar to the WAV file player project but uses the VS1053 chip to play MP3 and other formats. The VS1053 board decompresses the MP3 data and sends the audio stream to its stereo output jack.

The VS1053 connects to the ESP8266 via SPI. I saw your message about I2S problems so switching to VS1053/SPI might avoid this issue.
User avatar
By rudy
#59107 https://github.com/karawin/Ka-Radio
https://www.aliexpress.com/item/1PCS-VS ... 38635.html

I do have the board, just not enough time to try this yet. I consider it an easy way to get a mp3 player for the ESP. Libraries are already done. The board is cheap and done. A no-brainer for me.

Image