Adafruit_VS1053_Library icon indicating copy to clipboard operation
Adafruit_VS1053_Library copied to clipboard

Does not work on ESP32

Open jenschr opened this issue 1 year ago • 7 comments

The VS1053 library does not work with ESP32's.

  • Arduino board: Adafruit ESP32-S3 NO_PSRAM
  • Adafruit hardware: Breakout https://www.adafruit.com/product/1381
  • Arduino IDE version: 2.0.3 & 2.1.0

Steps to reproduce:

  • Open the "player_simple.ino" example after installing the library
  • Set pins for BREAKOUT_RESET 9, BREAKOUT_CS 10, BREAKOUT_CS 6, CARDCS 4, DREQ 3
  • Connect according to the above
  • Compile & upload

This will cause a hardware crash on the ESP32, causing it to reboot at a regular interval. Changing from this constructor:

Adafruit_VS1053_FilePlayer(BREAKOUT_RESET, BREAKOUT_CS, BREAKOUT_DCS, DREQ, CARDCS);

... to the software SPI version:

Adafruit_VS1053_FilePlayer(MOSI, MISO, SCK, BREAKOUT_RESET, BREAKOUT_CS, BREAKOUT_DCS, DREQ, CARDCS);

... does stop the crashing, but the device still does not play audio files. Printing out MOSI, MISO and SCK lists the correct pins (35, 37, 36) so it does not make much sense that calling this makes a difference (but it does).

This library contains working code (as a workaround), but I'd at least update the Adafruit guide for the VS1053 products and point out that this library does not work with ESP32 for now..

jenschr avatar May 02 '23 20:05 jenschr