Pages: [1]   Go Down
Author Topic: two mp3 players  (Read 548 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#include <SoftwareSerial.h>
#include <RogueMP3.h>
 
SoftwareSerial rmp3_serial(6, 7);
RogueMP3 rmp3(rmp3_serial);
 
void setup()
{
 // Serial.begin(9600); //
  rmp3_serial.begin(9600);
  rmp3.setloop(0);
  rmp3.sync();
  rmp3.playfile("/track016.mp3");
 
}
 
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.

FTL.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

FTL
Logged

Pages: [1]   Go Up
Jump to: