2024-10-29 02:54 AM - last edited on 2024-10-30 05:37 AM by Andrew Neil
Hello friends,
I write this post to ask for a hand in choosing a low -price micro stm32 that can read an .mp3 file from an SD card. The customer wants a really low cost and therefore I cannot go to use microcontroller with 100 pins, but I have to use a really cheap micro that gives me the opportunity to read a .mp3 file from SD. I ask for your willingness to help me!
2024-10-30 05:33 AM
@MBertocchi wrote:can you tell me exactly if I should use SPI or SDIO?
That's entirely up to you - use whichever fits best with your particular project requirements!
2024-10-30 06:37 AM
>>What is the SDIO port used for?
The High Speed, 4-bit, peripheral to drive SDMMC cards or eMMC chips.
When you need MBytes/s rather than just MBits/s
2024-10-30 06:59 AM
Hello,
Please check, but I have in memory the STM32G4xx has no SDIO interface.
2024-10-30 07:08 AM
And another thing:
So you read an mp3 file from SD-card - that's all you told us until now.
Be precise in your requests...
So you also want some audio output - but don't forget that inbetween file reading and DAC output you must decode mp3 data to something a (probably very cheap, or even the internal) DAC can understand.
So better check for some libraries for decoding, and which STM32 can handle that.
2024-10-30 07:15 AM - edited 2024-10-30 07:16 AM
@MBertocchi wrote:really cheap
If that's your key concern, note that there are cheap chips & modules which do SD-Card MP3-to-audio direct; eg,
https://www.aliexpress.com/item/1005005212215899.html
https://www.amazon.co.uk/DollaTek-Lossless-Decoders-Decoding-Amplifier/dp/B07M6JWMH6