Arduino Forum

Using Arduino => Programming Questions => Topic started by: Domino60 on May 08, 2019, 10:32 pm

Title: MP3 Module Issue - Bad Sound, low speed.
Post by: Domino60 on May 08, 2019, 10:32 pm

Right to the topic:

I use the following code:

The code is actually really long "FilePlayer" but I minimized it to minimum required logic
to play a single mp3 file.
Code: [Select]

#include <SPI.h>
#include <SdFat.h>
#include <SdFatUtil.h>
#include <SFEMP3Shield.h>

  #include <TimerOne.h>
#elif defined(USE_MP3_REFILL_MEANS) && USE_MP3_REFILL_MEANS == USE_MP3_SimpleTimer
  #include <SimpleTimer.h>

SdFat sd;
SFEMP3Shield MP3player;
int16_t last_ms_char; // milliseconds of last recieved character from Serial port.
int8_t buffer_pos; // next position to recieve character from Serial port.
char buffer[6]; // 0-35K+null

void setup() {

  uint8_t result;


  //Initialize the SdCard.
  if(!sd.begin(SD_SEL, SPI_FULL_SPEED)) sd.initErrorHalt();
  // depending upon your SdCard environment, SPI_HAVE_SPEED may work better.
  if(!sd.chdir("/")) sd.errorHalt("sd.chdir");
result = MP3player.begin();


void loop() {}

SFEMP3Shield Library
IDE 1.0.5  (Tried others but got compilation errors)

I use the following module: (
smaller chinies version of the actual shield.

I tried to use the example provided but couldn't make it work as well the SFEMP3Shield lib. seems identical.

What happens is that I get my module to play the mp3 file, the problem is that
the file audio seems to struggle playing, low speed with high noises

4Ohm speaker
32Gb SDCard, FAT32 Format
*.mp3 File.
Arduino Uno

Could someone help, seems like the module is working but the audio is horrible.
I thought it's a Ram problem but duno, the audio it's like hardly trying to play that's what I mean
by low speed, like ram is not enought or I don't know what is the cause.

Any advice, help would be appreciated

Title: Re: MP3 Module Issue - Bad Sound, low speed.
Post by: Domino60 on May 08, 2019, 10:53 pm

Issue solved I suppose:

The 1st file Format I was using was
with Bit Rate: 192kbps  - Bad slow, lot of noise
93kbps Bad slow, less noise
62kbps Seems normal speed, less noise but still there is, probably required some caps.

Any info regarding this issue would be apreciated
is that SD Problem, library, arduino, what can be inproved to use the 192kbps version ?