Freaduino MP3 Music Shield
- 1 Introduction
- 2 Feature
- 3 Application Ideas
- 4 Cautions
- 5 Schematic
- 6 Specification
- 7 Pin definition and Rating
- 8 Usage
- 9 Resources
- 10 Support
- 11 Version Tracker
- 12 How to buy
- 13 Licensing
- 14 External Links
The Freaduino MP3 music player shield is based on VS1053b IC. The VS1053b chip can be used to decode MP3/WAV/MIDI/Ogg/Vorbis format audio file. The MP3 music player shield has SD card socket and a 4 direction Joystick w/ multifunction switch support Vol-/Vol+/Next/Previous/Pause. Its can play a variety of music formats stored on MicroSD cards with Arduino Library.
Its also support IIC LCD display. You can easy use it with our library.
- Arduino/Seeeduino, Arduino Mega, and Seeeduino Mega compatible
- 2 control-push buttons and 1 knob switch
- Plays music from micro SD cards Decodes:MP3,WAV,MIDI,Ogg Vorbis
- I2S interface for external DAC
- Headphone/Line Out for playback
- Line In for recording in OGG format
- Excellent sound quality with ±1dB Frequency Response
- FCC verification
- Size : 52mm x 54mm x 20mm
- MP3 Music Player
- MP3 system design
- Recording is only supported on Freaduino Mega and Arduino Mega for now.
- Not all of the mircSD card could be support be the mp3 shield, if you always can not run with our library, please try with another mircSD card
Pin definition and Rating
Multifunction button: Turn left to play previous song, and right to next song, while pressing it down to pause and resume.
Volume indicator LED1: If volume+, the red LED will be brighter.
Play/Pause indicator LED2: If playing, the green LED blinks.
Line out: can drive 16 ohm or 32 ohm earphone.
Line in: is used to record audio from other resources.
Micro SDcard: can be FAT16 or FAT32, and the size more than 2GB is not supported.
I2S and GPIO are for digital audio output.
ISP interface is kept for bringing SPI port when using with Mega.
Pins usage on Arduino
D0 - Unused.
D1 - Unused.
D2 - Used for receiving signal from iPod dock(could be used for your own application if iPod dock is not used).
D3 - Used for receiving signal from button for Volume Up(could be used for your own application if the switch is not used).
D4 - Used for receiving signal from switch for Next Song function(could be used for your own application if the switch is not used).
D5 - Used for receive signal from switch for Play&Stop and Record function(could be used for your own application if the switch is not used).
D6 - Used for receive signal from switch for Previous Song function(could be used for your own application if the switch is not used).
D7 - Used for receiving signal from button for Volume Down(could be used for your own application if the switch is not used).
D8 - Used for Green Led instructions(could be used for your own application if the switch is not used).
D9 - Used for Red Led instructions(could be used for your own application if the switch is not used).
D10 - Used for SPI Chip Select.
D11 - Used for SPI MOSI.
D12 - Used for SPI MISO.
D13 - Used for SPI SCK.
D14(A0) - Used for Reset of VS1053.
D15(A1) - Used for Data Require of VS1053.
D16(A2) - Used for Data Select of VS1053.
D17(A3) - Used for Chip Select of VS1053.
D18(A4) - Unused.
D19(A5) - Unused.
Software Installation For Arduino 1.0.1
Play All music:
1. Make sure there are songs in the micro sd card.
2. Download File:Music v1_2.zip for music shield.
3. Uncompress these two packages and put them in Arduino-1.0.1 program: ..\Arduino-1.0.1\libraries
4. [Ignore this if under Linux] Download a new portpins.h file and replace the default portpins.h file of Arduino-1.0.1 program: ..\arduino-1.0.1\hardware\tools\avr\avr\include\avr
5. Select the corresponding Arduino board, like Arduino UNO or Duemilanove or others.
6. Run the arduino program compile and upload the sketch of music_v1_2 -> music into Arduino board.
7. If you need the IIC LCD display, please use our IIC/SPI LCD module and a 4pin wires connect with each other, and Import the library.
Record music:(Only support ATmega1280 and ATmega2560 based board)
1. Press play/stop knob before pressing the RESET button of Arduino.
2. Release RESET button for a second and then release play/stop knob. When the music shield is beginning to record, the green and red LEDs will blink synchronous.
3. Press play/stop knob will stop recording.
Another library: Use Fat16 library
This method will use an open source library Fat16 library. There are two sketches in this demo: Using MusicPlayRandomly sketch, you can make the music play randomly.And using MusicPlayWithName, you can specify which song to be played by name.(Note: The demo can't co-exist with demo 1 in the libraries)
1. Make sure there are songs in the micro sd card.
2. Download File:MusicShieldNewSDLib.zip for music shield.
3. Uncompress these two packages and put them in Arduino-1.0 program: ..\arduino-1.0\libraries
4. Select the corresponding Arduino board, like Arduino UNO or Duemilanove or others.
5. [Ignore this if under Linux] Download a new portpins.h file and replace the default portpins.h file of Arduino-1.0 program: ..\arduino-1.0\hardware\tools\avr\avr\include\avr
Run the arduino program compile and upload the sketch of MusicShieldNewSdLib into Arduino board.
The projects and application examples.
- MP3 Shield Schematic.pdf
- vs1053b datasheet
- Music v1_2.zip source code for Arduino 1.0
- SPI_IIC_LCD library IIC LCD module library for Arduino 1.0
- MusicShieldNewSDLib.zip source code with MusicPlayRandomly/MusicPlayWithName
If you have questions or other better design ideas,
|v1.2||Stable version, public release||date|
How to buy
Click here to buy: http://www.elecfreaks.com/estore/freaduino-mp3-music-shield-shdmp3-127.html
This documentation is licensed under the Creative Commons Attribution-ShareAlike License 3.0 Source code and libraries are
licensed under GPL/LGPL, see source code files for details.
Links to external webpages which provide more application ideas, documents/datasheet or software libraries