Author Topic: Rogue Robotics rMP3  (Read 2442 times)

0 Members and 1 Guest are viewing this topic.

mlavertu

Rogue Robotics rMP3
« on: January 18, 2012, 11:12:25 AM »
I'm trying to use the rMP3 from rogue robotics (http://www.roguerobotics.com/products/electronics/rmp3) with the WiringS play shield and I'm not able to make it work. I'm just trying a example code and nothing. I've installed the library.
Here is the code I use:
Code: [Select]
#include <NewSoftSerial.h>
#include <RogueMP3.h>
 
NewSoftSerial rmp3_serial(6, 7);
RogueMP3 rmp3(rmp3_serial);
 
void setup()
{
  Serial.begin(9600);
  rmp3_serial.begin(9600);
 
  rmp3.sync();
 
  rmp3.playfile("/test.mp3");
}
 
void loop()
{
}


I've tried to specified the pinMode of pin 6 and 7 in setup() as INPUT and OUTPUT but that didn't helped.
I've tried to connect the rMP3 directly with the Wiring S, still nothing.
I've tried to use a Arduino board just to see, but can't make it work.

I think the my rMP3 is not broke because when I plug it into my usb I can ear a little noise that suggest that currant as pass brought it.
I think it's more of serial problem.

Does anyone ever use the rMP3 with a Wiring S?

mlavertu

Re: Rogue Robotics rMP3
« Reply #1 on: January 18, 2012, 07:25:54 PM »
I found the following code and I tried it.
Code: [Select]
#include <NewSoftSerial.h>
#include <RogueMP3.h>

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


void setup()
{
  Serial.begin(9600);
  rmp3_serial.begin(9600);
  Serial.println("Starting rMP3");
  rmp3.sync();
  Serial.println("rMP3 Ready");
  rmp3.playfile("/test.mp3");
  Serial.println("File playing");
}

void loop()
{
}

In the serial monitor it says:
Starting rMP3
rMP3 Ready
File playing

But there's still no sound.

I've add the following line at the end just to see.
Code: [Select]
Serial.println(rmp3.getplaybackstatus());And it says S like in stop.

And it seems that I can put any name in playfile and it will say that it's playing except it's not and there are no such files.

I think there a problem with my SD card or with the communication but I can't figure it out.
I use a standard SD card formatted in FAT16 there are no folders in the card.

I've tried different serial speed but only 9600 work. If I change the pin (6, 7) or the serial speed it will only say Starting rMP3 in the serial monitor.

 

bhagman

Re: Rogue Robotics rMP3
« Reply #2 on: January 18, 2012, 10:18:36 PM »
Hey Martin - I'm following up here after the email you sent to me.  For others interest, it looks like the rMP3 is synchronizing properly, but and that it is possibly an SD card issue.

There's no need to set the pinMode for the serial connections - it's automatically done.

If you change the Wiring S serial speed, you'll need to change the speed on the rMP3, using the card configuration file.

Hopefully, a different SD card will solve the problem - then you can update us here :)

mlavertu

Re: Rogue Robotics rMP3
« Reply #3 on: January 19, 2012, 11:24:26 AM »
It was a simple SD card problem.
Now it's working like a charm  ;D.
The lesson here is : Don't buy any 1 cent deal on ebay.
I was really searching too far for a solution.

Thanks for your help  :)