Show Posts
Pages: [1] 2 3 ... 11
1  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: September 12, 2013, 02:41:09 pm
Good to see that there is interest in this small device after all this time. smiley-razz
2  Using Arduino / Audio / Re: loop single sound on the WTV020-SD-16P on: September 12, 2013, 02:40:03 pm
Sorry for be late, but I recall from the data sheet that there is a setup to loop a sound. Data sheet is not very helpful, but schematic is quite clear. Never tested it
3  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: March 20, 2013, 08:43:44 pm
And again, this module is VERY PESKY about the uSD card that reads. I tried a lot of them until got one that did work.
4  Using Arduino / Audio / Re: WT5001M02-28P another mp3/wav cheap sound module on: March 20, 2013, 08:40:23 pm
Great! I read the manual and was not that clear how to connect it or program it. Do you have a new manual or just were lucky connecting it?
5  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: March 04, 2013, 03:05:15 pm
http://arduino.cc/forum/index.php/topic,110328.msg1113991.html#msg1113991
6  Community / Exhibition / Gallery / Re: V Visitor Laser Gun Replica Prop with Light and Sound on: February 11, 2013, 10:13:44 am
Thanks, you stared all this Arduino fever on me
7  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: February 11, 2013, 10:12:20 am
I had a similar problem with it only playing the first blip of the file.  Here's what worked for me.
First, I had to use asyncPlayVoice, then add a delay equal or longer to the length of the file being played.  This keeps the busy led on while the file is playing.  I don't think I ever got PlayVoice to work, and it wouldn't play a file named 0000, the first one it would play was 0001.

My test program only played one file repeatedly, the delay just kept the loop from repeating and interrupting and restarting playing the file.  I think I'll add a millis reading like the blink without delay example so the delay does not stop the program from running anything else waiting for the file to finish playing.  This might get messy if there are a lot of files with different lengths.  Unfortunately, I just fried my module tonight by absentmindedly hooking it up to 5V!  Time to order a few more.
Syncplay usually works better with long audio files.
8  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: February 11, 2013, 10:11:14 am
My module (v1.5) plays sounds only about 0.25sec from each file.
I have used library from this post (synch and asynch playing). SD card is 64MB FAT16.
I have downloaded ad4 and wav-files from this topic. http://arduino.cc/forum/index.php?topic=110924.0
Help me.
It seems to me that your sd card is not supported
9  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: February 07, 2013, 04:46:28 pm
Module limitation. It is a 20ms delay.
10  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: February 02, 2013, 09:12:32 pm
Shared it on gallery section. Look for v laser gun.
11  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: February 02, 2013, 10:04:25 am
Why not use .stopVoice method?

Thank you for the reply.

I tried that too.

Even tried using pin change interrupts, thought maybe it just the delay in reading the digitalRead status for the pins.

Basically, what I wanted to achieve, is that whenever a button is pressed, it will interrupt the currently playing sound clip and play the sound clip associated with the button that was pressed (Even if it was the same button).

Here's the code I'm using:
I'm using the pinchangeint library.

Code:
/*
 Example: Control a WTV020-SD-16P module to play voices from an Arduino board.
 Created by Diego J. Arevalo, August 6th, 2012.
 Released into the public domain.
 */

#include <Wtv020sd16p.h>
#include <PinChangeInt.h>

int resetPin = 2;  // The pin number of the reset pin.
int clockPin = 3;  // The pin number of the clock pin.
int dataPin = 4;  // The pin number of the data pin.
int busyPin = 5;  // The pin number of the busy pin.

#define BUTTON01  7
#define BUTTON02  8

/*
Create an instance of the Wtv020sd16p class.
 1st parameter: Reset pin number.
 2nd parameter: Clock pin number.
 3rd parameter: Data pin number.
 4th parameter: Busy pin number.
 */

Wtv020sd16p wtv020sd16p(resetPin,clockPin,dataPin,busyPin);

void playSound01(){
  wtv020sd16p.stopVoice();
  wtv020sd16p.playVoice(0);
}

void playSound02(){
  wtv020sd16p.stopVoice();
  wtv020sd16p.playVoice(1);

void setup() {
  //Initializes the module.

  pinMode(BUTTON01, INPUT);
  digitalWrite(BUTTON01, HIGH);
  PCintPort::attachInterrupt(BUTTON01, &playSound01, RISING);
 
  pinMode(BUTTON02, INPUT);
  digitalWrite(BUTTON02, HIGH);
  PCintPort::attachInterrupt(BUTTON02, &playSound02, RISING);
 
  wtv020sd16p.reset();
}

void loop() {
 
}
Weird, cause If you check my previous video, that's what I am doing. Music is playing, I hit the trigger and plays a new sound. Even the fire selector plays it own sound. It should be there something wrong in the source code, not in the module.
12  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: February 02, 2013, 10:02:32 am
no need to change them? and they play same 'rate/speed'?   awesome!..

glad things finally came together..

good luck!.
There is no need cause the Arduino is not managing WTV clock. Only clock provided from Arduino is to control the commands you send to it.
13  Using Arduino / Audio / Re: WTV020-SD-16P - Help & solution tree on: February 02, 2013, 10:00:43 am
Yes you can. Check this video:



Music and FXs sound using this module.
14  Using Arduino / Audio / Re: Arduino library for PAM8803 audio amplifier module on: February 02, 2013, 09:58:58 am
On the 3W PAM8803 module, which PIN is the RST input?

http://www.ebay.com/itm/Mini-2-3W-4-PAM8803-Class-D-Audio-Amplifier-Board-For-PIC-AVR-/170850491058
I'm not seeing a schematic from the board pinout.

There's 3 different GND inputs - I've tried all of them.

thanks!
Yes, I used SND too as reset method.
15  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: February 01, 2013, 06:30:49 pm
As a matter of fact, audio files are the same rate. There's no need in change them.
And yes, if will be a great project for the v community
Pages: [1] 2 3 ... 11