Download Print this page

SYC AR-MP3SHIELD User Manual

Arduino mp3 shield

Advertisement

Quick Links

Arduino MP3 Shield User Guide
Instruction
Arduino MP3 Shield is a high quality MP3 module, supporting standard MP3 and WAV format audio files. It also supports three kinds
of storage devices, including an onboard SPI-Flash, external SD Card and U-Disk.
AR-MP3SHIELD
PLACA MP3 PARA ARDUINO CON USB Y SD
www.sycelectronica.com.ar

Advertisement

loading
Need help?

Need help?

Do you have a question about the AR-MP3SHIELD and is the answer not in the manual?

Questions and answers

Summary of Contents for SYC AR-MP3SHIELD

  • Page 1 AR-MP3SHIELD PLACA MP3 PARA ARDUINO CON USB Y SD Arduino MP3 Shield User Guide Instruction Arduino MP3 Shield is a high quality MP3 module, supporting standard MP3 and WAV format audio files. It also supports three kinds of storage devices, including an onboard SPI-Flash, external SD Card and U-Disk.
  • Page 2 The Arduino MP3 Shield has an onboard 3W Class-D stereo audio amplifier which could drive 4ohm load such as loudspeaker. The Arduino MP3 Shield has seven buttons and a UART interface, that is to say user has two ways to control the module flexibly. The UART interface is connected to the Arduino hardware UART by default.
  • Page 3: Function Description

    There are 2 LEDs on the board.  Power indicating: the LED is always on when power is supplied.  State indicating: LED is on when playing music, blinking when copying files to onboard SPI-FLASH. Function Description On board Audio Amplifier could drive up to 3W/4Ω external loudspeaker. Infact, we test it with 5W/8Ω loudspeker, and it works well. www.sycelectronica.com.ar...
  • Page 4: Configuration Description

    By default, the RX Jumper and TX Jumper are connected to hardware UART pins on Arduino. You could change it with soldering tool. If you bridge the lower two pads, Arduino D7 and D8 need to serve as RX and TX. You could find more information in latter description. The amplifier could be controlled by Arduino.
  • Page 5 Copy the “iSound.mp3” to U-Disk or SD card. Make sure that iSound.mp3 is the last file copied to U-Disk or SD card. This could ensure that at next step, iSound.mp3 file is the last file which is written to the flash. Use COPY function to download music files and the “iSound.mp3”configuration file to the flash.
  • Page 6 COPY MUSIC FROM SD-CARD/ U-DISK TO SPI-FLASH The Arduino MP3 Shield support 3 kinds of storage media, SD card, U-Disk and SPI FLASH. The three kinds of memory have the following priority (High first): SPI-FLASH, SD card and U-Disk. There are two methods to copy music from SD-CARD/U-DISK: through COPY button, or UART interface. Copy Music through COPY button Follow the following 5 steps: Create the “iSound.mp3”...
  • Page 7: Operation

    Standard Key OPERATION FUNCTION SHORT Play/Pause music PLAY LONG Stop playing SHORT Previous music PREV LONG Fast forward (when playing music) SHORT Next music NEXT LONG Fast backward(when plying music) SHORT Volume - VOL- LONG Volume- fast SHORT Volume + VOL+ LONG Volume + fast...
  • Page 8 By default, the Arduino MP3 Shield connects Arduino board with hardware UART through the jumper. It is very easy to program if the hardware UART is used. However, this might cause problems while programming the Arduino with this MP3 shield on it. Since programming will use the hardware UART interface while it is occupied by the MP3 shield, you may get errors and fail to upload code.
  • Page 9 NOTE: LENGTH value is the total count of areas including LENGTH, COMMAND and PARAMETER. Writing Command Writing command means commands which tell Arduino MP3 Shield to do something. After each command executed correctly, the command code will be returned. Play SD Card File Run this command to play selected SD card file.
  • Page 10 0x7E 0x02 0xA5 0x7E Previous Music Run this command to play previous music. START LENGTH COMMAND 0x7E 0x02 0xA6 0x7E Set Volume Run this command to set volume. START LENGTH COMMAND VOLUME LEVEL 0x7E 0x02 0xA7 0x00~0x1F 0x7E The volume value is between 0x00~0x1f. Set Play Mode Run this command to set play mode.
  • Page 11 The Arduino MP3 Shield will return 0xAB immediately after receiving this command correctly. At the same time the BUSY LED blinks. If copy successfully, it returns 0xAB 0x00. If failed, it returns 0xAB 0x01. After copy finished, BUSY LED turn off. That is to say, in a successful copy operation, you should receive 0xAB 0xAB 0x00.
  • Page 12 COMMAND RETURN VALUE 0xC5 File numbers(2Bytes) Check Current Playing File START LENGTH COMMAND 0x7E 0x02 0xC6 0x7E Return value: COMMAND TRACKS HIGH BYTE TRACKS LOW BYTE 0xC3 TRACKS HIGH BYTE and TRACKS LOW BYTE are the same with 0xA0 command. Please refer to Command 0xA0 Get user-defined data START...
  • Page 13 Code Download the library: MP3_shield_library.zip www.sycelectronica.com.ar...