Pages: [1]   Go Down
Author Topic: information on sample codes using wave shield and two tactile push buttons  (Read 559 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there,
I am rather new to arduino. I have started from scratch beginning with going through the example tutorials given in the learning section of the website. I am using an arduino Uno and I have purchased a wave shield kit. Built and soldered (very impressed with myself). I have installed the WaveHC library and my wave shield is playing the daphc code example perfectly. Now I want to go to the next level where I use a push button to turn on an play a sound file. At this point I don't want to complicate things using my own sound files, but use the same Do Re Mi wav file from ladyada. However, I am not sure how to write the sketch combining the daphc with the button sketch from the examples. I have built a simple push button circuit where one leg of button goes to pin 13 (through a 10K resistor) on wave shield, and then have ground and vin from wave shield going to two other legs of button. All this seems to do, when using daphc sketch, is reset the wave file to the beginning. I have honestly looked online to find other examples, or information. I do know codes are out there, but they seem to be a little too advanced for my level of expertise. If someone could point me in the right direction? I know this is probably a simple question, but I feel as though I am going around in circles and not getting anywhere.
ta!
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24322
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I do know codes are out there
But your code isn't here
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: