ArduinoGeneral

DFPlayer Mini - Really low volume, almost non-existent

userHead thomasthuesen 2016-05-24 13:17:38 6280 Views4 Replies

Hello everyone!

I'm seeking help regarding the DFPlayer Mini.

I have following the wiring guide as shown at the following website:

https://www.dfrobot.com/wiki/index.php/D ... KU:DFR0299

Whilst using the code below:

 

Code: Select all#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
 
//
void setup () {
    Serial.begin (9600);
    mp3_set_serial (Serial);      //set Serial for DFPlayer-mini mp3 module 
    delay(1);                     // delay 1ms to set volume
    mp3_set_volume (30);          // value 0~30
}
 
 
//
void loop () {        
    mp3_play (1);
    delay(6000);
    Serial.print(mp3_get_volume ()); 

}
 



When sitting the next to my Arduino setup there is no audible noise coming from the setup. Once i place my ear directly by the speaker i can hear the music playing. 

I have tried using two speakers. One 8Ohm 2W and another 8Óhm 0.25W, both speakers producing identical results.

Does anyone have any suggestions of what might be going on? Is the onboard amplifier broken maybe?

2016-05-25 01:52:33 Hi thomasthuesen,

You can add a delay(500) after volume setting, this module would react slowly to some command, try it to see if it works:
Code: Select all
 mp3_set_volume (30);
 delay(500);


If it can not be raised up any more, I think it has already been set to the loudest.
userHeadPic Leff
2016-05-25 00:32:49 Oh, thats strange! Do you make a reset after you upload the code?And do you have a picture about your connection diagram? userHeadPic Wendy.Hu
2016-05-25 00:21:50 Hello!

Without that, it still doesn't work. I tried added that in order to debug it.

Code: Select all
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
 
//
void setup () {
    Serial.begin (9600);
    mp3_set_serial (Serial);      //set Serial for DFPlayer-mini mp3 module
    delay(1);                     // delay 1ms to set volume
    mp3_set_volume (30);          // value 0~30
}
 
 
//
void loop () {       
    mp3_play (1);
    delay(6000);

}


I still produces no sound, unless i but my ear directly on my speaker and then i can still barely hear it.
userHeadPic thomasthuesen
2016-05-24 23:53:40 Hi

I can't compile your test code successfully, maybe the code is not correct. You need delete " Serial.print(mp3_get_volume ()); ", and then upload the code to Arduino. It should be noted that you need make a reset after change the volume value , then the volume will become larger or smaller.
userHeadPic Wendy.Hu