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
Stubborn wave file
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Stubborn wave file
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?
Does it work if you rename one of the existing files to MYFILE.WAV?
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Stubborn wave file
you're using ANALOG 0 not DIGITAL 0 right?
-
- Posts: 2
- Joined: Wed Feb 16, 2011 8:07 pm
Re: Stubborn wave file
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.
Occasionally the file will play twice. Does that mean I need a pull up resistor on the pin?
Thanks for the help.
Tom
Occasionally the file will play twice. Does that mean I need a pull up resistor on the pin?
Thanks for the help.
Tom
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Stubborn wave file
Greeat that you got it working
I'd recommend both pullups and de-bouncing. See lesson 5 in the Arduino tutorials.Occasionally the file will play twice. Does that mean I need a pull up resistor on the pin?
Please be positive and constructive with your questions and comments.