Pages: [1]   Go Down
Author Topic: Associate a button to an mp3  (Read 1537 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everybody!
I have to build a prototype for my thesis smiley I've never used Arduino before, so I'd like to know if what I wanna build is possible for one with no experience, and what I need to buy as pieces of hardware.
The thing it's pretty simple: I've 6 buttons, and I need to link each button to an audio file previously stored in the memory.
So it's like:
press button 1 -> MP3 1 plays
press button 2 -> MP3 2 plays (and hopefully MP3 1 stops)
ecc..

I'd also need to have the ability to easly change the MP3 stored.

Any suggestion where to start? thanks smiley-grin
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 618
Posts: 33948
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

To play an MP3 file you need to buy an MP3 shield. The arduino has not got enough memory or processing power to decode an MP3 file.

Does it have to be MP3, what about a WAV file? A sound shield from Lady Ada will do that and it is much cheaper.
« Last Edit: March 18, 2013, 11:31:37 am by Grumpy_Mike » Logged

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

Thanks for the reply! It doesn't need to be an MP3 at all cost...I can convert the audio files easly! so yeah, cheap is good smiley-grin
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 533
Posts: 26935
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

You could have the arduino control what is played from a card like this

http://www.mdfly.com/index.php?main_page=product_info&cPath=9_53&products_id=284
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.

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 618
Posts: 33948
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That looks an interesting card, the one from AdaFruit also has the audio amplifier, volume control and speaker but maybe he needs to have a more powerful one.

http://www.adafruit.com/products/94
Logged

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

You could have the arduino control what is played from a card like this

http://www.mdfly.com/index.php?main_page=product_info&cPath=9_53&products_id=284
Thanks for the tip!
That looks an interesting card, the one from AdaFruit also has the audio amplifier, volume control and speaker but maybe he needs to have a more powerful one.

http://www.adafruit.com/products/94
Thanks! I don't know precisely how much power I do need...but I need to fit everything inside a cube 15cm x 15cm, and it needs to be heard smiley

I've also found this shield, any opinion? https://www.sparkfun.com/products/9715

Another little question, should I buy an Arduino UNO starter kit + one of those shields, or just arduino UNO + shield? (recall that I've never used this before..so I guess I should go with the starter kit).

thanks,
Alessandro
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 618
Posts: 33948
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I've also found this shield, any opinion? https://www.sparkfun.com/products/9715
Well it says on the page:-
Quote
This product has been retired from our catalog and is no longer for sale.
This page is made available for those looking for datasheets and the simply curious. Please refer to the description to see if a replacement part is available.

So I guess it is not an option.
I would go with the starter kit and do some tutorials to get yourself used to the whole system before delving in to your project.
Logged

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

You may also want to look into some type of Amplifier.

I don't have much experience here, but from what I've seen of Arduinos playing music, the volume maybe quite low.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 21
C can be painful
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've used this one with the arduino and its fairly straight forward and worked like a charm. 

https://www.sparkfun.com/products/11029

You might also read up on it's implementation here: http://notlaura.com/slam-man-3000-mp3-trigger-v2-arduino-uno-n00b/
Logged

Pages: [1]   Go Up
Jump to: