Stubborn wave file

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
TLGriff
 
Posts: 2
Joined: Wed Feb 16, 2011 8:07 pm

Stubborn wave file

Post by TLGriff »

Greetings,

I'm attempting to use the Wave Shield as a digital doorbell but am having trouble getting my wave file to play. I am using the wavehc_play6completeonce.pde example sketch and have replaced the "DO.WAV" file associated with pin 0 with my own wave file (MYFILE.WAV). When I ground pin 0 I get a continuous error message "Couldn't open MYFILE.WAV" as long as I keep the pin grounded. The other files, RE.WAV, ME.WAV, etc. work fine and my file works fine with the daphc sketch. Any suggestions as to why it won't play?

Thanks,

Tom

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

Re: Stubborn wave file

Post by adafruit_support_bill »

Check your spelling. Make sure that the file is copied to the same place as the other files.
Does it work if you rename one of the existing files to MYFILE.WAV?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Stubborn wave file

Post by adafruit »

you're using ANALOG 0 not DIGITAL 0 right?

TLGriff
 
Posts: 2
Joined: Wed Feb 16, 2011 8:07 pm

Re: Stubborn wave file

Post by TLGriff »

I followed your advice and renamed my file, then changed the name in the sketch and it worked fine. Must have been a typo or an extra space. :oops:

Occasionally the file will play twice. Does that mean I need a pull up resistor on the pin?

Thanks for the help.

Tom

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

Re: Stubborn wave file

Post by adafruit_support_bill »

Greeat that you got it working :D
Occasionally the file will play twice. Does that mean I need a pull up resistor on the pin?
I'd recommend both pullups and de-bouncing. See lesson 5 in the Arduino tutorials.

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

Return to “Arduino Shields from Adafruit”