Is there any reason that your library for the Sparkfun MP3 Shield would be incompatible with SoftwareSerial? I am trying to use the shield and your library to simply play an MP3 on command, but I also need the arduino uno to interface with two other devices via Software serial. Here’s my code:
#include
#include
#include
#include
#include
SoftwareSerial blueSerial(10, 11); // RX (TX on BT), TX (RX on BT)
SdFat sd;
SFEMP3Shield MP3player;
void setup() {
Serial.begin(9600);
blueSerial.begin(115200);
//start the shield
sd.begin(SD_SEL, SPI_HALF_SPEED);
MP3player.begin();
//start playing track 1
MP3player.playTrack(3);
}
//do something else now
void loop() {
if( blueSerial.available() ) // if data is available to read
{
int val = blueSerial.read(); // read it and store it in 'val'
Serial.write(val);
}
if( Serial.available())
{
blueSerial.write(Serial.read());
}
}
When I comment out all of the MP3 shield code the blueSerial works, so I know my hardware is fine (I’ve just got a jumper soldered from pins 10 and 11 of the shield). Can I not use pins 10 and 11 for some reason? I tried choosing pins that are unlabeled on the shield.
I look forward to anyone’s advice. Thanks!