Go Down

Topic: Create MP3 player (Read 1 time) previous topic - next topic

niellles

Hi there,

I'm pretty new to Arduino and I really enjoy experimenting with it. At this point I got the basics; make some simple circuits, make some stuff blink, switch relays, control some stuff via a browser (using a ethernet shield).

The next thing that I'd like to create is a MP3 player that streams music to my amplifier (3.5mm jack), this seems more complicated than I had imagined. First of all; which Audio-shield would you guys recommend - there are so many different shields available?

I'd like to do the following:
List all available in a certain directory (preferably on a thumbdrive) in the browser, then play a selected file. So far I've only seen codes that just put all available files in one playlist and let you skip through that, I want to play specific files. I couldn't find any good tutorials on the internet.

Any thoughts on whether this is possible or any good tutorials? (Can I use my Arduino Uno for this, especially when I want the same board to switch 1 or 2 relays?)

Thanks in advance,

Kinds regards,

Niellles

johnwasser

You will need an MP3 Shield of some kind to do the decode.  Google can help there.

Since you talk about a browser you will also need some kind of network access.  That can be an Ethernet Shield if you have an Ethernet outlet handy.  The Ethernet Shield also has an SD (or Micro-SD) car slot for file storage.

If you need to use a USB Thumb Drive instead of an SD card you will need something like a USB Host Shield.

Once you add all this additional hardware you might be better off getting something like the DUE or even the RaspberryPie.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

CrossRoads

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.

niellles


You will need an MP3 Shield of some kind to do the decode.  Google can help there.

Since you talk about a browser you will also need some kind of network access.  That can be an Ethernet Shield if you have an Ethernet outlet handy.  The Ethernet Shield also has an SD (or Micro-SD) car slot for file storage.

If you need to use a USB Thumb Drive instead of an SD card you will need something like a USB Host Shield.

Once you add all this additional hardware you might be better off getting something like the DUE or even the RaspberryPie.


I found several MP3 shields, this one for example has an USB-port. The point is that I can't find any tutorials/example code on how to create a proper media player that allows me to play a certain file instead of skipping through all files (any suggestion as to where I can find this information?)

I got an ethernet shield, so that shouldn't be the problem... Once I know how to play a specific file it won't be too much work to do that by user input through the browser...

Let's say I got a 3 mp3 files on a thumbdrive connected to the music shield: CrossRoads.mp3, johnwasser.mp3 and niellles.mp3. I'd like to write a code that can do something like this:

play(c) (where c is the filename)

Instead of all the examples that I found so far where the files would be named : 001CrossRoads.mp3, 002johnwasser.mp3 and 003niellles.mp3. Arduino would start playing at 001CrossRoads.mp3 and I can only skip through the files.

As I said; I'm pretty new to this stuff so I hope that you guys understand what I'm trying to say...

I thought about the RaspberryPie but that doesn't seem the best solution. Do you mean the Arduino Due with "Due"? What would be the advantages of this board?

Yours,

Niels

Retroplayer

The MDFLY module that was linked does that. And if you are using an MP3 shield, you have complete control. You have to load the file off the SD card and stream it to the MP3 decoder, so you can open whatever file you want. If you want something very simple and flexible (and also plays off USB drives) check out the VMUSIC2 module.

Go Up