Go Down

Topic: Associate a button to an mp3 (Read 2075 times) previous topic - next topic


Hi everybody!
I have to build a prototype for my thesis :) 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)

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

Any suggestion where to start? thanks :D


Mar 18, 2013, 03:14 pm Last Edit: Mar 18, 2013, 05:31 pm by Grumpy_Mike Reason: 1
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.


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

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


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.



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

Well it says on the page:-
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.


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.


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


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

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131