Audible "Hello" example for VS1003B + Microcontroller

Writing software for systems that use VLSI Solution's devices as slave codecs to a host microcontroller.
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

Does anyone port VS1053 with STM32 ? thanks
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

Mp3DeselectData(); // Release the SDI bus
// You can do something else here, the bus is free...
// Maybe set the volume or whatever...

Can I put delay for 10ms on it ? or longer ? thanks
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

This code is working for VS1003B and ATMEGA128, I compiled with Atmel Studio 6
I tested "Hello" and 1 KHz Sine at once...

Please comment or delete USART and LCD init code, except you have same LCD and usart for debugging...

Thanks
Attachments
test_sine.c
(21.12 KiB) Downloaded 303 times
VS1003B.h
(3.97 KiB) Downloaded 300 times
VS1003B.c
(6.61 KiB) Downloaded 325 times
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

I used the same code above for VS1053....it gives me tuck...tuck...tuck.....I don't understand why ??
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

It works now with VS1053, I must connect all GPIOs to GND, pull down with 100K resistor
Hopefully the files will be usefull for everybody...

Thanks
Attachments
test_sine.c
(21.15 KiB) Downloaded 255 times
VS1003B.h
(3.97 KiB) Downloaded 290 times
VS1003B.c
(6.89 KiB) Downloaded 430 times
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

Now I want to test it with STM32...suppose to work...
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

This code is running on STM32F107 and VS1053...Hello and Sine wave 1KHz test..
Attachments
main.c
(19.95 KiB) Downloaded 470 times
VS1003.h
(4.42 KiB) Downloaded 500 times
VS1003.c
(10.71 KiB) Downloaded 394 times
User avatar
Panu
VSDSP Expert
Posts: 2816
Joined: Tue 2010-06-22 13:43

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by Panu »

It works now with VS1053, I must connect all GPIOs to GND, pull down with 100K resistor
Hopefully the files will be usefull for everybody...
Right.... hmm, perhaps the VS1053 was running in MIDI mode (GPIO1) and it was confusing the protocol..?

Anyway, congratulations for making it work!

-Panu
bianchi
Senior User
Posts: 245
Joined: Mon 2013-12-30 4:15

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi »

Anyone using mikroc pro arm for sine test and hello? My sine test is working but not working with sdcard.... do i need 2048 0x00 after 32bytes data.
? Thx
daigs
User
Posts: 3
Joined: Fri 2016-03-18 11:25

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by daigs »

Hi bianchi, do you have an email for sharing some ideas about MP3 player with external microcontroller?
Are you italian?
Thanks.
Post Reply