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 WTV020-SD-16P audio module.

Parts needed:
  • Arduino
  • WTV020-SD-16P SD card audio module
  • Speaker
  • Wires
  • Breadboard
  • SanDisk 2GB micro SD card

  • You also need to download the Wtv020sd16p software library which contains all of the functions for interfacing with the Wtv020sd16p SD card audio module.
Arduino      Audio module      Speaker      Breadboard     
1 Making the connections

The WTV020-SD-16P SD card audio module requires eight (8) connections.

Arduino WTV020 Description
2 1 Reset
3 7 Clock (P04)
4 10 Data In (P05)
5 15 Busy (P06)
3.3V 16 3.3V (do not use 5V)
4 Speaker +
5 Speaker -
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.
  • Download and copy this audio file to the SD card.
3 Download the Wtv020sd16p library.
4 Install the Wtv020sd16p 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 file that you just downloaded in step 2. 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 Wtv020sd16p
  • then select Wtv020sd16pExample
6 Upload and run the program, and you should hear a song.