Music Shield not playing

Thanks for the response, Jacket. I did remove Music_v1_7, as well as Music_v1_2. I also grabbed Fat16 directly from google code. Still getting the same error. Where are the variables “listoffset” and “indexlist” defined?

Hi,



I am also having the same troubles, I can’t get any other demo apart from Demo 1 to work, the one that plays all the files. I am trying to find out what libraries actually work for playing and individual file. Seems like many people are having trouble it geeting these shields to work following the wiki instructions. Just to make it more confusing there is this wiki site too?

http://www.seeedstudio.com/wiki/Music_Shield_V2.0 It is rather confusing all this and I don’t normally have any troubles in getting products from SeeedStudio working.

Hi,everyone

I have added a attachment,you would delete your older files about Fat16 and MusicPlayer…first(attention please:delete files but not overlay files), and then,unzip the attachment to your Arduino libraries(Fat16 and MusicShieldNewSDLib).

Open MusicPlayWithName demo,you need be care of the name of your song

Hi,



I followed the post exactly and deleted the libraries required and the unziped the new libraries into the correct location. I started again with a fresh Arduino 1.0.2 install and these are the only two libraries I have added. I now get a compile error like below.



In file included from MusicPlayWithName.ino:39:

C:\Users\jeremy.PSY\Dropbox\arduino-1.0.2\libraries\MusicShieldNewSDLib/newSDLib.h:28: error: ‘SdCard’ does not name a type

C:\Users\jeremy.PSY\Dropbox\arduino-1.0.2\libraries\MusicShieldNewSDLib/newSDLib.h:29: error: ‘Fat16’ does not name a type

To update my previous post, I can now get the example to complie the issue seems to be is that the Fat16 Library zip file has a nested folder inside called FAT16Demo2 which needs to be extracted out properly.

The code now compiles but it still does not play the one song I have on the SD card with the exact same name as in the code. The green LED is on solid.



cheers

Jeremy

Dear jeremy6

I’m Glad that the problem is solving step by step. And the terminal is coming… :slight_smile:

You compile the program without errors but the music still can’t be played,so you should:

  1. format your SD Card



    2)make sure that the type of your music, mp3、wma or wav,and check name of music again. If the name is BigBoom and the type is mp3,the demo will be modified

    /demo change/

    playFile(“BigBoom.mp3”);

    /demo end/



    Hope those can be solved your problem.

    Best Regards

    Jacket

Hi,



I have checked that many times already that the name of the file on the card matches the name in the sketch. I see I am not the only one who can’t get the code to work to play a single file by hame. Not sure what to do now, it’s not much use without being able to play individual track, has limited funtionalilty. Has anyone managed to make the shield work with any of the demo code apart from the Demo 1 which does work?


I’m sorry that i make a big mistake, the libraries i gave you is refer to Demo 2,but you want to play music with name through Demo 1.

Please delete your libraries about Demo 2(Fat16 and MusicShieldNewSDLib)first,because the libraries of Fat16 between Demo 1 and Demo2 is different. and then download the following liraries.



Best Regards

Jacket

My first Seed product and I’m less than impressed with what I’ve seen so far let’s hope this can be changed.



I’ve spent quite a while tonight working with what I’ve seen in this thread with no success. I’m using the following method although I’ve gotten both to compile and load :



Method 2: Use Fat16 library

This method will use an open source library Fat16 library. 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.(Note: The demo can’t co-exist with demo 1 in the libraries)

Make sure there are songs in the micro sd card.

Download File:MusicShieldNewSDLib.zip and Fat16_lib for music shield.

[Under Linux] 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.

Uncompress these two packages and put them in Arduino-1.0 program: …\arduino-1.0\libraries

Select the corresponding Arduino board, like Arduino UNO or Duemilanove or others.

[Ignore this if under Linux] Download a new portpins.h file and replace the default portpins.h file of Arduino-1.0 program: …\arduino-1.0\hardware\tools\avr\avr\include\avr

Run the arduino program compile and upload the sketch of MusicShieldNewSdLib into Arduino board.


  • my sd is formated to FAT32
  • I know the file name I’m using in play by name demo matches my file (2.wav)
  • Arduino Uno
  • IDE 1.0.1

    I see the following in the serial monitor indicating that the program is running but consistently fails when trying to use the provided library to access the card / file:



    err failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed

    SD erroerror: card.init failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed

    SD error: 2error: open file failed





    … SD error: 2error: open file failed continues forever…



    Any lead on what might be the issue here?

Anybody from Seeed going to offer info? I’m just going to return the damn thing to the store and build a wav shield if I don’t get it working in the next day or two and I’ll be sure to tell the sales reps of my experience.

May be a little late to post this, but I had the same problem and so I started working on porting an alternate library. Its working well so far, the code isn’t very good but then again i just wanted to get the thing playing music!



Thread Link:

<LINK_TEXT text=“http://www.seeedstudio.com/forum/viewto … =23&t=4075”>http://www.seeedstudio.com/forum/viewtopic.php?f=23&t=4075</LINK_TEXT>

hey , thanks for your sharing.

we’ll fine down our forum later,hope you would enjoy there!

Sorry for the cross-post, but I am desperate. Anyone else having trouble with WAV playback? Shield specs indicate 44.1 khz 16 bit should be possible, but I get static on playback and jumbled sound. Files are fine otherwise. Only on Seeed do they sound bad. MP3s are OK though. Would really like help on this, otherwise this board is useless.

