-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
221 lines (220 loc) · 10.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<html><head><meta name="viewport" content="width=device-width, initial-scale=1"><link href=//fonts.googleapis.com/css?family=Raleway:400,300,600 rel=stylesheet type=text/css><link rel="stylesheet" type="text/css" href="../common/css/normalize.css"><link rel="stylesheet" type="text/css" href="../common/css/skeleton.css"><link rel="stylesheet" type="text/css" href="../common/css/wiki.css"><script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><title>Music Shield V1.0</title><meta charset="utf-8"/></head><body><div class"container"><a href="../"><img src="../common/logo.png"/></a></div><div class="mw-content-ltr container" dir="ltr" id="mw-content-text" lang="en"><h1>Music Shield V1.0</h1>
<p>The Music Shield is a professional audio codec.It can work with Arduino, Seeeduino, Seeeduino Mega and Arduino Mega. It is based on VS1053b IC, and can play a variety of music formats stored on MicroSD cards with Seeed the provided Arduino Library.<br/>
</p><p>Note:Recording is only supported on Seeeduino Mega and Arduino Mega for now.
</p><p><img src="img/Musicshieldnew500.jpg" width="500"/>
</p>
<h2> Features </h2>
<ul><li>Arduino,Seeeduino, Arduino Mega, and Seeeduino Mega compatible
</li><li>2 control-push buttons and 1 knob switch
</li><li>Plays music from micro SD cards Decodes:MP3,WAV,MIDI,Ogg Vorbis
</li><li>I2S interface for external DAC
</li><li>Headphone/Line Out for playback
</li><li>Line In for recording in OGG format
</li><li>Excellent sound quality with ±1dB Frequency Response
</li><li>FCC verification
</li></ul>
<h2> Specification </h2>
<table cellspacing="0" width="85%">
<tr>
<th scope="col"> Item
</th>
<th scope="col"> Min
</th>
<th scope="col"> Typical
</th>
<th scope="col"> Max
</th>
<th scope="col"> Unit
</th></tr>
<tr>
<th scope="row"> Voltage
</th>
<td> 4.5
</td>
<td> 5
</td>
<td> 5.5
</td>
<td> VDC
</td></tr>
<tr>
<th scope="row"> Current
</th>
<td> /
</td>
<td> /
</td>
<td> 70
</td>
<td> mA
</td></tr>
<tr>
<th scope="row"> Output S/N Ratio (With A-Weighting)
</th>
<td> /
</td>
<td> 60
</td>
<td> /
</td>
<td> dB
</td></tr>
<tr>
<th scope="row"> Channel Isolation (With A-Weighting)
</th>
<td> /
</td>
<td> 50
</td>
<td> /
</td>
<td> dB
</td></tr>
<tr>
<th scope="row"> Frequency Response
</th>
<td> -1
</td>
<td> /
</td>
<td> 1
</td>
<td> dB
</td></tr>
<tr>
<th scope="row"> Signal Distortion
</th>
<td> /
</td>
<td> /
</td>
<td> 0.5%
</td>
<td> /
</td></tr>
<tr>
<th scope="row"> Maximum output(each channel with 16 ohm load)
</th>
<td> 500
</td>
<td> /
</td>
<td> /
</td>
<td> mV
</td></tr>
<tr>
<th scope="row"> Audio Interface
</th>
<td colspan="3"> 3.5mm Audio Jack
</td>
<td> /
</td></tr>
<tr>
<th scope="row"> Supporting Format
</th>
<td colspan="3"> MP3, WAV, MIDI, Ogg
</td>
<td> /
</td></tr>
<tr>
<th scope="row"> Supported SD Card
</th>
<td colspan="3"> Micro SD Card
</td>
<td> /
</td></tr>
<tr>
<th scope="row"> ESD contact discharge
</th>
<td colspan="3"> ±4
</td>
<td> KV
</td></tr>
<tr>
<th scope="row"> ESD air discharge
</th>
<td colspan="3"> ±8
</td>
<td> /
</td></tr>
<tr>
<th scope="row"> Dimension
</th>
<td colspan="3"> 80.4x52.5x13.9
</td>
<td> mm
</td></tr>
<tr>
<th scope="row"> Net Weight
</th>
<td colspan="3"> 11±2
</td>
<td> g
</td></tr></table>
<h2> Interface Function </h2>
<p><img src="img/MusicShield-hard.jpg" width="507"/>
</p><p><b>Multifunction button</b>: Turn left to play previous song, and right to next song, while pressing it down to pause and resume.<br/><b>Volume indicator LED (RED)</b>: If volume+, the red LED will be brighter.<br/><b>Play/Pause indicator LED (GREEN)</b>: If playing, the green LED blinks.<br/><b>Line out</b> can drive 16 ohm or 32 ohm earphone.<br/><b>Line in</b> is used to record audio from other resources.<br/><b>Micro SD card</b> can be FAT16 or FAT32, and the size more than 2GB is not supported. (PLEASE NOTE: Example code included with library will only use FAT16 formatted cards)<br/><b>I2S and GPIO</b> are for digital audio output.<br/><b>ISP interface</b> is kept for bringing SPI port when using with Mega.<br/>
</p>
<h3> Pins usage on Arduino </h3>
<p><b>D0</b> - Unused.<br/><b>D1</b> - Unused.<br/><b>D2</b> - Used for receiving signal from iPod dock(could be used for your own application if iPod dock is not used).<br/><b>D3</b> - Used for receiving signal from button for Volume Up(could be used for your own application if the switch is not used).<br/><b>D4</b> - Used for receiving signal from switch for Next Song function(could be used for your own application if the switch is not used).<br/><b>D5</b> - 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).<br/><b>D6</b> - Used for receive signal from switch for Previous Song function(could be used for your own application if the switch is not used).<br/><b>D7</b> - Used for receiving signal from button for Volume Down(could be used for your own application if the switch is not used).<br/><br/>
</p><p><b>D8</b> - Used for Green Led instructions(could be used for your own application if the switch is not used).<br/><b>D9</b> - Used for Red Led instructions(could be used for your own application if the switch is not used).<br/><b>D10</b> - Used for SPI Chip Select.<br/><b>D11</b> - Used for SPI MOSI.<br/><b>D12</b> - Used for SPI MISO.<br/><b>D13</b> - Used for SPI SCK.<br/><br/>
</p><p><b>D14(A0)</b> - Used for Reset of VS1053.<br/><b>D15(A1)</b> - Used for Data Require of VS1053.<br/><b>D16(A2)</b> - Used for Data Select of VS1053.<br/><b>D17(A3)</b> - Used for Chip Select of VS1053.<br/><b>D18(A4)</b> - Unused.<br/><b>D19(A5)</b> - Unused.<br/>
</p>
<h2> Usage </h2>
<h3> Hardware Installation </h3>
<p>Insert the Micro SD card and the earphone; Plug the Music Shield onto the Arduino/Seeeduino; Connect the board to PC using USB cable. <img src="img/MusicInstall.jpg" width="421"/><br/>
</p>
<h3> Software Installation </h3>
<p><b>Play music:</b>
</p>
<ol><li>Make sure there are songs in the micro sd card.
</li><li>Download <a href="res/Music_v1_14.zip" title="File:Music v1 14.zip">File:Music v1 14.zip</a> and <a href="res/NewSoftSerial.zip" title="File:NewSoftSerial.zip">File:NewSoftSerial.zip</a> for music shield.
</li><li>Uncompress these two packages and put them in Arduino-0022 program: ..\arduino-0022\libraries
</li><li><b>[Ignore this if under Linux]</b> Download a new <a href="http://code.google.com/p/musicshield/downloads/detail?name=portpins.h&can=2&q=">portpins.h</a> file and replace the default portpins.h file of Arduino-0022 program: ..\arduino-0022\hardware\tools\avr\avr\include\avr
</li><li>Select the corresponding Arduino board, like Arduino UNO or Duemilanove or others.
</li><li>Run the arduino program compile and upload the sketch into Arduino board.
</li><li>Just enjoy.
</li></ol>
<p><b>Record music:</b>(Only support ATmega1280 and ATmega2560 based board)
</p>
<ol><li>Press play/stop knob before pressing the RESET button of <a href="/w/index.php?title=Arduino&action=edit&redlink=1" title="Arduino (page does not exist)">Arduino</a>.
</li><li>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.
</li><li>Press play/stop knob will stop recording.
</li></ol>
<p><b>For Arduino 1.0:</b> <br/>
<span style="color:red">Attention Please:The library of Fat16 between demo-1 and demo-2 is different,so please confirm that you download a corresponding library when using the two demos.And the two libraries can not existed together,so delete a one before using the other.</span>
</p>
<ul><li><b>Demo 1: Use SD library</b><br/>
</li></ul>
<p>This demo will use the SD library coming with Arduino 1.0.<br/>
</p>
<ol><li>Make sure there are songs in the micro sd card.
</li><li>Download <a href="res/MusicPlayer_v1_7.zip" title="File:MusicPlayer v1 7.zip">File:MusicPlayer v1 7.zip</a> and <a href="res/Demo1_Fat16.zip">Fat16</a>for music shield.
</li><li>Uncompress the package and put it in Arduino-1.0 program: ..\arduino-1.0\libraries
</li><li>Select the corresponding Arduino board, like Arduino UNO or Duemilanove or others.
</li><li><b>[Ignore this if under Linux]</b> Download a new <a href="http://code.google.com/p/musicshield/downloads/detail?name=portpins.h&can=2&q=">portpins.h</a> file and replace the default portpins.h file of Arduino-1.0 program: ..\arduino-1.0\hardware\tools\avr\avr\include\avr
</li><li>Run the arduino program compile and upload the sketch of music_v1_2 -> musicPlayAll into Arduino board.
</li></ol>
<p><br/>
</p>
<ul><li><b>Demo 2: Use Fat16 library</b>
</li></ul>
<p>This demo will use an open source library <a href="res/Music_Shield_Demo_2_Library.zip">Music_Shield_Demo_2_Library</a>. 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.(<b>Note: The demo can't co-exist with demo 1 in the libraries</b>)<br/>
</p>
<ol><li>Make sure there are songs in the micro sd card.
</li><li>Download <a href="res/Music_Shield_Demo_2_Library.zip">Music_Shield_Demo_2_Library</a>for music shield.
</li><li><b>[Under Linux]</b> Copy libraries/Fat16/Fat16util.h to libraries/Fat16/Fat16Util.h (note util vs Util). The includes have the wrong case and this is easiest workaround.
</li><li>Uncompress these two packages and put them in Arduino-1.0 program: ..\arduino-1.0\libraries
</li><li>Select the corresponding Arduino board, like Arduino UNO or Duemilanove or others.
</li><li><b>[Ignore this if under Linux]</b> Download a new <a href="http://code.google.com/p/musicshield/downloads/detail?name=portpins.h&can=2&q=">portpins.h</a> file and replace the default portpins.h file of Arduino-1.0 program: ..\arduino-1.0\hardware\tools\avr\avr\include\avr
</li><li>Run the arduino program compile and upload the sketch of MusicShieldNewSdLib into Arduino board.
</li></ol>
<p><b>Note:</b> About the specific methods of some functions in the library, You can reference <a href="http://seeedstudio.com/wiki/Music_Shield_V2.0#Software_Installation">the sofeware installation</a> of the Music Shield V2.0.
</p>
<h2> Resources </h2>
<ul><li><a href="res/MusicShielEagleFiles.zip">Music Shield Eagle Files</a>
</li><li><a href="res/Music_Shield.pdf">Music Shield Schematic.pdf</a>
</li><li><a href="res/Music_v1_14.zip">Music Shield Source code file for Arduino 0022</a>
</li></ul>
Copyright (c) 2008-2016 Seeed Development Limited (<a href="http://www.seeedstudio.com">www.seeedstudio.com</a> / <a href="http://www.seeed.cc">www.seeed.cc</a>)<h6>This static html page was created from http://www.seeedstudio.com/wiki</h6></div></body></html>