adafruit / adafruit/Adafruit_VS1053_Library

Does not work on ESP32

Open
#89 9 comments 0 reactions 1 assignee Claimed by @caternuson View on GitHub
Dominant language
C++
Stars
152
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/eziya/ESP32_ADAFRUIT_VS1053) contains working code (as a workaround), but I'd at least update the [Adafruit guide for the VS1053 products](https://learn.adafruit.com/adafruit-vs1053-mp3-aac-ogg-midi-wav-play-and-record-codec-tutorial) and point out that this library does not work with ESP32 for now..

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.