Getting Started; Pin Descriptions; How To Use - Waveshare Music Shield User Manual

Table of Contents

Advertisement

Music Shield User Manual
3.

Getting Started

3.1. Pin Descriptions

1)
D11, D12 and D13 are the MISO, MOSI and SCLK buses of the SPI interface by default.
2)
A0, A1, A2 and A3 are connected to the XRESET, DREQ, XDCS and XCS of VS1053.
3)
D10 and D9 are the CS and SD_Detect pins of the SD card.
4)
D7,D6,D5,D4 and D3 correspond to the button Down (Volume -), Left (Previous), Middle
(Play/Stop/Record), Right (Next), Up(Volume +).
5)
D8 is the LED indicator (it blinks when the module plays or records).

3.2. How to use

In this section, we will illustrate the applications of this shield by using 2 kinds of development boards.
3.2.1. XNUCLEO-F103RB( MCU STM32F103R) :
1.
Playing Audio
1)
Copy some audio files to the root directory of a TF card and insert it into the TF socket of a Music
Shield.
2)
Connect the development board to a PC.
3)
Compile and program the Music Shield Player Demo.
4)
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.
5)
Plug in an earphone and you will hear the music. Press the Up/Down button to adjust the
volume and Left/Right button to select the audio file. Press the Middle button to play or pause.
Hold the Middle button to start recording (The Line In port is set as default recording input or
you can edit the source code to set the onboard mic as a recording input) then press the Middle
button to stop recording. The Serial Monitor software will print:
**********playing list**********
1 . test.wav
2 . test.aac
3 . test.flac
4 . test.mp3
5 . test.ogg
Revision 1.1. Date: December 7, 2015. Author: W. L. Yan. Editor: Felix.
share awesome hardware
9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vs1053b

Table of Contents