Pages: [1]   Go Down
Author Topic: SD card >> Arduino >> play .wav files (diagram)  (Read 12890 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1243
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

HI..I have my Arduino..

and I have some various other components..  jumper wires.. headers, breadboards..etc.. (caps resistors, various flavors..etc)

I have an SD card adapter with some male header pins solder to it..

I want to use a breadboard and my Arduino to read/play a simple .wav file from the SD card

My first question is:

1.) is there an easy, simple diagram (not schematic) on how to interface with an SD card to the Arduino?  (I need it to a bit easier than a schematic..so I can follow what wires go where..and what resistors go where..etc..

2.) I dont have nor do I want to buy a .wav 'shield'.. I want to see/learn how to wire up the connection myself.. (at least give it a shot with your help!)


after that.. I believe I have seen some code/classes/libraries posted in public domain to use for testing.. simple button press to play specific .wav file form SD card.


I have at least tried to set it up like so..  but Im fairly certain its wrong..  and even if NOT.. not sure where to go from there?..  not looking for help on 'code' so much..  just need help 'getting' to that point. =)  (maybe loading libraries and stuff..as that would be new to me as well)


much appreciated to anyone who can help here with a little hand holding for a noob.

thanks





however some searching also provided these:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649/all

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235125412/0


Is there a preferred library for SD cards that everyone uses?  I see some older ones.. maybe the fat16 lib?


Thanks

« Last Edit: February 18, 2013, 12:40:41 pm by xl97 » Logged


Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

bump
Logged

Accelerate to 88 miles per hour.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 534
Posts: 26970
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Didn't we answer this over the weekend? The picture looks too familiar.
See this design
http://www.ladyada.net/make/logshield/design.html
You need to have a good source of 3.3V current, and the active driver chip for level conversion for reliable comm's with the SD card.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How will you play the wav file without a wav shield ?

Will you use a DAC ?
Logged

Brazil
Offline Offline
God Member
*****
Karma: 3
Posts: 616
Wusik Dot Com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't connect it directly, as SD Cards are 3.3V and the Arduino pins are 5V, see this:

Please, remove the picture ASAP, as its wrong and could burn some SD Cards of people who don't read it correctly, ok? ;-)

Here's the correct setup:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649



Also, if you want to read and handle the WAV files directly, you will need to keep in mind bit-resolution x sample-rate. The Arduino by itself won't handle much, unless you really go deep on the programming skills. That's why most people use a WAV Shield.

You could convert your WAV files to Binary and use a PWM output, check my project up:

https://github.com/Beat707/BeatVox

Wk
Logged


Pages: [1]   Go Up
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines