Wave shield for Arduino Mega

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
gcharlow
 
Posts: 5
Joined: Fri Mar 21, 2014 12:42 pm

Re: Wave shield for Arduino Mega

Post by gcharlow »

So i installed the waveHC library and stuck it into the libraries folder under Arduino, but it did not work. I am also not sure what file to use, I've tried most of them, and I'm not sure if it is a certain combination of them. Also the link below leads to another link which on the sides you can find the list of downloads. Also there are many other things it lists as problems, I've listed them above for you. Can you PLEASE help me, as soon as possible. Thanks so much.
SdReader' does not name a type.
Then under that i got
IronManRepulsor.ino:22:22: error: WaveUtil.h: No such file or directory
IronManRepulsor.ino:23:20: error: WaveHC.h: No such file or directory
IronManRepulsor:25: error: 'SdReader' does not name a type
IronManRepulsor:26: error: 'FatVolume' does not name a type
IronManRepulsor:27: error: 'FatReader' does not name a type
IronManRepulsor:28: error: 'FatReader' does not name a type
IronManRepulsor:30: error: 'WaveHC' does not name a type
IronManRepulsor.ino: In function 'void setup()':
IronManRepulsor:63: error: 'putstring_nl' was not declared in this scope
IronManRepulsor:65: error: 'putstring' was not declared in this scope
IronManRepulsor:83: error: 'card' was not declared in this scope
IronManRepulsor:90: error: 'card' was not declared in this scope
IronManRepulsor:95: error: 'vol' was not declared in this scope
IronManRepulsor:108: error: 'vol' was not declared in this scope
IronManRepulsor:111: error: 'root' was not declared in this scope
IronManRepulsor.ino: In function 'void powerUp()':
IronManRepulsor:179: error: 'wave' was not declared in this scope
IronManRepulsor.ino: In function 'void fire()':
IronManRepulsor:223: error: 'wave' was not declared in this scope
IronManRepulsor:247: error: 'wave' was not declared in this scope
IronManRepulsor.ino: In function 'void sdErrorCheck()':
IronManRepulsor:326: error: 'card' was not declared in this scope
IronManRepulsor:327: error: 'putstring' was not declared in this scope
IronManRepulsor:328: error: 'card' was not declared in this scope
IronManRepulsor.ino: In function 'void playcomplete(char*)':
IronManRepulsor:346: error: 'wave' was not declared in this scope
IronManRepulsor.ino: In function 'void playfile(char*)':
IronManRepulsor:363: error: 'wave' was not declared in this scope
IronManRepulsor:367: error: 'f' was not declared in this scope
IronManRepulsor:367: error: 'root' was not declared in this scope
IronManRepulsor:368: error: 'putstring' was not declared in this scope
IronManRepulsor:373: error: 'wave' was not declared in this scope
IronManRepulsor:373: error: 'f' was not declared in this scope
IronManRepulsor:374: error: 'putstring_nl' was not declared in this scope
IronManRepulsor:379: error: 'wave' was not declared in this scope
Please help me solve these problems that arduino tells me I am having.
How can i fix these problems. Please, Please help. or can you please tell me which folder in specific i need to use(details) then i will get back to you with wether it worked or not. Please get back to me as soon as possible. Please help.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Wave shield for Arduino Mega

Post by adafruit_support_rick »

You have not installed WaveHC correctly. First of all, it does NOT go in the Arduino libraries file. It goes into your sketchbook file in a folder called "libraries". You can see which folder is you sketchbook folder by opening the Arduino IDE Preferences panel.

Please see our tutorial on installing Arduino libraries, here:
http://learn.adafruit.com/adafruit-all- ... nstall-use

gcharlow
 
Posts: 5
Joined: Fri Mar 21, 2014 12:42 pm

Re: Wave shield for Arduino Mega

Post by gcharlow »

FYI my last post was for "Arduino Uno" not "Mega". I'm sorry for the confusion.

gcharlow
 
Posts: 5
Joined: Fri Mar 21, 2014 12:42 pm

Re: Wave shield for Arduino Mega

Post by gcharlow »

Which WaveHC should I download/use, I've downloaded all of them but which one should I use and Ive followed that tutorial link and it isn't very helpful, can you please give me some more details. Thank you.

gcharlow
 
Posts: 5
Joined: Fri Mar 21, 2014 12:42 pm

Re: Wave shield for Arduino Mega

Post by gcharlow »

I am really lost, you said this "it does NOT go in the Arduino libraries file. It goes into your sketchbook file in a folder called "libraries"." but when i go to the link you told me it said that for macs the sketchbook file is "arduino" and it had a diagram which i followed. I am really lost here, can you please help me.

gcharlow
 
Posts: 5
Joined: Fri Mar 21, 2014 12:42 pm

Re: Wave shield for Arduino Mega

Post by gcharlow »

Can you please help me as soon as possible I've tried everything. Please help.

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_bill »

The WaveHC zip folder has one extra level compared to most libraries. You need to take the WaveHC folder that is inside the zip file and install that according to the guide link posted above.

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

OK, so I have bought a second wave shield directly from Adafruit in case I assembled the first one incorrectly. When I run the PlayAllLoop example now, there are numbers/letters scrolling on the serial port, but I get a compiling error:

Users/tonyleske/Documents/Arduino/libraries/AF_Wave/AF_Wave.cpp:2:22: error: WProgram.h: No such file or directory

Can you please help?

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_bill »

AF_Wave is a very old library. It doesn't work in current releases of the Arduino IDE. It also doesn't work with current generation SD HC cards. http://learn.adafruit.com/adafruit-wave ... afwave-lib

You should be using the WaveHC library: http://learn.adafruit.com/adafruit-wave ... hc-library

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

Great, thanks. It is now working (playing a .wav file off the SD), but the sound sounds like it is in slow motion. Any ideas

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Wave shield for Arduino Mega

Post by adafruit_support_rick »

I believe that would be the wav file itself. The sample rate is too high.

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

Thanks. I saved several different .wav files at different rates and tried them. For some reason, it keeps playing the original wav file even if I reset the shield. Any ideas?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Wave shield for Arduino Mega

Post by adafruit_support_rick »

Please post your code.

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

Return to “Other Arduino products from Adafruit”