SeeedStudio Arduino Music Player Shield - datasheet-int109b2p.pdf ...

11 downloads 357 Views 989KB Size Report
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to op
Seeed music shield

Introduction Seeed music shield is an iPod/iPhone dock compatible shield, working on Seeeduino v328, Seeeduino Mega and Arduino (Atmega 328 version). It is based on VS1053b, which can play variety of music format stored on MicroSD card.

Features l

iPod/iPhone dock compatible

l

Standard interface for arduino board

l

5 control-buttons: Play/Stop, Next, Back, Volume up, and Volume down

l

Support MP3,WMA,WAV,MIDI,Ogg Vorbis,FLAC(with software plugin )

l

Headphone / Line Out for playback and line in for recording

l

Support read and write microSD card of FAT16 and FAT32

Specification Working voltage

5V

Weight

18 g

Length

7.5 cm

depth

4.5 cm

NOTE: Atmega 168 cannot drive this music shield. Atmega 328 can play music but cannot record. Only ATmega 1280 has enough Flash for recording. Micro SD card more than 2G is not recommended.

Page 1 of 7

6/18/2010

Hardware and Installation

Figure 1

Volume indicator LED (RED): If volume+ volume+, red LED will be brighter. PALY/Pause indicator LED (GREEN): GREEN): If play, green LED blinks. IPod dock connector can supply 5V power to music shield and arduino board.

Page 2 of 7

6/18/2010

Arduino Pins Usage

Figure 2 a) MCS for micro SD socket b) Indictor LEDs c) Music control button d) RX Dock data exchange (software serial) e) 5V power supply f) GND g) Reset for VS1053b h)DREQ for VS1053b i) XDCS / BSYNC for VS1053b j) XCS for VS1053b MCS

Chip select input (active low)

DREQ

Data Request Pin

XDCS / BSYNC

Data chip select / byte sync

XCS

Chip select input (active low)

Page 3 of 7

6/18/2010

SPI Buses The SPI Bus has been used for both VS1053b’s and Micro SD socket. The SPI bus specifies four logic signals. SCLK — Serial Clock (output from master) MOSI — Master Output, Slave Input (output from master) MISO — Master Input, Slave Output (output from slave) CS— Chip Select, Slave Transmit Enable (active low; output from master) Figure 3 shows that SCLK, MOSI, MISO signals of Micro SD socket and VS1053b are identical and connected with the ISP interface.

Figure 3

Page 4 of 7

6/18/2010

Software Installation The seeed music shield is an open source project, and new features can be added by customer. http://code.google.com/p/musicshield/. To be a committer, contact [email protected] 1) Download music library and NewSoftSerial library for music shield. 2) Uncompress these two files and Put these libraries in Arduino-0018 program Here is the address of libraries: 3) Download the portpins.h file and replace the default portpins.h file of Arduino-0018 program. The default portpins.h file path is:

4) After all these settings we can run the arduino program and upload the music.pde code to arduino board.

5) Choose the right Arduino board you are using, and download the sketch to it. Arduino Duemilanove or Nano w/ATmega328 is ok for playing all music file the shield supported; Arduino Mega is ok for recording as well as playing. ATmega168 is not supported yet.

Page 5 of 7

6/18/2010

6) Plug in the microSD card with music files. Reset the arduino board, when two leds light you can enjoy the music. You can get some playback info by opening a serial terminal running on your PC.

7) After the last music file is played, it will stop and return to the first music file. Repress the paly/stop button will start the music. 8) To enter recording mode, press the play/stop button on power and release it after the green led lights. Repress the play/stop button will end the recording and begin to play music on the Page 6 of 7

6/18/2010

microSD card. Note: Remember to input audio signal through the line in interface when recording. 9) When using the music shield with iPod dock, just plug it with Arduino, and the dock will supply 5v to it. You can remotely control the shield with play/stop, back/next, and volume up/down.

Revision History Rev.

Descriptions

Release date

1.0

Initial public release

18.06.2010

Page 7 of 7

6/18/2010