Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 12:40 pm

I changed the name of the old arduino file from the documents folder to arduino old and moved it to the desktop. I created a new arduino folder and new library folder that was empty in the user/documents folder. I then zipped the program and bundled library folder from my applications folder and put it on the desktop.
I then uninstalled the arduino application making sure to go under user/libraries/references and remove the arduino preferences from there. I then emptied the trash and restarted the computer.
I then installed the latest arduino application (this time no bundle library folder appeared in the applications folder)
I then downloaded the latest WaveHC library and made sure to put the WaveHC from inside the wavehc20110919 folder into the user/documents/arduino/libraries folder.
Then I opened the arduino program.
The libraries were there upon sketch/import library/
I pasted the digital audio player sketch in a new arduino window and compiled - successful
I then uploaded to the board - successful
but on opening the print monitor I got the same decibel numbers and not reading the wav files.
Am I missing something?
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 12:49 pm

I figured out the error, I believe it was in selecting the sketch and pasting rather than opening the sketch from IDE. When I did that, it showed the names of the files.
Now it is still not playing and saying the files are not valid wav. files but as mentioned previously. I converted them in itunes exactly as stated with them being 22.050kHz 16 bit and mono.
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 12:50 pm

forgot to include the print monitor errors[img]
Screen%20Shot%202012-10-12%20at%2011.45.40%20AM.png
[/img][img]
Screen%20Shot%202012-10-12%20at%2011.44.18%20AM.png
[/img]
Attachments
Screen Shot 2012-10-12 at 11.45.40 AM.png
Screen Shot 2012-10-12 at 11.45.40 AM.png (34.65 KiB) Viewed 578 times
Screen Shot 2012-10-12 at 11.44.18 AM.png
Screen Shot 2012-10-12 at 11.44.18 AM.png (42.57 KiB) Viewed 578 times
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 1:22 pm

Looks like the file names on your wav files are too long. Rename them in 8.3 format (i.e., eight characters for the name, 3 characters for the extension). Also, it looks like the leading underscore is causing problems. Remove that from the file names as well.

Where were you cutting and pasting the sketch from?
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 1:53 pm

I double checked and the names are WOLF1, WOLF2, WOLF3 all caps, 5 characters and no under score. Are the numbers a problem? I will try to remove them and see if that makes a difference.
I had copied the sketch from the Use it example file on the adafruit site.
Thanks as always for your response.
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 2:02 pm

I changed the names, removing the numbers to WO,WOL,WOLF nothing else and re-uploaded the sketch, I don't know why it is asking the numbers and tilde?[img]
Screen%20Shot%202012-10-12%20at%2012.59.30%20PM.png
[/img]
Attachments
Screen Shot 2012-10-12 at 12.59.30 PM.png
Screen Shot 2012-10-12 at 12.59.30 PM.png (41.58 KiB) Viewed 573 times
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 2:09 pm

OK - I see. The ones with the underscore that are not valid wav files are the Mac's hidden resource files. You can ignore that, or put a test in the code that ignores all files with a leading underscore.

If you look at the other wave files, you'll see a bunch of dots, like this:
Code: Select all
Playing WOLF.WAV
. . . . . . . . . . . . . . . . . . .


That means that the file is playing. The periods are printed, um … periodically, while the file is playing. If you're not hearing anything, then you probably have a problem with your hardware.

How do you have the shield set up? Are you using a speaker or headphones? If you post clear, detailed pictures of both sides of the shield, we'll check the assembly.
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 2:33 pm

good to know. I have it hooked up to a speaker via the headphone jack.[img]
photo[3].JPG
[/img][img]
photo[10].JPG
[/img][img]
photo[7].JPG
[/img]
Attachments
photo[3].JPG
photo[3].JPG (131.42 KiB) Viewed 571 times
photo[10].JPG
photo[10].JPG (143.98 KiB) Viewed 571 times
photo[7].JPG
photo[7].JPG (161.87 KiB) Viewed 571 times
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 2:50 pm

That looks pretty good, except I don't see where the headphone jack is soldered to ground.
You can see how it should look in this picture from the tutorial. The ground pin is the largish solder at the bottom edge of the board
Image
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 3:26 pm

Thanks - will try that!
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 3:43 pm

Success! thanks for all the help! Now I'm going to connect it to a high performance ultrasonic range finder.
Many thanks again!
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 5:18 pm

Congrats!
wwischer wrote:Now I'm going to connect it to a high performance ultrasonic range finder.
Don't forget the silver bullets and garlic! :D
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Waveshield Problems

by yogacowgirls on Tue Dec 10, 2013 6:34 am

adafruit_support_rick wrote:Congrats!
wwischer wrote:Now I'm going to connect it to a high performance ultrasonic range finder.
Don't forget the silver bullets and garlic! :D



hello wwischer. i wonder if you have been able to connect the ultrasonic with the waveshield. i am working on a project where i want the waveshield to start to play only when someone is nearby, so any information you have about doing this would be super helpful. thanks!
yogacowgirls
 
Posts: 1
Joined: Mon Dec 09, 2013 8:53 pm

Re: Waveshield Problems

by adafruit_support_bill on Tue Dec 10, 2013 6:53 am

@yogacowgirls - see this tutorial for an example of how to trigger waveshield sounds from an ultrasonic sensor: http://learn.adafruit.com/halloween-pumpkin/overview
User avatar
adafruit_support_bill
 
Posts: 25556
Joined: Sat Feb 07, 2009 9:11 am