Problems with Rogue MP3 Shield


hi everybody.

i have problems new project !

i want use shield rogue mp3 playing mp3 file in sd card.

when use basic exemple; it's work fine !

code: [select]
//use 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 add 2 lines check shield version
code: [select]
int vers = rmp3.version();
  serial.println(vers);


the version 0  >:(

same problems 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 match name of folder on 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 work on rmp3.");
      for (;;);
    }
  }
...


sketch starting.
mp3 module not connected. check serial connections.

do have idea ?

thanks lot[/code]

please read how use forum sticky post , edit post use correct code tabs not quote tabs.

see how code has been mangled forum software.

it if made more clear going wrong.


Arduino Forum > Using Arduino > Audio > Problems with Rogue MP3 Shield


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???