michaelthessel / arduino-stoerbert Goto Github PK
View Code? Open in Web Editor NEWMP3 player for small children - firmware & PCB schematic
MP3 player for small children - firmware & PCB schematic
When the sketch is compiled and uploaded, this is the output from the Serial Monitor:
Loaded album from EEPROM: ⸮⸮⸮
Loaded track from EEPROM: 255
Resuming playback
Loading files from directory: /⸮⸮⸮/
File ⸮VS1053 found
Loaded album from EEPROM: ⸮⸮⸮
Loaded track from EEPROM: 255
Resuming playback
Loading files from directory: /⸮⸮⸮/
File ⸮VS1053 found
Loaded album from EEPROM: ⸮⸮⸮
Loaded track from EEPROM: 255
Resuming playback
Music never starts playing. It appears to just reboot forever. The 2GB micro SD card is formatted FAT32 and has directories 1 through 9, each one containing files 01.mp3 through 05.mp3. I also tried naming the directories k01 through k09 as specified in readme.MD without success, though the code in player.cpp seems to imply that the directory naming should actually be 1 through 9 (without k0 in front). The Music Maker shield functions fine and plays music from the same SD card when using the player_simple and player_interrupts example sketches.
When trying to compile the sketch, the following warnings come up (full file path edited to protect privacy):
sketch\player.cpp:89:35: warning: invalid conversion from 'void*' to 'char*' [-fpermissive]
p.album[sequence] = malloc(strlen(entry.name()) + 1);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
sketch\player.cpp: In function 'void powerReminder()':
sketch\player.cpp:235:39: warning: large integer implicitly truncated to unsigned type [-Woverflow]
musicPlayer.sineTest(1000, 500);
^
sketch\player.cpp: In function 'void setupPlayer()':
sketch\player.cpp:410:63: warning: invalid conversion from 'const short unsigned int*' to 'const uint16_t* {aka const unsigned int*}' [-fpermissive]
vs1053.applyPatch(plugin, sizeof(plugin)/sizeof(plugin[0]));
^
In file included from sketch\player.cpp:4:0:
x:\path\to\Adafruit_VS1053_Library/Adafruit_VS1053.h:132:8: note: initializing argument 1 of 'void Adafruit_VS1053::applyPatch(const uint16_t*, uint16_t)'
void applyPatch(const uint16_t *patch, uint16_t patchsize);
^~~~~~~~~~
Compilation appears to complete despite these warnings, and upload to Arduino Uno proceeds as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.