Arduino MP3 Player Circuit & Source Code - this Arduino project: A full MP3 player based on Arduino, the idea was to build a standalone player, in the style of antique radios or 'tapes', in the age of Iphones ....
The player uses a small module based on the VS1002d chip (now discontinued, but who had a drawer). The module in question I bought at Futurlec . Currently you can get similar modules on ebay for a bit more than 10$, although the chip is the VS1003 o VS1053. You can also use a SparkFun MP3 shield, but significantly more expensive (this shield already includes an SD slot).
The three chips are quite compatible in terms of programming, and indeed almost all initialization the I have taken from the library to the SparkFun MP3 Shield ;-)
Part of Arduino mp3 player :
Arduino
Mp3 module based on chip VS 1XXX
SD Module (It is also available on ebay)
4x20 characters LCD
Small amplifier
2 speakers.
Circuit:
The SD structure
In this post I'll try to explain a little the code of our 'Jukebox' Arduino hearted .
The main problem I found for this project, was the limitation SD library, with reduced FAT which only allowed the names in 8.3 format.
The solution was to create a small catalog in a text file from which to read the entries.
The directory structure on the SD has the following format:
raiz
The player uses a small module based on the VS1002d chip (now discontinued, but who had a drawer). The module in question I bought at Futurlec . Currently you can get similar modules on ebay for a bit more than 10$, although the chip is the VS1003 o VS1053. You can also use a SparkFun MP3 shield, but significantly more expensive (this shield already includes an SD slot).
The three chips are quite compatible in terms of programming, and indeed almost all initialization the I have taken from the library to the SparkFun MP3 Shield ;-)
Part of Arduino mp3 player :
Arduino
Mp3 module based on chip VS 1XXX
SD Module (It is also available on ebay)
4x20 characters LCD
Small amplifier
2 speakers.
Circuit:
The code
It consists of a library 'AGMp3' handling the chip and SD, and the sketch of the player. You can download it from here
In this post I'll try to explain a little the code of our 'Jukebox' Arduino hearted .
The main problem I found for this project, was the limitation SD library, with reduced FAT which only allowed the names in 8.3 format.
The solution was to create a small catalog in a text file from which to read the entries.
The directory structure on the SD has the following format:
raiz
+-artistas.txt
+-[ARTIST01]
| +-album.txt
| +-[ALBUM01]
| | +-track.txt
| | +-track001.mp3
| | +-track002.mp3
| | .....
| | +-track0nn.mp3
| +-[ALBUM02]
| .......
| +-[ALBUMnn]
+-[ARTIST02]
.....
+-[ARTISTnn]
source http://arduino-cool.blogspot.com/