Go Down

Topic: Arduino library for WTV020-SD-16P audio module (Read 219506 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?



Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy