Saturday, 24 October 2015

MP3 Player Serial

Introduction
The mp3 player serial is a cheap solution to add sound to your project, otherwise you could get a shield from Sparkfun or Adafruit which would cost more.

Shop online


Files
I couldn't find much information about this device or the vendor didn't give me a datasheet or sample arduino, so after I google for a while, I found all of it.

Datasheet and Sample Arduino




Wiring


The wiring is pretty simple, connect the serial communication to the Arduino and 5V is required.
In my project I add a 3W amplifier just in case the sound wouldn't be too loud but otherwise you can avoid it.


Commands

The datasheet confirm that there are these commands available for this module:

  • Next song
  • Previous song
  • Play with index
  • Volume up
  • Volume down
  • Set volume
  • Single cycle play
  • Select device
  • Sleep mode
  • Wake up
  • Reset
  • Play
  • Pause
  • Play with folder and file name
  • Stop play
  • Cycle play with folder name
  • Set single cycle play
  • Set DAC
  • Play with volume