Reading Music Files With Sd Card Reader From Adafruit
Load some MP3 files
Copy 2 MP3 files to a micro SD card and name them track001.mp3 and track002.mp3 (this is just for the test, you can re-name them later). And so push the uSD card into the slot on the shield
The SD library for Arduino can only handle 8.3 names, that ways you lot can name your file track001.mp3 (viii letters dot 3 letters) only not MyFavoriteMusic.mp3
Make sure you take a adept quality SD card, some cheap SD cards won't work, causing confusion! Peculiarly 'non-brand' knockoffs.
Unproblematic Sound Player Sketch
Connect the Plume to your computer with a USB cable and plug your headphones into the headphone jack. Since information technology may exist loud at start, don't put them full on your ears all the same.
Select File->Examples->Adafruit_VS1053->feather_player to load the example lawmaking.
For all the current Feathers, the correct pins are layed out for you in the starting time. When you upload the correct pins will automagically be used!
// Feather M0 or 32u4 #if defined(__AVR__) || defined(ARDUINO_SAMD_FEATHER_M0) #define VS1053_CS 6 // VS1053 bit select pin (output) #define VS1053_DCS x // VS1053 Data/command select pin (output) #ascertain CARDCS 5 // Card chip select pin // DREQ should exist an Int pin *if possible* (non possible on 32u4) #define VS1053_DREQ ix // VS1053 Data request, ideally an Interrupt pin // Feather ESP8266 #elif defined(ESP8266) #define VS1053_CS 16 // VS1053 chip select pin (output) #define VS1053_DCS fifteen // VS1053 Information/command select pin (output) #define CARDCS two // Card chip select pin #define VS1053_DREQ 0 // VS1053 Data request, ideally an Interrupt pin // Feather ESP32 #elif defined(ESP32) #ascertain VS1053_CS 32 // VS1053 chip select pin (output) #define VS1053_DCS 33 // VS1053 Data/command select pin (output) #define CARDCS 14 // Card bit select pin #define VS1053_DREQ 15 // VS1053 Information asking, ideally an Interrupt pin // Plumage Teensy3 #elif defined(TEENSYDUINO) #define VS1053_CS 3 // VS1053 bit select pin (output) #ascertain VS1053_DCS 10 // VS1053 Data/command select pin (output) #define CARDCS 8 // Card chip select pivot #ascertain VS1053_DREQ 4 // VS1053 Data request, ideally an Interrupt pivot // WICED feather #elif defined(ARDUINO_STM32_FEATHER) #define VS1053_CS PC7 // VS1053 flake select pivot (output) #ascertain VS1053_DCS PB4 // VS1053 Information/command select pin (output) #ascertain CARDCS PC5 // Card chip select pivot #define VS1053_DREQ PA15 // VS1053 Data request, ideally an Interrupt pin #elif defined(ARDUINO_FEATHER52) #define VS1053_CS 30 // VS1053 flake select pin (output) #define VS1053_DCS xi // VS1053 Data/control select pin (output) #define CARDCS 27 // Card chip select pin #define VS1053_DREQ 31 // VS1053 Information request, ideally an Interrupt pivot
0 Response to "Reading Music Files With Sd Card Reader From Adafruit"
Post a Comment