Go Down

Topic: Problems with Rogue MP3 Shield (Read 227 times) previous topic - next topic

leprosylv

Dec 03, 2017, 01:34 pm Last Edit: Dec 03, 2017, 05:11 pm by leprosylv
Hi everybody.

I have a problems with my new project !

I want to use the shield Rogue MP3 for playing a MP3 file in a SD card.

When I use the basic exemple; it's work fine !

Code: [Select]
//Use the SoftwareSerial in place of NewSoftSerial.h
#include <SoftwareSerial.h>
#include <RogueMP3.h>

//Use SoftwareSerial in place of NewSoftSerial
SoftwareSerial rmp3_serial(6, 7);
RogueMP3 rmp3(rmp3_serial);
 
void setup()
{
  Serial.begin(9600);
  rmp3_serial.begin(9600);
 
  rmp3.sync();
  int vers = rmp3.version();
  rmp3.playFile("/HelloRogue.mp3");
}
 
void loop()
{
}


When I add this 2 lines to check the shield version
Code: [Select]
int vers = rmp3.version();
  Serial.println(vers);


The version is 0  >:(

Same problems with another example. ( RogueMP3 Play Folder Sketch. )

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

SoftwareSerial rogueSerial = SoftwareSerial(6, 7);

RogueMP3 mp3Player = RogueMP3(rogueSerial);
RogueSD fileControl = RogueSD(rogueSerial);

// Change this to the match the name of the folder on your SD card.
const char *folder = "/Halloween";

int MP3Count;
int currentMP3;


void setup()
{
  int syncResponse = 0;

  rogueSerial.begin(9600);
  Serial.begin(9600);
  Serial.println("Sketch Starting.");

  fileControl.begin();
  syncResponse = mp3Player.begin();

  if (syncResponse <= 0)
  {
    Serial.println("MP3 module not connected. Check serial connections.");
    for (;;);
  }
  else
  {
    if (mp3Player.getModuleType() != rMP3)
    {
      Serial.println("This sketch will only work on a rMP3.");
      for (;;);
    }
  }
...


Sketch Starting.
MP3 module not connected. Check serial connections.

Do you have any idea ?

Thanks a lot[/code]

Grumpy_Mike

Please read the how to use this forum sticky post and edit your post to use the correct code tabs not quote tabs.

See how your code has been mangled by the forum software.

It would also help if you made it more clear what is going wrong.

Go Up