Go Down

Topic: Play mp3 (Read 4 times) previous topic - next topic


Hi, im making a class project and i need some help about playing mp3 files with arduino.

I would like play only one music track, use one sensor and one dc motor, everything on an Arduino UNO shield. I was taking a look on music shield (Seeed/Sparkfun), but im not sure if it use all of the PWM pins for his own work.

I saw this too: http://hackerspace-ffm.de/wiki/index.php?title=SimpleSDAudio
Its possible work with this example using Mac?

what you recomend me?

Thank you very much


That project uses PWM to emulate an audio waveform.  That PWM signal is passed through a low-pass filter to remove the high frequency switching signal and leave an approximation of an audio waveform behind.

It'll be "average" at best.  Also, it uses about 80% of the Arduino's available RAM just to run the audio, and integrating it with other things will be tricky as it needs to run its worker function all the time.
Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10


Thanks Majenko. Do you think that i will have the same power problem using one shield like this: https://www.sparkfun.com/products/10628?


That shield is a kind of half-way house.

It still uses the Arduino to read the mp3 data from the SD card and send it to the mp3 decoder chip, but because mp3 data is so heavily compressed there is much less data involved, and so the Arduino is more available for doing other things.  Audio quality will be considerably better than a low-pass filtered PWM signal generated by the Arduino, but not as high quality as an uncompressed format player (purely because mp3 is a lossy codec, so you lose audio definition with it).
Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Go Up