Can't verify sketch or get SD card recognized in wave shield

Ethernet, Motor, Proto, Wave, GPS etc!

Moderators: arduwino, adafruit

Can't verify sketch or get SD card recognized in wave shield

Postby pshore » Tue Sep 15, 2009 2:09 pm

I'll start by saying that this is all new to me. I have downloaded the Arduino environment, installed the drivers and gone through the tutorials, got the LED to blink at different rates. I am now trying to have the wave shield play sound. I have taken the digital audio player sketch from the examples page and attempted to verify. It answered;

21:error code:AF_Wave.h: No such file or directory

I tried to make sure the AF_Wave folder was in the hardware/libraries... can't find that (I'm using an iMac running OSX 10.5.8). I have replaced file names in code to match my SD card and .wav file contained on it with no luck. I have formatted the SD card on both my Mac and on a PC with no change. If anyone can help me out or guide me to more info I would really appreciate it.
Thanks,
Phil
pshore
 
Posts: 13
Joined: Sat Sep 12, 2009 11:37 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby adafruit » Tue Sep 15, 2009 3:52 pm

it seems that the libraries folder has moved, check arduino.cc to see where they put it in v17?
User avatar
adafruit
 
Posts: 3606
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Can't verify sketch or get SD card recognized in wave shield

Postby dy-wen » Wed Sep 16, 2009 10:47 am

Hm I have the same problem with the example sketch for the waveshield.

I'm running
- Linux Ubuntu, Jaunty,
- using Arduino 17
- board = duemilenove atmega 328
- waveshield 1.0

I have followed the excellent ladyada manual step by step..

The errors::
when I compile the code I get this:
21: error: AF_Wave.h: No such file or directory In function ‘void setup()’:
In function ‘void ls()’:
In function ‘void loop()’:
In function ‘void playcomplete(char*)’:
In function ‘void playfile(char*)’:
Bad error line: -6

And when I upload I get this error (basically the same)
21: error: AF_Wave.h: No such file or directory In function ‘void setup()’:
In function ‘void ls()’:
In function ‘void loop()’:
In function ‘void playcomplete(char*)’:
In function ‘void playfile(char*)’:

If you need more info - let me know!



---> also, what is meant by "it seems that the libraries folder has moved, check arduino.cc to see where they put it in v17?"?
If I compare Arduino 17 with Arduino 16 - it does seem to have moved, the libraries folder
It used to be in the Hardware subfolder - and now it is immediately in the main Arduino folder
(hmm this is hard to explain) I hope it is a bit clear!
dy-wen
 
Posts: 17
Joined: Wed Sep 16, 2009 10:31 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby dy-wen » Wed Sep 16, 2009 3:51 pm

Alright! It's always nice to get one step closer to the solution :-)

I will explain my - partial - enthousiasm and a reply on my own problem...

Through your tip, ladyada I realized that I should try another version of Arduino (namely the 16) with the waveshield, because if you compare the folder structure of Arduino 16 and Arduino 17, you do indeed realize that the Libraries folder is somewhere else.
So, by using Arduino 16, putting the library ( http://ladyada.net/media/wavshield/AFWave_18-02-09.zip ) in the library folder - I do not get this error anymore!

Yeay :-)

But, I don't have sound... (yet?)

Up to the next trouble shoot.. - I will continue my walk in the forums...

****** live update with a further step towards a working waveshield *******

In the forums I found that I should check with the serial monitor what's wrong, and guess what, Arduino tells me what's the problem: samplerate too high! (altough I definitely convert something ;-))
Back to the computer!

**************************** 10 minutes later ***************

It Works!!! :-)
long live forums (and a search)
long live serial monitor
long live people who answer on your post in a forum (I would never have figured out that the libraries folder has changed place from version 16 to 17...)
dy-wen
 
Posts: 17
Joined: Wed Sep 16, 2009 10:31 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby pshore » Wed Sep 16, 2009 5:13 pm

Well, I went and got 16 and when I launched I get the java issue. Followed the troubleshooting at arduino.cc but I don't seem to have the option of running 32 rather than 64.

message;
Cannot Launch Java application
Uncaught exception in main method:
Lava.lang.NumberFormatException: null

Oddly I have all the files in 17 just can't locate any folders.

Thanks.
pshore
 
Posts: 13
Joined: Sat Sep 12, 2009 11:37 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby adafruit » Wed Sep 16, 2009 10:39 pm

well what happens if you put it in the /libraries/ folder?
User avatar
adafruit
 
Posts: 3606
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Can't verify sketch or get SD card recognized in wave shield

