Pages: 1 ... 12 13 [14] 15 16 17   Go Down
Author Topic: Arduino library for WTV020-SD-16P audio module  (Read 103715 times)
0 Members and 1 Guest are viewing this topic.
Narvik, Norway
Offline Offline
Edison Member
*
Karma: 23
Posts: 1020
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've go two of theese 'nonworking' modules. (crap)
Found one answer that made a difference. He increased voltage to 3.4..3.5V
That can be done feeding 5V through a copule of diodes (or a red LED ? )
Logged

Ny

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

I've go two of theese 'nonworking' modules. (crap)
Found one answer that made a difference. He increased voltage to 3.4..3.5V
That can be done feeding 5V through a copule of diodes (or a red LED ? )

You can make a voltage divider and fine-tune the output voltage very close to what you want.
Logged

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

Narvik, Norway
Offline Offline
Edison Member
*
Karma: 23
Posts: 1020
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

..I guess the sound module needs changing differents .. which means a resistive voltage divider is out of Q.
Better with seriel diodes.. Or a near empty cellphone battery
Logged

Ny

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

today i'll try with a 3,6v cellphone battery...

but i read many tutorial where 3,3v is good to make it work....i don't know why...
Logged

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

If the circuit pulls more current than the source wants to give, you will get a voltage drop.
Even too many leds can take Arduino 5V down to 4.5V. At 16 MHz, any lower and it may get unstable.
So what happens when the sound chip and SD are both at full pull? A few 10th's of a volt may help.

I'm pretty sure that I can feed SD 3.7V and likely most other 3.3V devices as well.
FWIW, Arduino can take 5.5V too, but you probably shouldn't put 6V on VIN.
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

thanks for your help!

it's possible to make a voltage divider with 2 resistors and take ouput 5v of arduino?

i need 3,6v or 3,5v?

thanks
Logged

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

Resistors usually come in standard values, and I for one don't have all of those.
But they can be put together in serial and/or parallel to make almost any value.

Here is a link showing voltage divider and formula. That's a really good site, you might bookmark it.
http://electronicsclub.info/vdivider.htm

If R1 is 2000 ohms (2 1K's in series for me) and R2 is 4700 ohms the Vo would be 3.5V.

Notice that Voutput = Vsource x ( R2 / ( R1 + R2 ))
( R2 / ( R1 + R2 )) gives the fraction of source voltage that output voltage will be independent of source.

I used 3 x 4.7K resistors to make a 1/3 drop by putting 2 in series to make R2 and the other to be R1.
My output voltage is 2/3 which for 5V is 3.3V. To get 3.5 I varied the ratio so that less goes straight to ground.

My output current runs through the 4.7K resistor so it will be less than if no divider is present but I don't need much current, it is for voltage-leveling a serial pin on a 3.3V chip to a 5V Arduino. I used 4.7K's so that less current would flow to ground than with lesser ohms.
That may be more resistance than you want, the 2K-4.7K example above is half as much. Still, you may need to play around to get just what you want/need.
Logged

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

Narvik, Norway
Offline Offline
Edison Member
*
Karma: 23
Posts: 1020
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

resistor voltage devider wont do.  this circuit is not "constant current"
Logged

Ny

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

Is there a maximum current specified for the WTV020-SD-16P?
If not then pick resistors that let at least the most current *required* by the module.

My UNO is supplied 500 mA at 5V by USB but it doesn't use 500 mA.
It is recommended to not draw more than 200 mA through the board and the UNO itself uses little more.

So is constant current required for this module? The Elec doc says 3.3V and nothing about limiting current.

Voltage divider does impede current because output current goes through a resistor. That is why you have to pick the resistors to allow enough current through to run your app.
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

hi and thanks for your help

today i test with 5v arduino and 2 diodes 1n4001  in series but the led don't blink...
i don't use a speaker but a pair of earphone, i test it with no name sd card 128mo and a sandisk 2gb

i add led after the diodes and i connect it to VDD  to see if the module receive voltage and the led works, after i add led between GND of module and arduino gnd and the led works, i don't understand.

This module really sucks...tomorrow i receive a new module if it don't work i stop with it...

i saw an other possibility to play mp3 or wav with a cheap sd card module that i have, if you are interested:
http://apcmag.com/arduino-project-5-digital-audio-player.htm
and
http://www.hackerspace-ffm.de/wiki/index.php?title=SimpleSDAudio

bye

Logged

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

I have a VS1000 that works but for OGG files.
The MP3 to OGG converter is available at the VLSI-Solutions home site.
The module itself has onboard flash and a micro-SD slot and can be run through simple serial commands.
To get just 1 or 2 direct from the company to USA, there's a courier delivery fee that doubles the price so here you would want to find a supplier though I dunno who.

I have some Chinese modules that to get playing MP3 requires soldering 2 SMD pins together which I'm not good enough to even try.
http://www.bajdi.com/lcsoft-vs1053-mp3-module/

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: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to controle the volume by : 
 wtv020sd16p.volume(0); // 0 to 7
or
wtv020sd16p.volume_up()     or down .  But it did not work.
Please help with code example.
Logged

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

Hey.

1: Yes the files were converted. Just to make sure I downloaded the test file made (and tested) by another user on these forums.
2: As far as I am aware, I just needed to copy the files named 0000.ad4, 0001.ad4, etc to the SDcard root dir?
3: Ok. If the file tree is correct, then I will try a different card.

I don't have a shield to test it with, as money is tight at the moment, and I've never needed one. Please let me know about the file tree if you can, as I can't find any info about it on the web. Cheers!



I had the same problem. But all suddenly started to work when I plugged the module into 5V instead of 3.3V. The form advices you to plug the module into 3.3V but the voltage on the module itself indicates 5V.
Logged

Narvik, Norway
Offline Offline
Edison Member
*
Karma: 23
Posts: 1020
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

--there have been a lot of discussions regarding this (junk) item.
My (two) modules stared working when fed from 3.7V lion (phonebatteries).
Other replies suggest the same. 3V3 is too low voltage.
Try feeding 5V reduced by a couple of series silicon diodes
Logged

Ny

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

If your 3.3V device powers on 5VCC and has 3.4VDD, you can use that line with a good bit of resistor to pull up a pin that you have a diode on, blocking 5V level signal from an UNO. When the signal is low, it drains the pullup and when the signal is high, the pullup provides VDD to the pin.
Serial TX/RX idle state is HIGH to keep the lines from floating, the diode will prevent flow during idle and 0-bit times where with other voltage-levelers the 5V gets regulated some way that generally wastes more current and makes heat, the signal line at idle will need constant current loss. For RX/TX you only need to level shift RX, not TX.

Jack Christiansen showed me this one BTW. He said he saw it somewhere on a site.

Logged

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

Pages: 1 ... 12 13 [14] 15 16 17   Go Up
Jump to: