Search found 6 matches

by ylh
Sat 2016-07-30 21:07
Forum: Microcontroller Software
Topic: VS1053 MP3 play back slow and 'wobbly'
Replies: 15
Views: 16093

Re: VS1053 MP3 play back slow and 'wobbly'

I modified the code to read 512 bytes and then feed 32 at a time. It appears to have no effect.

I have updated the code in github.

Changes are in line 313 of the ...VS1053.cpp file.

Dumps of readyForData() shows mostly that DREQ is high (ready), with the occasional low.
by ylh
Thu 2016-07-28 14:50
Forum: Microcontroller Software
Topic: VS1053 MP3 play back slow and 'wobbly'
Replies: 15
Views: 16093

Re: VS1053 MP3 play back slow and 'wobbly'

Come to think of it: the SD library's read() is blocking. Reading 512 bytes from it each time will likely miss sending data to the VS1053.

I now wonder if there is something else other people are doing that could make this Geeetech board work.
by ylh
Thu 2016-07-28 14:29
Forum: Microcontroller Software
Topic: VS1053 MP3 play back slow and 'wobbly'
Replies: 15
Views: 16093

Re: VS1053 MP3 play back slow and 'wobbly'

So the symptom seems to indicate that I read too slowly to be feeding the VS1053 (hence also why the music is slow - the 'wobbly' output is just an effect). Reading 512 bytes at a time might help but I will need to do that asynchronously to feeding the VS1053 at 32 bytes a time. It will take me a li...
by ylh
Thu 2016-07-28 10:31
Forum: Microcontroller Software
Topic: VS1053 MP3 play back slow and 'wobbly'
Replies: 15
Views: 16093

Re: VS1053 MP3 play back slow and 'wobbly'

Hello, Thanks for the response. The code seems to indicate that I read 32 bytes at a time: #define VS1053_DATABUFFERLEN 32 Changing this to 512 does not play. My buffer is declared in bytes and I believe the SD file read() is also in bytes. I verified that the clock speed is at 0xC000 and that does ...
by ylh
Mon 2016-07-25 15:50
Forum: Microcontroller Software
Topic: VS1053 MP3 play back slow and 'wobbly'
Replies: 15
Views: 16093

Re: VS1053 MP3 play back slow and 'wobbly'

Hi - it plays all the way to the end but sounds awful (and slower than it should be). Here are the registers: VS1053 Simple Test Mode = 0x800 Stat = 0x48 ClkF = 0xC000 Vol. = 0x2828 Version = 4 It looks like the SM_STREAM_MODE is not set. I have put the code here: https://github.com/ylh888/VS_player...
by ylh
Sun 2016-07-24 18:13
Forum: Microcontroller Software
Topic: VS1053 MP3 play back slow and 'wobbly'
Replies: 15
Views: 16093

VS1053 MP3 play back slow and 'wobbly'

I have a Geeetech Arduino shield which I use with the Leonardo. I am using Adafruit's player_simple program. I have worked through all the pinouts and settings (running at SPI_HALF_SPEED). I have made small changes in order to initialize the player correctly. I can play an .mp3 file from the onboard...