Postby pshore » Thu Sep 17, 2009 1:46 pm

Nothing but I think it's because I still can't open 16. I went to the Arduino.cc troubleshooting where it states;

To fix this, click on the Arduino application (e.g. Arduino 16.app) in the Finder, and select Get Info from the File menu. In the info panel, click the Open in 32 Bit Mode checkbox. You should then be able to launch Arduino normally.

When I get to the info panel there is no Open in 32 Bit Mode checkbox. Is there another way to do this?

dy-wen wrote:In the forums I found that I should check with the serial monitor what's wrong,
I'd like to try this but cant find how to. Can you help?
pshore
 
Posts: 13
Joined: Sat Sep 12, 2009 11:37 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby adafruit » Thu Sep 17, 2009 2:00 pm

why are you using v16?
use v17, put the library in the libraries/ folder and it should work
go through all the tutorials http://www.ladyada.net/learn/arduino/index.html
User avatar
adafruit
 
Posts: 3606
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Can't verify sketch or get SD card recognized in wave shield

Postby pshore » Thu Sep 17, 2009 3:00 pm

I think that is the problem. When I downloaded 16 there were all the folders;

reference
readme.txt
license.txt
hardware
examples
drivers
Arduino 16

In 17 I just get the Arduino icon. I have look everywhere I can think of and can't find the allusive Libraries folder. I went through all the tutorials and all were successful. Blink, hello world, calculator, etc. But I cant get the wave shield up. This is definitely operator. :lol:
pshore
 
Posts: 13
Joined: Sat Sep 12, 2009 11:37 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby jamesm » Thu Sep 17, 2009 3:26 pm

In v17, they switched the distribution on the mac to use a single app package. They haven't updated any of the documentation that I can see though.

If you right-click (or CTRL-click) on the application one of the options is something like "Show Package Contents". That lets you look inside the application and see the files inside. You can put your libraries in the right folder there, although that's probably not what you should do.

I believe that you can create a Libraries folder in the folder where you keep your sketches and they will be found correctly. That way you don't need to fiddle around inside the package, and you don't need to do it again for v18.
jamesm
 
Posts: 35
Joined: Wed Aug 12, 2009 10:42 pm
Location: Vancouver, British Columbia

Re: Can't verify sketch or get SD card recognized in wave shield

Postby dy-wen » Thu Sep 17, 2009 4:02 pm

Hey -> an update on your question, Ladyada::
On Ubuntu Jaunty (board = duemilenove atmega 328 - waveshield 1.0)
I have just tried Arduino 17 - and Arduino 16 --> and only 16 works with the library in place.
The code doesn't even want to be verified.


For Linux, I can see the whole folder structure in both versions
( -> in Arduino 16, the libraries folder is in: Arduino 016 -> Hardware -> Libraries)
( -> in Arduino 17, the libraries folder is in: Arduino 017 -> Libraries)
dy-wen
 
Posts: 17
Joined: Wed Sep 16, 2009 10:31 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby adafruit » Thu Sep 17, 2009 4:30 pm

yes they just popped the folder up one directory. We'll update the instructions soon!
User avatar
adafruit
 
Posts: 3606
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Can't verify sketch or get SD card recognized in wave shield

Postby pshore » Fri Sep 18, 2009 9:31 am

I put the AF_Wave folder in the libraries
Contents/resources/java/libraries

I then copied and pasted the digital audio player sketch to the arduino and when I tried to verify I still get
Picture 1.png
Picture 1.png (41.05 KiB) Viewed 253 times
.

Another thing, when I try to open the examples in the AF_Wave folder they try to open in 16 which as I have stated won't open.
pshore
 
Posts: 13
Joined: Sat Sep 12, 2009 11:37 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby dy-wen » Fri Sep 18, 2009 1:17 pm

Hey pshore:::

I think it's in the wrong library, the waveshield library!

It should be in:
-> in Arduino 16, the libraries folder is in: Arduino 016 -> Hardware -> Libraries
-> in Arduino 17, the libraries folder is in: Arduino 017 -> Libraries
dy-wen
 
Posts: 17
Joined: Wed Sep 16, 2009 10:31 am

Re: Can't verify sketch or get SD card recognized in wave shield

Postby pshore » Fri Sep 18, 2009 2:20 pm

here's an image of what I have.
Picture 3.png
Picture 3.png (85.86 KiB) Viewed 240 times
pshore
 
Posts: 13
Joined: Sat Sep 12, 2009 11:37 am

Next

Return to Arduino Shields

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!