#spi #embedded-hal #vs1053

nightly no-std vs1053

SPI driver for for the generic VS1053 Breakout by VLSI Solution

5 releases

new 0.1.5 Apr 13, 2025
0.1.4 Mar 31, 2025
0.1.3 Mar 16, 2025
0.1.1 Feb 27, 2025
0.1.0 Feb 23, 2025

#529 in Embedded development

Download history 109/week @ 2025-02-19 171/week @ 2025-02-26 4/week @ 2025-03-05 129/week @ 2025-03-12 28/week @ 2025-03-19 98/week @ 2025-03-26 37/week @ 2025-04-02

293 downloads per month

MIT/Apache

610KB
2K SLoC

VS1053 driver

This is a SPI driver for the generic VS1053 Breakout by VLSI Solution.
A powerful Ogg Vorbis / MP3 / AAC / WMA / FLAC / MIDI Audio Codec chip.
Read more: http://www.vlsi.fi/en/products/vs1053.html.

Example board:

alt text

Based on https://github.com/baldram/ESP_VS1053_Library
For detailed information please see VS1053b Datasheet specification.

The device does not play nice with other devices on the same SPI bus.
It needs full access of cs line to configure its mode.
The SPI bus speed should be limited during the setup steps.
So It is recommended to use a separate SPI bus if you have
more devices that are connected on SPI bus

Decoder supports up to 24 bits, up to 48kHz
For FLAC support the patches with FLAC support must be used

Patches:

See here Only two are provided but others can be added if needed.

Patches must be loaded on startup and after a soft_reset is called
Note: set_mp3_mode calls soft_reset so it must be called before.
See examples for details

Example:

For complete code please check examples folder.

For a bigger example you can also see my project here https://gitlab.com/esp322054205/esp32s3-radio-vs1053

Dependencies