SD Card Audio Player

In the Making Music project, you learned how to generate simple sound with the Arduino. In this project, you'll learn how to use the Arduino to play audio (MP3) files stored on a microSD card using the Music Shield audio module.

Parts needed:
  • Arduino
  • Music Shield V1.0 audio module
  • Speaker with an 1/8 inch audio plug
  • SanDisk 2GB micro SD card
  • You also need to download the Music_Shield_V2_0 library which contains all of the functions for interfacing with the Music Shield audio module.
Arduino      Music Shield module     
1 Making the connections

The Music Shield audio module can be plugged directly on top of the Arduino so no other connections are necessary.
Music Shield module
2 Prepare SD card.
You must use a SanDisk 2GB microSD card.
  • Format the SD card with the FAT (not FAT32) file system. A quick format is OK.
  • Copy one or more of your favorite mp3 audio files onto the SD card.
3 Download the Music_Shield_V2_0 library.
4 Install the Music Shield library by selecting Sketch from the Arduino IDE menu
  • then select Import Library or Include Library
  • then select Add Library or Add .ZIP Library
Locate and select the Music_Shield_V2_0.zip file that you just downloaded in step 3. It should be in the Download folder.

Click the Open button.

(Refer to this document for more information on how to install a library if you run into problems.)
5 Create a new program by selecting File from the menu
  • then select Examples
  • then select Music_Shield_V2.0
  • then select createList
6 Upload and run the program, and you should all the songs that you have copied onto the SD card.