Music Shield and ESPDuino32

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
MassimoManca
 
Posts: 10
Joined: Mon May 27, 2019 9:32 am

Music Shield and ESPDuino32

Post by MassimoManca »

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?

User avatar
mikeysklar
 
Posts: 14181
Joined: Mon Aug 01, 2016 8:10 pm

Re: Music Shield and ESPDuino32

Post by mikeysklar »

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

// 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

 // 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

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”