cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Nucleo music playback

JSmit.9
Associate

Hey,

for a project, we work with the STM32L476RG and our task is to read an audiofile from an sdcard and play it (sd/mmc interface and a class-D amplifier are provided).

Does anyone have any experience with music playback on this device? Beeing frontend-developers, we have 0 experience with microcontrollers so far.

Maybe anyone can recommend a suitable file format and a library. We appreciate any help to get started :)

1 REPLY 1
leonado897
Associate

Hey there! Getting started with audio playback on an STM32L476RG might seem daunting, but it's a fun and rewarding challenge. While we're not microcontroller experts ourselves, we can offer a few tips to help you get started.

 

First, consider using the WAV format for your audio files, as it's a widely supported and relatively simple format to work with. For a library, the STM32Cube HAL library, provided by STMicroelectronics, is a good starting point. It offers a range of peripherals, including the SD card interface and audio codecs, which can be configured to handle audio playback. You might also find helpful resources and code examples on forums like STM32 Community or GitHub.