Audio Player Using Arduino With Micro SD Card

by vishalsoniindia in Circuits > Arduino

165477 Views, 103 Favorites, 0 Comments

Audio Player Using Arduino With Micro SD Card

Audio Player using Arduino with micro SD card
Screenshot_2017-03-29-18-48-59.png

By the way, subscribe to my YouTube channel for more projects like this. I also update my upcoming projects on Instagram.

buy me a coffee! ☕: Donate

Many of People want to interface the SD card with arduino or want some audio output via arduino.

So here is easiest and cheapest way to interface SD card with arduino . you can use the audio output from arduino via a switch or sensor .

you can play any type of sound ,music and recording but that audio will be in to .wav file. If it is in .mp3 or any other audio type then we will convert it into .wav file.

Components & Requirements

Screenshot_2017-03-29-16-55-53.png
Screenshot_2017-03-29-16-58-48.png
Screenshot_2017-03-29-16-59-07.png
Screenshot_2017-03-29-17-00-15.png
Screenshot_2017-03-29-17-04-00.png
1363-02.jpg
  • arduino uno
  • micro SD card Adapter module
  • micro SD
  • Card Reader
  • Speaker or earphone speaker
  • woofer or amplifier

Convert Audio to .wav

Screenshot_2017-03-29-17-05-29.png
Screenshot_2017-03-29-17-06-17.png
Screenshot_2017-03-29-17-06-38.png
Screenshot_2017-03-29-17-07-24.png
Screenshot_2017-03-29-17-07-46.png

Go to the Link to convert the audio into .wav .

http://audio.online-convert.com/convert-to-wav

  1. Go to The Link
  2. Upload your audio you want to convert to WAV
  3. Change bit resolution to " 8bit ".

  4. Change sampling rate to " 16000Hz ".

  5. Change audio channels " mono " .

  6. Click on " Show advanced options ".

  7. PCM format " unsigned 8 bit ".

  8. Convert file.

At next page click on "direct download link"

Prepare SD Card

Screenshot_2017-03-29-17-08-12.png
Screenshot_2017-03-29-17-08-24.png
Screenshot_2017-03-29-17-10-56.png
Screenshot_2017-03-29-17-11-29.png
Screenshot_2017-03-29-17-11-47.png
Screenshot_2017-03-29-17-12-30.png
Screenshot_2017-03-29-17-12-51.png

Download the Zip file and Extract it.

Here you will get the " SD formatter "

install the SD formatter in your PC.

Now, Connect your card with PC via USB card reader.

Open SD card formatter.

Select the drive of sd card then click on format .

In Next Step Open your SD card Drive .

Past the Audio file that we have converted in .wav file

Rename the file to "test.wav".

mirror :- https://codeload.github.com/vishalsoniindia/Audio...

Add Library in Arduino

Screenshot_2017-03-29-17-14-32.png
Screenshot_2017-03-29-17-15-00.png

Open The arduino Software

Click on then Sketch >> Include Library >> Add zip Library

Select "TMRpcm.zip" that is in zip folder.

Upload the Codes

687474703a2f2f7777772e6175746f6e6f6d69692e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30332f41726475696e6f2d506c75672d69742d696e2e6a7067.jpg

Download the code from link below or i have already mentioned in zip file .

Connect your arduino with pc and upload the Codes.

https://github.com/vishalsoniindia/Audio-Player-Us...

Downloads

Circuit Connections

Screenshot_2017-03-29-18-47-16.png
Screenshot_2017-03-29-17-15-23.png
Screenshot_2017-03-29-18-48-34.png

Insert the card in micro sd adapter module.

Connect the circuit as given below.

CS ---------------------->> 10

SCK ---------------------->> 13

MOSI -------------------->> 11

MISO--------------------->> 12

VCC --------------------->> +5v

GND--------------------->> Arduino's Ground

Speaker Connection

one pin is in to 9 pin of Arduino and other is GND of Arduino

Play the Audio

Screenshot_2017-03-29-18-48-59.png
1363-02.jpg

Now , It's Ready...............................

Click Reset button to play audio every time.

By the way, subscribe to my YouTube channel for more projects like this. I also update my upcoming projects on Instagram.

buy me a coffee! ☕: Donate

The OUTPUT sound is very Low so you can use woofer or amplifier for batter Output.