adafruit wave Shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

adafruit wave Shield

Post by tateman »

Hi, I constructed my Wave Shield and formatted the SD card ok but now Im a litlle lost what to do next?
I know theres a library? somewhere to load up onto card? but Im stuck now lol.
Followed the instructions great till now but now need a helping hand please of how to work it??
Many thanks
Andy

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: adafruit wave Shield

Post by adafruit_support_bill »

Install the shield on your Arduino.
Download the WaveHC library and install it in your Arduino sketchbook.
Then try out one of the many example projects on the WaveShield pages: http://www.ladyada.net/make/waveshield/use.html

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

tried to upload it but comes up witht he followin error.
Thanks for the help!!!
daphc.cpp:1:23: error: FatReader.h: No such file or directory
daphc.cpp:2:22: error: SdReader.h: No such file or directory
daphc.cpp:4:22: error: WaveUtil.h: No such file or directory
daphc.cpp:5:20: error: WaveHC.h: No such file or directory
daphc:3: error: variable or field 'printName' declared void
daphc:3: error: 'dir_t' was not declared in this scope
daphc:3: error: 'dir' was not declared in this scope
daphc:4: error: variable or field 'lsR' declared void
daphc:4: error: 'FatReader' was not declared in this scope
daphc:4: error: 'd' was not declared in this scope
daphc:5: error: variable or field 'play' declared void
daphc:5: error: 'FatReader' was not declared in this scope
daphc:5: error: 'dir' was not declared in this scope
daphc:6: error: 'SdReader' does not name a type
daphc:7: error: 'FatVolume' does not name a type
daphc:8: error: 'FatReader' does not name a type
daphc:11: error: 'dir_t' does not name a type
daphc:13: error: 'WaveHC' does not name a type
daphc:16: error: variable or field 'lsR' declared void
daphc:16: error: 'FatReader' was not declared in this scope
daphc:16: error: 'd' was not declared in this scope
daphc:17: error: variable or field 'play' declared void
daphc:17: error: 'FatReader' was not declared in this scope
daphc:17: error: 'dir' was not declared in this scope
daphc.cpp: In function 'void setup()':
daphc:22: error: 'putstring_nl' was not declared in this scope
daphc:24: error: 'putstring' was not declared in this scope
daphc:34: error: 'card' was not declared in this scope
daphc:41: error: 'card' was not declared in this scope
daphc:46: error: 'vol' was not declared in this scope
daphc:59: error: 'vol' was not declared in this scope
daphc:62: error: 'root' was not declared in this scope
daphc:71: error: 'root' was not declared in this scope
daphc:71: error: 'lsR' was not declared in this scope
daphc.cpp: In function 'void loop()':
daphc:76: error: 'root' was not declared in this scope
daphc:77: error: 'play' was not declared in this scope
daphc.cpp: In function 'void sdErrorCheck()':
daphc:102: error: 'card' was not declared in this scope
daphc:103: error: 'putstring' was not declared in this scope
daphc:104: error: 'card' was not declared in this scope
daphc.cpp: At global scope:
daphc:112: error: variable or field 'printName' declared void
daphc:112: error: 'dir_t' was not declared in this scope
daphc:112: error: 'dir' was not declared in this scope

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: adafruit wave Shield

Post by adafruit_support_bill »

Your WaveHC library is not installed in the expected location. Follow the instructions here: http://www.ladyada.net/library/arduino/libraries.html

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

Sorry Im really not getting this!! lol
Ive found the library section in the Arduino folder on my comp. I then put this onto the SD card with a card reader (dont laugh!!) and tried again but still errors.
I know im doin wrong but just not quite understanding it.

Thanks sooo much for bearing with me!!!

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: adafruit wave Shield

Post by adafruit_support_bill »

The library doesn't need to go on the SD card. You put sound files (.wav files) on the SD card.

The errors you posted are compiler errors. It looks like the compiler was not able to find the library.
The library should get installed in the Library folder in your Arduino directory. (Sounds like you have done this)
Sometimes the IDE doesn't see a library that is installed after it starts up.
Close all instances of the Arduino IDE. Then start one up again and compile.

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

Thank you feel im getting somewhere now, but still nothing so this is what I have done so far.

Ive converted the track exactly to instructs, no probs there.

