Pages: [1] 2   Go Down
Author Topic: FEZ Music Shield  (Read 3709 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The "FEZ Music Shield" shoud be Arduino compatible, but i can't find any example code for this.  Do anyone know something about this shield?.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48556
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do anyone know something about this shield?.
Well, now we know that something might exist. A link would let us review the material and, maybe, answer your question.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The product is this:
http://www.ghielectronics.com/catalog/product/289

They state: Works Perfectly whit FEZ Panda II, FEZ Domino, original FEZ Panda and even works with Arduino and its derivatives.

So I bought it, and now I'm trying to get it to work on my Arduino Duemilanove

Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks / OpenLCB rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are Downloads and Support tabs on that very page that lead to code/libraries - does that not help? 

See: http://code.tinyclr.com/project/330/fez-music-shield/

Also a simple Google search for "VS1053 Arduino" leads to code, see Sparkfun for example http://www.sparkfun.com/products/10628,

and a discussion on this forum at http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1247665182/10

But it seems lazy for you to ask us to help you when it would appear you have done none of the above, even though I have done it in 1 minute.  Some show of effort makes people want to help. 

Sorry, I am feeling abused.   Better I should have blown you off!?   
Logged

Dr. David Harris
OpenLCB Dev Team

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48556
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
There are Downloads and Support tabs on that very page that lead to code/libraries - does that not help? 
To be fair, the code on OPs link is for a Netduino/FEZ, not for the Arduino.

The sparkfun MP3 shield and the FEZ Music shield are two different devices. There may be some similarities, and the code might, or might not, work with both.

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did look at the code from http://code.tinyclr.com/project/330/fez-music-shield/, but this code depends of some FEZ library, and FEZ is multithreaded and arduino is
not.

At the moment I am looking at the codeexample from http://www.sparkfun.com/products/10628. It is not the same device, but it is also based on VS1053.
I think I can use some of this code.

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now I got the example to work. It was only a few changes in the code , and 2 extra wires
My project is to make a mp3 player by 2 shields: "FEZ Music Shield", and "SD card shield for Arduino V2.1".
If anyone is interested, I can post the code here on the page, when it is ready.
Logged

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

Of course we are interested, anything new connected to an Arduino increases its potential!

And I would recommend that you post it also (or a reference) on the FEZ forum as showing that shields are indeed really compatible is a good goal imho.
Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is a simple HALLO WORLD example to get started with:

http://www.karstenalbrektsen.dk/privat/projecter/fez_music_shield/MP3_Shield_2_Example.ino
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The first version of my mp3 player is now ready. You can find the description on:
http://karstenalbrektsen.dk/privat/projecter/fez_music_shield/index.html

Logged

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


Looks like progress, whatis the sound quality?

Think you might need to encapsulate the code for the shield in some "easier" functions like

void Mp3SetVolume(unsigned char leftchannel, unsigned char rightchannel)
{
  Mp3WriteRegister(SCI_VOL, leftchannel, rightchannel);
}

That makes the code more readable for anyone.
Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can se the data sheet here: http://karstenalbrektsen.dk/privat/projecter/fez_music_shield/vs1053.pdf
You're right about encapsulation. Maybe I should put it in a library.
Logged

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

Quote
Maybe I should put it in a library.
Definitely!! And a 0.1 version of a lib does not be 100% complete only "usefull complete" , small incremental steps.
Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My VS1053 library version 0.1 is now ready, along with a example code for using it.
Follow the project progress on: http://karstenalbrektsen.dk/privat/projecter/fez_music_shield/index.html
Logged

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

Hello,

I'm very interrested in your project here:
http://karstenalbrektsen.dk/privat/projecter/fez_music_shield/index.html

I tried to program my arduino mega with your code, but unfortunately it doesn't work with me!
The compilation is good and also the transfert into the cible.

I've got all the messages, but no sound on the hearphones...

On your site, I see you are using an arduino uno board. Do you think there is a conflic if using an arduino mega 2560 ?

On the serial monitor, here are the informations displayed:
Code:
MP3 Shield Example
SCI_Mode (0x4800) = 0x0
SCI_Status (0x48) = 0x0
VS Version (VS1053 is 4) = 0
SCI_ClockF = 0x0
SCI_ClockF = 0x0
loop step4
loop step4
loop step4
loop step4
Done!

Before, i was using my arduino mega associated with an ethernet shield. All the values were to 0xFFFFFF, except the VS version which was on 15.

Last question, i saw on your code on that line:
 //Setup SPI for VS1053
  pinMode(11, OUTPUT); //Pin 10 must be set as an output for the SPI communication to work

is it true? would you like to say :
pinMode(10,OUTPUT) //Pin 10 must be set as an output for the SPI communication to work
or
pinMode(11, OUTPUT); //Pin 11 must be set set as an output for the SPI communication to work
?

Thank you for your attention, and excuse my bad english.

PS: Your project seems to be very nice!
Logged

Pages: [1] 2   Go Up
Jump to: