Go Down

Topic: FEZ Music Shield (Read 4 times) previous topic - next topic

robtillaart


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.
Rob Tillaart

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

karstenA

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.

robtillaart

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.
Rob Tillaart

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

karstenA

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

bob1973

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: [Select]
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!

Go Up