Im in the Arduino folder on my C: drive where the exe. to start the program up is.
I searched in the folder for Libraries. There I dropped the folder with the HC library in it.
Then tried to upload the sketch which is at the bottom of this page: http://www.ladyada.net/make/waveshield/libraryhc.html
I get this error:
sketch_dec29a.cpp:1:23: error: FatReader.h: No such file or directory
sketch_dec29a.cpp:2:22: error: SdReader.h: No such file or directory
sketch_dec29a.cpp:4:22: error: WaveUtil.h: No such file or directory
sketch_dec29a.cpp:5:20: error: WaveHC.h: No such file or directory
sketch_dec29a:3: error: variable or field 'printName' declared void
sketch_dec29a:3: error: 'dir_t' was not declared in this scope
sketch_dec29a:3: error: 'dir' was not declared in this scope
sketch_dec29a:4: error: variable or field 'lsR' declared void
sketch_dec29a:4: error: 'FatReader' was not declared in this scope
sketch_dec29a:4: error: 'd' was not declared in this scope
sketch_dec29a:5: error: variable or field 'play' declared void
sketch_dec29a:5: error: 'FatReader' was not declared in this scope
sketch_dec29a:5: error: 'dir' was not declared in this scope
sketch_dec29a:6: error: 'SdReader' does not name a type
sketch_dec29a:7: error: 'FatVolume' does not name a type
sketch_dec29a:8: error: 'FatReader' does not name a type
sketch_dec29a:11: error: 'dir_t' does not name a type
sketch_dec29a:13: error: 'WaveHC' does not name a type
sketch_dec29a:16: error: variable or field 'lsR' declared void
sketch_dec29a:16: error: 'FatReader' was not declared in this scope
sketch_dec29a:16: error: 'd' was not declared in this scope
sketch_dec29a:17: error: variable or field 'play' declared void
sketch_dec29a:17: error: 'FatReader' was not declared in this scope
sketch_dec29a:17: error: 'dir' was not declared in this scope
sketch_dec29a.cpp: In function 'void setup()':
sketch_dec29a:22: error: 'putstring_nl' was not declared in this scope
sketch_dec29a:24: error: 'putstring' was not declared in this scope
sketch_dec29a:34: error: 'card' was not declared in this scope
sketch_dec29a:41: error: 'card' was not declared in this scope
sketch_dec29a:46: error: 'vol' was not declared in this scope
sketch_dec29a:59: error: 'vol' was not declared in this scope
sketch_dec29a:62: error: 'root' was not declared in this scope
sketch_dec29a:71: error: 'root' was not declared in this scope
sketch_dec29a:71: error: 'lsR' was not declared in this scope
sketch_dec29a.cpp: In function 'void loop()':
sketch_dec29a:76: error: 'root' was not declared in this scope
sketch_dec29a:77: error: 'play' was not declared in this scope
sketch_dec29a.cpp: In function 'void sdErrorCheck()':
sketch_dec29a:102: error: 'card' was not declared in this scope
sketch_dec29a:103: error: 'putstring' was not declared in this scope
sketch_dec29a:104: error: 'card' was not declared in this scope
sketch_dec29a.cpp: At global scope:
sketch_dec29a:112: error: variable or field 'printName' declared void
sketch_dec29a:112: error: 'dir_t' was not declared in this scope
sketch_dec29a:112: error: 'dir' was not declared in this scope

Ive tried closing down the program and starting it up again but still the error messages?
Sorry and thank you!!

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

Do I need to put in the sketch where the folder is???? Or does it know?
Will I be able to play the track free from the computer if it needs this folder on the computer?
Thank you.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: adafruit wave Shield

Post by adafruit_support_bill »

Im in the Arduino folder on my C: drive where the exe. to start the program up is.
That is the install folder for the Arduino IDE. You want the sketchbook folder.
On a Windows machine, that will be a folder named Arduino in your Documents folder.
The sketch should have a folder of its own in the Arduino folder. If you have not installed Libraries before, you may need to create the Libraries folder.

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

When I uploaded the program from Arduino.cc it just cam in as a file, so I can only start it from the exe in that folder. Its not actually in the applications as it didnt install into there??
Dont know whether thats the problem??

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: adafruit wave Shield

Post by adafruit_support_bill »

What operating system are you running? When you install the Arduino IDE, it is installed in a folder named something like Arduino-0022. That is the install folder that contains the .exe.

When you create sketches, it puts them into a sketchbook folder named "Arduino". That is the folder you should be working in.

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

Sorry, yer its XP

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

If I open Arduino and look in File/ Examples/ I have a folder called "wave HC library" in there.
Any good?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: adafruit wave Shield

Post by adafruit_support_bill »

If you create a sketch and do a "Save As", where does it save it?

When you do a "Save As" it should create a folder for your sketch in the sketchbook folder - which is named "Arduino".
In that same sketchbook folder, there should be a folder called "Libraries". Create one if it is not there.
Copy the WaveHC folder in the Libraries folder.

tateman
 
Posts: 34
Joined: Wed Dec 01, 2010 7:18 pm

Re: adafruit wave Shield

Post by tateman »

Thats a good explanation !! Yes done that now getting a different error message so must be getting near!!!!
core.a(main.cpp.o): In function `main':
C:\Documents and Settings\User\My Documents\Arduino\arduino-0022\hardware\arduino\cores\arduino/main.cpp:7: undefined reference to `setup'
C:\Documents and Settings\User\My Documents\Arduino\arduino-0022\hardware\arduino\cores\arduino/main.cpp:10: undefined reference to `loop'

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”