I have the exact same problem- I tried the interrupt code exactly as it is originally posted and I'm currently using version 10. All other sketches play just fine. I haven't yet had a chance to mess around with it. Strange.....
I actually got it working (I think it was a loose connection that I resoldered).
Now I have a bigger problem that some of the digital i/o pins are not working properly. When I use them as outputs I can't seem to set there voltage (e.g. some are stuck high or low permanently like pins 13,12,11...)
rasterblaster wrote:Just thinking of buying one of these to do sound effects for a sculpture, and I was wondering what delay is there when switching between soundeffects..
i think its quite fast to start not 'instantaneous' tho. i havent measured it...i would guess about 200 millisec
Hi ladyada.
I've just buy a nice Audio Wave Shield and I'm too happy using it.
Yes, the delay could be about 200ms ... but when you have a lot of wave files in the SD (150) the system take different delay to play each one (depending on the position in the directory).
Is there any way to index the files for a quick response?
I'm trying to develop an Arduino project to say numbers (for example 12.543 linking three wave files, in this case twelve.wav + fivehundred.wav + fortythree.wav) and I have to include aprox. 125 wave files.
1)
I'm able to run the code initially posted to this thread by ebs (thank you!) - albeit I have to comment out case:1 because it constantly thinks that button 1 has been pressed. That's a great start.
2)
Trying ebs' second posting (that allows you to change file whilst there is already one playing) just doesn't play. a) I have to comment out button 1 again, but more importantly b) it never plays a whole sound and keeps scanning through all 6 sounds playing a bare snippet of each. Serial Monitor likes to report "All done, no errors" repeatedly.
I'm using IDEv12 (Mac 10.4.11)
I've tried a Diecimila and a Seeeduino board.
I'm using a Duemilanove and a WAV Shield that I picked up at the Maker Faire, on IDE 0015 on Windows XP. The sample sketches run fine...playing everything in a loop, PI party, etc. I have added the buffer edit to free up some RAM.
Running the first sketch in this thread will repeat the first wav file over and over. It requires that case 1 is commented out. Then it works, but of course the first pin doesn't respond.
Running the second sketch gives me the same result, you can hear that files are being played continuously. If I comment out case 1, the sketch works and I can trigger each of the wavs for the pins other than pin 1. Also, with the second sketch, I do notice a bit of a "pop" in the ear bud when a sound is interrupted in order to play another one.
the pop is due to the fact that you're switching waveforms very quickly. putting a slight "delaymicroseconds" in between may help this. experiment with different delays
I tested this with both sketches earlier in this thread (the one that plays one file at a time, and the one that interrupts a playing file) and it works.
I'm in the same boat as Danjel using a freshly built Waveshield 1.0. Other sketches play SOUND1.WAV through SOUND6.WAV but the triggers don't work when connecting the analog pins 0-5 to the ground pin. All of the analog pins read 5V when connected to the ground pin.
Any ideas? I've tried both sets of code from Eric.
To be clear, I'm not getting the 1st file looping problem: no triggers on pins 0-5 are working (unless I'm missing something obvious about how to ground the pins). I've inspected all of the solder joints. Any troubleshooting suggestions would be most appreciated.