Skip to content
Brett Hagman edited this page Jun 13, 2014 · 2 revisions

RogueMP3 Arduino Library

Latest Version: v2.0.0

Download: Latest Release

Changelog: changelog.md


This library has been provided to ease the communications with the Rogue Robotics MP3 Playback Modules:

The MP3 Playback modules can communicate through standard TTL serial at speeds from 2400 bps up to 460800 bps.

SD, SDHC, and SDXC cards are accepted and can be formatted in FAT12, FAT16 or FAT32. SDXC cards will work if you format them as FAT32.

MicroSD and MiniSD cards can be used with an appropriate adapter.

Music and sounds can be played while simultaneously reading or writing data.

Data can be stored on or retrieved from cards using a card reader on a computer.

New features are added to the firmware. Be sure to check the Rogue Robotics website for updates. For more information on how to update the firmware:

Installation

Download the library above, and rename the uncompressed folder RogueMP3.

Arduino

Place the RogueMP3 folder in your arduinosketchfolder/libraries/ folder.

Wiring

Place the RogueMP3 folder in you wiringsketchfolder/libraries/ folder.

You can find your sketchfolder by clicking on Preferences in the File menu in your IDE.

Usage

Example

Download HelloRogue.mp3, and put it in the root folder on your SD card. Insert the card into the rMP3 or uMP3 and upload this sketch.

#include <RogueMP3.h>
#include <SoftwareSerial.h>

SoftwareSerial rogueSerial = SoftwareSerial(6, 7);

RogueMP3 mp3Player = RogueMP3(rogueSerial);

void setup()
{
  rogueSerial.begin(9600);

  mp3Player.sync();
  mp3Player.playFile("/HelloRogue.mp3");
}

void loop()
{
}
Clone this wiki locally