Hi,
I was working on a Arduino Uno, with the Music Shield v2.2, and I add no problem.
But when I put the same shield, with the same code compiled for Mega, via serial monitor I receive a message about an SD card reading error.
I think there’s a pb with the library, conflict with ISP pins ???
Thanks for your help, I need it for my students.
Sebastien
Hello,
The maximum size SD card supported by this shield is 2GB, so pls make sure you have chosen right card(Nowadays SD cards of such size is hard to find lol
Thanks, but everything works fine on Arduino Uno, but changing shield from Uno to Mega makes it crazy with SD card.
Any other idea ?
Hi Sebastien,
I tested with 16G SD card with both arduino uno and mega with the same code. it works well without any change with code. thanks.
I use the play with name example, you have to replace the mp3 file name in player.playOne(“p.mp3”). please provide more detail info when you do not solve the issue. Please also try to press the reset button. thanks.
[code]
#include <SD.h>
#include <SPI.h>
#include <arduino.h>
#include <MusicPlayer.h>
void setup(void)
{
Serial.begin(9600);
player.begin(); //will initialize the hardware and set default mode to be normal.
player.setPlayMode(PM_REPEAT_ONE); //set mode to repeat playing a song
player.playOne(“p.mp3”); //play a song with its name
}
void loop(void)
{
player.play(); //do some leisurely job
}[/code]