Really Simple rMP3 Example

Plug it in. Turn it on.

#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("/Daft Punk - Technologic.mp3");
}
 
void loop()
{
}

Discussion

Mark Irgang, 2010/10/05 11:59

I downloaded the NewSoftSerial, RogueMP3, and RogueSD libraries and put the downloaded directories into the Libraries directory of the Arduino 21 directory on my desktop. I tried to compile but the software keeps reporting errors in the NewSoftSerial Library.

What should I do?

Mark

bhagman, 2010/10/05 12:22

I haven't yet tested against Arduino 0021 - Can you post the errors you're getting?

b

Ranjit, 2010/11/11 14:55

I am getting the following error when compiling

E:\arduino-0021\libraries\RogueMP3\RogueMP3.cpp: In member function 'int RogueMP3::_comm_peek()': E:\arduino-0021\libraries\RogueMP3\RogueMP3.cpp:663: error: 'class Stream' has no member named 'peek'

bhagman, 2010/11/11 16:02

Yeah… They aren't so swift over at the “Arduino Compound”.

They added peek(), then removed it.

You'll have to add this: Arduino Serial Base Class

Essentially, it's just the existing hardware core with peek (FINALLY) enabled. Select your (Stream) version in the boards section after following the installation instructions.

b

Ranjit, 2010/11/13 16:55

Once I installed the “Arduino Serial Base Class”, I cannot upload to the board and I get the following error. Binary sketch size: 1018 bytes (of a 28672 byte maximum) avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51 Now, even after removing the “serial class” I get the same error.

test199.48.33.48, 2012/05/18 15:59

I downloaded and installed the Arduino with Stream Core, the NewSoftSerial10c with Arduino Mega/Mega 2560 and Stream support, RogueMP3, and RogueSD libraries. The Really Simple rMP3 Example compiles, but won't upload: Binary sketch size: 6244 bytes (of a 32256 byte maximum) avrdude: stk500_getsync(): not in sync: resp=0x00

Any suggestions?

bhagman, 2012/05/18 16:26

What version of Arduino are you using?

test199.48.33.48, 2012/05/18 18:08

Using Arduino UNO R3 and Software v1.0

test139.82.74.70, 2012/07/20 08:44

I'm running the Really Simple rMP3 Example with SoftwareSerial lib instead. I'm getting the error

In file included from rMP3_Playback.cpp:2: C:\arduino-1.0.1\libraries\RogueMP3/RogueMP3.h:155: error: conflicting return type specified for 'virtual void RogueMP3::write(uint8_t)' C:\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'

Can someone help me? Super thanks !!!!

camazzola, 2012/08/06 02:07

Bonjour , Même problème , je recherche la solution ….

Merci d avance , pour votre aide

In file included from rMP3_Playback_Example.cpp:1: C:\Documents and Settings\MINILOU\Bureau\ARDUINO\Logiciel\UNO\arduino-1.0.1\libraries\RogueMP3/RogueMP3.h:155: error: conflicting return type specified for 'virtual void RogueMP3::write(uint8_t)' C:\Documents and Settings\MINILOU\Bureau\ARDUINO\Logiciel\UNO\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)

apres de multiple recherche , j 'ai compris que l'erreur venait de la version arduino 1.0.1 et qu avec cette version il lui fallait un retour de taille ! mais cela me donne pas assez d info pour resoudre mon pb . un petit conseil serai bien util….

bhagman, 2012/07/20 11:18

Hey Marco & Marvin,

I'm still working on getting Arduino 1.0 support complete. In the meantime, use Wiring:

http://wiring.org.co/

You can install it separately from Arduino, and your sketches should be directly portable.

You could leave a comment if you were logged in.
  • Bookmark at
  • Bookmark "Really Simple rMP3 Example" at del.icio.us
  • Bookmark "Really Simple rMP3 Example" at Digg
  • Bookmark "Really Simple rMP3 Example" at Google
  • Bookmark "Really Simple rMP3 Example" at StumbleUpon
  • Bookmark "Really Simple rMP3 Example" at Technorati
  • Bookmark "Really Simple rMP3 Example" at Facebook
  • Bookmark "Really Simple rMP3 Example" at Twitter
  • Bookmark "Really Simple rMP3 Example" at Slashdot
  • Bookmark "Really Simple rMP3 Example" at Yahoo! Bookmarks
  • Bookmark "Really Simple rMP3 Example" at Furl
  • Bookmark "Really Simple rMP3 Example" at Reddit
  • Bookmark "Really Simple rMP3 Example" at Ask
  • Bookmark "Really Simple rMP3 Example" at BlinkList
  • Bookmark "Really Simple rMP3 Example" at blogmarks
  • Bookmark "Really Simple rMP3 Example" at Ma.gnolia
  • Bookmark "Really Simple rMP3 Example" at Netscape
  • Bookmark "Really Simple rMP3 Example" at ppnow
  • Bookmark "Really Simple rMP3 Example" at Rojo
  • Bookmark "Really Simple rMP3 Example" at Shadows
  • Bookmark "Really Simple rMP3 Example" at Simpy
  • Bookmark "Really Simple rMP3 Example" at Socializer
  • Bookmark "Really Simple rMP3 Example" at Spurl
  • Bookmark "Really Simple rMP3 Example" at Tailrank
  • Bookmark "Really Simple rMP3 Example" at Live Bookmarks
  • Bookmark "Really Simple rMP3 Example" at Wists
  • Bookmark "Really Simple rMP3 Example" at Yahoo! Myweb
  • Bookmark "Really Simple rMP3 Example" at BobrDobr
  • Bookmark "Really Simple rMP3 Example" at Memori
  • Bookmark "Really Simple rMP3 Example" at Faves
  • Bookmark "Really Simple rMP3 Example" at Favorites
  • Bookmark "Really Simple rMP3 Example" at Newsvine
  • Bookmark "Really Simple rMP3 Example" at myAOL
  • Bookmark "Really Simple rMP3 Example" at Fark
  • Bookmark "Really Simple rMP3 Example" at RawSugar
  • Bookmark "Really Simple rMP3 Example" at LinkaGoGo
  • Bookmark "Really Simple rMP3 Example" at Mister Wong
  • Bookmark "Really Simple rMP3 Example" at Wink
  • Bookmark "Really Simple rMP3 Example" at BackFlip
  • Bookmark "Really Simple rMP3 Example" at Diigo
  • Bookmark "Really Simple rMP3 Example" at Segnalo
  • Bookmark "Really Simple rMP3 Example" at Netvouz
  • Bookmark "Really Simple rMP3 Example" at DropJack
  • Bookmark "Really Simple rMP3 Example" at Feed Me Links
  • Bookmark "Really Simple rMP3 Example" at funP
  • Bookmark "Really Simple rMP3 Example" at HEMiDEMi
code/really_simple_rmp3_example.txt · Last modified: 2009/11/26 09:12 by bhagman
Valid CSS Recent changes RSS feed Valid XHTML 1.0