need a correct sketch to run wave-shield

Our weekly LIVE video chat. Every Wednesday at 8pm ET!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
wheel
 
Posts: 3
Joined: Thu Oct 03, 2013 12:50 pm

need a correct sketch to run wave-shield

Post by wheel »

Hi Adafruit support team,

I soldered all parts to make a wave-shield. I went through "Use it" section and did everything. But the sketch you asked the clients to download and put into the library folder doesn't work.
So after hours of assembling a wave-shield, I stared at its silence last night. Till this morning, I realize that I need a working sketch from you in order to make it run.

Looking forward to hearing from you.


Your enthusiastic Fan

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

Re: need a correct sketch to run wave-shield

Post by adafruit_support_rick »

What do you mean, it doesn't work? Are you getting compilation errors? Or are you simply getting no sound out of your wave shield?

If it's the latter, please post clear, detailed pictures of both sides of the shield, showing your soldering

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: need a correct sketch to run wave-shield

Post by Franklin97355 »

Have you tried the example files that came with the library? Which library did you install?

wheel
 
Posts: 3
Joined: Thu Oct 03, 2013 12:50 pm

Re: need a correct sketch to run wave-shield

Post by wheel »

Hi the Adafruit Support Team,

Thanks for the reply. I attached three photos. It's my first solder job. One of the photos shows the wave shield on top of the Arduino Uno.
I ran Arduino>File>Example>wavehr20110919>waveHC>daphc, it can't be downloaded to the Arduino Uno. Because

daphc:7: error: 'SdReader' does not name a type
daphc:8: error: 'FatVolume' does not name a type
daphc:9: error: 'FatReader' does not name a type
daphc:10: error: 'WaveHC' does not name a type
daphc:13: error: 'dir_t' does not name a type
daphc:22: error: variable or field 'play' declared void
daphc:22: error: 'FatReader' was not declared in this scope
daphc:22: error: 'dir' was not declared in this scope
daphc.pde: In function 'void setup()':
daphc:28: error: 'putstring_nl' was not declared in this scope
daphc:30: error: 'putstring' was not declared in this scope
daphc:31: error: 'FreeRam' was not declared in this scope
daphc:34: error: 'card' was not declared in this scope
daphc:39: error: 'card' was not declared in this scope
daphc:44: error: 'vol' was not declared in this scope
daphc:55: error: 'vol' was not declared in this scope
daphc:58: error: 'root' was not declared in this scope
daphc:66: error: 'root' was not declared in this scope
daphc:66: error: 'LS_R' was not declared in this scope
daphc:66: error: 'LS_FLAG_FRAGMENTED' was not declared in this scope
daphc.pde: In function 'void loop()':
daphc:71: error: 'root' was not declared in this scope
daphc:72: error: 'play' was not declared in this scope
daphc.pde: In function 'void error_P(const char*)':
daphc:80: error: 'PgmPrint' was not declared in this scope
daphc:81: error: 'SerialPrint_P' was not declared in this scope
daphc.pde: In function 'void sdErrorCheck()':
daphc:89: error: 'card' was not declared in this scope
daphc:90: error: 'PgmPrint' was not declared in this scope
daphc:91: error: 'card' was not declared in this scope
daphc.pde: At global scope:
daphc:99: error: variable or field 'play' declared void
daphc:99: error: 'FatReader' was not declared in this scope
daphc:99: error: 'dir' was not declared in this scope

Also when I put wavehc20090127
wavehc20090418
wavehc20090420
wavehc20090506
wavehc20090519
wavehc20091219
wavehc20100314
wavehc20101009
wavehc20110508
wavehc20110919
folders into Arduino>Libraries folder, only one of them shows in Arduino>File>Example. Anyway I don't know which sketch is supposed to run on Arduino Uno so that my wave shield baby can play wave files on my formatted San Disk.
Hope you can help me make it play music.

your Fan
Attachments
photo 3.JPG
photo 3.JPG (29.4 KiB) Viewed 541 times
photo 1.JPG
photo 1.JPG (28.61 KiB) Viewed 541 times
photo 2.JPG
photo 2.JPG (28.85 KiB) Viewed 541 times

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: need a correct sketch to run wave-shield

Post by Franklin97355 »

Your libraries do not seem to be installed where the Arduino IDE can find them Look at this library install tutorial.

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

Re: need a correct sketch to run wave-shield

Post by adafruit_support_rick »

wheel wrote:Also when I put wavehc20090127
You only need the most recent folder. And you must rename it to "wavehc" in your libraries folder.

wheel
 
Posts: 3
Joined: Thu Oct 03, 2013 12:50 pm

Re: need a correct sketch to run wave-shield

Post by wheel »

Thank you. This time it worked!

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

Re: need a correct sketch to run wave-shield

Post by adafruit_support_rick »

Glad to hear it!

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

Return to “Ask an Engineer! VIDEO CHAT (closed)”