Waveshield Problems
Moderators: adafruit_support_bill, adafruit

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 1: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: 37
Joined: Wed Jan 04, 2012 8:01 pm

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 1: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: 37
Joined: Wed Jan 04, 2012 8:01 pm

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 1: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 609 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 609 times
wwischer
 
Posts: 37
Joined: Wed Jan 04, 2012 8:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 2: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?

adafruit_support_rick
 
Posts: 12878
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 2: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: 37
Joined: Wed Jan 04, 2012 8:01 pm

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 3: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 604 times
wwischer
 
Posts: 37
Joined: Wed Jan 04, 2012 8:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 3: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 | TOGGLE FULL SIZE
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.

adafruit_support_rick
 
Posts: 12878
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 3: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 602 times
photo[10].JPG
photo[10].JPG (143.98 KiB) Viewed 602 times
photo[7].JPG
photo[7].JPG (161.87 KiB) Viewed 602 times
wwischer
 
Posts: 37
Joined: Wed Jan 04, 2012 8:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 3: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

adafruit_support_rick
 
Posts: 12878
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Waveshield Problems

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

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

Re: Waveshield Problems

by wwischer on Fri Oct 12, 2012 4: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: 37
Joined: Wed Jan 04, 2012 8:01 pm

Re: Waveshield Problems

by adafruit_support_rick on Fri Oct 12, 2012 6: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

adafruit_support_rick
 
Posts: 12878
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Waveshield Problems

by yogacowgirls on Tue Dec 10, 2013 7: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 9:53 pm

Re: Waveshield Problems

by adafruit_support_bill on Tue Dec 10, 2013 7: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: 30829
Joined: Sat Feb 07, 2009 10:11 am

Re: Waveshield Problems

by wwischer on Wed Jul 16, 2014 3:27 pm

Hello, I am back at it trying to create the screaming pumpkin project. I am using the same waveshield I did back when I first submitted questions and verified it was soldered correctly.
When I compile the sketch daphc, it is fine and when I upload it, I get:
Binary sketch size: 10,050 bytes (of a 30,720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0xe0

not sure what this means?
I also erased my SD card and reformatted it using the suggested formatter choosing erase and overwrite as the files being read, included some older ones that are not there but in my serial monitor, it finds my 3 current files: WO.wav, WOL.wave and WOLF.wave but I can't hear anything from the speaker. I was first using an MP3 speaker and then changed to a very low .1 watt but nothing. At the same time, it is still seeing the other files and stating that they cannot be opened:
Wave test!
Files found:

Files found:

SD.AVE
~1.TRA
WO.WAV
TRASHE~1
FSEVEN~1
SPOTLI~1
_W~1.WAV
WOL.WAV
_WO~1.WAV
WOLF.WAV
_WOL~1.WAV
Sensor = 445
Sensor = 437
Sensor = 429
Sensor = 421
Sensor = 414
Sensor = 408
Sensor = 403
Sensor = 398
WOLF1.WAV
Couldn't open file

Sensor = 392
Sensor = 388
Sensor = 385
Sensor = 382
Sensor = 379
Sensor = 377
Sensor = 375
Sensor = 374
Sensor = 372
Sensor = 371
WOLF2.WAV
Couldn't open file

Sensor = 369
Sensor = 369
Sensor = 368
Sensor = 368
Sensor = 367
Sensor = 367
Sensor = 366
Sensor = 366
Sensor = 366

Please help - thanks
Last edited by adafruit_support_mike on Wed Jul 16, 2014 4:11 pm, edited 1 time in total.
Reason: moved quote tags
wwischer
 
Posts: 37
Joined: Wed Jan 04, 2012 8:01 pm