Go Down

Topic: Arduino library for WTV020-SD-16P audio module (Read 114 times) previous topic - next topic

ovaltineo

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.

ScottG

The busy pin goes high when sound is playing.

ovaltineo

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:.

GoForSmoke

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!


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

fgmarshall

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

fgmarshall

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.

GoForSmoke

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.
I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

fgmarshall

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

GoForSmoke

Would a bypass cap on the audio module help?
I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

mr_haiko

#144
Sep 12, 2013, 11:55 am Last Edit: Sep 26, 2013, 11:02 pm by mr_haiko Reason: 1
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).

GoForSmoke


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
I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

HazardsMind


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.
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

the-rebel-agent

Good to see that there is interest in this small device after all this time. :P

ohc200

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.

fgmarshall

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....

Go Up