Introduction: Arduino SDcard Simple Wav Player 2

Picture of Arduino SDcard Simple Wav Player 2

Previously we introduced “Arduino Simple Wav Player”, which actually should not be given the name “wav player” because it’s not flexible at all for the limitation from Arduino flash. This tutorial and set of kits, is complementary to that. By contrast, it gets greatly improved in the flexibility and sorts out the limitation problem by storing the converted music file into a SD card. Makers can build better music player on this basis.

Source page: http://www.elecfreaks.com/7498.html

Step 1: Prepare

Picture of Prepare

Step 2: Make

Picture of Make
  1. SD card module and UNO connecting chart:
  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.
  5. Add the “SimpleSDAudio” library files to the folder “libraries”.
  6. Open the “MostFuntionDemo.ino” in “SimpleSDAudio”.

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

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

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

Download the codes here:

Comments

kle14 (author)2015-11-20

I have encountered a error with code: 9 and 2

So what do they mean?

You should add the code error explain.

Thanks

Swee SiangT (author)2015-09-14

hi I try to run the code, but during SD.init function it return error code 49. What does it mean?

seamster (author)2014-09-24

Nice work.

About This Instructable

16,349views

33favorites

Bio: ElecFreaks is an open design house founded in March 2011. Our goal is to create rapid prototypes and give small-batch manufacture solution for makers and ... More »
More by ElecFreaks:Elecfreaks Motor:bit User GuideCreate an Electric Spirit LevelHC-08 Bluetooth UART Communication Module V2.4 User Guide
Add instructable to: