Pages: [1]   Go Down
Author Topic: Decode MP3 Audio, Analyze Frequency and DB values  (Read 2457 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 538
Posts: 27068
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Browse the old forum for spectrum analyzer - there were several working examples there.
Not sure if MP3 based or not.
Logged

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.

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 538
Posts: 27068
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

As the sparkfun unit is out of stock, you might want to look at the RogueRobotics.com uMP3 and rMP3 offerings as well.
Logged

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.

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The rMP3 from RogueRobotics can do what you are asking as standard:
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 538
Posts: 27068
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Where'd you find that mowcius? I was looking for it and didn't see it anywhere.
Logged

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.

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well I knew where to look smiley-grin
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 538
Posts: 27068
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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.

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: