Pages: [1]   Go Down
Author Topic: Need To Use SD Card On Music Shield?  (Read 945 times)
0 Members and 1 Guest are viewing this topic.
Philippines
Offline Offline
Newbie
*
Karma: 1
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm going to either use a VS1053 MP3 breakout board or a VS1053 MP3 shield with my Uno board. I only need one song for the program. Will I still need to use an SD card to play that one song, or can I upload it onto the Uno board itself? Thanks
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Seed Studios Music Shield 2.0 uses that chip and just copies data from the SD card to the chip a buffer at a time in the MusicPlayer::playSong() function.  If your music will fit in FLASH (PROGMEM) you should be able to send it to the chip a block at a time.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Philippines
Offline Offline
Newbie
*
Karma: 1
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for your response. We are trying to put together an Arduino package for highschool students and want to use MP3 shields. I was hoping to cut costs by not having to purchase any SD cards to go with the music shield, but it seems like the shield will need an SD card at some point. Am I correct?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

but it seems like the shield will need an SD card at some point. Am I correct?

That depends. How many bytes in your MP3 file?  Which Arduino are you using?
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Philippines
Offline Offline
Newbie
*
Karma: 1
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

7MB on an Uno board.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

7MB on an Uno board.

Hmmm.  The ATmega328P on the Arduino UNO only has 32K of FLASH/PROGMEM.  You will definitely need some kind of external storage for a 7 MB file.  The SD card is probably the cheapest and easiest way to go. 
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Philippines
Offline Offline
Newbie
*
Karma: 1
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, no problem. I appreciate your help. Thank you
Logged

Pages: [1]   Go Up
Jump to: