Go Down

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

Torzomborz

#300
Oct 16, 2016, 12:08 pm Last Edit: Oct 16, 2016, 03:05 pm by Torzomborz
@himijendrix

I am trying to develop a coffee vending machine for nespresso coffee capsules. Previously I was selling these capsules for colleagues using a honesty box, unfortunately  it did not fulfill its purpose so now I am going to use a light sensor for a box with a lid, a plush figure and a "Cat Steal Money Coin Saving Box" together. The plush figure is going to scream and say some bad sort of things about cheating and stealing if people open the box without paying. Unfortunately the hidden speaker in the plush figure was not loud enough so I decided to use the pin 2 of WTV020-SD-16P module with a LM386 Audio Amplifier.

I had a click sound every time when a sound file was played and stopped but that one is sorted with a coupling capacitor, however I still have some annoying noise when the sound files start to play for a few seconds and a chopper like noise in the background all the time. Both things are bad enough not to accept this setup.

When you talk about the

"- Low Pass Filter (~100nF/~100ohm) and coupling capacitor (~1uF) on the audio output"

do you mean the pin 2?

How are "low pass filter" and the "coupling capacitor" applied exactly? Do you have a schematic? A hand made one would do.

Thank you.

himijendrix

Hi,
I think i know this chopper-sound ;)

Last time I used this converter (scroll down the page) and it worked much better than before.
http://makeithappend.org/de/archives/2247
It applies some normalization and converts it to the best possible format.
There is also has another arduino-sketch for controlling the the wtv020.

At first I also used an pam8403 (small digital amplifier) but it resulted in very loud background noise and this chopper-sound. I tried pin 2 and also the speaker output pin 4/5. I also tried to lower its input impedance by using small resistors in parallel, but it did not help.

In the end I just connected the speaker to the speaker output of the wtv020 and it worked fine, without noise.
You can try a low pass (something like 100nF/220ohm) but I think it won't help.
Maybe it's Nestlés bad Karma that's after you ;)

Actually I would never again use this module. It's cheap but all the wasted time is not worth it.

If you have a really short sound, you could also try an Arduino+PCMaudio.
http://playground.arduino.cc/Code/PCMAudio

Once I used a sound module like this, which worked very well and sounded great:
http://www.elv.de/mp3-sound-modul-msm-2-komplettbausatz.html

For small budged projects you could try one of these (I did not try them yet!):
http://www.ebay.de/itm/291646253469?_trksid=p2060353.m1438.l2649&ssPageName=STRK%3AMEBIDX%3AIT

JQ6500 which has an inbuilt (small) memory accessible by just connecting it to USB.

drosenstein

I finally got this to work with my Arduino and wanted to try to save the rest of the world some trouble:

1. I had no success with anything bigger than a 1GB MicroSD card, which is max size according to the data sheet.
2. Nothing worked until I formatted the SD card with SDFormatter.  No idea why - this blew my mind.
3. I found a way to export directly from Audacity with the following settings:
Mono file
Project Rate 16000 Hz (lower left corner)
File > Export Audio...
File type: Other uncompressed files
Format options
Header: WAV (Microsoft)
Encoding: Unsigned 8-Bit PCM
Save your file as 0###.wav   where ### is 000 to 511

Good luck

Gregor6712

Hello,

I have a Setup with a Leonardo and a 20x4 LCD Screen and some analog and digital Inputs/outputs . This all works fine. Now I want to add the WTV020 - sound module for sound generating.

I have wired everything as described. I have tried to enter the code for the WTV020 into my sketch, but this does not work.

Without changing anything on the hardware I can:

- run my sketch which drives the LCD and everything is fine

OR

- run Your sketch and the WTV020 runs fine

But I can never combine both. As soon as I enter this line:

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

my LCD does not work. I assume this is some Kind of interference in the I2C bus?

Some help would be appreciated.

Gregor6712

I did solved the Problem by replacing the Pins for the Sound module. Now it´s 8-11 and everything works fine.

