Advertisement

Quick Links

Music Shield User Manual
1.
Overview
Music Shield is an Arduino expansion board for playing/recording audio, features onboard audio
codec chip VS1053B and a TF card slot, supports common used audio formats.
Features:
Arduino standard interfaces,
compatible with Arduino boards like
Arduino UNO, Leonardo, NUCLEO,
XNUCLEO
Supported formats :
MP3/AAC/WMA/WAV/MIDI, etc.
Onboard TF card slot, audio files in TF
card can be played directly
Onboard MIC for recording, with
standard 3.5mm 4-segment
headphone jack
Onboard voltage level converter
74VHC125, compatible with 3.3V/5V
MCUs
One-key control, play music and
adjust volume easily by the
navigation key
Note : Limited by the transmission speed and memory shortage, Arduino boards like UNO and
Leonardo can neither play WAV files, nor use the recording function. NUCLEO or Due are
recommended.
Revision 1.1. Date: December 7, 2015. Author: W. L. Yan. Editor: Felix.
Music Shield
User Manual
Features I2S and MIDI interface for
functional expansion
Note : Limited by the transmission
speed and memory shortage, Arduino
boards like UNO and Leonardo can
neither play WAV files, nor use the
recording function. NUCLEO or Due
are recommended.
share awesome hardware
1

Advertisement

Table of Contents
loading

Summary of Contents for Waveshare Music Shield

  • Page 1 Music Shield User Manual Music Shield User Manual Overview Music Shield is an Arduino expansion board for playing/recording audio, features onboard audio codec chip VS1053B and a TF card slot, supports common used audio formats. Features:  ...
  • Page 2: Usage Descriptions

    Usage Descriptions 2.1. VS1053B The Music Shield features a VS1053 audio decoder-and-encoder chip designed by VLSI from Finland, of which internal structure is shown in the following figure: Control interface: the VS1053 communicates with a MCU through SPI, of which can be controlled by 7 data lines.
  • Page 3: Serial Protocol For Serial Command Interface (Sci)

    LEFT/RIGHT pads are used for Left/Right channel output. The GBUF pad is used for Common buffer for headphones. The I2S output pins (LOROUT, MCLK, SCLK, SDTA) are retained on the Music shield. Recording: MICP/MICN, the differential mic input; LINE1/LINE2, the Line-in 1/2. The mic on Music Shield is connected to MICP/MICN and the earphone is connected to LINE2.
  • Page 4: Sci Register

    Music Shield User Manual address. After the address has been read in, any further data on SI is ignored by the chip. The 16-bit data corresponding to the received address will be shifted out onto the SO line.
  • Page 5 Music Shield User Manual 100 CLKI DECODE_TIME Decode time in seconds 450 CLKI AUDATA Misc. audio data 100 CLKI WRAM RAM write/read 80 CLKI WRAMADDR Base address for RAM write/read 80 CLKI HDAT0 Stream header data 0...
  • Page 6 Music Shield User Manual SM_SDISHARE Share SPI chip select SM_SDINEW VS1002 native SPI modes SM_ADPCM ADPCM recording active right wrong SM_LINE1 MIC / LINE1 selector MICP LINE1 SM_CLK Input clock range 12..13 MHz 24..26 MHz These bits are the primary focus of the present register:...
  • Page 7: Playing Audio Files

    Music Shield User Manual SCI_HDAT1/SCI_HDAT0 Register: After IMA ADPCM recording has been activated, registers SCI HDAT0 and SCI HDAT1 have new functions. The IMA ADPCM sample buffer is 1024 16-bit words. The fill status of the buffer can be read from SCI HDAT1. If SCI HDAT1 is greater than 0, you can read as many 16-bit words from SCI HDAT0.
  • Page 8: Real-Time Midi

    Music Shield User Manual (The mic on Music Shield is connected to differential mic input while the earphone is connected to Line input 2.) Before activating ADPCM recording, user must write the right values to SCI AICTRL0 and SCI AICTRL3.
  • Page 9: Getting Started

    Shield. Connect the development board to a PC. Compile and program the Music Shield Player Demo. Run the serial monitor software (PuTTY, SecureCRT, Arduino Serial Monitor, etc.) Set the software as: Baud: 9600, Data bits: 8, Stop bits 1; Parity: None, Flow control: None.
  • Page 10: Arduino Uno Plus

    MIDI (SD card is not required under Real-Time MIDI) Connect the development board to a PC. Compile and program the Music Shield MIDI Demo. Run the serial monitor software (PuTTY, SecureCRT, Arduino Serial Monitor, etc.) Set the software as: Baud: 9600, Data bits: 8, Stop bits 1; Parity: None, Flow control: None.
  • Page 11 Music Shield User Manual Copy some audio files to the root directory of a TF card and insert it into the TF socket of a Music Shield. Connect the development board to a PC. Unzip the demo files to the directory of Arduino software: ..\arduino\libraries.
  • Page 12 Music Shield User Manual N: 31 N: 32 N: 33 N: 34 N: 35 N: 36 N: 37 N: 38 N: 39 N: 40 Revision 1.1. Date: December 7, 2015. Author: W. L. Yan. Editor: Felix.
  • Page 13: Revision History

    Music Shield User Manual Revision history Revision Changes Date Initial release June 26 2015 Revision 1.1. Date: December 7, 2015. Author: W. L. Yan. Editor: Felix.

This manual is also suitable for:

Vs1053b

Table of Contents