Go Down

Topic: Decode MP3 Audio, Analyze Frequency and DB values (Read 2660 times) previous topic - next topic

Hello, I am new to the world of Arduino, and for now this project is entirely in the imaginary phase, but I would like to create a device that reads in MP3 files (probably from an MP3 Player Shield, http://www.sparkfun.com/products/10628), and can take that file frame by frame as it's streaming, and analyze the decibel values of the various frequencies, so I could have one individual visualizer for the bass, another for treble, etc.  I have no idea how to do this.  Any ideas?

CrossRoads

Browse the old forum for spectrum analyzer - there were several working examples there.
Not sure if MP3 based or not.
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.

CrossRoads

As the sparkfun unit is out of stock, you might want to look at the RogueRobotics.com uMP3 and rMP3 offerings as well.
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.

mowcius


CrossRoads

Where'd you find that mowcius? I was looking for it and didn't see it anywhere.
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.


CrossRoads

I finally got deep enough down at roguerobotics to find this one
http://www.roguerobotics.com/wikidocs/projects/rmp3/spectrum_analyzer_demonstration
has code listings & stuff.
I think work was blocking access to stuff on me.
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.

kalum


Hello, I am new to the world of Arduino, and for now this project is entirely in the imaginary phase, but I would like to create a device that reads in MP3 files (probably from an MP3 Player Shield, http://www.sparkfun.com/products/10628), and can take that file frame by frame as it's streaming, and analyze the decibel values of the various frequencies, so I could have one individual visualizer for the bass, another for treble, etc.  I have no idea how to do this.  Any ideas?


You will need a vs1053 mp3 decoder based solution. Either use a breakout board and build your own, or buy a pre assembled one. This link http://www.vlsi.fi/en/support/software/vs10xxplugins.html  shows a patch for the vs1053 which has 23 bands of spectrum analysis which should satisfy your requirements.

My DIY mp3 player might help you if you are interested in the breakout board solution http://kalum.posterous.com/50759184

mowcius

The VS#### is what is used on the rMP3 with also up to 23 freqs of analysis.

kalum


The VS#### is what is used on the rMP3 with also up to 23 freqs of analysis.


The problem with the rmp3 is the price, it is  slightly more than 60 US$. I am curious as to what VLSI mp3 decoder chipset it uses as well? Is it the  latest VS1053 or the older VS1011?   There are many  breakout boards with the latest VLSI chipset which is vs1053 which support playback of Mp3/OGG/FLAC/HE-AAC/WMV file formats and have inputs for recording from the mic and line in as well. A simple search for vs1053 on ebay will show the breakout boards in question which are around 24 us$.

The rmp3, is good if someone wants a mp3 player shield with a minimum of fuss, where all the code for file reading and spi interfacing to the VS1053 is written and insulated in a high level code. If someone wants to design his own mp3 player from scratch or is interested in low level interfacing  then its more cost effective to use a breakout board for the vs1053 and interface it with the arduino/AVR and SD card yourself.

The spectrum analyser for the vs1053 is here
http://www.vlsi.fi/en/support/software/vs10xxplugins.html
and here is the PDF which shows how to interface to it
http://www.vlsi.fi/fileadmin/software/VS10XX/spectrumAnalyzer.pdf

mowcius

Quote
The rmp3, is good if someone wants a mp3 player shield with a minimum of fuss, where all the code for file reading and spi interfacing to the VS1053 is written and insulated in a high level code.

Well based on the way the original question was asked I was posting what I thought would be the most useful product/link for what they want to do. Currently the rMP3 is using the VS1011 (as far as I know) but without wanting audio input or more unusual file types there aint a lot of difference between them.

Yes the rMP3 is more expensive than a breakout board but it does have a lot of code to go with it and also has an ATmega644 on board which does all the heavy lifting. If you just want to do a vis and have the knowledge to go about that with a breakout board and all the code then obviously the rMP3 might not be the right way to go.

Depends on how happy the OP is with doing the interfacing to the SD card and VSLI chip himself.

Go Up