Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

Music Shield and ESPDuino32
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Music Shield and ESPDuino32

by MassimoManca on Mon Nov 29, 2021 8:06 am

Hello guys, I am porting a project originally based on an Arduino Mega 2560 using a Music Maker Shield to a Wemos D1 R32 MCU board (it is compatible with EspDuino32) but it does not work. Both boards are working and I think it is not an HW problem (the 4050 buffer is not needed because both boards work at 3.3V but the board may work also without removing it) so i suspect it is a SW problem, may be in pin definitions.
These are my original pin definitions for the Mega2560:
#include <Adafruit_VS1053.h>

#define VS1053_RESET -1
#define VS1053_CS 7
#define VS1053_DCS 6
#define VS1053_DREQ 3
#define CARDCS 4

and they should be OK for the ESP32 board also so I do not understand where the problem is.
Was anyone able to make the Music Maker shield working with any ESP32 based board?

MassimoManca
 
Posts: 10
Joined: Mon May 27, 2019 9:32 am

Re: Music Shield and ESPDuino32

by mikeysklar on Tue Nov 30, 2021 6:24 pm

We do have some examples code with the Feather based MusicMaker shield using ESP32 and ESP32-S2 hardware. This Feather MusicMaker is different than the shield you have so I would not expect these pinouts to just work, but might be of value to review.

Code: Select all | TOGGLE FULL SIZE
// Feather ESP32
#elif defined(ESP32) && !defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
  #define VS1053_CS      32     // VS1053 chip select pin (output)
  #define VS1053_DCS     33     // VS1053 Data/command select pin (output)
  #define CARDCS         14     // Card chip select pin
  #define VS1053_DREQ    15     // VS1053 Data request, ideally an Interrupt pin


Code: Select all | TOGGLE FULL SIZE
 // Feather M4, M0, 328, ESP32S2, nRF52840 or 32u4
#else
  #define VS1053_CS       6     // VS1053 chip select pin (output)
  #define VS1053_DCS     10     // VS1053 Data/command select pin (output)
  #define CARDCS          5     // Card chip select pin
  // DREQ should be an Int pin *if possible* (not possible on 32u4)
  #define VS1053_DREQ     9     // VS1053 Data request, ideally an Interrupt pin

#endif


https://github.com/adafruit/Adafruit_VS ... player.ino

mikeysklar
 
Posts: 6487
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.