ACHIEVEMENT GET: Necromancer



Okay, time to get serious. WAVs are HUGE files (i think they aren’t compressed) so your issue is most likely that your microSD card just isn’t fast enough. You can look through the patches for the vs1053b(<LINK_TEXT text=“http://www.vlsi.fi/en/support/software/ … tches.html”>http://www.vlsi.fi/en/support/software/vs10xxpatches.html</LINK_TEXT>) Also make sure that your WAV file is in the PCM format, Audacity is a great tool for conversions (http://www.audacity.sourceforge.net/)



If none of these work, please post as much info as you can on the hardware and problem.

The first time I worked with this board, I was running the Arduino IDE from my MacBook. The original source code from Seeed was very convoluted, and neither of their demos worked. Only after finding corrected code on GitHub did I get the shield working… to some extent. MP3 playback, volume and track forward/backward were fine. WAV playback was not crystal clear, and when playing WAVs, track volume and navigation were also compromised. The selling point of 44.1 Khz, 16-bit WAV playback was the whole reason I purchased this board!



Seeed support was useless and requests for help on Arduino.cc did not result in any groundbreaking tips.



In order to start fresh – and retrace my steps – I came back to the original demos using the Arduino IDE 1.0.3 on my PC. That way I knew I was starting with clean libraries, and could more easily control the testing scenarios without botching other projects.



The first problem I ran into was that the ZIP files for the demos would not download onto a PC running XP with Firefox. So I actually had to download the files onto my MacBook first, then transfer the files to the PC via thumb drive.



The second problem I ran into was that the Seeed sketches were referring to WProgram.h, not Arduino.h. I also had to overcome incompatibilities in the New Serial libraries – help for which is easily found from a number of places by searching on the error codes. I even changed the pins library, even though this was only recommended for Linux users.



Over the course of about 2 hrs, I did some troubleshooting for the 1.4 and 1.7 demo examples. Both tests were performed separately – with only the libraries for the specific test installed at once (because Seeed tells you that the libraries can’t coexist). SD card was freshly formatted, with files in correct format and naming structure.



The first demo (1.4) failed miserably. The sketches compiled, and uploaded, but none of them resulted in playback – MP3 or WAV.



Demo 2 (1.7) eventually worked for MP3s, but WAVs were still played back with extra static and noise, similar to my other experiences with the GitHub code. At times it just sounds like the device is choking on the WAV data, which would make sense since there’s more data to process. No difference running via battery, USB or 9V adapter.



I can only conclude that a) this board is defective, or b) there is a user-definable codec setting somewhere in the Arduino code/library that is simply set incorrectly. Unfortunately, if the problem is a codec setting, I am not experienced enough to track that down. I tried to explore the code/libraries with my basic understanding, hoping there would be some obvious setting, but I didn’t find any. I could be looking for something that doesn’t exist.



For now I have a glorified MP3 player, which I guess is something. Other people have not even gotten this far with this board, but I appear to be the only one who has experienced the WAV issue. I will send a free CD out of my catalog (visit www.shivasongster.com) to anyone who can help me figure this out.



Why do I need WAV playback?

Hi-res MP3 is very good, and in most cases playback from this shield will not happen on a system with suitable 20 Hz-20 Khz speakers for full 44.1 Khz playback. My problem with using MP3 in this case is more about time than it is audio quality. MP3 requires a step for conversion. I’d like to be able to drag/drop WAV content directly from my writing/recording platforms, without the extra step of compressing the files.

Hey all,

now i have a project with arduino mega 2560 + music shield v1.2. i search all demo and didn’t work at all.

any one can help me in this problem?

i wanna play .wav from music shield when it call from that program.

:roll:

Surprise! no one from seedstudio is going to respond.

It’s obvious that they don’t give a shit about answering questions (beyond just saying “look for answers on our wiki and forums” - guess what, there’s mainly just MORE QUESTIONS on the forums) or creating an easy to use, bug free product.



I’m having the same problem(s) and can’t find any answers anywhere - just lot of people complaining.

Why the hell are there 3 different “demo code” versions on the main page?

Why are they “not compatible” with each other (to the point where you have to actually remove the libraries associated with other demos)?

Why do 2 of them not even compile without a shopping list of errors?

Why is there no list of the library functions and how to use them???



I suggest you just go and buy a wave shield from ladyada.

This report would have more information with

“Show verbose output during compilation”

enabled in File > Preferences.

Arduino: 1.0.6 (Windows 7), Board: “Arduino Mega 2560 or Mega ADK”

musicPlayAll.ino:16:21: error: filesys.h: No such file or directory

musicPlayAll.ino:19:20: error: record.h: No such file or directory

musicPlayAll.ino: In function ‘void setup()’:

musicPlayAll:38: error: ‘InitFileSystem’ was not declared in this scope

musicPlayAll.ino: In function ‘void loop()’:

musicPlayAll:56: error: ‘Record’ was not declared in this scope

musicPlayAll:60: error: ‘Play’ was not declared in this scope

This report would have more information with

“Show verbose output during compilation”

enabled in File > Preferences.

Arduino: 1.0.6 (Windows 7), Board: “Arduino Mega 2560 or Mega ADK”

player.cpp: In function ‘int playFile()’:

player.cpp:136: error: ‘listoffset’ was not declared in this scope

player.cpp:137: error: ‘indexlist’ was not declared in this scope

what is wrong?