Go Down

Topic: Associate a button to an mp3 (Read 1 time) previous topic - next topic

alessandrocar88

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)
ecc..

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

Any suggestion where to start? thanks :D

Grumpy_Mike

#1
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.

CrossRoads

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
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.

Grumpy_Mike

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

Grumpy_Mike

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.

dritchie0042

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.

jahue

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/

Go Up