Waveshield Problems

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

Moderators: adafruit_support_bill, adafruit

Re: Waveshield Problems

Postby wwischer » 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

Postby wwischer » 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

Postby wwischer » 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 498 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 498 times
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

Postby adafruit_support_rick » 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: 2892
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Waveshield Problems

Postby wwischer » 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

Postby wwischer » 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 493 times
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

Postby adafruit_support_rick » 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: 2892
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Waveshield Problems

Postby wwischer » 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 491 times
photo[10].JPG
photo[10].JPG (143.98 KiB) Viewed 491 times
photo[7].JPG
photo[7].JPG (161.87 KiB) Viewed 491 times
wwischer
 
Posts: 35
Joined: Wed Jan 04, 2012 7:01 pm

Re: Waveshield Problems

Postby adafruit_support_rick » 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: 2892
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Waveshield Problems

Postby wwischer » 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

Postby wwischer » 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

Postby adafruit_support_rick » 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: 2892
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Previous

Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: No registered users and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]