Go Down

Topic: Wave Shield Audio Issue (Read 1 time) previous topic - next topic

mattnelson521

So im doing a Christmas Tree Topper Death Star. I was able to get the LEDs to work and the Wave Shield seems to be able to play the Audio files but i am not getting any sound from my speaker. Everything seems to be wired correctly and all the buttons and sensor is working correctly. The LED's light up when they are supposed to. i just don't get any sound. I know this isn't much details to go on but does anyone have any ideas of what could be going on?

Just a side note i did go and change my files to Mono WAV 16bit 20k so i dont think thats the issue but just in case i did attach one of the audio files if that helps anyone.


I attached the Code as well. 

CrossRoads

How about a wiring diagram?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Grumpy_Mike

Just try the AdaFruit sample sound program. Does that work?
If not then you have either a wiring fault.

mattnelson521

Sorry for the delay i just got home from work so attached it the wire diagram and i also made a short video of what's going on. https://youtu.be/RXwG5z3EP0Q

Grump_Mike ill take a look at that. Im not sure what that program is. This is the first time i have used a Wave shield

Just a side note i know i have 2 green LEDS not plugged in or assigned to anything.

Grumpy_Mike


mattnelson521

So i read over the switch tutorial and it should be good now. at least they are working as they should.

AdaFruit sample sound program. Im still not sure what you mean by that. I went to the link and it brings me to the Arduino WaveHC Library. I have the Library and it should be installed correctly but im not sure what you mean by

Just try the AdaFruit sample sound program. Does that work?
If not then you have either a wiring fault.
is there a program im supposed to run or some kind of coding i can run to test it?

mattnelson521


I dont know if it will make a difference but i am getting this on the button after uploading the code

C:\Users\Matthew Nelson\Desktop\DeathStar\DeathStar_ArduinoMN\DeathStar_ArduinoMN.ino:67:65: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

 char *wavFiles[] = {"IMPERIAL.WAV", "FIRING.WAV", "DEATHSTR.WAV"};

                                                                 ^

C:\Users\Matthew Nelson\Desktop\DeathStar\DeathStar_ArduinoMN\DeathStar_ArduinoMN.ino:67:65: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matthew Nelson\Desktop\DeathStar\DeathStar_ArduinoMN\DeathStar_ArduinoMN.ino:67:65: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

Grumpy_Mike

#7
Oct 29, 2016, 02:48 pm Last Edit: Oct 29, 2016, 02:48 pm by Grumpy_Mike
Try the examples in this PDF:-

Audio Examples

mattnelson521

#8
Dec 01, 2016, 04:55 am Last Edit: Dec 01, 2016, 05:05 am by mattnelson521
So i tried looking into this some more and tried some of the examples. I'm not getting any audio still. I am able to get the LEDs to work the way they should be but no sound.

Would someone have a Wave shield board that might be able to help me out and test this for me.

I attached the Code, H files, And the Layout Drawing. Here is a link the the Audio files im using since i wasnt able to upload them here. Everything needed for someone to build this and test it.
https://drive.google.com/open?id=0B8YDo-8oG-oHMzFjX2R6Z1pLQWc

It would be greatly appreciated if someone could help me with this.

Grumpy_Mike

Quote
So i tried looking into this some more and tried some of the examples. I'm not getting any audio still.
Have you tried the very simple example of just playing a file? This will ensure that your hardware is working first.

mattnelson521

yeah i tried that yesterday but i wasn't able to hear anything. I also tried other audio files with it. so its possible its my hardware but i was hoping not to buy anything else until i could get a second opinion on it

Grumpy_Mike

#11
Dec 01, 2016, 04:31 pm Last Edit: Dec 01, 2016, 04:32 pm by Grumpy_Mike
Well unless you can get the wave shield doing a simple file play then it is a waste of time trying anything more complicated. Check the shield pins for shorts, I have come across several people who thought the board was soldered correctly but it wasn't. I was one of them.  :)

mattnelson521

I did look over the board about a month ago but it definitely wouldn't hurt to take another look at it with fresh eyes. maybe ill catch something i missed.

mattnelson521

So after looking it over I did find that i needed to jump Dpins 2-5 onto the Wave Shield Board. This wasn't shown in the original drawing which i think why i overlooked it.

So now i have Audio but for some reason only 2 LEDs are lighting up now. here is a video of whats going on https://youtu.be/mfWUUn1WW64

I am attaching the Code im using currently as well.

Any thoughts on this?

Go Up