Torzomborz

#305
Nov 29, 2016, 11:31 am Last Edit: Nov 29, 2016, 12:12 pm by Torzomborz
2. Nothing worked until I formatted the SD card with SDFormatter.  No idea why - this blew my mind.

    See Dr_Ugi's post about it: http://www.instructables.com/id/Handheld-Pong-Invaders-on-the-Cheap-Arduino-Compat/step6/Prep-Set-up-the-Sound-Module-and-SD-Card/

3. I found a way to export directly from Audacity with the following settings:
Mono file
Project Rate 16000 Hz (lower left corner)
File > Export Audio...
File type: Other uncompressed files
Format options
Header: WAV (Microsoft)
Encoding: Unsigned 8-Bit PCM
Save your file as 0###.wav   where ### is 000 to 511

   What do you mean exactly by "I found a way to export directly from Audacity"? What is the background of your finding?



freebird4446

My wtv020 will play .ad4 sample files from online perfectly for the full length of the audio file. When I play converted files, it will only play some of them for 5-6 seconds, and other for ~10 seconds, but not until the end of the clip. Has anyone resolved this?

sha310

hai did anyone have use this type of audio sound breakout (https://www.sparkfun.com/products/11125)?

could you help me on the connection with arduino uno r3
thanks for ur help in advance

stardust

#308
Mar 12, 2017, 02:53 pm Last Edit: Mar 12, 2017, 02:59 pm by stardust
I still have some annoying noise when the sound files start to play for a few seconds and a chopper like noise in the background all the time.
Hi,

has anybody found a good solution for the chopper noise? In my setup I have the same noise, when I try to use an LM386 with the Audio-L connect or or when I try to match the SPK+ pin to the LM386.

But when using a speaker directly connected to SPK+/-, there is no such noise... Seems to be related to the nature of the symmetric output...

My recent (working) solution is: 10 uF from SPK+ to a line transformer, 10 uF from SPK- to the other primary lead of the transformer. A shunt resistor in parallel. The secondary winding leads connected to gnd and a 10k Pot/LM386 respectively.

SPK+ ---||-----S II S---10k POT---LM
                        |    S II S       |
           Shunt []   S II S       |
                        |    S II S       |
SPK- ---||-----S II S ---GND----GND


But I am curious to hear about other solutions...

Greetz
Stardust

nothinghere

Hi,

i got this strange noise with every ad4 file i try to play.
Tried nearly every conversion tool and settings i found.
Even the sample sounds from a few sounds didn't work.

First it plays 2-3 sec. normal and than the noise appears.
At sec. 5 you hear it starts normal and instant changes to the hum noise.

Maybe anyone had the same problem and could help.


WTV Hum Noise - Video


thanks

mick2004

Hello,

I am new in this discussion board.
I have one question :

How to read name audio file by this library ?
This function is possible ?

Best Regards

DorinDXN

Hi all, nice to meet you :)
I just registered to post here after I found this:

---8<--------------------------------

There is also a clone of this (SOMO-4D) called the WTV020-SD-16P. Both of the modules use the same decoder chip. The chip has different "modes" that are programmed one time only, usually when purchased, and it cannot be changed. Most people will want to control the module with a micro-controller. In this case you need one programmed in "serial mode." There is also "MP3 mode," "loop mode," and two "key modes," None will communicate in the two-wire serial protocol. This is important to note upon purchase.

---8<--------------------------------

if is true, that could explain why some modules works only in MP3 mode, mine included :(

cheers,
Dorin


nived123

Hello my self nived ...
I am working on artificial intelligence
I am using wtv020m01 module 1.01 .The problem is I have to reset the module to run code...

colinza

The solution:

The solution is to connect a wire from Pin6 of the SD Card socket to Pin 8 (GND) of the sound module. As I said I cannot take credit for discovering this. See this post showing the wire that was added.

Ha! This totally worked! So happy I finally have this module working

Go Up