How to get mp3 files to play on Arduino!

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Autumn1915
 
Posts: 4
Joined: Sun Oct 24, 2021 10:37 pm

How to get mp3 files to play on Arduino!

Post by Autumn1915 »

Hello,
I am super new to electronics and very eager to learn! I have a few questions, but first here is what I hope to accomplish. I'm making a little robot, and I'm hoping to have a few audio files play when HD is turned on. It will go through and play the files back to back, and then loop when done. From my research so far, I will need speakers as well as an attachment to help the Arduino sound better, but am lost after this. So here goes my questions.
1. What other pieces do I need to ensure my sound is good, and not break my board?
2. Are there any tutorials that mimic what I am looking for?
3. Will the sound start right away once power is supplied if no switch is involved?
Bonus question! I'm hoping to have a motor work another piece and "sync" it up. For example, when audio 1 plays, motor code 1 runs, etc. How can I do this?

Thank you so much for your time and consideration!

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: How to get mp3 files to play on Arduino!

Post by adafruit_support_bill »

1. It depends on which Arduino. If you have one of the ARM M0 of M4-based boards, it is possible to to native MP3. https://learn.adafruit.com/native-mp3-d ... on-arduino
Otherwise, you can use a Music Maker shield: https://www.adafruit.com/product/1788

2. I dont know of any that do exactly what you are looking for. But there are lots of MP3 related tutorials you can borrow from: https://learn.adafruit.com/search?q=mp3

3. Yes, you can program it to play files at power-up.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”