Pages: [1]   Go Down
Author Topic: Music Shield (http://seeedstudio.com)  (Read 2224 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello:

Can anyone tell me the commands (instructions) to use with music shield to play a file with arduino Uno? I was looking in the page of Music shield and I don't find any sample code to play, stop, etc to control this shield with Arduino.
Can you help me please?

thank you
Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 217
Posts: 13724
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you provide a link to the shield please,
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think it's music shield
Code:
http://www.seeedstudio.com/depot/music-shield-p-642.html?cPath=132_134
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 593
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

did you read the VS1053B datasheet completely (READ IT!!!)? do you understand how it fundamentally works yet?

There are only a few basic things you need to do:

1. initialize the VS1053 properly, I remember it being two register that you have to setup, one of them has all the important settings, the other one sets the oscillator frequency

2. you probably want a volume up/down function, this is just writing to the volume register

3. send music data to the SDI interface in chunks when requested to

first, start off by making sure you can communicate to it via SPI properly over its SCI interface, basically, test that you can successfully write to and read from the VS1053B's internal registers

do a sine test, see datasheet to find out how

then, understand how the SDI interface works, know how much data to send per chunk and know when to stop sending data (learn about the DREQ signal)

figure out where your music data is coming from, this is most likely a SD card, which uses SPI to communicate, and store data in a FAT file system. find a library that handles this.

basically, you read a chunk of data from a file on the card, and pass that chunk to the VS1053's SDI when requested, music will play. if you stop sending data, the music stops. you rewind/fast-forward by sending different parts of your file
Logged

Freelance engineer, consultant, contractor. Graduated from UW in 2013.

Pages: [1]   Go Up
Jump to: