Pages: [1]   Go Down
Author Topic: Playing MP3/WAV/audio files from an Arduino  (Read 2661 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Hi,

A little help.  I want to be able to play audio files using an Arduino. 

1.  Can this be done?
2.  Would I need to use a DAC?
3.  Would it then be possible to amplify the analogue signal to output into speakers?

Tarrrrr.... smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

>1.  Can this be done?
Yes
>2.  Would I need to use a DAC?
No, The arduino is not powerful enough to decode wav or MP3
>3.  Would it then be possible to amplify the analogue signal to output into speakers?
Yes you can use any amplifier.

There are some shields you can use with the hardware to decode audio.
http://www.adafruit.com/products/94 (kit needs some soldering skills).
https://www.sparkfun.com/products/10628 mp3 shield


Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I had this in mind for the amplifier stage,

http://www.rkonlinestore.co.uk/rkamp4-2-x-10watt-stereo-amplifier-project-kit-580-p.asp

http://rkeducation.co.uk/RKAmp4.php

I am planning on building a mini speaker, should sound awesome!

Thanks!
Logged

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 568
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you're prepared to convert files first then you can use Tuttut's SimpleSDAudio library to play files from an SD carr and output audio using PWM pins.

You have the option of:-

8 bit mono - 1 Pin
8 bit stereo - 2 Pins + a couple of resistors
8 bit bridged mono - 2 Pins
16 bit mono - 2 Pins + a couple of resistors
16 bit stereo - 4 Pins + four resistors

You can use resistors or RC network to take it into speakers or amplifiers.

I use it for sound effects and I have a 1284P on my desk playing tracks at 8 bit mono through a 2.1 hacked PC speaker system and it sounds fine for me.

You just need to convert WAV files using the supplied converter and batch files. It's all drag 'n' drop.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool, thanks!  smiley-cool
Logged

Pages: [1]   Go Up
Jump to: