ArduinoGeneral

DFPlayer Mini - Power-on default value

userHead damien.peymirat 2016-11-21 12:41:43 4294 Views8 Replies
Hi All,

I have a quick question regarding this DFPlayer Mini. It's working fine on my side using AD Key Mode (multiple resistance and switch). However, default volume is too high (set to 30 by default according documentation). Is there any way to modify this power-on default value ?
I have seen that we can specify volume using 0x06 command but I'm not sure it will change the power-on default value ?

Thanks a lot for your help
Damien
2018-02-03 23:27:02 good dfrobot userHeadPic ufabet99xplayer
2018-02-02 15:58:51 Hello

I try to change volume with a potentiometer here my code :

int Volume = (analogRead(potVol)+analogRead(potVol))/2;

int volumeMp3 = map(Volume, 0, 1023, 0, 30); // 30 volume max

myDFPlayer.volume(volumeMp3);

But When i do it, my song is not clear , I get sizzle.
I don't have these sizzle when I let the volume set at any level

Could you help me please?

Regards

Benj
userHeadPic bennyboom38
2016-11-24 19:10:05 Hi Damien,

Sorry, I am not very clear about the logarithmic potentiometer, but I guess only if the volume can be adjusted normally, it will be ok. And the potentiometer I used is linear potentiometer, the 100ohm will be enough.

As for the code, you can refer to our product wiki:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://www.dfrobot.com/wiki/index.php/DFPlayer_Mini_SKU:DFR0299#Tutorial', '', ' class="postlink"')

I mean when you are going to control the module using the code, you need to upload the code to the controller, then the code will be saved in the controller all the time until you prepare for uploading new code. So when you connect your module to the controller again or power on again, the module will communicate with the code and still performs the operations in the code, no need to upload the code every time.

I dont know if you understand my explanation. Any problem please let me know. :)
userHeadPic Wendy.Hu
2016-11-24 14:13:16 Hi Wendy,

Many thanks for your help. I have also tested on my side with a potentiometer and it's OK. However, I have used a 10Kohm logarithmic potentiometer (only exist linear potentiometer with 100 ohm). Any issue ?

Regarding the upload of the code in the controller, I don't get you. Do you mean we can directly modify the Power On Default value directly on the DFPlayer ? If you can give me more details it would be great.

Thanks again
Damien
userHeadPic damien.peymirat
2016-11-23 19:50:53 Hi Sir,

Yes, I did a test, you can try to connect a 100ohm potentiometer to adjust the volume. And for the previous post, if you upload the code to the controller, you also can save the volume setting, since the code will be saved in the controller.

Hope this will help you. :)
userHeadPic Wendy.Hu
2016-11-22 14:57:05 Hi Wendy,
After reflexion, do you think it's possible to add one potentiometer just before the speaker ? It will allow to put the right volume and to keep it after power off/power on. Thanks for your help
userHeadPic damien.peymirat
2016-11-22 11:43:56 Hi Wendy
Thanks for your answer. Regards.
userHeadPic damien.peymirat
2016-11-22 01:14:08 Hi damien.peymirat ,

There are two method to adjust the volume. One is the code, referring to our wiki; the second is via the command, eg: 7E FF 06 06 00 00 14 EF, set the volume to 20.

But sorry, since there is no storage in the module, power on reset, you cant change the default value, you only can set the value every time.
userHeadPic Wendy.Hu