Arduino Library and example code for Cytron MP3 shield
The product is located at here.
The User's Manual can be referred here. Please go through User's Manual to understand how to utilize the MP3 shield.
The setting is done in sta013.cfg file (binary file) which is stored in microSD card or configfile.c which can be stored in flash/eeprom of microcontroller if the controller has large enough program memory. Both these files are located under folders extras -> Configuration file.
The example sketch for Arduino MP3 shield is under folders examples. Install the library, restart Arduino IDE and open under File -> Examples.
About Library:
Library for Cytron MP3 shield has been revised to allow the music to be played at the background while the main program is running.
Limitations:
- Tolerate with MP3 files up to 260kbps only. MP3 files with 200kbps or lower are preferable.
- TimerOne interrupt cannot be used for other purposes while playing MP3 files.
- Time critical programs in main loop might be affected if the bitrate of MP3 files are high.
Other libraries needed:
- Latest SdFat Library (can be downloaded from folder extras)
- SPI
- TimerOne
How to install:
- Easy install
- Manual install
Installation of MP3 library
Open Arduino IDE and go to menu Sketch -> Include Library -> Manage Libraries. Library Manager dialog will pop up. Type MP3Player at search box with words Filter your search....You should be able to see MP3Player by Cytron Technologies Sdn Bhd. Click it and install.
Installation of SdFat library
Go to My Computer (or This PC if you are using Windows 8 and higher) -> Documents -> Arduino-> libraries. Look for folder MP3Player or arduino_xxxxxx (you can rename it to MP3Player). Enter the folder -> extras, copy SdFat folder to the same directory as MP3Player folder (This PC/Documents/Arduino/libraries).
Download the library as .zip file and extract it to Arduino libraries directory. Copy latest version of SdFat library from extras folder and paste it to the Arduino libraries directory as well.
For more info, please refer to readme.txt in extras folder.
If you have any inquiry, please post in our technical forum.