Freaduino MP3 Music Shield

From Wiki

Revision as of 02:59, 6 June 2016 by Dragon (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Introduction

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 Shield MP3 06.jpgArduino Shield MP3 07.jpg

Model: SHDMP3

Feature

Application Ideas

Cautions

Note

  • 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

Schematic

Download

Arduino Shield MP3 10.jpg

Specification

Arduino Shield MP3 11.jpg

Pin definition and Rating

Arduino Shield MP3 09.jpg


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.

Usage

Hardware Installation

Arduino Shield MP3 12.jpg

Programming

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.
Just enjoy.

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.

Example

The projects and application examples.

Resources

Support

If you have questions or other better design ideas,

Version Tracker

Revision Descriptions Release
v1.2 Stable version, public release date
v1.0b Modified date
v0.9b test date


How to buy

Click here to buy: http://www.elecfreaks.com/estore/freaduino-mp3-music-shield-shdmp3-127.html

Licensing

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.

External Links

Links to external webpages which provide more application ideas, documents/datasheet or software libraries

Personal tools
Namespaces
Variants
Actions
Navigation
Support
Toolbox