Pages: 1 ... 8 9 [10] 11 12 ... 15   Go Down
Author Topic: Arduino library for WTV020-SD-16P audio module  (Read 93567 times)
0 Members and 2 Guests are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm a bit confused with the busy light. According to the specs, the busy pin goes low when the module is playing a voice.  Since one pin of the busy light is tied to Vcc, the light should turn on when playing a voice. So, how come the library is checking for a HIGH?  Also, it has been posted that the light turns off when playing a voice.  So is the specification document wrong, ie busy pin goes high when playing a voice? I'm still waiting for a Sandisk card coz mine doesn't work.
Logged

New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 517
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The busy pin goes high when sound is playing.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks - whoever wrote that specification document should be shot.  Anyway, I feel stupid because my micro SD card was working all along.  Problem was that I was simply sliding the card into the slot - like what you do with the big SD cards and some micro slots with press-to-eject. Turns out I have to open the latch, put the card in, then close and lock the latch  smiley-red.  So now I have 2 Sandisk cards coming which I don't need.  I might have to buy 2 more modules so I can use them  smiley-mr-green.
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 92
Posts: 4710
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's silly. SD cards are as good as flash drives for storing backup PC files. They take less space and many of the full size ones have a write-protect tab which I have yet to see on a USB flash stick.

They're removable media, the new paper. I have AVI movies on some.

Especially micro-SD, you can get cheap USB adapters for those. Otherwise you need a media reader. They go great in phones to cameras to MP3 players to whatever if you get the right size, I even had a camera and MP3 player that took full size SD cards.

Get the micro-SD's with full-size adapters and you can turn an adapter into an SD reader for Arduino by soldering right to the tabs. Hardest part is the 5V to 3.3V leveling which you can get plenty of help with right here and learn maybe 3 or 4 ways to do that cheap!


Logged

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

New to this - but I seem to be progressing.

1) You need >3.5V for the module from a source that can give 100mA while it talks without dropping out.
2) WAV files play OK. I have a set of numbers that are very clear, others seem distorted. Will work on that.
3) NB! as delivered 2 of the pins were dry solder jointed to the card!!!!! - Scratch off the paint round the pin and resolder.
4) An old Sandisk 2GB worked for a while off the Arduino 3V - today it stopped.
5) New identical Sandisks also failed on the Arduino supply - but all OK now on the beefy supply
6) Kingston 2GB failed on any power supply
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Further to my last post.

I tried to use an emitter follower transistor power supply but it was not steady enough.

I now use an LM350 variable supply with 6.5 volts in and 3.55 volts out.
Google the data sheet - I have 120 ohms across the 1/2 pins and 227 ohms from pin 1 to earth (on a 350 ohm variable potentiometer).
On a 'scope it is rock solid 3.55 volts. At a bit below 3.4 volts it stops talking.

I record WAV files in Audacity on my Mac and the signal is up to 0.7 on the scale.
I need numbers - you can speak several then "record selection as wav" to cut them out one  by one.

Why bother with .ad4 files and the Somo tool?

Many thanks to all who got us this far!

NB! you have to slide back then flip open the lid on the micro SD card holder - you can't just push the card in like on most holders.
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 92
Posts: 4710
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can run 5V through 2 diodes to get 3.6V. If the 5V drops a bit you get less, it's up to the amps the power supply can deliver and how hungry the device is. VS10xx docs I remember (just a DSP example) gave a max draw at 800 mA, Arduino max out is 200 Ma. I'd give it an Amp just for that.
Logged

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried the 2 diode trick but on the 'scope the volts were all over the place between talking and not talking
I have put some notes here -

http://www.sunspot.co.uk/Projects/Arduino/speaking-vario/Arduino-Vario-WTV020.html
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 92
Posts: 4710
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Would a bypass cap on the audio module help?
Logged

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

Can anyone help me!!!
Is it possible to change operating mode of WTV020SD-16p module? I read the datasheet several time but there is nothing mentioned about mode selection. And also i can't get the current mode.
Actually for this module i don't use arduino module so I want to make code for AVR microcontroller  manually (without using Arduino functions).
« Last Edit: September 26, 2013, 04:02:32 pm by mr_haiko » Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 92
Posts: 4710
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

Can anyone help me!!!
Is it possible to change operating mode of WTV020SD-16p module? I read the datasheet several time but there is nothing mentioned about mode selection. And also i can't get the current mode.
Actually for this module i don't use arduino module so I want to make code for AVR microcontroller  manually (without using Arduino functions).

I don't know that module.

But just checking, you do know that Arduino code works on stand-alone AVR chips? The board has the USB interface and some bits but that is all, it is for development even though it often gets used in hobby level end products.

Here are projects that use V-USB to access USB directly from even small AVR's:
http://www.obdev.at/products/vusb/projects.html
Logged

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Queens, New York
Online Online
Faraday Member
**
Karma: 84
Posts: 3400
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

Can anyone help me!!!
Is it possible to change operating mode of WTV020SD-16p module? I read the datasheet several time but there is nothing mentioned about mode selection. And also i can't get the current mode.
Actually for this module i don't use arduino module so I want to make code for AVR microcontroller  manually (without using Arduino functions).

What operating mode? It can be controlled from either the Arduino, or manually from tact buttons.
Look at this page WTV020SD-16P. There is also a downloadable PDF on that page in the top left of the screen.
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Argentina
Offline Offline
Full Member
***
Karma: 5
Posts: 160
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Good to see that there is interest in this small device after all this time. smiley-razz
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How exact serial timing is for this chip ?.
I have ordered these modules from 2 different placies and none is working via serial commands.
AD4 format audio files used in 2GB cards and I/O keys are working.
Controlled serial via LPT port with Windows XP, so timing is what it is, quite slow thoug.
Next connecting to PIC18F252 (not arduido..) so I'm sure that timing is ok.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As far as I can see the reset function is only called at start-up time.

I had not connected the reset wire and all seems fine.
I think the board resets when the power goes on.

So I can save a pin!
And I do not need to monitor the busy line - save another pin!

But how do I modify the .cpp and .h files to free these pins for my main program?

I guess I can just change

WTV20SDBreakout::WTV20SDBreakout(int resetPin,int clockPin,int dataPin,int busyPin)
to
WTV20SDBreakout::WTV20SDBreakout(int clockPin,int dataPin)
and delete all other references to the pins?

Or will something go wrong in the board firmware....
Logged

Pages: 1 ... 8 9 [10] 11 12 ... 15   Go Up
Jump to: