Show Posts
Pages: 1 ... 8 9 [10] 11
136  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 13, 2012, 11:46:24 am
Hurray, good for you. I just heard a small noise. What do you mean you turned the pins to Analog? Are you still using A pins as clock, rst, and dta?
You were using Arduino nano right? Ask you this cause since I am using UNO, will have to put some resistors between rst,clock and dta pins. Cause UNO high value is 5v and I think WTV020-SD-16P is 3.3v.
137  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 13, 2012, 10:40:17 am
Def A is pin # 1. That's the way I tried.
138  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 13, 2012, 07:58:52 am
Did all the test using almost every code available and got a few conclusions. A pins are only analog inputs, so you should use any other digital output ( example: 2,3,4 for reset,clock,data). When I turn on the WTV020-SD-mini-16P, the busy light blinks quickly and after a second of so keeps on. I connected the reset, clock and data and reset the board at the setup portion of the code. You should put the rst pin for 5ms down and later wait 300ms before send any command. I noticed that this guy, was able to do something with the  WTV020-SD-20s board:

http://www.vduenasg.blogspot.com.ar/2012/03/wtv020-sd.html

He modified the clock timing, from 200us to 50us to make it work. So, basically I am pretty sure that now is a software problem with the data and clock pins, since I believe the rst function is working. A out the 3.3v problem, the manual states that you can connect two N4007 diodes in serial from a 5v output power. Did not test it yet. Will be playing with this modified code:

Code:
/*
  SOMO-14D Test
  Control a SOMO-14D module to play sounds

  Reference
  http://www.4dsystems.com.au/prod.php?id=73

  Created 20 October 2009
  By Shigeru Kobayashi
 */

const int clockPin = 2;  // the pin number of the clock pin
const int dataPin = 3;  // the pin number of the data pin
const int resetPin = 4;  // the pin number of the reset pin

const unsigned int VOLUME_0 = 0xFFF0;
const unsigned int VOLUME_1 = 0xFFF1;
const unsigned int VOLUME_2 = 0xFFF2;
const unsigned int VOLUME_3 = 0xFFF3;
const unsigned int VOLUME_4 = 0xFFF4;
const unsigned int VOLUME_5 = 0xFFF5;
const unsigned int VOLUME_6 = 0xFFF6;
const unsigned int VOLUME_7 = 0xFFF7;

const unsigned int PLAY_PAUSE = 0xFFFE;
const unsigned int STOP = 0xFFFF;

void setup() {
  pinMode(clockPin, OUTPUT);
  pinMode(dataPin, OUTPUT);
  pinMode(resetPin, OUTPUT);

  digitalWrite(clockPin, HIGH);
  digitalWrite(dataPin, LOW);

  // reset the module
  digitalWrite(resetPin, HIGH);
  delay(100);
  digitalWrite(resetPin, LOW);
  delay(5);
  digitalWrite(resetPin, HIGH);
  delay(300);

  sendCommand(VOLUME_7);
}

void loop() {
  // play "0000.ad4"
  sendCommand(0x0000);
  delay(1000);

  // play "0001.ad4"
  sendCommand(0x0001);
  delay(1000);

  // stop playing
  sendCommand(STOP);
  delay(1000);
}

void sendCommand(unsigned int command) {
  // start bit
  digitalWrite(clockPin, LOW);
  delay(2);

  // bit15, bit14, ... bit0
  for (unsigned int mask = 0x8000; mask > 0; mask >>= 1) {
    if (command & mask) {
      digitalWrite(dataPin, HIGH);
    }
    else {
      digitalWrite(dataPin, LOW);
    }
    // clock low
    digitalWrite(clockPin, LOW);
    delayMicroseconds(50);

    // clock high
    digitalWrite(clockPin, HIGH);
    delayMicroseconds(50);
  }

  // stop bit
  delay(2);
}
139  Using Arduino / Audio / Re: WTV-020-SD-mini sound replay module -- some general info.. on: July 13, 2012, 12:22:25 am
Were you able to make it work with an arduino board? Have been trying for two nights and nothing.
140  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 12, 2012, 06:13:54 pm
Checking the diagram I noticed that A0, AX, etc are only inputs for arduino. How will this woork that way? I do believe that theconnection diagram is wrong and you should use other pins as outputs.
141  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 12, 2012, 01:52:10 pm
Will test all this night, but I am pretty sure this module will only play certain ad4 and Wav files encoded in the right rate. As read in other websites, this one and somo-14d shares the same IC so connection diagram should be fine, even the sketch program should be correct. Your problem was the Vcc and mine the connection. Keep you posted. We are in the same boat. And If anybody have this working, we will really appreciate any help.
142  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 12, 2012, 01:45:42 pm
What about the busy light? What about its behavior?
143  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 12, 2012, 01:38:13 pm
Will try that this night. I am using these audio files already converted to ad4

http://www.4dsystems.com.au/downloads/Audio-Sound-Modules/SOMO-14D/Docs/AD4-sample-files.zip

Tried mp3 control mode, as I told you via pm and did not work cause the module is hardwired to work 2 serial line mode. I am also using "kingstone" micro sd card brand. I am pretty sure they are fake, but vendor told me that any brand will be fine.
144  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 11, 2012, 11:20:10 pm
plugged everything and nothing. Just the led blinking twice and later, just keeps on. I assume that he is not reading the card cause I erased everything from the sd card and still doing the same.
145  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 10, 2012, 01:39:22 pm
I said mini cause eBay listing says mini. In the other hand, we are in the same boat. If I am lucky today, will be able to get a 1gb micro card to test the board tonight. Keep you posted.
146  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 10, 2012, 12:29:19 pm
Mini is just a name, It uses a micro-sd card. Bought the same from that link.
147  Using Arduino / Audio / Re: cheap sound module: what version is this? on: July 09, 2012, 09:47:15 am
Got the same one. Which brand of SD card are you using?
148  Community / Exhibition / Gallery / Re: V Visitor Laser Gun Replica Prop with Light and Sound on: July 09, 2012, 09:45:06 am
Here is It, my first test:

http://youtu.be/GpCo3RbPwJI
149  Community / Exhibition / Gallery / Re: V Visitor Laser Gun Replica Prop with Light and Sound on: July 08, 2012, 08:36:50 pm
Got mine (UNO board) just a hour ago. Testing it.
150  Using Arduino / Audio / Re: cheap sound module: what version is this? on: June 21, 2012, 10:03:40 am
Don't Arduino nano have a 3.3v output?
Pages: 1 ... 8 9 [10] 11