VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

Dear Hannu,

I don't use either SAR, DAC and USB.
So can I disconnects the pins AVDD and AVDD1 generally? :?:

There is one more problem.
There are no capacitors around the oscillator 12.288 Mhz in the schematics.
This is not my error because the generator will not start with these capacitors.

PS. I'm getting new microSD modules today. Maybe there's something wrong with mine...
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Hannu »

You probably can disconnect the AVDD. Thin in firmware even shuit down the regulator.
Oh dear the crystal circuit. I should have noticed it much faster. Normally some capacitors and the resistor (470k - 1M) is needed.

But the proof of pudding is eating it and clocking a digital circuit is running it. I wouldn't however expect high reliability without capacitors and the resistor.
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

:D :D :D
The module microSd was the culprit. :oops:
However I separated IOVDDD and AVDD and added capacitors to them.
I have question.
In order for only the internal player to work, I must have the config.txt and directory sys on the microSD?
mod.JPG
mod.JPG (21.08 KiB) Viewed 747 times
User avatar
Panu
VSDSP Expert
Posts: 2827
Joined: Tue 2010-06-22 13:43

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Panu »

Hi!

You see file names (01.MP3, 02.MP3) so it's already playing MP3!

Your terminal is in block character mode, you could reset it :D Is there some noise in the RX? Also you should set terminal incoming line feed mode to auto or CR.

-Panu
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

Dear Hannu and Panu,
Thank you very much for your help.
I connected a LM386 amplifier, and I hear that mp3 is really playing. :D
However, SPDIF_O is zero. :?
It is not in the ROM player code in VS1010?
If so, how do I include the code from: viewtopic.php?f=15&t=2839&p=14574&hilit=SPDIF#p14574 ?
Create new VSIDE solution with pasi code and then make *.dfx for s:\sys?
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

Problem number 2.
The MP3 player does not see mp3 files in directories, it only sees them in the root. :?
Is that how it should be? :?:
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Hannu »

Nice to hear that HW problems have changed to SW problems.

To fill your wishlist, a firmware must be wrritten.
For S/PDIF output see: viewtopic.php?f=15&t=2839&p=14473
That S/PDIF out takes audio from DAC SRC path.

And yes. Rom player has:

Code: Select all

                PlayFiles("D:*.WAV");   
                PlayFiles("D:*.MP3");   
                PlayFiles("F:*.WAV");
                PlayFiles("F:*.MP3");
So it doesn't play from directories.

But you have very nice player in the radio package. Take a look at that source. The insane indexer from sane designer (Panu) has the function Traverse() and its dependencies which does the heavy lifting to play recursively.
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

Thank you,
Panu project see MP3 files in directories!!! :D
But it project have not SPDIF output. :roll:
I was alerted by your phrase: That S/PDIF out takes audio from DAC SRC path.
Is SPDIF signal made from an analog signal? :o
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Hannu »

Close but wrong. The important part was the SRC. I think it is possible to even shut down the DAC drivers. I haven't tested this so I can't be sure. Power saving is an art where testing and measuring are the tools.

Take a look at datasheet playback interfaces. It has really good image. The outputs to S/PDIF are SRC_LEFT and SRC_RIGHT registers.

DAC can take any sample rate from something small to little bit over 48k or 96k. And in this case S/PDIF will work 48kHz and sample rates above 48 kHz will start to make aliasing images to audio bandwidth. Fortunately mp3 doesn't support such sample rates.
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

This is very good information for me. :)
Because making an mp3 player with analog signal conversion to SPDIF is not a problem, but the quality of such a signal turns out to be worse than ever.
Now there is only one problem left: to ask pasi to show how to insert his SPDIF code into the Panu project LCDMP3. :roll:
Post Reply