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 » Sun 2015-08-23 23:52

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 » Tue 2015-12-29 5:54

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 » Mon 2016-01-04 9:52

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 159 times
VS1003B.h
(3.97 KiB) Downloaded 138 times
VS1003B.c
(6.61 KiB) Downloaded 172 times

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

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi » Mon 2016-01-04 10:25

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 » Thu 2016-01-14 16:07

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 120 times
VS1003B.h
(3.97 KiB) Downloaded 145 times
VS1003B.c
(6.89 KiB) Downloaded 282 times

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

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi » Thu 2016-01-14 16:07

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 » Sat 2016-01-16 2:51

This code is running on STM32F107 and VS1053...Hello and Sine wave 1KHz test..
Attachments
main.c
(19.95 KiB) Downloaded 249 times
VS1003.h
(4.42 KiB) Downloaded 289 times
VS1003.c
(10.71 KiB) Downloaded 164 times

User avatar
Panu
VLSI Staff
Posts: 2586
Joined: Tue 2010-06-22 13:43

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by Panu » Sun 2016-01-17 19:44

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
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

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

Re: Audible "Hello" example for VS1003B + Microcontroller

Post by bianchi » Sat 2016-03-12 9:18

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 » Fri 2016-03-18 12:30

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

Post Reply