I spent the day before break in the lab for 3 hours working on this project. I have found some bugs and fixed some dredded errors!
The error that my Arduino was returning complaining that it can't open the WAV file has been solved! It turns out that inside my program when we were trying to get the analog pins to work extra code was copied in that wasn't supposed to be there.
You see, the SD card uses digital pins 11,12 and 13. In my code I had declared pin 11 and 12 to be of input type when I was just testing on the Arduino - not using the sound shield. I forgot to delete the code when I went back to using the sound shield and because those pins were set to be input type - the SD card couldn't function properly.
The sound is now working correctly! Hooray!
The error that my Arduino was returning complaining that it can't open the WAV file has been solved! It turns out that inside my program when we were trying to get the analog pins to work extra code was copied in that wasn't supposed to be there.
You see, the SD card uses digital pins 11,12 and 13. In my code I had declared pin 11 and 12 to be of input type when I was just testing on the Arduino - not using the sound shield. I forgot to delete the code when I went back to using the sound shield and because those pins were set to be input type - the SD card couldn't function properly.
The sound is now working correctly! Hooray!
Here are some pictures of the set up I used to do some final testing.
These are the hook ups to the breadboard coming from the Arduino and leaving to the piece of paper.
These are the hook ups to the breadboard coming from the Arduino and leaving to the piece of paper.
This is a shot of the Arduino with the WAV sound shield attached connected to the breadboard with wires that I've soldered.
This is an up-close shot of the piece of paper I have set up. As you can see - there are two different touch sensors and depending on which one is touched a different sound responds.