Arduino Simple Wav Player 2

Arduino Simple Wav Player 2

I. Prepare

Arduino Simple Wav Player 2(1)

  1. Dupont line
  2. SD module
  3. USB mini speaker
  4. Freaduino UNO
  5. SD card
  6. Audio port

II. Make

1. SD module and UNO connecting chart:

Arduino Simple Wav Player 2(2)

Arduino Simple Wav Player 2(3)

2. Solder the audio port. Do pay attention to put a 10 uF capacitor in serious between the left/right channel and the audio input, in this way, we can reduce the impact of the DC component to guarantee a better sound quality. Then plug the channel signal lines into the D9 pin on UNO.

3. Make audio files: convert the audio files to be played into wav format by using the audio format conversion software.

4. We need the software (see in the enclosure) to make the appropriate audio format for Arduino. Open the software; select the suitable conversion program according to the working frequency of the Arduino. Here we select the full-rate single channel mode “Arduino with 16 MHz”. Drag the wav file just now to this batch processing file; wait for a while you will find a new folder, in which locates the converted file. Put the generated file into the SD card formatted as FAT format.

Arduino Simple Wav Player 2(4)

5. Add the “SimpleSDAudio” library files to the folder “libraries”.

6. Open the “MostFuntionDemo.ino” in “SimpleSDAudio”.

Arduino Simple Wav Player 2(5)

After the download is completed, open the serial port debugger, you will see the following window.

Arduino Simple Wav Player 2(6)

Then, click “send” after you input the file name. Prompts should appear below the text as:

Arduino Simple Wav Player 2(7)

As it indicates, press “p” for play and you can enjoy beautiful melodies from the USB speaker.

Download the codes here:
SimpleSDAudio
SimpleSDAudiotools

Categories:   All Projects