Go Down

Topic: two mp3 players (Read 1 time) previous topic - next topic


Is it possible to connect two mp3 players by Sparkfun to an Arduino 2009? I'd need to play two stereo samples simultaneously.Thanks.


I believe its not possible with the sparkfun shields. But i have done exactly what you are asking with the Rogue MP3 shield - http://www.roguerobotics.com/products/electronics/rmp3 they are a little bit pricey but VERY good quality. I was more than happy with my setup.

Just stack two shields on top of one arduino. You'll need to name the tracks on each SD exactly the same and then edit your code to include that track name, but it works like a charm...

Here is my code -

Code: [Select]
#include <SoftwareSerial.h>
#include <RogueMP3.h>

SoftwareSerial rmp3_serial(6, 7);
RogueMP3 rmp3(rmp3_serial);

void setup()
// Serial.begin(9600); //

void loop()

I seem to remember that the Rogue MP3 library has not been updated for 1.0 but i have an edited, working version, just PM me your email and i'll send it.



Alternatively, if all the audio comes out of the same speakers, you could just overlay the audio in Audacity or so and export it as one stereo track.  Perfectly synced with only one MP3 shield needed. 

By the way, my code above loops the playing of the track endlessly.


Go Up